+static void handle_method_call(GDBusConnection *conn,
+ const gchar *sender,
+ const gchar *obj_path,
+ const gchar *interf_name,
+ const gchar *method_name,
+ GVariant *params,
+ GDBusMethodInvocation *invc,
+ gpointer usrdat) {
+
+ g_printf("%s wants to call %s, at %s with interface %s\n", sender, method_name, obj_path, interf_name);
+
+ g_dbus_method_invocation_return_value(invc, &spect_xml);
+
+}
+
+
+static GVariant * handle_get_property(GDBusConnection *conn,
+ const gchar *sender,
+ const gchar *obj_path,
+ const gchar *interf_name,
+ const gchar *prop_name,
+ GError **err,
+ gpointer usr_data) {
+
+ GVariant *ret;
+ ret = g_variant_new_string("");
+ g_snprintf(ret, 100, "%s touched property %s at %s", sender, prop_name, obj_path);
+
+ return ret;
+}
+
+static gboolean handle_set_property(GDBusConnection *conn,
+ const gchar *sender,
+ const gchar *obj_path,
+ const gchar *interf_name,
+ const gchar *prop_name,
+ GVariant *val,
+ GError **err,
+ gpointer usr_data) {
+ g_dbus_connection_emit_signal(conn,
+ NULL,
+ obj_path,
+ "org.freedesktop.DBus.Properties",
+ "PropertiesChanged",
+ NULL, /* incorrect */
+ NULL);
+
+ return TRUE;
+}