[Telepathy] tp_cli_connection_manager_run_request_connection(): What parameter types.

Murray Cumming murrayc at murrayc.com
Tue Oct 28 10:17:54 PDT 2008


On Sat, 2008-10-25 at 11:14 +0100, Will Thompson wrote:
> should become something like (untested):
> 
>     GValue *value;
>     GHashTable *parameters = g_hash_table_new_full (NULL, NULL, NULL, tp_g_value_slice_free);
> 
>     value = tp_g_value_slice_new (G_TYPE_STRING);
>     g_value_set_static_string (value, "murrayc at murrayc.com");
>     g_hash_table_insert (parameters, "account", value);
> 
>     /* on XMPP, you shouldn't need to set the server parameter, since presumably you have an appropriate SRV record on murrayc.com. */
> 
>     value = tp_g_value_slice_new (G_TYPE_STRING);
>     g_value_set_static_string (value, "myhovercraftisfullofeels");
>     g_hash_table_insert (parameters, "password", value);

I now have a connection and tried to connect the connection. I am
surprised that I didn't get a GError in this test code:
http://git.collabora.co.uk/?p=telepathy-doc.git;a=blob;f=docs/examples/list_contacts/main.c

I am quite sure that my jabber password is not "passwordTODO". Am I
missing something?


-- 
murrayc at murrayc.com
www.murrayc.com
www.openismus.com



More information about the Telepathy mailing list