From d2ce75b57a27a9feaddb25558e62ae7162ef7f9f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 17 Dec 2010 16:27:55 -0600 Subject: core: separate PropertiesChanged signal XML Which requires that we turn it into a GInterface that MMModemBase can implement, because dbus-glib does not allow attaching more than one introspection glue structure to an object at a time. Also implement the standard D-Bus properties changed signal. --- src/mm-properties-changed-signal.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/mm-properties-changed-signal.h') diff --git a/src/mm-properties-changed-signal.h b/src/mm-properties-changed-signal.h index 87f46a9f..a6d0f3ee 100644 --- a/src/mm-properties-changed-signal.h +++ b/src/mm-properties-changed-signal.h @@ -19,7 +19,18 @@ #include -guint mm_properties_changed_signal_new (GObjectClass *object_class); +#define MM_TYPE_PROPERTIES_CHANGED (mm_properties_changed_get_type ()) +#define MM_PROPERTIES_CHANGED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_PROPERTIES_CHANGED, MMPropertiesChanged)) +#define MM_IS_PROPERTIES_CHANGED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_PROPERTIES_CHANGED)) +#define MM_PROPERTIES_CHANGED_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), MM_TYPE_PROPERTIES_CHANGED, MMPropertiesChanged)) + +typedef struct { + GTypeInterface g_iface; +} MMPropertiesChanged; + +GType mm_properties_changed_get_type (void); + +void mm_properties_changed_signal_enable (GObjectClass *object_class); void mm_properties_changed_signal_register_property (GObject *object, const char *gobject_property, -- cgit v1.2.3-70-g09d2