|
1 /* |
|
2 * disco.c -- Service discovery requests |
|
3 * |
|
4 * Copyrigth (C) 2009 Myhailo Danylenko <isbear@ukrpost.net> |
|
5 * |
|
6 * This program is free software; you can redistribute it and/or modify |
|
7 * it under the terms of the GNU General Public License as published by |
|
8 * the Free Software Foundation; either version 2 of the License, or (at |
|
9 * your option) any later version. |
|
10 * |
|
11 * This program is distributed in the hope that it will be useful, but |
|
12 * WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 * General Public License for more details. |
|
15 * |
|
16 * You should have received a copy of the GNU General Public License |
|
17 * along with this program; if not, write to the Free Software |
|
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
|
19 * USA |
|
20 */ |
|
21 |
|
22 #ifndef MCABBER_PEP_H |
|
23 #define MCABBER_PEP_H |
|
24 |
|
25 #include <glib.h> |
|
26 #include <gmodule.h> |
|
27 #include <loudmouth/loudmouth.h> |
|
28 |
|
29 #define NS_PUBSUB_EVENT ( "http:/" "/jabber.org/protocol/pubsub#event" ) |
|
30 #define NS_PUBSUB ( "http:/" "/jabber.org/protocol/pubsub" ) |
|
31 |
|
32 typedef struct pep_handler_struct pep_handler_t; |
|
33 |
|
34 struct pep_handler_struct { |
|
35 gchar *xmlns; |
|
36 gpointer data; |
|
37 void (*handler) (const gchar *from, const gchar *node, LmMessageNode *n, const gchar *id, gpointer userdata); |
|
38 void (*data_destroy) (pep_handler_t *handler); |
|
39 }; |
|
40 |
|
41 void pep_register_xmlns_handler (const gchar *xmlns, void (*handler) (const gchar *from, const gchar *node, LmMessageNode *n, const gchar *id, gpointer udata), gpointer udata, void (*data_destroy) (pep_handler_t *handler)); |
|
42 void pep_unregister_xmlns_handler (const gchar *xmlns); |
|
43 |
|
44 #endif |
|
45 |
|
46 /* vim: se ts=4: */ |