diff options
-rw-r--r-- | hcid/dbus-common.c | 15 | ||||
-rw-r--r-- | hcid/dbus-common.h | 13 |
2 files changed, 0 insertions, 28 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c index 5acec28d..ec04f797 100644 --- a/hcid/dbus-common.c +++ b/hcid/dbus-common.c @@ -70,21 +70,6 @@ static sdp_session_t *sess = NULL; static int experimental = 0; -service_handler_func_t find_service_handler(struct service_data *handlers, DBusMessage *msg) -{ - struct service_data *current; - const char *name; - - name = dbus_message_get_member(msg); - - for (current = handlers; current->name != NULL; current++) { - if (!strcmp(current->name, name)) - return current->handler_func; - } - - return NULL; -} - int str2uuid(uuid_t *uuid, const char *string) { uint16_t svclass, data1, data2, data3, data5; diff --git a/hcid/dbus-common.h b/hcid/dbus-common.h index baccfb59..3f794feb 100644 --- a/hcid/dbus-common.h +++ b/hcid/dbus-common.h @@ -27,17 +27,6 @@ #define MAX_PATH_LENGTH 64 -typedef DBusHandlerResult (*service_handler_func_t) (DBusConnection *conn, - DBusMessage *msg, - void *user_data); - -struct service_data { - const char *name; - service_handler_func_t handler_func; -}; - -service_handler_func_t find_service_handler(struct service_data *services, DBusMessage *msg); - int str2uuid(uuid_t *uuid, const char *string); int l2raw_connect(const char *local, const bdaddr_t *remote); @@ -46,8 +35,6 @@ int find_conn(int s, int dev_id, long arg); #define check_address(address) bachk(address) -DBusHandlerResult handle_method_call(DBusConnection *conn, DBusMessage *msg, void *data); - void hcid_dbus_exit(void); int hcid_dbus_init(void); |