Moved stanza data structures

This commit is contained in:
James Booth
2015-06-06 22:37:50 +01:00
parent b7151c5da3
commit ddd1bf99a4
10 changed files with 23 additions and 18 deletions

View File

@@ -23,7 +23,20 @@
#ifndef __H_STANZA
#define __H_STANZA
#include "server/stanzas.h"
#include <glib.h>
typedef struct xmpp_attr_t {
char *name;
char *value;
} XMPPAttr;
typedef struct xmpp_stanza_t {
char *name;
GList *attrs;
GList *children;
GString *content;
struct xmpp_stanza_t *parent;
} XMPPStanza;
XMPPStanza* parse_stanza(char *stanza_text);