diff options
Diffstat (limited to 'input/manager.c')
-rw-r--r-- | input/manager.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/input/manager.c b/input/manager.c index 75ab1c15..47638278 100644 --- a/input/manager.c +++ b/input/manager.c @@ -327,6 +327,11 @@ static gboolean interrupt_connect_cb(GIOChannel *chan, goto cleanup; } + dbus_connection_emit_signal(pr->conn, INPUT_PATH, + INPUT_MANAGER_INTERFACE, "DeviceCreated", + DBUS_TYPE_STRING, &path, + DBUS_TYPE_INVALID); + device_paths = g_slist_append(device_paths, g_strdup(path)); /* Replying to the requestor */ @@ -736,6 +741,11 @@ static void headset_record_reply(DBusPendingCall *call, void *data) goto fail; } + dbus_connection_emit_signal(pr->conn, INPUT_PATH, + INPUT_MANAGER_INTERFACE, "DeviceCreated", + DBUS_TYPE_STRING, &path, + DBUS_TYPE_INVALID); + device_paths = g_slist_append(device_paths, g_strdup(path)); pr_reply = dbus_message_new_method_return(pr->msg); |