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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user