Added stanza free functions

This commit is contained in:
James Booth
2015-05-17 20:36:11 +01:00
parent f7b3be3699
commit 2e1a2f7c14
3 changed files with 37 additions and 4 deletions

View File

@@ -2,12 +2,12 @@
#define __H_STANZA
typedef struct xmpp_attr_t {
const char *name;
const char *value;
char *name;
char *value;
} XMPPAttr;
typedef struct xmpp_stanza_t {
const char *name;
char *name;
GList *attrs;
GList *children;
GString *content;
@@ -24,4 +24,6 @@ const char* stanza_get_id(XMPPStanza *stanza);
XMPPStanza* stanza_get_child_by_ns(XMPPStanza *stanza, char *ns);
XMPPStanza* stanza_get_child_by_name(XMPPStanza *stanza, char *name);
void stanza_free_all(void);
#endif