From 5aef8f33ebb1fb537e13ffeb336eb1d886a7adca Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Mon, 27 Aug 2007 13:50:32 +0000 Subject: input: don't send DeviceCreated signal when the daemon starts --- input/device.c | 5 ----- input/manager.c | 10 ++++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/input/device.c b/input/device.c index 6bf3da9a..3e019a44 100644 --- a/input/device.c +++ b/input/device.c @@ -1047,11 +1047,6 @@ static int register_path(DBusConnection *conn, const char *path, struct device * return -1; } - dbus_connection_emit_signal(conn, INPUT_PATH, - INPUT_MANAGER_INTERFACE, "DeviceCreated", - DBUS_TYPE_STRING, &path, - DBUS_TYPE_INVALID); - devices = g_slist_append(devices, idev); info("Created input device: %s", path); 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); -- cgit