summaryrefslogtreecommitdiffstats
path: root/serial/manager.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-05-18 21:35:09 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-05-18 21:35:09 +0000
commit9b0bd8e682be29a265a57645e96ed810d5473ad7 (patch)
tree93dcfc699de350c7f949cb82f8b92dc5798252aa /serial/manager.c
parentbd94212baf00fdeca29a8899a47f1b280fd54bd7 (diff)
serial: removed PortCreated signal when the daemon starts
Diffstat (limited to 'serial/manager.c')
-rw-r--r--serial/manager.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/serial/manager.c b/serial/manager.c
index 528954a9..8eb1b906 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -1104,8 +1104,7 @@ static DBusSignalVTable manager_signals[] = {
static void parse_port(char *key, char *value, void *data)
{
- char path[MAX_PATH_LENGTH], port_name[16], dst_addr[18];
- const char *ppath = path;
+ char port_name[16], dst_addr[18];
char *src_addr = data;
bdaddr_t dst, src;
int ch, id;
@@ -1125,15 +1124,10 @@ static void parse_port(char *key, char *value, void *data)
snprintf(port_name, sizeof(port_name), "/dev/rfcomm%d", id);
- if (port_register(connection, id, &dst, port_name, path) < 0) {
+ if (port_register(connection, id, &dst, port_name, NULL) < 0) {
rfcomm_release(id);
return;
}
-
- dbus_connection_emit_signal(connection, SERIAL_MANAGER_PATH,
- SERIAL_MANAGER_INTERFACE, "PortCreated" ,
- DBUS_TYPE_STRING, &ppath,
- DBUS_TYPE_INVALID);
}
static void register_stored_ports(void)