tune.h
changeset 31 e404cd1c7077
parent 30 a66ed0454ca8
child 32 9a6164bc805c
equal deleted inserted replaced
30:a66ed0454ca8 31:e404cd1c7077
     1 
       
     2 #ifndef MCABBER_TUNE_H
       
     3 #define MCABBER_TUNE_H
       
     4 
       
     5 /*
       
     6  * tune.h               -- Pep tune 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_TUNE        ( "http:/" "/jabber.org/protocol/tune"        )
       
    29 #define NS_TUNE_NOTIFY ( "http:/" "/jabber.org/protocol/tune+notify" )
       
    30 
       
    31 #define OPT_TUNE_PAUSE_IS_STOP "pep_tune_pause_is_stop"
       
    32 #define OPT_TUNE_INTERVAL      "pep_tune_interval"
       
    33 
       
    34 #define HOOK_TUNE_IN  ( "tune-in"  )
       
    35 #define HOOK_TUNE_OUT ( "tune-out" )
       
    36 
       
    37 #define TUNE_ERROR_NOTCONNECTED ( 0x01 )
       
    38 
       
    39 typedef struct {
       
    40 	const gchar *name;
       
    41 	gchar       *value;
       
    42 } tune_pair_t;
       
    43 
       
    44 void tune_publish ( const tune_pair_t *pairs );
       
    45 gboolean tune_request ( const gchar *to, GError **err );
       
    46 
       
    47 #endif
       
    48