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

@@ -25,8 +25,8 @@
#include <string.h>
#include "server/stanzas.h"
#include "server/stanza.h"
#include "server/stanzas.h"
static char *required_passwd = NULL;
static GHashTable *idstubs = NULL;

View File

@@ -23,7 +23,7 @@
#ifndef __H_PRIME
#define __H_PRIME
#include "server/stanzas.h"
#include "server/stanza.h"
void prime_init(void);
void prime_free_all(void);

View File

@@ -31,6 +31,7 @@
#include "server/xmppclient.h"
#include "server/stream_parser.h"
#include "server/prime.h"
#include "server/stanza.h"
#include "server/stanzas.h"
#include "server/verify.h"
#include "server/server.h"

View File

@@ -24,6 +24,7 @@
#include <expat.h>
#include <glib.h>
#include "server/stanza.h"
#include "server/stanzas.h"
typedef struct parse_state_t {

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);

View File

@@ -25,7 +25,7 @@
#include <string.h>
#include <glib.h>
#include "server/stanzas.h"
#include "server/stanza.h"
#include "server/log.h"
pthread_mutex_t stanzas_lock;

View File

@@ -25,18 +25,7 @@
#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;
#include "server/stanza.h"
XMPPStanza* stanza_new(const char *name, const char **attributes);
void stanza_show(XMPPStanza *stanza);

View File

@@ -26,6 +26,7 @@
#include <glib.h>
#include "server/stream_parser.h"
#include "server/stanza.h"
#include "server/stanzas.h"
#include "server/log.h"

View File

@@ -23,8 +23,7 @@
#ifndef __H_STREAM_PARSER
#define __H_STREAM_PARSER
#include "server/stanzas.h"
#include "server/xmppclient.h"
#include "server/stanza.h"
typedef void (*stream_start_func)(void);
typedef void (*auth_func)(XMPPStanza *stanza);

View File

@@ -25,6 +25,7 @@
#include <expat.h>
#include "server/stanza.h"
#include "server/stanzas.h"
#include "server/log.h"