telepathygabble/inc/tp-channel-iface.h
changeset 10 59927b2d3b75
parent 0 d0f3a028347a
equal deleted inserted replaced
0:d0f3a028347a 10:59927b2d3b75
     1 /*
       
     2  * tp-channel-iface.h - Headers for Telepathy Channel interface
       
     3  *
       
     4  * Copyright (C) 2006 Collabora Ltd.
       
     5  * 
       
     6  *
       
     7  * This library is free software; you can redistribute it and/or
       
     8  * modify it under the terms of the GNU Lesser General Public
       
     9  * License as published by the Free Software Foundation; either
       
    10  * version 2.1 of the License, or (at your option) any later version.
       
    11  *
       
    12  * This library is distributed in the hope that it will be useful,
       
    13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    15  * Lesser General Public License for more details.
       
    16  *
       
    17  * You should have received a copy of the GNU Lesser General Public
       
    18  * License along with this library; if not, write to the Free Software
       
    19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
       
    20  */
       
    21 
       
    22 #ifndef __TP_CHANNEL_IFACE_H__
       
    23 #define __TP_CHANNEL_IFACE_H__
       
    24 
       
    25 #include <glib-object.h>
       
    26 
       
    27 G_BEGIN_DECLS
       
    28 
       
    29 #define TP_TYPE_CHANNEL_IFACE tp_channel_iface_get_type()
       
    30 
       
    31 #define TP_CHANNEL_IFACE(obj) \
       
    32   (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
       
    33   TP_TYPE_CHANNEL_IFACE, TpChannelIface))
       
    34 
       
    35 #define TP_CHANNEL_IFACE_CLASS(klass) \
       
    36   (G_TYPE_CHECK_CLASS_CAST ((klass), \
       
    37   TP_TYPE_CHANNEL_IFACE, TpChannelIfaceClass))
       
    38 
       
    39 #define TP_IS_CHANNEL_IFACE(obj) \
       
    40   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
       
    41   TP_TYPE_CHANNEL_IFACE))
       
    42 
       
    43 #define TP_IS_CHANNEL_IFACE_CLASS(klass) \
       
    44   (G_TYPE_CHECK_CLASS_TYPE ((klass), \
       
    45   TP_TYPE_CHANNEL_IFACE))
       
    46 
       
    47 #define TP_CHANNEL_IFACE_GET_CLASS(obj) \
       
    48   (G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
       
    49   TP_TYPE_CHANNEL_IFACE, TpChannelIfaceClass))
       
    50 
       
    51 typedef struct _TpChannelIface TpChannelIface;
       
    52 typedef struct _TpChannelIfaceClass TpChannelIfaceClass;
       
    53 typedef void (* TpChannelFunc) (TpChannelIface *, gpointer);
       
    54 
       
    55 struct _TpChannelIfaceClass {
       
    56   GTypeInterface parent_class;
       
    57 };
       
    58 
       
    59 GType tp_channel_iface_get_type (void);
       
    60 
       
    61 G_END_DECLS
       
    62 
       
    63 #endif /* __TP_CHANNEL_IFACE_H__ */