Moved stanza_add_child

This commit is contained in:
James Booth
2015-06-06 22:46:56 +01:00
parent 4d641963e4
commit df6556fe14
4 changed files with 7 additions and 7 deletions

View File

@@ -105,6 +105,12 @@ stanza_to_string(XMPPStanza *stanza)
return result;
}
void
stanza_add_child(XMPPStanza *parent, XMPPStanza *child)
{
parent->children = g_list_append(parent->children, child);
}
static void
start_element(void *data, const char *element, const char **attributes)
{

View File

@@ -41,5 +41,6 @@ typedef struct xmpp_stanza_t {
XMPPStanza* stanza_new(const char *name, const char **attributes);
XMPPStanza* parse_stanza(char *stanza_text);
char* stanza_to_string(XMPPStanza *stanza);
void stanza_add_child(XMPPStanza *parent, XMPPStanza *child);
#endif

View File

@@ -62,12 +62,6 @@ stanza_add(XMPPStanza *stanza)
pthread_mutex_unlock(&stanzas_lock);
}
void
stanza_add_child(XMPPStanza *parent, XMPPStanza *child)
{
parent->children = g_list_append(parent->children, child);
}
XMPPStanza*
stanza_get_child_by_ns(XMPPStanza *stanza, char *ns)
{

View File

@@ -28,7 +28,6 @@
#include "server/stanza.h"
void stanza_add(XMPPStanza *stanza);
void stanza_add_child(XMPPStanza *parent, XMPPStanza *child);
const char* stanza_get_id(XMPPStanza *stanza);
void stanza_set_id(XMPPStanza *stanza, const char *id);
const char *stanza_get_query_request(XMPPStanza *stanza);