PROP_NAME
};
+static GType my_object_get_type (void);
G_DEFINE_TYPE (MyObject, my_object, G_TYPE_OBJECT);
static void
}
/* A method that we want to export */
-void
+static void
my_object_change_count (MyObject *myobj,
gint change)
{
G_CALLBACK (send_property_change), connection);
registration_id = g_dbus_connection_register_object (connection,
"/org/myorg/MyObject",
- "org.myorg.MyObject",
introspection_data->interfaces[0],
&interface_vtable,
myobj,
GMainLoop *loop;
MyObject *myobj;
- g_type_init ();
-
/* We are lazy here - we don't want to manually provide
* the introspection data structures - so we just build
* them from XML.