From 6d7dda13c21f87b7be2ba56ed116236afb94b926 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 6 Sep 2013 12:18:36 +0100 Subject: [PATCH 17/19] extended-client: comment that we're going behind MC's back --- examples/client/extended-client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/client/extended-client.c b/examples/client/extended-client.c index 8572b63..55e3086 100644 --- a/examples/client/extended-client.c +++ b/examples/client/extended-client.c @@ -212,7 +212,7 @@ cm_requested_connection (TpConnectionManager *manager, if (die_if (error, "RequestConnection()")) return; - /* FIXME: there should be convenience API for this */ + /* Because we don't have an AccountManager, we have to do more work here. */ factory = tp_simple_client_factory_new (NULL); conn = tp_simple_client_factory_ensure_connection (factory, object_path, NULL, &e); @@ -257,6 +257,9 @@ connection_manager_got_info (TpConnectionManager *cm, g_value_set_static_string (&value, "myself@server"); g_hash_table_insert (params, "account", &value); + /* This example is rather lower-level than most: it's + * "going behind the account manager's back". This is not recommended + * in real applications. */ tp_cli_connection_manager_call_request_connection (cm, -1, "example", params, cm_requested_connection, NULL, NULL, NULL); -- 1.8.4.rc3