The Gnome Chemistry Utils  0.14.0
marshalers.c
1 /* This file has been automatically generated. Do not edit. */
2 #include <config.h>
3 #include "marshalers.h"
4 
5 #include <glib-object.h>
6 
7 
8 #ifdef G_ENABLE_DEBUG
9 #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
10 #define g_marshal_value_peek_char(v) g_value_get_schar (v)
11 #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
12 #define g_marshal_value_peek_int(v) g_value_get_int (v)
13 #define g_marshal_value_peek_uint(v) g_value_get_uint (v)
14 #define g_marshal_value_peek_long(v) g_value_get_long (v)
15 #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)
16 #define g_marshal_value_peek_int64(v) g_value_get_int64 (v)
17 #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v)
18 #define g_marshal_value_peek_enum(v) g_value_get_enum (v)
19 #define g_marshal_value_peek_flags(v) g_value_get_flags (v)
20 #define g_marshal_value_peek_float(v) g_value_get_float (v)
21 #define g_marshal_value_peek_double(v) g_value_get_double (v)
22 #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
23 #define g_marshal_value_peek_param(v) g_value_get_param (v)
24 #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
25 #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
26 #define g_marshal_value_peek_object(v) g_value_get_object (v)
27 #define g_marshal_value_peek_variant(v) g_value_get_variant (v)
28 #else /* !G_ENABLE_DEBUG */
29 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
30  * Do not access GValues directly in your code. Instead, use the
31  * g_value_get_*() functions
32  */
33 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
34 #define g_marshal_value_peek_char(v) (v)->data[0].v_int
35 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
36 #define g_marshal_value_peek_int(v) (v)->data[0].v_int
37 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
38 #define g_marshal_value_peek_long(v) (v)->data[0].v_long
39 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
40 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
41 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
42 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long
43 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
44 #define g_marshal_value_peek_float(v) (v)->data[0].v_float
45 #define g_marshal_value_peek_double(v) (v)->data[0].v_double
46 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
47 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
48 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
49 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
50 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
51 #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
52 #endif /* !G_ENABLE_DEBUG */
53 
54 
55 /* VOID:UINT,UINT (marshalers.list:23) */
56 void
57 gcu__VOID__UINT_UINT (GClosure *closure,
58  GValue *return_value G_GNUC_UNUSED,
59  guint n_param_values,
60  const GValue *param_values,
61  gpointer invocation_hint G_GNUC_UNUSED,
62  gpointer marshal_data)
63 {
64  typedef void (*GMarshalFunc_VOID__UINT_UINT) (gpointer data1,
65  guint arg_1,
66  guint arg_2,
67  gpointer data2);
68  register GMarshalFunc_VOID__UINT_UINT callback;
69  register GCClosure *cc = (GCClosure*) closure;
70  register gpointer data1, data2;
71 
72  g_return_if_fail (n_param_values == 3);
73 
74  if (G_CCLOSURE_SWAP_DATA (closure))
75  {
76  data1 = closure->data;
77  data2 = g_value_peek_pointer (param_values + 0);
78  }
79  else
80  {
81  data1 = g_value_peek_pointer (param_values + 0);
82  data2 = closure->data;
83  }
84  callback = (GMarshalFunc_VOID__UINT_UINT) (marshal_data ? marshal_data : cc->callback);
85 
86  callback (data1,
87  g_marshal_value_peek_uint (param_values + 1),
88  g_marshal_value_peek_uint (param_values + 2),
89  data2);
90 }
91