author | Myhailo Danylenko <isbear@ukrpost.net> |
Fri, 14 Nov 2014 01:51:58 +0200 | |
changeset 44 | 636ef7fe3d5b |
parent 8 | b98346c5040d |
permissions | -rw-r--r-- |
8
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
1 |
|
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
2 |
/* Copyright 2009 Myhailo Danylenko |
0 | 3 |
* |
8
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
4 |
* Common pep event listener |
0 | 5 |
* |
8
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
6 |
* This file is part of mcabber-pep |
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
7 |
* |
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
8 |
* mcabber-pep is free software: you can redistribute it and/or modify |
0 | 9 |
* it under the terms of the GNU General Public License as published by |
8
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
10 |
* the Free Software Foundation, either version 2 of the License, or |
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
11 |
* (at your option) any later version. |
0 | 12 |
* |
8
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
13 |
* This program is distributed in the hope that it will be useful, |
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
16 |
* GNU General Public License for more details. |
0 | 17 |
* |
18 |
* You should have received a copy of the GNU General Public License |
|
8
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
19 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
0 | 20 |
|
21 |
#ifndef MCABBER_PEP_H |
|
22 |
#define MCABBER_PEP_H |
|
23 |
||
24 |
#include <glib.h> |
|
25 |
#include <loudmouth/loudmouth.h> |
|
26 |
||
27 |
#define NS_PUBSUB_EVENT ( "http:/" "/jabber.org/protocol/pubsub#event" ) |
|
28 |
#define NS_PUBSUB ( "http:/" "/jabber.org/protocol/pubsub" ) |
|
29 |
||
8
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
30 |
typedef void (*pep_xmlns_handler_t) (const gchar *from, const gchar *node, LmMessageNode *n, const gchar *id, gpointer userdata); |
0 | 31 |
|
8
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
32 |
void pep_register_xmlns_handler (const gchar *xmlns, pep_xmlns_handler_t handler, gpointer udata, GDestroyNotify notify); |
0 | 33 |
void pep_unregister_xmlns_handler (const gchar *xmlns); |
34 |
||
35 |
#endif |
|
36 |
||
8
b98346c5040d
Use GDestroyNotify and unregister on unload
Myhailo Danylenko <isbear@ukrpost.net>
parents:
0
diff
changeset
|
37 |
/* vim: se ts=4 sw=4: */ |