3 #include "connection-watcher.h"
6 connection_added_cb (ConnectionWatcher *watcher,
9 g_print ("conn added: %s\n", tp_proxy_get_object_path (conn));
17 ConnectionWatcher *watcher;
21 loop = g_main_loop_new (NULL, FALSE);
22 watcher = connection_watcher_new ();
24 g_signal_connect (watcher, "connection-added",
25 G_CALLBACK (connection_added_cb), NULL);
27 connection_watcher_start (watcher);
30 g_main_loop_run (loop);
32 g_object_unref (watcher);
33 g_main_loop_unref (loop);