Remove redundant NULL checks
[pidgin-git.git] / libpurple / protocols / jabber / disco.h
blob588c62fd8b1008fb70d3d9d2c765d59b5701adb6
1 /**
2 * @file disco.h Jabber Service Discovery
4 * purple
6 * Purple is the legal property of its developers, whose names are too numerous
7 * to list here. Please refer to the COPYRIGHT file distributed with this
8 * source distribution.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
24 #ifndef PURPLE_JABBER_DISCO_H_
25 #define PURPLE_JABBER_DISCO_H_
27 #include "jabber.h"
29 typedef struct _JabberDiscoItem {
30 const char *jid; /* MUST */
31 const char *node; /* SHOULD */
32 const char *name; /* MAY */
33 } JabberDiscoItem;
35 typedef void (JabberDiscoInfoCallback)(JabberStream *js, const char *who,
36 JabberCapabilities capabilities, gpointer data);
38 typedef void (JabberDiscoItemsCallback)(JabberStream *js, const char *jid,
39 const char *node, GSList *items, gpointer data);
41 void jabber_disco_info_parse(JabberStream *js, const char *from,
42 JabberIqType type, const char *id, xmlnode *in_query);
43 void jabber_disco_items_parse(JabberStream *js, const char *from,
44 JabberIqType type, const char *id, xmlnode *query);
46 void jabber_disco_items_server(JabberStream *js);
48 void jabber_disco_info_do(JabberStream *js, const char *who,
49 JabberDiscoInfoCallback *callback, gpointer data);
51 #endif /* PURPLE_JABBER_DISCO_H_ */