|
1 |
|
2 #ifndef MCABBER_GEOLOC_H |
|
3 #define MCABBER_GEOLOC_H |
|
4 |
|
5 /* |
|
6 * geoloc.h -- Pep geographical location events |
|
7 * |
|
8 * Copyright (C) 2009-2012 Myhailo Danylenko <isbear@ukrpost.net> |
|
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 (at |
|
13 * your option) any later version. |
|
14 * |
|
15 * This program is distributed in the hope that it will be useful, but |
|
16 * WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
18 * 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 |
|
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
|
23 * USA |
|
24 */ |
|
25 |
|
26 #include <glib.h> |
|
27 |
|
28 #define NS_GEOLOC ( "http:/" "/jabber.org/protocol/geoloc" ) |
|
29 #define NS_GEOLOC_NOTIFY ( "http:/" "/jabber.org/protocol/geoloc+notify" ) |
|
30 |
|
31 #define HOOK_GEOLOC_IN ( "geoloc-in" ) |
|
32 #define HOOK_GEOLOC_OUT ( "geoloc-out" ) |
|
33 |
|
34 #define GEOLOC_ERROR_NOTCONNECTED ( 0x01 ) |
|
35 |
|
36 typedef struct { |
|
37 const gchar *name; |
|
38 gchar *value; |
|
39 } geoloc_pair_t; |
|
40 |
|
41 void geoloc_publish ( const geoloc_pair_t *pairs ); |
|
42 gboolean geoloc_request ( const gchar *to, GError **error ); |
|
43 |
|
44 #endif |
|
45 |