aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-bearer.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-12-21 11:18:46 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:36 +0100
commit215b9c1a31e182cd34c792995e08b1ea56de5507 (patch)
tree2919d5d5fbd20b1fbc8d7aaa7b884ad9307c8bb4 /libmm-glib/mm-bearer.h
parenta422f5619fbcc99dd1e14905ecad52583b168847 (diff)
libmm-glib: allow getting properties used when the bearer was created
Diffstat (limited to 'libmm-glib/mm-bearer.h')
-rw-r--r--libmm-glib/mm-bearer.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/libmm-glib/mm-bearer.h b/libmm-glib/mm-bearer.h
index 988cc8d5..89c3345d 100644
--- a/libmm-glib/mm-bearer.h
+++ b/libmm-glib/mm-bearer.h
@@ -36,6 +36,14 @@ G_BEGIN_DECLS
*/
typedef struct _MMBearerIpConfig MMBearerIpConfig;
+/**
+ * MMBearerProperties:
+ *
+ * Addressing details for assignment to the data interface.
+ * This is an opaque struct.
+ */
+typedef struct _MMBearerProperties MMBearerProperties;
+
typedef MmGdbusBearer MMBearer;
#define MM_TYPE_BEARER(o) MM_GDBUS_TYPE_BEARER (o)
#define MM_BEARER(o) MM_GDBUS_BEARER(o)
@@ -72,6 +80,22 @@ gboolean mm_bearer_disconnect_sync (MMBearer *self,
GCancellable *cancellable,
GError **error);
+const MMBearerProperties *mm_bearer_get_properties (MMBearer *self);
+MMBearerProperties *mm_bearer_dup_properties (MMBearer *self);
+
+const gchar *mm_bearer_properties_get_apn (const MMBearerProperties *properties);
+gchar *mm_bearer_properties_dup_apn (const MMBearerProperties *properties);
+const gchar *mm_bearer_properties_get_ip_type (const MMBearerProperties *properties);
+gchar *mm_bearer_properties_dup_ip_type (const MMBearerProperties *properties);
+const gchar *mm_bearer_properties_get_user (const MMBearerProperties *properties);
+gchar *mm_bearer_properties_dup_user (const MMBearerProperties *properties);
+const gchar *mm_bearer_properties_get_password (const MMBearerProperties *properties);
+gchar *mm_bearer_properties_dup_password (const MMBearerProperties *properties);
+const gchar *mm_bearer_properties_get_number (const MMBearerProperties *properties);
+gchar *mm_bearer_properties_dup_number (const MMBearerProperties *properties);
+gboolean mm_bearer_properties_get_allow_roaming (const MMBearerProperties *properties);
+void mm_bearer_properties_free (MMBearerProperties *properties);
+
const MMBearerIpConfig *mm_bearer_get_ipv4_config (MMBearer *self);
MMBearerIpConfig *mm_bearer_dup_ipv4_config (MMBearer *self);
const MMBearerIpConfig *mm_bearer_get_ipv6_config (MMBearer *self);