summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-05-08 17:39:18 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-05-08 17:39:18 +0000
commit2d1284ae8d28374c81af55b8240f1923e6694be2 (patch)
tree74f36a8b15af4d5ff89d40b53a7e7332cd37b237 /common
parentbd3c21b0cc3d5829cf91c9c75dc6943bca63298a (diff)
Remove simple introspection function
Diffstat (limited to 'common')
-rw-r--r--common/dbus.c27
-rw-r--r--common/dbus.h3
2 files changed, 0 insertions, 30 deletions
diff --git a/common/dbus.c b/common/dbus.c
index 5a59f8f2..ccf7c46c 100644
--- a/common/dbus.c
+++ b/common/dbus.c
@@ -827,33 +827,6 @@ DBusConnection *dbus_bus_system_setup_with_main_loop(const char *name,
return init_dbus(name, disconnect_cb, user_data);
}
-static char simple_xml[] = DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "<node></node>";
-
-DBusHandlerResult simple_introspect(DBusConnection *conn,
- DBusMessage *msg, void *user_data)
-{
- DBusMessage *reply;
- const char *path, *ptr = simple_xml;
-
- path = dbus_message_get_path(msg);
-
- info("Introspect path:%s", path);
-
- if (!dbus_message_has_signature(msg, DBUS_TYPE_INVALID_AS_STRING)) {
- error("Unexpected signature to introspect call");
- return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
- }
-
- reply = dbus_message_new_method_return(msg);
- if (!reply)
- return DBUS_HANDLER_RESULT_NEED_MEMORY;
-
- dbus_message_append_args(reply, DBUS_TYPE_STRING, &ptr,
- DBUS_TYPE_INVALID);
-
- return send_message_and_unref(conn, reply);
-}
-
int set_nonblocking(int fd)
{
long arg;
diff --git a/common/dbus.h b/common/dbus.h
index b8223059..2a182ac8 100644
--- a/common/dbus.h
+++ b/common/dbus.h
@@ -38,9 +38,6 @@ DBusConnection *init_dbus_direct(const char *address);
DBusConnection *dbus_bus_system_setup_with_main_loop(const char *name,
void (*disconnect_cb)(void *), void *user_data);
-DBusHandlerResult simple_introspect(DBusConnection *conn,
- DBusMessage *msg, void *user_data);
-
typedef void (*name_cb_t)(const char *name, void *user_data);
guint name_listener_add(DBusConnection *connection, const char *name,