diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-16 08:56:30 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-16 08:56:30 +0000 |
commit | 3562f542debf739d121449fad41e0a9b2e5f61a0 (patch) | |
tree | 59e225b0af6c3018e8448f5bdbb4140ad3c8bad6 | |
parent | 1f51c533f3036261159f482a4564fcbb664f37c8 (diff) |
Add skeleton for FindService method
-rw-r--r-- | hcid/dbus-api.txt | 8 | ||||
-rw-r--r-- | hcid/dbus-manager.c | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/hcid/dbus-api.txt b/hcid/dbus-api.txt index 4716e254..6fd2fdb5 100644 --- a/hcid/dbus-api.txt +++ b/hcid/dbus-api.txt @@ -167,6 +167,14 @@ Methods uint32 InterfaceVersion() org.bluez.Error.Failed org.bluez.Error.OutOfMemory + string FindService(string pattern) + + Returns object path for the specified service. Valid + patterns are well known or unique bus names. + + Possible errors: org.bluez.Error.InvalidArguments + org.bluez.Error.NoSuchService + array{string} ListServices() Returns list of object paths of current services. diff --git a/hcid/dbus-manager.c b/hcid/dbus-manager.c index f01fbfaf..83363c73 100644 --- a/hcid/dbus-manager.c +++ b/hcid/dbus-manager.c @@ -195,6 +195,12 @@ static DBusHandlerResult list_adapters(DBusConnection *conn, return send_message_and_unref(conn, reply); } +static DBusHandlerResult find_service(DBusConnection *conn, + DBusMessage *msg, void *data) +{ + return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; +} + static DBusHandlerResult list_services(DBusConnection *conn, DBusMessage *msg, void *data) { @@ -480,6 +486,7 @@ static struct service_data methods[] = { { "DefaultAdapter", default_adapter }, { "FindAdapter", find_adapter }, { "ListAdapters", list_adapters }, + { "FindService", find_service }, { "ListServices", list_services }, { "AddServiceRecord", add_service_record }, { "AddServiceRecordFromXML", add_service_record_xml }, |