diff options
author | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2009-06-26 18:15:02 +0100 |
---|---|---|
committer | Vivek Dasmohapatra <vivek@collabora.co.uk> | 2009-07-14 17:54:31 +0100 |
commit | fa79d6a25d06f990719087fbf433836a72ddb140 (patch) | |
tree | 9944356f737e8651878d11f53398a61c71853cef /examples | |
parent | 89ed5c796e8828b56adb4febcc872c36e12e67fa (diff) |
Return jid received from server in _finish call.
Update example code for new _finish signature.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/connect.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/connect.c b/examples/connect.c index 8791db2..39e5f7b 100644 --- a/examples/connect.c +++ b/examples/connect.c @@ -337,12 +337,14 @@ static void connector_callback (GObject *source, GAsyncResult *res, gpointer user_data) { GError *error = NULL; + gchar *jid = NULL; + WockyConnector *wcon = WOCKY_CONNECTOR (source); WockyXmppConnection *connection = - wocky_connector_connect_finish (WOCKY_CONNECTOR (source), res, &error); + wocky_connector_connect_finish (wcon, res, &error, &jid); if (connection != NULL) { - printf ("connected!\n"); + printf ("connected (%s)!\n", jid); } else { |