4 * Handle <iq> <get> <query> type situations (namespace queries)
6 * Copyright (c) 2007 by Art Cancro
7 * This code is released under the terms of the GNU General Public License.
19 #include <sys/types.h>
21 #if TIME_WITH_SYS_TIME
22 # include <sys/time.h>
26 # include <sys/time.h>
36 #include <libcitadel.h>
39 #include "citserver.h"
42 #include "internet_addressing.h"
44 #include "ctdl_module.h"
48 #include "serv_xmpp.h"
51 * TODO: handle queries on some or all of these namespaces
53 xmpp_query_namespace(purple5b5c1e58, splorph.xand.com, http://jabber.org/protocol/disco#items:query)
54 xmpp_query_namespace(purple5b5c1e59, splorph.xand.com, http://jabber.org/protocol/disco#info:query)
55 xmpp_query_namespace(purple5b5c1e5a, , vcard-temp:query)
56 xmpp_query_namespace(purple5b5c1e5b, , jabber:iq:roster:query)
60 void xmpp_query_namespace(char *iq_id, char *iq_to, char *query_xmlns) {
62 lprintf(CTDL_DEBUG, "
\e[31mxmpp_query_namespace(%s, %s, %s)
\e[0m\n", iq_id, iq_to, query_xmlns);
65 * Unknown query. Return the XML equivalent of a blank stare (empty result)
67 cprintf("<iq type=\"result\" id=\"%s\">", iq_id);
72 #endif /* HAVE_EXPAT */