diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-15 15:02:00 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-15 15:02:00 +0000 |
commit | fc357026e41c38108fd7aed60dba0fd53adf1544 (patch) | |
tree | 9d0d424b6a563242b5dec272b15074d79da08765 | |
parent | 7b8a634126a3aa79e08d9d35d207f55016f9bda9 (diff) |
Connect rfcomm handler to adapter path
-rw-r--r-- | hcid/dbus-adapter.c | 2 | ||||
-rw-r--r-- | hcid/dbus-rfcomm.c | 10 | ||||
-rw-r--r-- | hcid/dbus.h | 4 |
3 files changed, 16 insertions, 0 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c index 50a9bb7a..136ac5fc 100644 --- a/hcid/dbus-adapter.c +++ b/hcid/dbus-adapter.c @@ -1373,6 +1373,8 @@ DBusHandlerResult msg_func_device(DBusConnection *conn, DBusMessage *msg, void * } else if (!strcmp(SECURITY_INTERFACE, iface)) return handle_security_method(conn, msg, data); + else if (!strcmp(RFCOMM_INTERFACE, iface)) + return handle_rfcomm_method(conn, msg, data); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } diff --git a/hcid/dbus-rfcomm.c b/hcid/dbus-rfcomm.c index f3bf47c4..700649e6 100644 --- a/hcid/dbus-rfcomm.c +++ b/hcid/dbus-rfcomm.c @@ -27,3 +27,13 @@ #include <stdio.h> #include <errno.h> + +#include <dbus/dbus.h> + +#include "dbus.h" + +DBusHandlerResult handle_rfcomm_method(DBusConnection *conn, DBusMessage *msg, + void *data) +{ + return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; +} diff --git a/hcid/dbus.h b/hcid/dbus.h index 3be9741d..c791e112 100644 --- a/hcid/dbus.h +++ b/hcid/dbus.h @@ -42,6 +42,8 @@ #define SECURITY_INTERFACE BASE_INTERFACE ".Security" +#define RFCOMM_INTERFACE BASE_INTERFACE ".RFCOMM" + #define MANAGER_PATH_MASK (1 << 15) #define ADAPTER_PATH_MASK (1 << 14) @@ -137,6 +139,8 @@ int name_listener_remove(DBusConnection *connection, const char *name, DBusHandlerResult handle_security_method(DBusConnection *conn, DBusMessage *msg, void *data); +DBusHandlerResult handle_rfcomm_method(DBusConnection *conn, DBusMessage *msg, void *data); + service_handler_func_t find_service_handler(struct service_data *services, DBusMessage *msg); int handle_passkey_request(int dev, const char *path, bdaddr_t *sba, bdaddr_t *dba); |