diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-03-21 19:30:54 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-03-21 19:30:54 +0000 |
commit | 63ce134711eab575a35d2b4a5cbc62f1446d6a73 (patch) | |
tree | 23b65900eee7ed60b502998d7241b493b8c7f18d /hcid | |
parent | c95cdbbf157765752d7d9f8700ee721587d56f70 (diff) |
Added skeleton for dict based methods: Adapter.GetInfo, Adapter.GetRemoteInfo and Service.GetInfo
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus-adapter.c | 14 | ||||
-rw-r--r-- | hcid/dbus-service.c | 7 |
2 files changed, 21 insertions, 0 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c index d94c43b9..f1aef25d 100644 --- a/hcid/dbus-adapter.c +++ b/hcid/dbus-adapter.c @@ -227,6 +227,12 @@ static struct bonding_request_info *bonding_request_new(bdaddr_t *peer, return bonding; } +static DBusHandlerResult adapter_get_info(DBusConnection *conn, + DBusMessage *msg, void *data) +{ + return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; +} + static DBusHandlerResult adapter_get_address(DBusConnection *conn, DBusMessage *msg, void *data) { @@ -1034,6 +1040,12 @@ static DBusHandlerResult adapter_set_name(DBusConnection *conn, return send_message_and_unref(conn, reply); } +static DBusHandlerResult adapter_get_remote_info(DBusConnection *conn, + DBusMessage *msg, void *data) +{ + return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; +} + static DBusHandlerResult adapter_get_remote_svc(DBusConnection *conn, DBusMessage *msg, void *data) { @@ -2770,6 +2782,7 @@ GSList *service_classes_str(uint32_t class) } static struct service_data dev_services[] = { + { "GetInfo", adapter_get_info }, { "GetAddress", adapter_get_address }, { "GetVersion", adapter_get_version }, { "GetRevision", adapter_get_revision }, @@ -2791,6 +2804,7 @@ static struct service_data dev_services[] = { { "GetName", adapter_get_name }, { "SetName", adapter_set_name }, + { "GetRemoteInfo", adapter_get_remote_info }, { "GetRemoteServiceRecord", adapter_get_remote_svc }, { "GetRemoteServiceRecordAsXML", adapter_get_remote_svc_xml }, { "GetRemoteServiceHandles", adapter_get_remote_svc_handles }, diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index 4a4da621..1b3e8012 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -101,6 +101,12 @@ static void service_exit(const char *name, struct service *service) service->bus_name = NULL; } +static DBusHandlerResult get_info(DBusConnection *conn, + DBusMessage *msg, void *data) +{ + return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; +} + static DBusHandlerResult get_identifier(DBusConnection *conn, DBusMessage *msg, void *data) { @@ -550,6 +556,7 @@ static DBusHandlerResult remove_trust(DBusConnection *conn, } static struct service_data services_methods[] = { + { "GetInfo", get_info }, { "GetIdentifier", get_identifier }, { "GetName", get_name }, { "GetDescription", get_description }, |