[gnome-bluetooth] lib: Update test-agent for BluetoothAgent API changes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Update test-agent for BluetoothAgent API changes
- Date: Wed, 12 Oct 2011 18:22:28 +0000 (UTC)
commit 6f316c270ad286da2da14a2836b43c426738d646
Author: Bastien Nocera <hadess hadess net>
Date: Wed Oct 12 18:52:43 2011 +0100
lib: Update test-agent for BluetoothAgent API changes
lib/test-agent.c | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/lib/test-agent.c b/lib/test-agent.c
index 458327e..6286225 100644
--- a/lib/test-agent.c
+++ b/lib/test-agent.c
@@ -76,7 +76,6 @@ int main (int argc, char **argv)
{
struct sigaction sa;
BluetoothAgent *agent;
- GDBusProxy *proxy;
memset(&sa, 0, sizeof(sa));
sa.sa_flags = SA_NOCLDSTOP;
@@ -88,20 +87,11 @@ int main (int argc, char **argv)
mainloop = g_main_loop_new(NULL, FALSE);
- proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
- G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES | G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS | G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START,
- NULL,
- "org.bluez",
- "/hci0",
- "org.bluez.Adapter",
- NULL,
- NULL);
-
agent = bluetooth_agent_new();
bluetooth_agent_set_pincode_func(agent, agent_pincode, NULL);
- bluetooth_agent_register(agent, proxy);
+ bluetooth_agent_register(agent);
g_main_loop_run(mainloop);
@@ -109,8 +99,6 @@ int main (int argc, char **argv)
g_object_unref(agent);
- g_object_unref(proxy);
-
g_main_loop_unref(mainloop);
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]