aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-modem-simple.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-10-01 22:41:07 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-10-02 14:45:37 +0200
commit653582ce1786119017e5814fb081620246faff34 (patch)
tree46420e5f5dd2202712d3977b1dfdba81c5fec95c /libmm-glib/mm-modem-simple.h
parent6ac9460543300ae66d3429031dabeaae2053a68a (diff)
libmm-glib,simple: `MMModemSimple' is now a real object
Not just a typedef of the gdbus-codegen generated `MmGdbusModemSimple'.
Diffstat (limited to 'libmm-glib/mm-modem-simple.h')
-rw-r--r--libmm-glib/mm-modem-simple.h39
1 files changed, 32 insertions, 7 deletions
diff --git a/libmm-glib/mm-modem-simple.h b/libmm-glib/mm-modem-simple.h
index 2f9c3498..7763cd99 100644
--- a/libmm-glib/mm-modem-simple.h
+++ b/libmm-glib/mm-modem-simple.h
@@ -17,7 +17,8 @@
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
- * Copyright (C) 2011 Aleksander Morgado <aleksander@gnu.org>
+ * Copyright (C) 2011 - 2012 Aleksander Morgado <aleksander@gnu.org>
+ * Copyright (C) 2012 Google, Inc.
*/
#ifndef _MM_MODEM_SIMPLE_H_
@@ -30,10 +31,34 @@
G_BEGIN_DECLS
-typedef MmGdbusModemSimple MMModemSimple;
-#define MM_TYPE_MODEM_SIMPLE(o) MM_GDBUS_TYPE_MODEM_SIMPLE (o)
-#define MM_MODEM_SIMPLE(o) MM_GDBUS_MODEM_SIMPLE(o)
-#define MM_IS_MODEM_SIMPLE(o) MM_GDBUS_IS_MODEM_SIMPLE(o)
+#define MM_TYPE_MODEM_SIMPLE (mm_modem_simple_get_type ())
+#define MM_MODEM_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_MODEM_SIMPLE, MMModemSimple))
+#define MM_MODEM_SIMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MM_TYPE_MODEM_SIMPLE, MMModemSimpleClass))
+#define MM_IS_MODEM_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_MODEM_SIMPLE))
+#define MM_IS_MODEM_SIMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), MM_TYPE_MODEM_SIMPLE))
+#define MM_MODEM_SIMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_TYPE_MODEM_SIMPLE, MMModemSimpleClass))
+
+typedef struct _MMModemSimple MMModemSimple;
+typedef struct _MMModemSimpleClass MMModemSimpleClass;
+
+/**
+ * MMModemSimple:
+ *
+ * The #MMModemSimple structure contains private data and should only be accessed
+ * using the provided API.
+ */
+struct _MMModemSimple {
+ /*< private >*/
+ MmGdbusModemSimpleProxy parent;
+ gpointer unused;
+};
+
+struct _MMModemSimpleClass {
+ /*< private >*/
+ MmGdbusModemSimpleProxyClass parent;
+};
+
+GType mm_modem_simple_get_type (void);
const gchar *mm_modem_simple_get_path (MMModemSimple *self);
gchar *mm_modem_simple_dup_path (MMModemSimple *self);
@@ -52,7 +77,7 @@ MMBearer *mm_modem_simple_connect_sync (MMModemSimple *self,
GError **error);
void mm_modem_simple_disconnect (MMModemSimple *self,
- const gchar *bearer_path,
+ const gchar *bearer,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
@@ -60,7 +85,7 @@ gboolean mm_modem_simple_disconnect_finish (MMModemSimple *self,
GAsyncResult *res,
GError **error);
gboolean mm_modem_simple_disconnect_sync (MMModemSimple *self,
- const gchar *bearer_path,
+ const gchar *bearer,
GCancellable *cancellable,
GError **error);