From 4ea2af53fa86ea69ff0bd60504393590e03861f7 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 7 Nov 2008 15:29:56 -0300 Subject: Make serial driver to register RFCOMM UUID. This will make serial driver to get probed for any record which has RFCOMM UUID. --- serial/manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/serial/manager.c b/serial/manager.c index ff327272..60aa78e5 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -70,6 +70,7 @@ #define DIALUP_NET_UUID "00001103-0000-1000-8000-00805F9B34FB" #define OBJECT_PUSH_UUID "00001105-0000-1000-8000-00805F9B34FB" #define FILE_TRANSFER_UUID "00001106-0000-1000-8000-00805F9B34FB" +#define RFCOMM_UUID_STR "00000003-0000-1000-8000-00805F9B34FB" static DBusConnection *connection = NULL; @@ -82,7 +83,7 @@ static int serial_probe(struct btd_device *device, const char *uuid) bdaddr_t src, dst; const sdp_record_t *rec; - DBG("path %s", path); + DBG("path %s: %s", path, uuid); rec = btd_device_get_record(device, uuid); if (!rec) @@ -133,8 +134,7 @@ static void port_remove(struct btd_device *device) static struct btd_device_driver serial_port_driver = { .name = "serial-port", - .uuids = BTD_UUIDS(SERIAL_PORT_UUID, DIALUP_NET_UUID, - OBJECT_PUSH_UUID, FILE_TRANSFER_UUID), + .uuids = BTD_UUIDS(RFCOMM_UUID_STR), .probe = port_probe, .remove = port_remove, }; -- cgit