summaryrefslogtreecommitdiffstats
path: root/serial
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-07 15:29:56 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-07 15:29:56 -0300
commit4ea2af53fa86ea69ff0bd60504393590e03861f7 (patch)
tree8f54ab44247f8291db6ef5747780e2c1b4b80705 /serial
parentf1c3d8c1fabd801eac34c9069038d3f4cadcb58d (diff)
Make serial driver to register RFCOMM UUID.
This will make serial driver to get probed for any record which has RFCOMM UUID.
Diffstat (limited to 'serial')
-rw-r--r--serial/manager.c6
1 files 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,
};