diff options
author | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2009-06-25 18:56:49 +0100 |
---|---|---|
committer | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2009-07-14 17:54:31 +0100 |
commit | d85c65c5c1acd81ce6f9a09bbfa279eef4b6e201 (patch) | |
tree | bd842d84b42c216e64c60d15217e38328357d72d /examples | |
parent | 5ebbcbc5c82bc1372919e9f454c07a3b459cd397 (diff) |
Update example to match new API signatures.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/connect.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/connect.c b/examples/connect.c index e542497..8791db2 100644 --- a/examples/connect.c +++ b/examples/connect.c @@ -338,7 +338,7 @@ connector_callback (GObject *source, GAsyncResult *res, gpointer user_data) { GError *error = NULL; WockyXmppConnection *connection = - wocky_connector_connect_finish (source, res, &error); + wocky_connector_connect_finish (WOCKY_CONNECTOR (source), res, &error); if (connection != NULL) { @@ -380,12 +380,8 @@ main (int argc, WockyConnector *wcon = NULL; wcon = wocky_connector_new (argv[1], argv[2]); - if (wocky_connector_connect_async (G_OBJECT (wcon), - connector_callback, NULL)) - { - printf ("Instantiated connector and made async connect call\n"); - g_main_loop_run (mainloop); - } + wocky_connector_connect_async (wcon, connector_callback, NULL); + g_main_loop_run (mainloop); return 0; } |