diff options
Diffstat (limited to 'examples/connect.c')
-rw-r--r-- | examples/connect.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/connect.c b/examples/connect.c index cd43556..540c15f 100644 --- a/examples/connect.c +++ b/examples/connect.c @@ -67,7 +67,7 @@ ssl_features_received_cb (GObject *source, gpointer user_data) { WockyStanza *stanza; - WockyXmppNode *node; + WockyNode *node; stanza = wocky_xmpp_connection_recv_stanza_finish (conn, result, NULL); @@ -76,7 +76,7 @@ ssl_features_received_cb (GObject *source, node = wocky_stanza_get_top_node (stanza); if (strcmp (node->name, "features") - || strcmp (wocky_xmpp_node_get_ns (node), WOCKY_XMPP_NS_STREAM)) + || strcmp (wocky_node_get_ns (node), WOCKY_XMPP_NS_STREAM)) { printf ("Didn't receive features stanza\n"); g_main_loop_quit (mainloop); @@ -147,7 +147,7 @@ tcp_start_tls_recv_cb (GObject *source, gpointer user_data) { WockyStanza *stanza; - WockyXmppNode *node; + WockyNode *node; GError *error = NULL; stanza = wocky_xmpp_connection_recv_stanza_finish (conn, result, NULL); @@ -157,7 +157,7 @@ tcp_start_tls_recv_cb (GObject *source, node = wocky_stanza_get_top_node (stanza); if (strcmp (node->name, "proceed") - || strcmp (wocky_xmpp_node_get_ns (node), WOCKY_XMPP_NS_TLS)) + || strcmp (wocky_node_get_ns (node), WOCKY_XMPP_NS_TLS)) { printf ("Server doesn't want to start tls"); g_main_loop_quit (mainloop); @@ -196,7 +196,7 @@ tcp_features_received_cb (GObject *source, gpointer user_data) { WockyStanza *stanza; - WockyXmppNode *tls, *node; + WockyNode *tls, *node; WockyStanza *starttls; stanza = wocky_xmpp_connection_recv_stanza_finish (conn, result, NULL); @@ -206,14 +206,14 @@ tcp_features_received_cb (GObject *source, node = wocky_stanza_get_top_node (stanza); if (strcmp (node->name, "features") - || strcmp (wocky_xmpp_node_get_ns (node), WOCKY_XMPP_NS_STREAM)) + || strcmp (wocky_node_get_ns (node), WOCKY_XMPP_NS_STREAM)) { printf ("Didn't receive features stanza\n"); g_main_loop_quit (mainloop); return; } - tls = wocky_xmpp_node_get_child_ns (node, "starttls", + tls = wocky_node_get_child_ns (node, "starttls", WOCKY_XMPP_NS_TLS); if (tls == NULL) |