libtelepathy/inc/tp-chan-iface-hold-gen.h
changeset 10 59927b2d3b75
parent 0 d0f3a028347a
equal deleted inserted replaced
0:d0f3a028347a 10:59927b2d3b75
     1 /* tp-chan-iface-hold-gen.h
       
     2  *
       
     3  * Copyright (C) 2005 Collabora Ltd.
       
     4  * 
       
     5  *
       
     6  * This library is free software; you can redistribute it and/or
       
     7  * modify it under the terms of the GNU Lesser General Public
       
     8  * License as published by the Free Software Foundation; either
       
     9  * version 2.1 of the License, or (at your option) any later version.
       
    10  *
       
    11  * This library is distributed in the hope that it will be useful,
       
    12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
       
    14  * Lesser General Public License for more details.
       
    15  *
       
    16  * You should have received a copy of the GNU Lesser General Public
       
    17  * License along with this library; if not, write to the Free Software
       
    18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
       
    19  *
       
    20  */
       
    21 /* Generated by dbus-binding-tool; do not edit! */
       
    22 
       
    23 #include <glib/gtypes.h>
       
    24 #include <glib/gerror.h>
       
    25 #include <dbus/dbus-glib.h>
       
    26 
       
    27 G_BEGIN_DECLS
       
    28 
       
    29 #ifndef DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_Telepathy_Channel_Interface_Hold
       
    30 #define DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_Telepathy_Channel_Interface_Hold
       
    31 
       
    32 static
       
    33 #ifdef G_HAVE_INLINE
       
    34 inline
       
    35 #endif
       
    36 gboolean
       
    37 tp_chan_iface_hold_get_hold_state (DBusGProxy *proxy, const guint IN_member, guint* OUT_arg1, GError **error)
       
    38 
       
    39 {
       
    40   return dbus_g_proxy_call (proxy, "GetHoldState", error, G_TYPE_UINT, IN_member, G_TYPE_INVALID, G_TYPE_UINT, OUT_arg1, G_TYPE_INVALID);
       
    41 }
       
    42 
       
    43 typedef void (*tp_chan_iface_hold_get_hold_state_reply) (DBusGProxy *proxy, guint OUT_arg1, GError *error, gpointer userdata);
       
    44 
       
    45 static void
       
    46 tp_chan_iface_hold_get_hold_state_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
       
    47 {
       
    48   DBusGAsyncData *data = (DBusGAsyncData*)user_data;
       
    49   GError *error = NULL;
       
    50   guint OUT_arg1;
       
    51   dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_UINT, &OUT_arg1, G_TYPE_INVALID);
       
    52   (*(tp_chan_iface_hold_get_hold_state_reply)data->cb) (proxy, OUT_arg1, error, data->userdata);
       
    53   return;
       
    54 }
       
    55 
       
    56 static
       
    57 #ifdef G_HAVE_INLINE
       
    58 inline
       
    59 #endif
       
    60 DBusGProxyCall*
       
    61 tp_chan_iface_hold_get_hold_state_async (DBusGProxy *proxy, const guint IN_member, tp_chan_iface_hold_get_hold_state_reply callback, gpointer userdata)
       
    62 
       
    63 {
       
    64   DBusGAsyncData *stuff;
       
    65   stuff = g_new (DBusGAsyncData, 1);
       
    66   stuff->cb = G_CALLBACK (callback);
       
    67   stuff->userdata = userdata;
       
    68   return dbus_g_proxy_begin_call (proxy, "GetHoldState", tp_chan_iface_hold_get_hold_state_async_callback, stuff, g_free, G_TYPE_UINT, IN_member, G_TYPE_INVALID);
       
    69 }
       
    70 static
       
    71 #ifdef G_HAVE_INLINE
       
    72 inline
       
    73 #endif
       
    74 gboolean
       
    75 tp_chan_iface_hold_request_hold (DBusGProxy *proxy, const guint IN_member, const gboolean IN_hold, GError **error)
       
    76 
       
    77 {
       
    78   return dbus_g_proxy_call (proxy, "RequestHold", error, G_TYPE_UINT, IN_member, G_TYPE_BOOLEAN, IN_hold, G_TYPE_INVALID, G_TYPE_INVALID);
       
    79 }
       
    80 
       
    81 typedef void (*tp_chan_iface_hold_request_hold_reply) (DBusGProxy *proxy, GError *error, gpointer userdata);
       
    82 
       
    83 static void
       
    84 tp_chan_iface_hold_request_hold_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
       
    85 {
       
    86   DBusGAsyncData *data = (DBusGAsyncData*)user_data;
       
    87   GError *error = NULL;
       
    88   dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID);
       
    89   (*(tp_chan_iface_hold_request_hold_reply)data->cb) (proxy, error, data->userdata);
       
    90   return;
       
    91 }
       
    92 
       
    93 static
       
    94 #ifdef G_HAVE_INLINE
       
    95 inline
       
    96 #endif
       
    97 DBusGProxyCall*
       
    98 tp_chan_iface_hold_request_hold_async (DBusGProxy *proxy, const guint IN_member, const gboolean IN_hold, tp_chan_iface_hold_request_hold_reply callback, gpointer userdata)
       
    99 
       
   100 {
       
   101   DBusGAsyncData *stuff;
       
   102   stuff = g_new (DBusGAsyncData, 1);
       
   103   stuff->cb = G_CALLBACK (callback);
       
   104   stuff->userdata = userdata;
       
   105   return dbus_g_proxy_begin_call (proxy, "RequestHold", tp_chan_iface_hold_request_hold_async_callback, stuff, g_free, G_TYPE_UINT, IN_member, G_TYPE_BOOLEAN, IN_hold, G_TYPE_INVALID);
       
   106 }
       
   107 #endif /* defined DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_Telepathy_Channel_Interface_Hold */
       
   108 
       
   109 G_END_DECLS