summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-16 08:30:59 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-16 08:30:59 +0000
commitd47242d2f0ff67dd00c5fe3c48dae902486d7b5a (patch)
tree5c507181afb4639c40addcfdb5195484c13729d1
parent5a394b7317a2bb3437c88a955319107da4521dcd (diff)
Use ServiceAdded and ServiceRemoved signals
-rw-r--r--hcid/dbus-api.txt9
-rw-r--r--hcid/dbus-service.c4
2 files changed, 6 insertions, 7 deletions
diff --git a/hcid/dbus-api.txt b/hcid/dbus-api.txt
index 6c0896d6..84a027b4 100644
--- a/hcid/dbus-api.txt
+++ b/hcid/dbus-api.txt
@@ -167,10 +167,9 @@ Methods uint32 InterfaceVersion()
org.bluez.Error.Failed
org.bluez.Error.OutOfMemory
- array{string} ListServices() [experimental]
+ array{string} ListServices()
- Returns list of object paths of registered
- service agents.
+ Returns list of object paths of current services.
Possible errors: org.bluez.Error.InvalidArguments
@@ -232,11 +231,11 @@ Signals void AdapterAdded(string path)
Parameter is object path of the new default adapter.
- void ServiceRegistered(string path) [experimental]
+ void ServiceAdded(string path)
Parameter is object path of registered service agent.
- void ServiceUnregistered(string path) [experimental]
+ void ServiceRemoved(string path)
Parameter is object path of unregistered service agent.
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index 5ccad203..d837308c 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -754,7 +754,7 @@ int register_service(char *path, struct service *service)
services = g_slist_append(services, strdup(obj_path));
signal = dbus_message_new_signal(BASE_PATH, MANAGER_INTERFACE,
- "ServiceRegistered");
+ "ServiceAdded");
if (!signal)
return -ENOMEM;
@@ -806,7 +806,7 @@ static void release_service(struct service *service)
DBusMessage *signal;
signal = dbus_message_new_signal(BASE_PATH, MANAGER_INTERFACE,
- "ServiceUnregistered");
+ "ServiceRemoved");
if (signal) {
dbus_message_append_args(signal,
DBUS_TYPE_STRING, &service->object_path,