diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-10 21:27:51 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-10 21:27:51 +0000 |
commit | 6508cdb8cd4ecf53c21826a878ec57d0dbb9205c (patch) | |
tree | 874e5c61c5894f1b2fa9c2908c4c4b7c503c3975 /hcid/dbus-common.c | |
parent | 1c37ee6736011106383c591cb387c724b0ff494e (diff) |
Break everything
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r-- | hcid/dbus-common.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c index 45cc6246..41a9ce3e 100644 --- a/hcid/dbus-common.c +++ b/hcid/dbus-common.c @@ -281,3 +281,19 @@ int name_listener_remove(DBusConnection *connection, const char *name, return 0; } + +service_hanbdler_func_t *find_service_handler(const service_data *handlers, DBusMessage *msg) +{ + struct service_data *current; + const char *name, *sig; + + member = dbus_message_get_member(msg); + + for (current = handlers; current->name != NULL; current++) { + if (!strcmp(current->name, member)) + return current->handler_func; + } + + return NULL; +} + |