os/ossrv/ofdbus/dbus-glib/tsrc/testapps/file-transfer-server/inc/file_send-glue.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 
    22 #ifndef __dbus_glib_marshal__MARSHAL_H__
    23 #define __dbus_glib_marshal__MARSHAL_H__
    24 
    25 #include	<glib-object.h>
    26 
    27 G_BEGIN_DECLS
    28 
    29 #ifdef G_ENABLE_DEBUG
    30 #define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
    31 #define g_marshal_value_peek_char(v)     g_value_get_char (v)
    32 #define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
    33 #define g_marshal_value_peek_int(v)      g_value_get_int (v)
    34 #define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
    35 #define g_marshal_value_peek_long(v)     g_value_get_long (v)
    36 #define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
    37 #define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
    38 #define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
    39 #define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
    40 #define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
    41 #define g_marshal_value_peek_float(v)    g_value_get_float (v)
    42 #define g_marshal_value_peek_double(v)   g_value_get_double (v)
    43 #define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
    44 #define g_marshal_value_peek_param(v)    g_value_get_param (v)
    45 #define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
    46 #define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
    47 #define g_marshal_value_peek_object(v)   g_value_get_object (v)
    48 #else /* !G_ENABLE_DEBUG */
    49 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
    50  *          Do not access GValues directly in your code. Instead, use the
    51  *          g_value_get_*() functions
    52  */
    53 #define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
    54 #define g_marshal_value_peek_char(v)     (v)->data[0].v_int
    55 #define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
    56 #define g_marshal_value_peek_int(v)      (v)->data[0].v_int
    57 #define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
    58 #define g_marshal_value_peek_long(v)     (v)->data[0].v_long
    59 #define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
    60 #define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
    61 #define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
    62 #define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
    63 #define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
    64 #define g_marshal_value_peek_float(v)    (v)->data[0].v_float
    65 #define g_marshal_value_peek_double(v)   (v)->data[0].v_double
    66 #define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
    67 #define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
    68 #define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
    69 #define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
    70 #define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
    71 #endif /* !G_ENABLE_DEBUG */
    72 
    73 
    74 /* BOOLEAN:UINT,BOXED,POINTER,POINTER (/tmp/dbus-binding-tool-c-marshallers.64B86T:1) */
    75 extern void dbus_glib_marshal__BOOLEAN__UINT_BOXED_POINTER_POINTER (GClosure     *closure,
    76                                                                     GValue       *return_value,
    77                                                                     guint         n_param_values,
    78                                                                     const GValue *param_values,
    79                                                                     gpointer      invocation_hint,
    80                                                                     gpointer      marshal_data);
    81 void
    82 dbus_glib_marshal__BOOLEAN__UINT_BOXED_POINTER_POINTER (GClosure     *closure,
    83                                                         GValue       *return_value,
    84                                                         guint         n_param_values,
    85                                                         const GValue *param_values,
    86                                                         gpointer      invocation_hint,
    87                                                         gpointer      marshal_data)
    88 {
    89   typedef gboolean (*GMarshalFunc_BOOLEAN__UINT_BOXED_POINTER_POINTER) (gpointer     data1,
    90                                                                         guint        arg_1,
    91                                                                         gpointer     arg_2,
    92                                                                         gpointer     arg_3,
    93                                                                         gpointer     arg_4,
    94                                                                         gpointer     data2);
    95   register GMarshalFunc_BOOLEAN__UINT_BOXED_POINTER_POINTER callback;
    96   register GCClosure *cc = (GCClosure*) closure;
    97   register gpointer data1, data2;
    98   gboolean v_return;
    99 
   100   g_return_if_fail (return_value != NULL);
   101   g_return_if_fail (n_param_values == 5);
   102 
   103   if (G_CCLOSURE_SWAP_DATA (closure))
   104     {
   105       data1 = closure->data;
   106       data2 = g_value_peek_pointer (param_values + 0);
   107     }
   108   else
   109     {
   110       data1 = g_value_peek_pointer (param_values + 0);
   111       data2 = closure->data;
   112     }
   113   callback = (GMarshalFunc_BOOLEAN__UINT_BOXED_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
   114 
   115   v_return = callback (data1,
   116                        g_marshal_value_peek_uint (param_values + 1),
   117                        g_marshal_value_peek_boxed (param_values + 2),
   118                        g_marshal_value_peek_pointer (param_values + 3),
   119                        g_marshal_value_peek_pointer (param_values + 4),
   120                        data2);
   121 
   122   g_value_set_boolean (return_value, v_return);
   123 }
   124 
   125 G_END_DECLS
   126 
   127 #endif /* __dbus_glib_marshal__MARSHAL_H__ */
   128 
   129 #include <dbus/dbus-glib.h>
   130 static const DBusGMethodInfo dbus_glib__methods[] = {
   131   { (GCallback) some_object_method1, dbus_glib_marshal__BOOLEAN__UINT_BOXED_POINTER_POINTER, 0 },
   132 };
   133 
   134 const DBusGObjectInfo dbus_glib__object_info = {
   135   0,
   136   dbus_glib__methods,
   137   1,
   138 "com.example.SomeObject\0Method1\0S\0x\0I\0u\0y\0I\0ay\0z\0O\0F\0N\0u\0\0\0",
   139 "\0",
   140 "\0"
   141 };
   142