sl@0: /* sl@0: * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: /* Generated by dbus-binding-tool; do not edit! */ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: G_BEGIN_DECLS sl@0: sl@0: #ifndef DBUS_GLIB_CLIENT_WRAPPERS_com_example_SomeObject sl@0: #define DBUS_GLIB_CLIENT_WRAPPERS_com_example_SomeObject sl@0: sl@0: static sl@0: #ifdef G_HAVE_INLINE sl@0: inline sl@0: #endif sl@0: gboolean sl@0: com_example_SomeObject_method1 (DBusGProxy *proxy, const guint IN_x, const GArray* IN_y, guint* OUT_z, GError **error) sl@0: sl@0: { sl@0: return dbus_g_proxy_call (proxy, "Method1", error, G_TYPE_UINT, IN_x, dbus_g_type_get_collection ("GArray", G_TYPE_UCHAR), IN_y, G_TYPE_INVALID, G_TYPE_UINT, OUT_z, G_TYPE_INVALID); sl@0: } sl@0: sl@0: typedef void (*com_example_SomeObject_method1_reply) (DBusGProxy *proxy, guint OUT_z, GError *error, gpointer userdata); sl@0: sl@0: static void sl@0: com_example_SomeObject_method1_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data) sl@0: { sl@0: DBusGAsyncData *data = (DBusGAsyncData *)user_data; sl@0: GError *error = NULL; sl@0: guint OUT_z; sl@0: dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_UINT, &OUT_z, G_TYPE_INVALID); sl@0: (*(com_example_SomeObject_method1_reply)data->cb) (proxy, OUT_z, error, data->userdata); sl@0: return; sl@0: } sl@0: sl@0: static sl@0: #ifdef G_HAVE_INLINE sl@0: inline sl@0: #endif sl@0: DBusGProxyCall* sl@0: com_example_SomeObject_method1_async (DBusGProxy *proxy, const guint IN_x, const GArray* IN_y, com_example_SomeObject_method1_reply callback, gpointer userdata) sl@0: sl@0: { sl@0: DBusGAsyncData *stuff; sl@0: stuff = g_new (DBusGAsyncData, 1); sl@0: stuff->cb = G_CALLBACK (callback); sl@0: stuff->userdata = userdata; sl@0: return dbus_g_proxy_begin_call (proxy, "Method1", com_example_SomeObject_method1_async_callback, stuff, g_free, G_TYPE_UINT, IN_x, dbus_g_type_get_collection ("GArray", G_TYPE_UCHAR), IN_y, G_TYPE_INVALID); sl@0: } sl@0: #endif /* defined DBUS_GLIB_CLIENT_WRAPPERS_com_example_SomeObject */ sl@0: sl@0: G_END_DECLS