summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-27 13:50:32 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-27 13:50:32 +0000
commit5aef8f33ebb1fb537e13ffeb336eb1d886a7adca (patch)
tree5786aabdcddd730b3c4b0bf53da982520d602227 /input
parent34207c770a372a5d847fe60423dc82a358faab6b (diff)
input: don't send DeviceCreated signal when the daemon starts
Diffstat (limited to 'input')
-rw-r--r--input/device.c5
-rw-r--r--input/manager.c10
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);