summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-04-15 14:41:44 +0100
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-04-20 12:08:37 +0100
commitc9aaac580d008d7f1c0e110f5cdd8706741dc72f (patch)
treee6c8a0674fe325e681c7e98a12d65689fb4abe52 /examples
parent7b4549cf87a279d157d09618f3b39f702ae475ce (diff)
Rename WockyXmppNode to WockyNode
Diffstat (limited to 'examples')
-rw-r--r--examples/connect.c14
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)