os/ossrv/ofdbus/dbus-glib/tsrc/testapps/common_inc/file_send-bindings.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 *
    16 */
    17 
    18 
    19 /* Generated by dbus-binding-tool; do not edit! */
    20 
    21 #include <glib/gtypes.h>
    22 #include <glib/gerror.h>
    23 #include <dbus/dbus-glib.h>
    24 
    25 G_BEGIN_DECLS
    26 
    27 #ifndef DBUS_GLIB_CLIENT_WRAPPERS_com_example_SomeObject
    28 #define DBUS_GLIB_CLIENT_WRAPPERS_com_example_SomeObject
    29 
    30 static
    31 #ifdef G_HAVE_INLINE
    32 inline
    33 #endif
    34 gboolean
    35 com_example_SomeObject_method1 (DBusGProxy *proxy, const guint IN_x, const GArray* IN_y, guint* OUT_z, GError **error)
    36 
    37 {
    38   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);
    39 }
    40 
    41 typedef void (*com_example_SomeObject_method1_reply) (DBusGProxy *proxy, guint OUT_z, GError *error, gpointer userdata);
    42 
    43 static void
    44 com_example_SomeObject_method1_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
    45 {
    46   DBusGAsyncData *data = (DBusGAsyncData *)user_data;
    47   GError *error = NULL;
    48   guint OUT_z;
    49   dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_UINT, &OUT_z, G_TYPE_INVALID);
    50   (*(com_example_SomeObject_method1_reply)data->cb) (proxy, OUT_z, error, data->userdata);
    51   return;
    52 }
    53 
    54 static
    55 #ifdef G_HAVE_INLINE
    56 inline
    57 #endif
    58 DBusGProxyCall*
    59 com_example_SomeObject_method1_async (DBusGProxy *proxy, const guint IN_x, const GArray* IN_y, com_example_SomeObject_method1_reply callback, gpointer userdata)
    60 
    61 {
    62   DBusGAsyncData *stuff;
    63   stuff = g_new (DBusGAsyncData, 1);
    64   stuff->cb = G_CALLBACK (callback);
    65   stuff->userdata = userdata;
    66   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);
    67 }
    68 #endif /* defined DBUS_GLIB_CLIENT_WRAPPERS_com_example_SomeObject */
    69 
    70 G_END_DECLS