Removed stanza show functions
This commit is contained in:
@@ -392,7 +392,6 @@ static void
|
|||||||
_shutdown(void)
|
_shutdown(void)
|
||||||
{
|
{
|
||||||
log_println("SHUTDOWN");
|
log_println("SHUTDOWN");
|
||||||
// stanza_show_all();
|
|
||||||
|
|
||||||
if (httpapi_run) {
|
if (httpapi_run) {
|
||||||
httpapi_stop();
|
httpapi_stop();
|
||||||
|
|||||||
@@ -31,50 +31,6 @@
|
|||||||
pthread_mutex_t stanzas_lock;
|
pthread_mutex_t stanzas_lock;
|
||||||
static GList *stanzas;
|
static GList *stanzas;
|
||||||
|
|
||||||
void
|
|
||||||
stanza_show(XMPPStanza *stanza)
|
|
||||||
{
|
|
||||||
log_println("NAME : %s", stanza->name);
|
|
||||||
|
|
||||||
if (stanza->content && stanza->content->len > 0) {
|
|
||||||
log_println("CONTENT: %s", stanza->content->str);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (stanza->attrs) {
|
|
||||||
GList *curr_attr = stanza->attrs;
|
|
||||||
while (curr_attr) {
|
|
||||||
XMPPAttr *attr = curr_attr->data;
|
|
||||||
log_println("ATTR : %s='%s'", attr->name, attr->value);
|
|
||||||
|
|
||||||
curr_attr = g_list_next(curr_attr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (stanza->children) {
|
|
||||||
log_println("CHILDREN:");
|
|
||||||
GList *curr_child = stanza->children;
|
|
||||||
while (curr_child) {
|
|
||||||
XMPPStanza *child = curr_child->data;
|
|
||||||
stanza_show(child);
|
|
||||||
curr_child = g_list_next(curr_child);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
stanza_show_all(void)
|
|
||||||
{
|
|
||||||
pthread_mutex_lock(&stanzas_lock);
|
|
||||||
GList *curr = stanzas;
|
|
||||||
while (curr) {
|
|
||||||
XMPPStanza *stanza = curr->data;
|
|
||||||
stanza_show(stanza);
|
|
||||||
log_println("");
|
|
||||||
curr = g_list_next(curr);
|
|
||||||
}
|
|
||||||
pthread_mutex_unlock(&stanzas_lock);
|
|
||||||
}
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
stanza_to_string(XMPPStanza *stanza)
|
stanza_to_string(XMPPStanza *stanza)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,8 +27,6 @@
|
|||||||
|
|
||||||
#include "server/stanza.h"
|
#include "server/stanza.h"
|
||||||
|
|
||||||
void stanza_show(XMPPStanza *stanza);
|
|
||||||
void stanza_show_all(void);
|
|
||||||
void stanza_add(XMPPStanza *stanza);
|
void stanza_add(XMPPStanza *stanza);
|
||||||
void stanza_add_child(XMPPStanza *parent, XMPPStanza *child);
|
void stanza_add_child(XMPPStanza *parent, XMPPStanza *child);
|
||||||
const char* stanza_get_id(XMPPStanza *stanza);
|
const char* stanza_get_id(XMPPStanza *stanza);
|
||||||
|
|||||||
Reference in New Issue
Block a user