os/ossrv/ofdbus/dbus-glib/tsrc/testapps/file-transfer-server/inc/file_send-glue.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ofdbus/dbus-glib/tsrc/testapps/file-transfer-server/inc/file_send-glue.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,142 @@
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 +
1.25 +#ifndef __dbus_glib_marshal__MARSHAL_H__
1.26 +#define __dbus_glib_marshal__MARSHAL_H__
1.27 +
1.28 +#include <glib-object.h>
1.29 +
1.30 +G_BEGIN_DECLS
1.31 +
1.32 +#ifdef G_ENABLE_DEBUG
1.33 +#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
1.34 +#define g_marshal_value_peek_char(v) g_value_get_char (v)
1.35 +#define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
1.36 +#define g_marshal_value_peek_int(v) g_value_get_int (v)
1.37 +#define g_marshal_value_peek_uint(v) g_value_get_uint (v)
1.38 +#define g_marshal_value_peek_long(v) g_value_get_long (v)
1.39 +#define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)
1.40 +#define g_marshal_value_peek_int64(v) g_value_get_int64 (v)
1.41 +#define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v)
1.42 +#define g_marshal_value_peek_enum(v) g_value_get_enum (v)
1.43 +#define g_marshal_value_peek_flags(v) g_value_get_flags (v)
1.44 +#define g_marshal_value_peek_float(v) g_value_get_float (v)
1.45 +#define g_marshal_value_peek_double(v) g_value_get_double (v)
1.46 +#define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
1.47 +#define g_marshal_value_peek_param(v) g_value_get_param (v)
1.48 +#define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
1.49 +#define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
1.50 +#define g_marshal_value_peek_object(v) g_value_get_object (v)
1.51 +#else /* !G_ENABLE_DEBUG */
1.52 +/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
1.53 + * Do not access GValues directly in your code. Instead, use the
1.54 + * g_value_get_*() functions
1.55 + */
1.56 +#define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
1.57 +#define g_marshal_value_peek_char(v) (v)->data[0].v_int
1.58 +#define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
1.59 +#define g_marshal_value_peek_int(v) (v)->data[0].v_int
1.60 +#define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
1.61 +#define g_marshal_value_peek_long(v) (v)->data[0].v_long
1.62 +#define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
1.63 +#define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
1.64 +#define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
1.65 +#define g_marshal_value_peek_enum(v) (v)->data[0].v_long
1.66 +#define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
1.67 +#define g_marshal_value_peek_float(v) (v)->data[0].v_float
1.68 +#define g_marshal_value_peek_double(v) (v)->data[0].v_double
1.69 +#define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
1.70 +#define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
1.71 +#define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
1.72 +#define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
1.73 +#define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
1.74 +#endif /* !G_ENABLE_DEBUG */
1.75 +
1.76 +
1.77 +/* BOOLEAN:UINT,BOXED,POINTER,POINTER (/tmp/dbus-binding-tool-c-marshallers.64B86T:1) */
1.78 +extern void dbus_glib_marshal__BOOLEAN__UINT_BOXED_POINTER_POINTER (GClosure *closure,
1.79 + GValue *return_value,
1.80 + guint n_param_values,
1.81 + const GValue *param_values,
1.82 + gpointer invocation_hint,
1.83 + gpointer marshal_data);
1.84 +void
1.85 +dbus_glib_marshal__BOOLEAN__UINT_BOXED_POINTER_POINTER (GClosure *closure,
1.86 + GValue *return_value,
1.87 + guint n_param_values,
1.88 + const GValue *param_values,
1.89 + gpointer invocation_hint,
1.90 + gpointer marshal_data)
1.91 +{
1.92 + typedef gboolean (*GMarshalFunc_BOOLEAN__UINT_BOXED_POINTER_POINTER) (gpointer data1,
1.93 + guint arg_1,
1.94 + gpointer arg_2,
1.95 + gpointer arg_3,
1.96 + gpointer arg_4,
1.97 + gpointer data2);
1.98 + register GMarshalFunc_BOOLEAN__UINT_BOXED_POINTER_POINTER callback;
1.99 + register GCClosure *cc = (GCClosure*) closure;
1.100 + register gpointer data1, data2;
1.101 + gboolean v_return;
1.102 +
1.103 + g_return_if_fail (return_value != NULL);
1.104 + g_return_if_fail (n_param_values == 5);
1.105 +
1.106 + if (G_CCLOSURE_SWAP_DATA (closure))
1.107 + {
1.108 + data1 = closure->data;
1.109 + data2 = g_value_peek_pointer (param_values + 0);
1.110 + }
1.111 + else
1.112 + {
1.113 + data1 = g_value_peek_pointer (param_values + 0);
1.114 + data2 = closure->data;
1.115 + }
1.116 + callback = (GMarshalFunc_BOOLEAN__UINT_BOXED_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
1.117 +
1.118 + v_return = callback (data1,
1.119 + g_marshal_value_peek_uint (param_values + 1),
1.120 + g_marshal_value_peek_boxed (param_values + 2),
1.121 + g_marshal_value_peek_pointer (param_values + 3),
1.122 + g_marshal_value_peek_pointer (param_values + 4),
1.123 + data2);
1.124 +
1.125 + g_value_set_boolean (return_value, v_return);
1.126 +}
1.127 +
1.128 +G_END_DECLS
1.129 +
1.130 +#endif /* __dbus_glib_marshal__MARSHAL_H__ */
1.131 +
1.132 +#include <dbus/dbus-glib.h>
1.133 +static const DBusGMethodInfo dbus_glib__methods[] = {
1.134 + { (GCallback) some_object_method1, dbus_glib_marshal__BOOLEAN__UINT_BOXED_POINTER_POINTER, 0 },
1.135 +};
1.136 +
1.137 +const DBusGObjectInfo dbus_glib__object_info = {
1.138 + 0,
1.139 + dbus_glib__methods,
1.140 + 1,
1.141 +"com.example.SomeObject\0Method1\0S\0x\0I\0u\0y\0I\0ay\0z\0O\0F\0N\0u\0\0\0",
1.142 +"\0",
1.143 +"\0"
1.144 +};
1.145 +