diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-12-27 10:51:23 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:38 +0100 |
commit | fe7f71b67753a471b8119ccc5cad28d6ec8bf1f0 (patch) | |
tree | e739d0f6632350b9e83143e6f35694f8147dc8ee /libmm-glib/mm-bearer.h | |
parent | 8ff310be28450c780e63d12aef0289da601d0fa6 (diff) |
libmm-common,libmm-glib: new object to handle bearer creation properties
Diffstat (limited to 'libmm-glib/mm-bearer.h')
-rw-r--r-- | libmm-glib/mm-bearer.h | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/libmm-glib/mm-bearer.h b/libmm-glib/mm-bearer.h index 89c3345d..2ea4a6f5 100644 --- a/libmm-glib/mm-bearer.h +++ b/libmm-glib/mm-bearer.h @@ -24,7 +24,9 @@ #define _MM_BEARER_H_ #include <ModemManager.h> -#include <mm-gdbus-bearer.h> +#include <libmm-common.h> + +#include "mm-bearer-properties.h" G_BEGIN_DECLS @@ -36,14 +38,6 @@ 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) @@ -80,21 +74,7 @@ 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); +MMBearerProperties *mm_bearer_get_properties (MMBearer *self); const MMBearerIpConfig *mm_bearer_get_ipv4_config (MMBearer *self); MMBearerIpConfig *mm_bearer_dup_ipv4_config (MMBearer *self); |