diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-05-18 20:50:32 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-05-18 20:50:32 +0000 |
commit | e9e6822e7e4cfb2825ba06b74cbcfb200e546fe6 (patch) | |
tree | 424174e3751d4d2e034a8d731529c9f49155431a /serial/port.c | |
parent | 68f208cc3b17f8e26318ba411a0974d9489249c9 (diff) |
serial: send PortRemoved signal for RemovePort calls only
Diffstat (limited to 'serial/port.c')
-rw-r--r-- | serial/port.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/serial/port.c b/serial/port.c index 49042785..64a72ff9 100644 --- a/serial/port.c +++ b/serial/port.c @@ -196,18 +196,9 @@ static gboolean rfcomm_disconnect_cb(GIOChannel *io, static void port_handler_unregister(DBusConnection *conn, void *data) { struct rfcomm_node *node = data; - char path[MAX_PATH_LENGTH]; - const char *ppath = path; debug("Unregistered serial port: %s", node->name); - snprintf(path, MAX_PATH_LENGTH, "%s/rfcomm%hd", SERIAL_MANAGER_PATH, node->id); - - dbus_connection_emit_signal(conn, SERIAL_MANAGER_PATH, - SERIAL_MANAGER_INTERFACE, "PortRemoved" , - DBUS_TYPE_STRING, &ppath, - DBUS_TYPE_INVALID); - bound_nodes = g_slist_remove(bound_nodes, node); rfcomm_node_free(node); } |