1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ofdbus/dbus-glib/tsrc/testapps/common_inc/dbus_glib1-bindings.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,222 @@
1.4 +/*
1.5 +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +*
1.19 +*/
1.20 +
1.21 +
1.22 +/* Generated by dbus-binding-tool; do not edit! */
1.23 +
1.24 +#include <glib/gtypes.h>
1.25 +#include <glib/gerror.h>
1.26 +#include <dbus/dbus-glib.h>
1.27 +
1.28 +G_BEGIN_DECLS
1.29 +
1.30 +#ifndef DBUS_GLIB_CLIENT_WRAPPERS_com_example_DBusGlibObject1
1.31 +#define DBUS_GLIB_CLIENT_WRAPPERS_com_example_DBusGlibObject1
1.32 +
1.33 +static
1.34 +#ifdef G_HAVE_INLINE
1.35 +inline
1.36 +#endif
1.37 +gboolean
1.38 +com_example_DBusGlibObject1_variable_args_method (DBusGProxy *proxy, const gboolean IN_b, const gint IN_n, const gint IN_i, const gint64 IN_x, const gint IN_q, const guint IN_u, const guint64 IN_t, const gdouble IN_d, const char * IN_s, const GArray* IN_a, gint* OUT_r, GError **error)
1.39 +
1.40 +{
1.41 + return dbus_g_proxy_call (proxy, "Variable_args_method", error, G_TYPE_BOOLEAN, IN_b, G_TYPE_INT, IN_n, G_TYPE_INT, IN_i, G_TYPE_INT64, IN_x, G_TYPE_INT, IN_q, G_TYPE_UINT, IN_u, G_TYPE_UINT64, IN_t, G_TYPE_DOUBLE, IN_d, G_TYPE_STRING, IN_s, dbus_g_type_get_collection ("GArray", G_TYPE_INT), IN_a, G_TYPE_INVALID, G_TYPE_INT, OUT_r, G_TYPE_INVALID);
1.42 +}
1.43 +
1.44 +typedef void (*com_example_DBusGlibObject1_variable_args_method_reply) (DBusGProxy *proxy, gint OUT_r, GError *error, gpointer userdata);
1.45 +
1.46 +static void
1.47 +com_example_DBusGlibObject1_variable_args_method_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
1.48 +{
1.49 + DBusGAsyncData *data = (DBusGAsyncData*) user_data;
1.50 + GError *error = NULL;
1.51 + gint OUT_r;
1.52 + dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INT, &OUT_r, G_TYPE_INVALID);
1.53 + (*(com_example_DBusGlibObject1_variable_args_method_reply)data->cb) (proxy, OUT_r, error, data->userdata);
1.54 + return;
1.55 +}
1.56 +
1.57 +static
1.58 +#ifdef G_HAVE_INLINE
1.59 +inline
1.60 +#endif
1.61 +DBusGProxyCall*
1.62 +com_example_DBusGlibObject1_variable_args_method_async (DBusGProxy *proxy, const gboolean IN_b, const gint IN_n, const gint IN_i, const gint64 IN_x, const gint IN_q, const guint IN_u, const guint64 IN_t, const gdouble IN_d, const char * IN_s, const GArray* IN_a, com_example_DBusGlibObject1_variable_args_method_reply callback, gpointer userdata)
1.63 +
1.64 +{
1.65 + DBusGAsyncData *stuff;
1.66 + stuff = g_new (DBusGAsyncData, 1);
1.67 + stuff->cb = G_CALLBACK (callback);
1.68 + stuff->userdata = userdata;
1.69 + return dbus_g_proxy_begin_call (proxy, "Variable_args_method", com_example_DBusGlibObject1_variable_args_method_async_callback, stuff, g_free, G_TYPE_BOOLEAN, IN_b, G_TYPE_INT, IN_n, G_TYPE_INT, IN_i, G_TYPE_INT64, IN_x, G_TYPE_INT, IN_q, G_TYPE_UINT, IN_u, G_TYPE_UINT64, IN_t, G_TYPE_DOUBLE, IN_d, G_TYPE_STRING, IN_s, dbus_g_type_get_collection ("GArray", G_TYPE_INT), IN_a, G_TYPE_INVALID);
1.70 +}
1.71 +static
1.72 +#ifdef G_HAVE_INLINE
1.73 +inline
1.74 +#endif
1.75 +gboolean
1.76 +com_example_DBusGlibObject1_simple_method (DBusGProxy *proxy, const gint IN_in_num, gint* OUT_out_num, GError **error)
1.77 +
1.78 +{
1.79 + return dbus_g_proxy_call (proxy, "Simple_method", error, G_TYPE_INT, IN_in_num, G_TYPE_INVALID, G_TYPE_INT, OUT_out_num, G_TYPE_INVALID);
1.80 +}
1.81 +
1.82 +typedef void (*com_example_DBusGlibObject1_simple_method_reply) (DBusGProxy *proxy, gint OUT_out_num, GError *error, gpointer userdata);
1.83 +
1.84 +static void
1.85 +com_example_DBusGlibObject1_simple_method_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
1.86 +{
1.87 + DBusGAsyncData *data = (DBusGAsyncData*) user_data;
1.88 + GError *error = NULL;
1.89 + gint OUT_out_num;
1.90 + dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INT, &OUT_out_num, G_TYPE_INVALID);
1.91 + (*(com_example_DBusGlibObject1_simple_method_reply)data->cb) (proxy, OUT_out_num, error, data->userdata);
1.92 + return;
1.93 +}
1.94 +
1.95 +static
1.96 +#ifdef G_HAVE_INLINE
1.97 +inline
1.98 +#endif
1.99 +DBusGProxyCall*
1.100 +com_example_DBusGlibObject1_simple_method_async (DBusGProxy *proxy, const gint IN_in_num, com_example_DBusGlibObject1_simple_method_reply callback, gpointer userdata)
1.101 +
1.102 +{
1.103 + DBusGAsyncData *stuff;
1.104 + stuff = g_new (DBusGAsyncData, 1);
1.105 + stuff->cb = G_CALLBACK (callback);
1.106 + stuff->userdata = userdata;
1.107 + return dbus_g_proxy_begin_call (proxy, "Simple_method", com_example_DBusGlibObject1_simple_method_async_callback, stuff, g_free, G_TYPE_INT, IN_in_num, G_TYPE_INVALID);
1.108 +}
1.109 +static
1.110 +#ifdef G_HAVE_INLINE
1.111 +inline
1.112 +#endif
1.113 +gboolean
1.114 +com_example_DBusGlibObject1_struct_example_method (DBusGProxy *proxy, const GValueArray* IN_st, gint* OUT_ret, GError **error)
1.115 +
1.116 +{
1.117 + return dbus_g_proxy_call (proxy, "Struct_example_method", error, dbus_g_type_get_struct ("GValueArray", G_TYPE_INT, G_TYPE_STRING, G_TYPE_INVALID), IN_st, G_TYPE_INVALID, G_TYPE_INT, OUT_ret, G_TYPE_INVALID);
1.118 +}
1.119 +
1.120 +typedef void (*com_example_DBusGlibObject1_struct_example_method_reply) (DBusGProxy *proxy, gint OUT_ret, GError *error, gpointer userdata);
1.121 +
1.122 +static void
1.123 +com_example_DBusGlibObject1_struct_example_method_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
1.124 +{
1.125 + DBusGAsyncData *data = (DBusGAsyncData*) user_data;
1.126 + GError *error = NULL;
1.127 + gint OUT_ret;
1.128 + dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INT, &OUT_ret, G_TYPE_INVALID);
1.129 + (*(com_example_DBusGlibObject1_struct_example_method_reply)data->cb) (proxy, OUT_ret, error, data->userdata);
1.130 + return;
1.131 +}
1.132 +
1.133 +static
1.134 +#ifdef G_HAVE_INLINE
1.135 +inline
1.136 +#endif
1.137 +DBusGProxyCall*
1.138 +com_example_DBusGlibObject1_struct_example_method_async (DBusGProxy *proxy, const GValueArray* IN_st, com_example_DBusGlibObject1_struct_example_method_reply callback, gpointer userdata)
1.139 +
1.140 +{
1.141 + DBusGAsyncData *stuff;
1.142 + stuff = g_new (DBusGAsyncData, 1);
1.143 + stuff->cb = G_CALLBACK (callback);
1.144 + stuff->userdata = userdata;
1.145 + return dbus_g_proxy_begin_call (proxy, "Struct_example_method", com_example_DBusGlibObject1_struct_example_method_async_callback, stuff, g_free, dbus_g_type_get_struct ("GValueArray", G_TYPE_INT, G_TYPE_STRING, G_TYPE_INVALID), IN_st, G_TYPE_INVALID);
1.146 +}
1.147 +static
1.148 +#ifdef G_HAVE_INLINE
1.149 +inline
1.150 +#endif
1.151 +gboolean
1.152 +com_example_DBusGlibObject1_variant_send_method (DBusGProxy *proxy, const GValue* IN_in_var, GValue* OUT_out_var, GError **error)
1.153 +
1.154 +{
1.155 + return dbus_g_proxy_call (proxy, "Variant_send_method", error, G_TYPE_VALUE, IN_in_var, G_TYPE_INVALID, G_TYPE_VALUE, OUT_out_var, G_TYPE_INVALID);
1.156 +}
1.157 +
1.158 +typedef void (*com_example_DBusGlibObject1_variant_send_method_reply) (DBusGProxy *proxy, GValue OUT_out_var, GError *error, gpointer userdata);
1.159 +
1.160 +static void
1.161 +com_example_DBusGlibObject1_variant_send_method_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
1.162 +{
1.163 + DBusGAsyncData *data = (DBusGAsyncData*) user_data;
1.164 + GError *error = NULL;
1.165 + GValue OUT_out_var;
1.166 + dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_VALUE, &OUT_out_var, G_TYPE_INVALID);
1.167 + (*(com_example_DBusGlibObject1_variant_send_method_reply)data->cb) (proxy, OUT_out_var, error, data->userdata);
1.168 + return;
1.169 +}
1.170 +
1.171 +static
1.172 +#ifdef G_HAVE_INLINE
1.173 +inline
1.174 +#endif
1.175 +DBusGProxyCall*
1.176 +com_example_DBusGlibObject1_variant_send_method_async (DBusGProxy *proxy, const GValue* IN_in_var, com_example_DBusGlibObject1_variant_send_method_reply callback, gpointer userdata)
1.177 +
1.178 +{
1.179 + DBusGAsyncData *stuff;
1.180 + stuff = g_new (DBusGAsyncData, 1);
1.181 + stuff->cb = G_CALLBACK (callback);
1.182 + stuff->userdata = userdata;
1.183 + return dbus_g_proxy_begin_call (proxy, "Variant_send_method", com_example_DBusGlibObject1_variant_send_method_async_callback, stuff, g_free, G_TYPE_VALUE, IN_in_var, G_TYPE_INVALID);
1.184 +}
1.185 +static
1.186 +#ifdef G_HAVE_INLINE
1.187 +inline
1.188 +#endif
1.189 +gboolean
1.190 +com_example_DBusGlibObject1_dict_send_method (DBusGProxy *proxy, const GHashTable* IN_in_dict, gint* OUT_out_int, GError **error)
1.191 +
1.192 +{
1.193 + return dbus_g_proxy_call (proxy, "Dict_send_method", error, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_STRING), IN_in_dict, G_TYPE_INVALID, G_TYPE_INT, OUT_out_int, G_TYPE_INVALID);
1.194 +}
1.195 +
1.196 +typedef void (*com_example_DBusGlibObject1_dict_send_method_reply) (DBusGProxy *proxy, gint OUT_out_int, GError *error, gpointer userdata);
1.197 +
1.198 +static void
1.199 +com_example_DBusGlibObject1_dict_send_method_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
1.200 +{
1.201 + DBusGAsyncData *data = (DBusGAsyncData*) user_data;
1.202 + GError *error = NULL;
1.203 + gint OUT_out_int;
1.204 + dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INT, &OUT_out_int, G_TYPE_INVALID);
1.205 + (*(com_example_DBusGlibObject1_dict_send_method_reply)data->cb) (proxy, OUT_out_int, error, data->userdata);
1.206 + return;
1.207 +}
1.208 +
1.209 +static
1.210 +#ifdef G_HAVE_INLINE
1.211 +inline
1.212 +#endif
1.213 +DBusGProxyCall*
1.214 +com_example_DBusGlibObject1_dict_send_method_async (DBusGProxy *proxy, const GHashTable* IN_in_dict, com_example_DBusGlibObject1_dict_send_method_reply callback, gpointer userdata)
1.215 +
1.216 +{
1.217 + DBusGAsyncData *stuff;
1.218 + stuff = g_new (DBusGAsyncData, 1);
1.219 + stuff->cb = G_CALLBACK (callback);
1.220 + stuff->userdata = userdata;
1.221 + return dbus_g_proxy_begin_call (proxy, "Dict_send_method", com_example_DBusGlibObject1_dict_send_method_async_callback, stuff, g_free, dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_STRING), IN_in_dict, G_TYPE_INVALID);
1.222 +}
1.223 +#endif /* defined DBUS_GLIB_CLIENT_WRAPPERS_com_example_DBusGlibObject1 */
1.224 +
1.225 +G_END_DECLS