diff options
| -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		},  | 
