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