1 /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */
2 #include <glib-object.h>
3
4 #ifdef G_ENABLE_DEBUG
5 #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
6 #define g_marshal_value_peek_char(v) g_value_get_schar (v)
7 #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
8 #define g_marshal_value_peek_int(v) g_value_get_int (v)
9 #define g_marshal_value_peek_uint(v) g_value_get_uint (v)
10 #define g_marshal_value_peek_long(v) g_value_get_long (v)
11 #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)
12 #define g_marshal_value_peek_int64(v) g_value_get_int64 (v)
13 #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v)
14 #define g_marshal_value_peek_enum(v) g_value_get_enum (v)
15 #define g_marshal_value_peek_flags(v) g_value_get_flags (v)
16 #define g_marshal_value_peek_float(v) g_value_get_float (v)
17 #define g_marshal_value_peek_double(v) g_value_get_double (v)
18 #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
19 #define g_marshal_value_peek_param(v) g_value_get_param (v)
20 #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
21 #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
22 #define g_marshal_value_peek_object(v) g_value_get_object (v)
23 #define g_marshal_value_peek_variant(v) g_value_get_variant (v)
24 #else /* !G_ENABLE_DEBUG */
25 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
26 * Do not access GValues directly in your code. Instead, use the
27 * g_value_get_*() functions
28 */
29 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
30 #define g_marshal_value_peek_char(v) (v)->data[0].v_int
31 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
32 #define g_marshal_value_peek_int(v) (v)->data[0].v_int
33 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
34 #define g_marshal_value_peek_long(v) (v)->data[0].v_long
35 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
36 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
37 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
38 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long
39 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
40 #define g_marshal_value_peek_float(v) (v)->data[0].v_float
41 #define g_marshal_value_peek_double(v) (v)->data[0].v_double
42 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
43 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
44 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
45 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
46 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
47 #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
48 #endif /* !G_ENABLE_DEBUG */
49
50 /* VOID:ENUM,STRING (marshal.list:24) */
51 void
_common_marshal_VOID__ENUM_STRING(GClosure * closure,GValue * return_value G_GNUC_UNUSED,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)52 _common_marshal_VOID__ENUM_STRING (GClosure *closure,
53 GValue *return_value G_GNUC_UNUSED,
54 guint n_param_values,
55 const GValue *param_values,
56 gpointer invocation_hint G_GNUC_UNUSED,
57 gpointer marshal_data)
58 {
59 typedef void (*GMarshalFunc_VOID__ENUM_STRING) (gpointer data1,
60 gint arg1,
61 gpointer arg2,
62 gpointer data2);
63 GCClosure *cc = (GCClosure *) closure;
64 gpointer data1, data2;
65 GMarshalFunc_VOID__ENUM_STRING callback;
66
67 g_return_if_fail (n_param_values == 3);
68
69 if (G_CCLOSURE_SWAP_DATA (closure))
70 {
71 data1 = closure->data;
72 data2 = g_value_peek_pointer (param_values + 0);
73 }
74 else
75 {
76 data1 = g_value_peek_pointer (param_values + 0);
77 data2 = closure->data;
78 }
79 callback = (GMarshalFunc_VOID__ENUM_STRING) (marshal_data ? marshal_data : cc->callback);
80
81 callback (data1,
82 g_marshal_value_peek_enum (param_values + 1),
83 g_marshal_value_peek_string (param_values + 2),
84 data2);
85 }
86
87 /* VOID:INT,ENUM,STRING (marshal.list:25) */
88 void
_common_marshal_VOID__INT_ENUM_STRING(GClosure * closure,GValue * return_value G_GNUC_UNUSED,guint n_param_values,const GValue * param_values,gpointer invocation_hint G_GNUC_UNUSED,gpointer marshal_data)89 _common_marshal_VOID__INT_ENUM_STRING (GClosure *closure,
90 GValue *return_value G_GNUC_UNUSED,
91 guint n_param_values,
92 const GValue *param_values,
93 gpointer invocation_hint G_GNUC_UNUSED,
94 gpointer marshal_data)
95 {
96 typedef void (*GMarshalFunc_VOID__INT_ENUM_STRING) (gpointer data1,
97 gint arg1,
98 gint arg2,
99 gpointer arg3,
100 gpointer data2);
101 GCClosure *cc = (GCClosure *) closure;
102 gpointer data1, data2;
103 GMarshalFunc_VOID__INT_ENUM_STRING callback;
104
105 g_return_if_fail (n_param_values == 4);
106
107 if (G_CCLOSURE_SWAP_DATA (closure))
108 {
109 data1 = closure->data;
110 data2 = g_value_peek_pointer (param_values + 0);
111 }
112 else
113 {
114 data1 = g_value_peek_pointer (param_values + 0);
115 data2 = closure->data;
116 }
117 callback = (GMarshalFunc_VOID__INT_ENUM_STRING) (marshal_data ? marshal_data : cc->callback);
118
119 callback (data1,
120 g_marshal_value_peek_int (param_values + 1),
121 g_marshal_value_peek_enum (param_values + 2),
122 g_marshal_value_peek_string (param_values + 3),
123 data2);
124 }
125
126