[gnome-bluetooth] wizard: add callback to Agent's RequestAuthorization()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] wizard: add callback to Agent's RequestAuthorization()
- Date: Thu, 30 May 2013 12:26:08 +0000 (UTC)
commit c4d157984546624bc13bcc2a8e4fbcfd44283ba8
Author: Gustavo Padovan <gustavo padovan collabora co uk>
Date: Wed May 15 18:17:28 2013 -0300
wizard: add callback to Agent's RequestAuthorization()
wizard/main.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index 28c6915..d6bb66d 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -298,6 +298,16 @@ matches_cb (GtkButton *button,
}
static gboolean
+authorize_callback (GDBusMethodInvocation *invocation,
+ GDBusProxy *device,
+ gpointer user_data)
+{
+ g_dbus_method_invocation_return_value (invocation, NULL);
+
+ return TRUE;
+}
+
+static gboolean
confirm_callback (GDBusMethodInvocation *invocation,
GDBusProxy *device,
guint pin,
@@ -970,6 +980,7 @@ int main (int argc, char **argv)
bluetooth_agent_set_display_func(agent, display_callback, NULL);
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_setup(agent, AGENT_PATH);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]