[gnome-bluetooth] wizard: Implement AuthorizeService
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] wizard: Implement AuthorizeService
- Date: Mon, 25 Nov 2013 17:23:18 +0000 (UTC)
commit 3351960488cc827e165d1b393cceb99a68d11c81
Author: Bastien Nocera <hadess hadess net>
Date: Mon Nov 25 18:14:39 2013 +0100
wizard: Implement AuthorizeService
wizard/main.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index 4ae39fe..cda8a95 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -325,6 +325,19 @@ authorize_callback (GDBusMethodInvocation *invocation,
}
static gboolean
+authorize_service_callback (GDBusMethodInvocation *invocation,
+ GDBusProxy *device,
+ const char *uuid,
+ gpointer user_data)
+{
+ g_dbus_method_invocation_return_value (invocation, NULL);
+
+ replace_target_properties_for_device (device);
+
+ return TRUE;
+}
+
+static gboolean
confirm_callback (GDBusMethodInvocation *invocation,
GDBusProxy *device,
guint pin,
@@ -1039,6 +1052,7 @@ int main (int argc, char **argv)
bluetooth_agent_set_cancel_func(agent, cancel_callback, NULL);
bluetooth_agent_set_confirm_func(agent, confirm_callback, NULL);
bluetooth_agent_set_authorize_func(agent, authorize_callback, NULL);
+ bluetooth_agent_set_authorize_service_func(agent, authorize_service_callback, NULL);
bluetooth_agent_setup(agent, AGENT_PATH);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]