Sun, 29 Nov 2009 19:06:30 +0000
propagate from branch 'im.pidgin.pidgin' (head ac6acf2722f309aeb9182beddbee5d96caf7ee6a)
to branch 'im.pidgin.cpw.malu.ft_thumbnails' (head 92c3b2ccbc48ccbfd6404d5e87b16bb36aa0c3a0)
| 8312 | 1 | /** |
|
26583
e115c7ef2fcf
Applied disco-2.patch from nops with some modifications:
Paul Aurich <darkrain42@pidgin.im>
parents:
19859
diff
changeset
|
2 | * @file disco.h Jabber Service Discovery |
| 8312 | 3 | * |
| 15884 | 4 | * purple |
| 8312 | 5 | * |
|
28322
ac8fec1d2234
Remove specific copyright lines from the XMPP prpl.
Paul Aurich <darkrain42@pidgin.im>
parents:
27217
diff
changeset
|
6 | * Purple is the legal property of its developers, whose names are too numerous |
|
ac8fec1d2234
Remove specific copyright lines from the XMPP prpl.
Paul Aurich <darkrain42@pidgin.im>
parents:
27217
diff
changeset
|
7 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
ac8fec1d2234
Remove specific copyright lines from the XMPP prpl.
Paul Aurich <darkrain42@pidgin.im>
parents:
27217
diff
changeset
|
8 | * source distribution. |
| 8312 | 9 | * |
| 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. | |
| 14 | * | |
| 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. | |
| 19 | * | |
| 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 | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15884
diff
changeset
|
22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 8312 | 23 | */ |
|
26703
17f9a4bef2a3
Further standardize the sentinel style (did someone say leading _s are theoretically a reserved namespace?)
Paul Aurich <darkrain42@pidgin.im>
parents:
25817
diff
changeset
|
24 | #ifndef PURPLE_JABBER_DISCO_H_ |
|
17f9a4bef2a3
Further standardize the sentinel style (did someone say leading _s are theoretically a reserved namespace?)
Paul Aurich <darkrain42@pidgin.im>
parents:
25817
diff
changeset
|
25 | #define PURPLE_JABBER_DISCO_H_ |
| 8312 | 26 | |
| 27 | #include "jabber.h" | |
| 28 | ||
|
26594
73f09a0501f4
jabber_disco_items_do(), which functions like jabber_disco_info_do.
Paul Aurich <darkrain42@pidgin.im>
parents:
26590
diff
changeset
|
29 | typedef struct _JabberDiscoItem { |
|
73f09a0501f4
jabber_disco_items_do(), which functions like jabber_disco_info_do.
Paul Aurich <darkrain42@pidgin.im>
parents:
26590
diff
changeset
|
30 | const char *jid; /* MUST */ |
|
73f09a0501f4
jabber_disco_items_do(), which functions like jabber_disco_info_do.
Paul Aurich <darkrain42@pidgin.im>
parents:
26590
diff
changeset
|
31 | const char *node; /* SHOULD */ |
|
73f09a0501f4
jabber_disco_items_do(), which functions like jabber_disco_info_do.
Paul Aurich <darkrain42@pidgin.im>
parents:
26590
diff
changeset
|
32 | const char *name; /* MAY */ |
|
73f09a0501f4
jabber_disco_items_do(), which functions like jabber_disco_info_do.
Paul Aurich <darkrain42@pidgin.im>
parents:
26590
diff
changeset
|
33 | } JabberDiscoItem; |
|
73f09a0501f4
jabber_disco_items_do(), which functions like jabber_disco_info_do.
Paul Aurich <darkrain42@pidgin.im>
parents:
26590
diff
changeset
|
34 | |
| 8312 | 35 | typedef void (JabberDiscoInfoCallback)(JabberStream *js, const char *who, |
| 36 | JabberCapabilities capabilities, gpointer data); | |
| 37 | ||
|
26595
f306ea83cb90
Add a node parameter to jabber_disco_items_do and use it in the new disco-listing code.
Paul Aurich <darkrain42@pidgin.im>
parents:
26594
diff
changeset
|
38 | typedef void (JabberDiscoItemsCallback)(JabberStream *js, const char *jid, |
|
f306ea83cb90
Add a node parameter to jabber_disco_items_do and use it in the new disco-listing code.
Paul Aurich <darkrain42@pidgin.im>
parents:
26594
diff
changeset
|
39 | const char *node, GSList *items, gpointer data); |
|
26594
73f09a0501f4
jabber_disco_items_do(), which functions like jabber_disco_info_do.
Paul Aurich <darkrain42@pidgin.im>
parents:
26590
diff
changeset
|
40 | |
|
25817
09d6a40a341d
Pass IQ handlers type, from, id, and the child node
Paul Aurich <darkrain42@pidgin.im>
parents:
19859
diff
changeset
|
41 | void jabber_disco_info_parse(JabberStream *js, const char *from, |
|
09d6a40a341d
Pass IQ handlers type, from, id, and the child node
Paul Aurich <darkrain42@pidgin.im>
parents:
19859
diff
changeset
|
42 | JabberIqType type, const char *id, xmlnode *in_query); |
|
09d6a40a341d
Pass IQ handlers type, from, id, and the child node
Paul Aurich <darkrain42@pidgin.im>
parents:
19859
diff
changeset
|
43 | void jabber_disco_items_parse(JabberStream *js, const char *from, |
|
09d6a40a341d
Pass IQ handlers type, from, id, and the child node
Paul Aurich <darkrain42@pidgin.im>
parents:
19859
diff
changeset
|
44 | JabberIqType type, const char *id, xmlnode *query); |
| 8312 | 45 | |
| 46 | void jabber_disco_items_server(JabberStream *js); | |
| 47 | ||
| 48 | void jabber_disco_info_do(JabberStream *js, const char *who, | |
| 49 | JabberDiscoInfoCallback *callback, gpointer data); | |
| 50 | ||
|
26703
17f9a4bef2a3
Further standardize the sentinel style (did someone say leading _s are theoretically a reserved namespace?)
Paul Aurich <darkrain42@pidgin.im>
parents:
25817
diff
changeset
|
51 | #endif /* PURPLE_JABBER_DISCO_H_ */ |