Replace functions which called once with their bodies
[pidgin-git.git] / libpurple / protocols / jabber / disco.h
blobe428011694c847a2848148986058a3806ba6eb4e
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
25 #ifndef PURPLE_JABBER_DISCO_H
26 #define PURPLE_JABBER_DISCO_H
28 #include "jabber.h"
30 typedef struct {
31 const char *jid; /* MUST */
32 const char *node; /* SHOULD */
33 const char *name; /* MAY */
34 } JabberDiscoItem;
36 typedef void (JabberDiscoInfoCallback)(JabberStream *js, const char *who,
37 JabberCapabilities capabilities, gpointer data);
39 typedef void (JabberDiscoItemsCallback)(JabberStream *js, const char *jid,
40 const char *node, GSList *items, gpointer data);
42 void jabber_disco_info_parse(JabberStream *js, const char *from,
43 JabberIqType type, const char *id, PurpleXmlNode *in_query);
44 void jabber_disco_items_parse(JabberStream *js, const char *from,
45 JabberIqType type, const char *id, PurpleXmlNode *query);
47 void jabber_disco_items_server(JabberStream *js);
49 void jabber_disco_info_do(JabberStream *js, const char *who,
50 JabberDiscoInfoCallback *callback, gpointer data);
52 #endif /* PURPLE_JABBER_DISCO_H */