summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2010-09-14 19:27:57 +0200
committerCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2010-09-14 19:27:57 +0200
commit87a64d465283ab01baceca9aefbb15a80b391b7f (patch)
treec129055b40dddfd37146f664527e161f629baf3c
parent66689d2b261e442cdec52a42acd259beb2f0ed00 (diff)
Update examples and tests to new APIwocky-0.10.0
-rw-r--r--examples/connect.c2
-rw-r--r--examples/register.c2
-rw-r--r--examples/unregister.c2
-rw-r--r--tests/wocky-connector-test.c9
4 files changed, 9 insertions, 6 deletions
diff --git a/examples/connect.c b/examples/connect.c
index c502a87..a1fc43b 100644
--- a/examples/connect.c
+++ b/examples/connect.c
@@ -401,7 +401,7 @@ main (int argc,
wocky_init ();
wcon = wocky_connector_new (argv[1], argv[2], NULL, NULL, NULL);
- wocky_connector_connect_async (wcon, connector_callback, NULL);
+ wocky_connector_connect_async (wcon, NULL, connector_callback, NULL);
g_main_loop_run (mainloop);
return 0;
diff --git a/examples/register.c b/examples/register.c
index 9f89816..97374cf 100644
--- a/examples/register.c
+++ b/examples/register.c
@@ -74,7 +74,7 @@ main (int argc,
"xmpp-server", host, NULL);
g_object_set (G_OBJECT (wcon), "email", email, NULL);
- wocky_connector_register_async (wcon, connector_callback, NULL);
+ wocky_connector_register_async (wcon, NULL, connector_callback, NULL);
g_main_loop_run (mainloop);
return 0;
diff --git a/examples/unregister.c b/examples/unregister.c
index b6b7eb9..0f8211e 100644
--- a/examples/unregister.c
+++ b/examples/unregister.c
@@ -69,7 +69,7 @@ main (int argc,
"password" , pass,
"xmpp-server", host, NULL);
- wocky_connector_unregister_async (wcon, unregister_callback, NULL);
+ wocky_connector_unregister_async (wcon, NULL, unregister_callback, NULL);
g_main_loop_run (mainloop);
return rval;
diff --git a/tests/wocky-connector-test.c b/tests/wocky-connector-test.c
index 23da37b..957bd07 100644
--- a/tests/wocky-connector-test.c
+++ b/tests/wocky-connector-test.c
@@ -3228,13 +3228,16 @@ start_test (gpointer data)
switch (test->client.op)
{
case OP_CONNECT:
- wocky_connector_connect_async (test->connector, test_done, data);
+ wocky_connector_connect_async (test->connector, NULL,
+ test_done, data);
break;
case OP_REGISTER:
- wocky_connector_register_async (test->connector, test_done, data);
+ wocky_connector_register_async (test->connector, NULL,
+ test_done, data);
break;
case OP_CANCEL:
- wocky_connector_unregister_async (test->connector, test_done, data);
+ wocky_connector_unregister_async (test->connector, NULL,
+ test_done, data);
break;
}
return FALSE;