aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-modem-location.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-10-01 19:41:02 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-10-02 14:45:37 +0200
commit45172e39b4b902e4c68bd810fccf3cafa5283477 (patch)
tree7d3e633ae4bdba53cd11b41f56780faca915103e /libmm-glib/mm-modem-location.h
parent2d6bca4b8bcc67225ca8b77e37813c458b8b8075 (diff)
libmm-glib,location: `MMModemLocation' is now a real object
Not just a typedef of the gdbus-codegen generated `MmGdbusModemLocation'.
Diffstat (limited to 'libmm-glib/mm-modem-location.h')
-rw-r--r--libmm-glib/mm-modem-location.h34
1 files changed, 30 insertions, 4 deletions
diff --git a/libmm-glib/mm-modem-location.h b/libmm-glib/mm-modem-location.h
index b1b5b523..f2d2eae7 100644
--- a/libmm-glib/mm-modem-location.h
+++ b/libmm-glib/mm-modem-location.h
@@ -29,16 +29,42 @@
G_BEGIN_DECLS
-typedef MmGdbusModemLocation MMModemLocation;
-#define MM_TYPE_MODEM_LOCATION(o) MM_GDBUS_TYPE_MODEM_LOCATION (o)
-#define MM_MODEM_LOCATION(o) MM_GDBUS_MODEM_LOCATION(o)
-#define MM_IS_MODEM_LOCATION(o) MM_GDBUS_IS_MODEM_LOCATION(o)
+#define MM_TYPE_MODEM_LOCATION (mm_modem_location_get_type ())
+#define MM_MODEM_LOCATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_MODEM_LOCATION, MMModemLocation))
+#define MM_MODEM_LOCATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MM_TYPE_MODEM_LOCATION, MMModemLocationClass))
+#define MM_IS_MODEM_LOCATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_MODEM_LOCATION))
+#define MM_IS_MODEM_LOCATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), MM_TYPE_MODEM_LOCATION))
+#define MM_MODEM_LOCATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_TYPE_MODEM_LOCATION, MMModemLocationClass))
+
+typedef struct _MMModemLocation MMModemLocation;
+typedef struct _MMModemLocationClass MMModemLocationClass;
+
+/**
+ * MMModemLocation:
+ *
+ * The #MMModemLocation structure contains private data and should only be accessed
+ * using the provided API.
+ */
+struct _MMModemLocation {
+ /*< private >*/
+ MmGdbusModemLocationProxy parent;
+ gpointer unused;
+};
+
+struct _MMModemLocationClass {
+ /*< private >*/
+ MmGdbusModemLocationProxyClass parent;
+};
+
+GType mm_modem_location_get_type (void);
const gchar *mm_modem_location_get_path (MMModemLocation *self);
gchar *mm_modem_location_dup_path (MMModemLocation *self);
MMModemLocationSource mm_modem_location_get_capabilities (MMModemLocation *self);
+
MMModemLocationSource mm_modem_location_get_enabled (MMModemLocation *self);
+
gboolean mm_modem_location_signals_location (MMModemLocation *self);
void mm_modem_location_setup (MMModemLocation *self,