summaryrefslogtreecommitdiff
path: root/libmm-glib/mm-sim-preferred-network.h
diff options
context:
space:
mode:
authorTeijo Kinnunen <teijo.kinnunen@uros.com>2021-03-03 16:23:09 +0200
committerTeijo Kinnunen <teijo.kinnunen@uros.com>2021-03-09 08:52:55 +0200
commit66e93751b802beb5072e72bc911df3edf64b9a37 (patch)
tree48db0c947acf89e88855c15aa2f18963e18b350a /libmm-glib/mm-sim-preferred-network.h
parent72d753ba83fbc9a9dfc1d66ab2e426add5dbdd0c (diff)
downloadModemManager-66e93751b802beb5072e72bc911df3edf64b9a37.tar.gz
api,sim: add new Sim.SetPreferredNetworks method
This commit includes D-Bus processing and documentation, but not any modem access implementation.
Diffstat (limited to 'libmm-glib/mm-sim-preferred-network.h')
-rw-r--r--libmm-glib/mm-sim-preferred-network.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/libmm-glib/mm-sim-preferred-network.h b/libmm-glib/mm-sim-preferred-network.h
index e60425872..1c7deeab2 100644
--- a/libmm-glib/mm-sim-preferred-network.h
+++ b/libmm-glib/mm-sim-preferred-network.h
@@ -36,9 +36,16 @@ typedef struct _MMSimPreferredNetwork MMSimPreferredNetwork;
#define MM_TYPE_SIM_PREFERRED_NETWORK (mm_sim_preferred_network_get_type ())
GType mm_sim_preferred_network_get_type (void);
+MMSimPreferredNetwork * mm_sim_preferred_network_new (void);
+
const gchar *mm_sim_preferred_network_get_operator_code (const MMSimPreferredNetwork *self);
MMModemAccessTechnology mm_sim_preferred_network_get_access_technology (const MMSimPreferredNetwork *self);
+void mm_sim_preferred_network_set_operator_code (MMSimPreferredNetwork *self,
+ const gchar *operator_code);
+void mm_sim_preferred_network_set_access_technology (MMSimPreferredNetwork *self,
+ MMModemAccessTechnology access_technology);
+
void mm_sim_preferred_network_free (MMSimPreferredNetwork *self);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMSimPreferredNetwork, mm_sim_preferred_network_free)
@@ -50,16 +57,11 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMSimPreferredNetwork, mm_sim_preferred_network_f
defined (_LIBMM_INSIDE_MMCLI) || \
defined (LIBMM_GLIB_COMPILATION)
-MMSimPreferredNetwork * mm_sim_preferred_network_new (void);
MMSimPreferredNetwork * mm_sim_preferred_network_new_from_variant (GVariant *variant);
-void mm_sim_preferred_network_set_operator_code (MMSimPreferredNetwork *self,
- const gchar *operator_code);
-void mm_sim_preferred_network_set_access_technology (MMSimPreferredNetwork *self,
- MMModemAccessTechnology access_technology);
-
-GVariant *mm_sim_preferred_network_get_tuple (const MMSimPreferredNetwork *self);
-GVariant *mm_sim_preferred_network_list_get_variant (const GList *preferred_network_list);
+GVariant *mm_sim_preferred_network_get_tuple (const MMSimPreferredNetwork *self);
+GVariant *mm_sim_preferred_network_list_get_variant (const GList *preferred_network_list);
+GList *mm_sim_preferred_network_list_new_from_variant (GVariant *variant);
#endif