diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-12-13 18:04:02 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-12-13 18:04:02 +0100 |
commit | fcbffbd1231052fb3ea543382b59ad195cc45211 (patch) | |
tree | aa2396533deb1279f6711bf8cd25acf8c769e1cc /examples/network-scan-python | |
parent | 248cd55f0e5d2a125569f9e7974a43d6b895d6de (diff) |
libmm-glib,3gpp: make MMModem3gppNetwork a boxed type
So that bindings know how to free the list of structs.
This commit ends up triggering an API break in the bindings generated
via GObject introspection, because the methods to access the items of
a MMModem3gppNetwork are no longer treated as Modem3gpp class methods.
E.g. instead of:
ModemManager.Modem3gpp.network_get_operator_code(network)
We should now do:
network.get_operator_code()
There is no API break in libmm-glib.
Diffstat (limited to 'examples/network-scan-python')
-rwxr-xr-x | examples/network-scan-python/network-scan-python | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/network-scan-python/network-scan-python b/examples/network-scan-python/network-scan-python index 88f0a115..ad377091 100755 --- a/examples/network-scan-python/network-scan-python +++ b/examples/network-scan-python/network-scan-python @@ -47,10 +47,10 @@ if __name__ == "__main__": if networks: for network in networks: print('%s: %s - %s (%s, %s)' % ( - ModemManager.Modem3gpp.network_get_operator_code(network), - ModemManager.Modem3gpp.network_get_operator_short(network), - ModemManager.Modem3gpp.network_get_operator_short(network), - ModemManager.modem_access_technology_build_string_from_mask (ModemManager.Modem3gpp.network_get_access_technology(network)), - ModemManager.Modem3gppNetworkAvailability.get_string(ModemManager.Modem3gpp.network_get_availability(network)))) + network.get_operator_code(), + network.get_operator_short(), + network.get_operator_short(), + ModemManager.modem_access_technology_build_string_from_mask (network.get_access_technology()), + ModemManager.Modem3gppNetworkAvailability.get_string(network.get_availability()))) else: print('no networks found') |