libtelepathy/inc/tp-connmgr-gen.h
changeset 10 59927b2d3b75
parent 0 d0f3a028347a
equal deleted inserted replaced
0:d0f3a028347a 10:59927b2d3b75
     1 /* tp-connmgr-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_ConnectionManager
       
    30 #define DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_Telepathy_ConnectionManager
       
    31 
       
    32 /* Vinod commented out 
       
    33 static
       
    34 #ifdef G_HAVE_INLINE
       
    35 inline
       
    36 #endif
       
    37 gboolean
       
    38 tp_connmgr_get_parameters (DBusGProxy *proxy, const char * IN_proto, GPtrArray** OUT_arg1, GError **error)
       
    39 
       
    40 {
       
    41   return dbus_g_proxy_call (proxy, "GetParameters", error, G_TYPE_STRING, IN_proto, G_TYPE_INVALID, dbus_g_type_get_collection ("GPtrArray", dbus_g_type_get_struct ("GValueArray", G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_VALUE, G_TYPE_INVALID)), OUT_arg1, G_TYPE_INVALID);
       
    42 }
       
    43 */
       
    44 typedef void (*tp_connmgr_get_parameters_reply) (DBusGProxy *proxy, GPtrArray *OUT_arg1, GError *error, gpointer userdata);
       
    45 
       
    46 static void
       
    47 tp_connmgr_get_parameters_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
       
    48 {
       
    49   DBusGAsyncData *data = (DBusGAsyncData*)user_data;
       
    50   GError *error = NULL;
       
    51   GPtrArray* OUT_arg1;
       
    52   dbus_g_proxy_end_call (proxy, call, &error, dbus_g_type_get_collection ("GPtrArray", dbus_g_type_get_struct ("GValueArray", G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_VALUE, G_TYPE_INVALID)), &OUT_arg1, G_TYPE_INVALID);
       
    53   (*(tp_connmgr_get_parameters_reply)data->cb) (proxy, OUT_arg1, error, data->userdata);
       
    54   return;
       
    55 }
       
    56 
       
    57 static
       
    58 #ifdef G_HAVE_INLINE
       
    59 inline
       
    60 #endif
       
    61 DBusGProxyCall*
       
    62 tp_connmgr_get_parameters_async (DBusGProxy *proxy, const char * IN_proto, tp_connmgr_get_parameters_reply callback, gpointer userdata)
       
    63 
       
    64 {
       
    65   DBusGAsyncData *stuff;
       
    66   stuff = g_new (DBusGAsyncData, 1);
       
    67   stuff->cb = G_CALLBACK (callback);
       
    68   stuff->userdata = userdata;
       
    69   return dbus_g_proxy_begin_call (proxy, "GetParameters", tp_connmgr_get_parameters_async_callback, stuff, g_free, G_TYPE_STRING, IN_proto, G_TYPE_INVALID);
       
    70 }
       
    71 
       
    72 /*MTa - commenting out for now
       
    73 static
       
    74 #ifdef G_HAVE_INLINE
       
    75 inline
       
    76 #endif
       
    77 gboolean
       
    78 tp_connmgr_list_protocols (DBusGProxy *proxy, char *** OUT_arg0, GError **error)
       
    79 
       
    80 {
       
    81   return dbus_g_proxy_call (proxy, "ListProtocols", error, G_TYPE_INVALID, G_TYPE_STRV, OUT_arg0, G_TYPE_INVALID);
       
    82 }
       
    83 */
       
    84 
       
    85 typedef void (*tp_connmgr_list_protocols_reply) (DBusGProxy *proxy, char * *OUT_arg0, GError *error, gpointer userdata);
       
    86 
       
    87 static void
       
    88 tp_connmgr_list_protocols_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
       
    89 {
       
    90   DBusGAsyncData *data = (DBusGAsyncData*)user_data;
       
    91   GError *error = NULL;
       
    92   char ** OUT_arg0;
       
    93   dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_STRV, &OUT_arg0, G_TYPE_INVALID);
       
    94   (*(tp_connmgr_list_protocols_reply)data->cb) (proxy, OUT_arg0, error, data->userdata);
       
    95   return;
       
    96 }
       
    97 
       
    98 static
       
    99 #ifdef G_HAVE_INLINE
       
   100 inline
       
   101 #endif
       
   102 DBusGProxyCall*
       
   103 tp_connmgr_list_protocols_async (DBusGProxy *proxy, tp_connmgr_list_protocols_reply callback, gpointer userdata)
       
   104 
       
   105 {
       
   106   DBusGAsyncData *stuff;
       
   107   stuff = g_new (DBusGAsyncData, 1);
       
   108   stuff->cb = G_CALLBACK (callback);
       
   109   stuff->userdata = userdata;
       
   110   return dbus_g_proxy_begin_call (proxy, "ListProtocols", tp_connmgr_list_protocols_async_callback, stuff, g_free, G_TYPE_INVALID);
       
   111 }
       
   112 static
       
   113 #ifdef G_HAVE_INLINE
       
   114 inline
       
   115 #endif
       
   116 gboolean
       
   117 tp_connmgr_request_connection (DBusGProxy *proxy, const char * IN_proto, const GHashTable* IN_parameters, char ** OUT_arg2, char** OUT_arg3, GError **error)
       
   118 
       
   119 { 
       
   120   return dbus_g_proxy_call (proxy, "RequestConnection", error, G_TYPE_STRING, IN_proto, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), IN_parameters, G_TYPE_INVALID, G_TYPE_STRING, OUT_arg2, DBUS_TYPE_G_OBJECT_PATH, OUT_arg3, G_TYPE_INVALID);
       
   121 }
       
   122 
       
   123 typedef void (*tp_connmgr_request_connection_reply) (DBusGProxy *proxy, char * OUT_arg2, char *OUT_arg3, GError *error, gpointer userdata);
       
   124 
       
   125 static void
       
   126 tp_connmgr_request_connection_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
       
   127 {
       
   128   DBusGAsyncData *data = (DBusGAsyncData*)user_data;
       
   129   GError *error = NULL;
       
   130   char * OUT_arg2;
       
   131   char* OUT_arg3;
       
   132   dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_STRING, &OUT_arg2, DBUS_TYPE_G_OBJECT_PATH, &OUT_arg3, G_TYPE_INVALID);
       
   133   (*(tp_connmgr_request_connection_reply)data->cb) (proxy, OUT_arg2, OUT_arg3, error, data->userdata);
       
   134   return;
       
   135 }
       
   136 
       
   137 static
       
   138 #ifdef G_HAVE_INLINE
       
   139 inline
       
   140 #endif
       
   141 DBusGProxyCall*
       
   142 tp_connmgr_request_connection_async (DBusGProxy *proxy, const char * IN_proto, const GHashTable* IN_parameters, tp_connmgr_request_connection_reply callback, gpointer userdata)
       
   143 
       
   144 {
       
   145   DBusGAsyncData *stuff;
       
   146   stuff = g_new (DBusGAsyncData, 1);
       
   147   stuff->cb = G_CALLBACK (callback);
       
   148   stuff->userdata = userdata;
       
   149   return dbus_g_proxy_begin_call (proxy, "RequestConnection", tp_connmgr_request_connection_async_callback, stuff, g_free, G_TYPE_STRING, IN_proto, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), IN_parameters, G_TYPE_INVALID);
       
   150 }
       
   151 #endif /* defined DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_Telepathy_ConnectionManager */
       
   152 
       
   153 G_END_DECLS