Fix warnings and line endings from previous SRV commit. Get rid of domain parameter of xmpp_connect_client(). Remove usused handler.c helper left over from previous commit.

This commit is contained in:
Jack Moffitt
2008-07-03 05:20:59 +00:00
parent 561fac842c
commit 3b47afaac9
8 changed files with 64 additions and 116 deletions

View File

@@ -32,33 +32,6 @@
#include "strophe.h"
#include "common.h"
/* do any of the immediate children have namespaces that match? */
static int _match_children(xmpp_stanza_t * const stanza,
const char * const ns)
{
xmpp_stanza_t *child;
int matched = 0;
char *childns;
child = xmpp_stanza_get_children(stanza);
while (child) {
childns = xmpp_stanza_get_ns(child);
if (!childns) {
child = xmpp_stanza_get_next(child);
continue;
}
if (strcmp(ns, childns) == 0) {
matched = 1;
break;
}
child = xmpp_stanza_get_next(child);
}
return matched;
}
/** Fire off all stanza handlers that match.
* This function is called internally by the event loop whenever stanzas
* are received from the XMPP server.