summaryrefslogtreecommitdiff
path: root/examples/client/stream-tubes/offerer.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/client/stream-tubes/offerer.c')
-rw-r--r--examples/client/stream-tubes/offerer.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/client/stream-tubes/offerer.c b/examples/client/stream-tubes/offerer.c
index 3ba010623..3b86f82eb 100644
--- a/examples/client/stream-tubes/offerer.c
+++ b/examples/client/stream-tubes/offerer.c
@@ -131,7 +131,7 @@ int
main (int argc,
const char **argv)
{
- TpDBusDaemon *dbus;
+ TpSimpleClientFactory *factory;
TpAccount *account;
char *account_path;
GError *error = NULL;
@@ -142,11 +142,11 @@ main (int argc,
g_type_init ();
- dbus = tp_dbus_daemon_dup (&error);
- g_assert_no_error (error);
+ factory = tp_simple_client_factory_new (NULL);
account_path = g_strconcat (TP_ACCOUNT_OBJECT_PATH_BASE, argv[1], NULL);
- account = tp_account_new (dbus, account_path, &error);
+ account = tp_simple_client_factory_ensure_account (factory, account_path,
+ NULL, &error);
g_assert_no_error (error);
g_free (account_path);
@@ -184,6 +184,7 @@ main (int argc,
g_object_unref (req);
g_hash_table_unref (request);
g_main_loop_unref (loop);
+ g_object_unref (factory);
return 0;
}