diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-19 01:05:01 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-19 01:05:01 +0000 |
commit | f2c07fc5c3b2be43421544a5edfc27d6f9b9a5d9 (patch) | |
tree | f0a278632144fcd6b127db4c9a5e9de3ecf361b2 /common/dbus.c | |
parent | 2006d2ff671751d0ced48827ae8a58887c404a48 (diff) |
Remove not needed generic message handling
Diffstat (limited to 'common/dbus.c')
-rw-r--r-- | common/dbus.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/common/dbus.c b/common/dbus.c index 63e5e38f..3b211851 100644 --- a/common/dbus.c +++ b/common/dbus.c @@ -635,29 +635,3 @@ DBusHandlerResult simple_introspect(DBusConnection *conn, return send_message_and_unref(conn, reply); } - -static DBusHandlerResult generic_message_function(DBusConnection *conn, - DBusMessage *msg, void *user_data) -{ - struct message_table *table = user_data; - struct message_table *current; - const char *member; - - if (dbus_message_is_method_call(msg, DBUS_INTERFACE_INTROSPECTABLE, - "Introspect") == TRUE) - return simple_introspect(conn, msg, user_data); - - member = dbus_message_get_member(msg); - - for (current = table; current->handler; current++) { - if (dbus_message_is_method_call(msg, current->interface, current->member) == TRUE && - dbus_message_has_signature(msg, current->signature) == TRUE) - return current->handler(conn, msg, user_data); - } - - return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; -} - -DBusObjectPathVTable generic_object_path = { - .message_function = generic_message_function, -}; |