mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 17:24:32 +08:00
serial: removed PortCreated signal when the daemon starts
This commit is contained in:
parent
bd94212baf
commit
9b0bd8e682
@ -1104,8 +1104,7 @@ static DBusSignalVTable manager_signals[] = {
|
|||||||
|
|
||||||
static void parse_port(char *key, char *value, void *data)
|
static void parse_port(char *key, char *value, void *data)
|
||||||
{
|
{
|
||||||
char path[MAX_PATH_LENGTH], port_name[16], dst_addr[18];
|
char port_name[16], dst_addr[18];
|
||||||
const char *ppath = path;
|
|
||||||
char *src_addr = data;
|
char *src_addr = data;
|
||||||
bdaddr_t dst, src;
|
bdaddr_t dst, src;
|
||||||
int ch, id;
|
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);
|
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);
|
rfcomm_release(id);
|
||||||
return;
|
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)
|
static void register_stored_ports(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user