Added stanza module

This commit is contained in:
James Booth
2015-05-15 00:06:15 +01:00
parent 3b0bdfeb86
commit c6fe602fd8
5 changed files with 59 additions and 50 deletions

20
src/server/stanza.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef __H_STANZA
#define __H_STANZA
typedef struct xmpp_attr_t {
const char *name;
const char *value;
} XMPPAttr;
typedef struct xmpp_stanza_t {
const char *name;
GList *attrs;
GList *children;
GString *content;
struct xmpp_stanza_t *parent;
} XMPPStanza;
void
show_stanza(XMPPStanza *stanza);
#endif