diff options
| author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-03-12 13:30:23 +0000 | 
|---|---|---|
| committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-03-12 13:30:23 +0000 | 
| commit | 4022022321e7422cfb9200e44f40573a19edd206 (patch) | |
| tree | 3f6fb46704f3f551988572f48290fc50ff55f5aa | |
| parent | 43ac7906eea6b1856379c8b4c4c8a8323def462b (diff) | |
Emitting DeviceCreated signal
| -rw-r--r-- | hcid/adapter.c | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/hcid/adapter.c b/hcid/adapter.c index 23df94a5..850d9f2e 100644 --- a/hcid/adapter.c +++ b/hcid/adapter.c @@ -3348,6 +3348,13 @@ static void discover_services_cb(gpointer user_data, sdp_list_t *recs, int err)  					DBUS_TYPE_INVALID);  	send_message_and_unref(adapter->create->conn, reply); +	dbus_connection_emit_signal(adapter->create->conn, +				dbus_message_get_path(adapter->create->msg), +				ADAPTER_INTERFACE, +				"DeviceCreated", +				DBUS_TYPE_OBJECT_PATH, &path, +				DBUS_TYPE_INVALID); +  	adapter->devices = g_slist_append(adapter->devices, g_strdup(path));  	/* Store the device's profiles in the filesystem */ | 
