pep_geoloc.h.in
changeset 31 e404cd1c7077
parent 29 23fa36d480fb
equal deleted inserted replaced
30:a66ed0454ca8 31:e404cd1c7077
       
     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 OPT_GEOLOC_INTERVAL "${OPT_GEOLOC_INTERVAL}"
       
    32 
       
    33 #define HOOK_GEOLOC_IN  ( "${HOOK_GEOLOC_IN}"  )
       
    34 #define HOOK_GEOLOC_OUT ( "${HOOK_GEOLOC_OUT}" )
       
    35 
       
    36 #define GEOLOC_ERROR_NOTCONNECTED ( 0x01 )
       
    37 
       
    38 typedef struct {
       
    39 	const gchar *name;
       
    40 	gchar       *value;
       
    41 } geoloc_pair_t;
       
    42 
       
    43 gboolean pep_geoloc_request ( const gchar *to, GError **error );
       
    44 
       
    45 #endif
       
    46