Moved stanza data structures
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <expat.h>
|
||||
#include <glib.h>
|
||||
|
||||
#include "server/stanza.h"
|
||||
#include "server/stanzas.h"
|
||||
|
||||
typedef struct parse_state_t {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <glib.h>
|
||||
|
||||
#include "server/stream_parser.h"
|
||||
#include "server/stanza.h"
|
||||
#include "server/stanzas.h"
|
||||
#include "server/log.h"
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <expat.h>
|
||||
|
||||
#include "server/stanza.h"
|
||||
#include "server/stanzas.h"
|
||||
#include "server/log.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user