pidgin  2.13.0
About: Pidgin is a chat program (multi-protocol instant messaging client) which lets you log in to accounts on multiple chat networks simultaneously (old name "gaim").
  Fossies Dox: pidgin-2.13.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

marshallers.c
Go to the documentation of this file.
1 #include "marshallers.h"
2 /* 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. */
3 #include <glib-object.h>
4 
5 #ifdef G_ENABLE_DEBUG
6 #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
7 #define g_marshal_value_peek_char(v) g_value_get_schar (v)
8 #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
9 #define g_marshal_value_peek_int(v) g_value_get_int (v)
10 #define g_marshal_value_peek_uint(v) g_value_get_uint (v)
11 #define g_marshal_value_peek_long(v) g_value_get_long (v)
12 #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)
13 #define g_marshal_value_peek_int64(v) g_value_get_int64 (v)
14 #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v)
15 #define g_marshal_value_peek_enum(v) g_value_get_enum (v)
16 #define g_marshal_value_peek_flags(v) g_value_get_flags (v)
17 #define g_marshal_value_peek_float(v) g_value_get_float (v)
18 #define g_marshal_value_peek_double(v) g_value_get_double (v)
19 #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
20 #define g_marshal_value_peek_param(v) g_value_get_param (v)
21 #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
22 #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
23 #define g_marshal_value_peek_object(v) g_value_get_object (v)
24 #define g_marshal_value_peek_variant(v) g_value_get_variant (v)
25 #else /* !G_ENABLE_DEBUG */
26 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
27  * Do not access GValues directly in your code. Instead, use the
28  * g_value_get_*() functions
29  */
30 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
31 #define g_marshal_value_peek_char(v) (v)->data[0].v_int
32 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
33 #define g_marshal_value_peek_int(v) (v)->data[0].v_int
34 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
35 #define g_marshal_value_peek_long(v) (v)->data[0].v_long
36 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
37 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
38 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
39 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long
40 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
41 #define g_marshal_value_peek_float(v) (v)->data[0].v_float
42 #define g_marshal_value_peek_double(v) (v)->data[0].v_double
43 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
44 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
45 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
46 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
47 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
48 #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
49 #endif /* !G_ENABLE_DEBUG */
50 
51 /* VOID:POINTER,POINTER,OBJECT (./marshallers.list:1) */
52 void
54  GValue *return_value G_GNUC_UNUSED,
55  guint n_param_values,
56  const GValue *param_values,
57  gpointer invocation_hint G_GNUC_UNUSED,
58  gpointer marshal_data)
59 {
60  typedef void (*GMarshalFunc_VOID__POINTER_POINTER_OBJECT) (gpointer data1,
61  gpointer arg1,
62  gpointer arg2,
63  gpointer arg3,
64  gpointer data2);
65  GCClosure *cc = (GCClosure *) closure;
66  gpointer data1, data2;
67  GMarshalFunc_VOID__POINTER_POINTER_OBJECT callback;
68 
69  g_return_if_fail (n_param_values == 4);
70 
71  if (G_CCLOSURE_SWAP_DATA (closure))
72  {
73  data1 = closure->data;
74  data2 = g_value_peek_pointer (param_values + 0);
75  }
76  else
77  {
78  data1 = g_value_peek_pointer (param_values + 0);
79  data2 = closure->data;
80  }
81  callback = (GMarshalFunc_VOID__POINTER_POINTER_OBJECT) (marshal_data ? marshal_data : cc->callback);
82 
83  callback (data1,
84  g_marshal_value_peek_pointer (param_values + 1),
85  g_marshal_value_peek_pointer (param_values + 2),
86  g_marshal_value_peek_object (param_values + 3),
87  data2);
88 }
89 
90 /* BOOLEAN:OBJECT,POINTER,STRING (./marshallers.list:2) */
91 void
93  GValue *return_value,
94  guint n_param_values,
95  const GValue *param_values,
96  gpointer invocation_hint G_GNUC_UNUSED,
97  gpointer marshal_data)
98 {
99  typedef gboolean (*GMarshalFunc_BOOLEAN__OBJECT_POINTER_STRING) (gpointer data1,
100  gpointer arg1,
101  gpointer arg2,
102  gpointer arg3,
103  gpointer data2);
104  GCClosure *cc = (GCClosure *) closure;
105  gpointer data1, data2;
106  GMarshalFunc_BOOLEAN__OBJECT_POINTER_STRING callback;
107  gboolean v_return;
108 
109  g_return_if_fail (return_value != NULL);
110  g_return_if_fail (n_param_values == 4);
111 
112  if (G_CCLOSURE_SWAP_DATA (closure))
113  {
114  data1 = closure->data;
115  data2 = g_value_peek_pointer (param_values + 0);
116  }
117  else
118  {
119  data1 = g_value_peek_pointer (param_values + 0);
120  data2 = closure->data;
121  }
122  callback = (GMarshalFunc_BOOLEAN__OBJECT_POINTER_STRING) (marshal_data ? marshal_data : cc->callback);
123 
124  v_return = callback (data1,
125  g_marshal_value_peek_object (param_values + 1),
126  g_marshal_value_peek_pointer (param_values + 2),
127  g_marshal_value_peek_string (param_values + 3),
128  data2);
129 
130  g_value_set_boolean (return_value, v_return);
131 }
132 
133 /* VOID:STRING,STRING (./marshallers.list:3) */
134 void
136  GValue *return_value G_GNUC_UNUSED,
137  guint n_param_values,
138  const GValue *param_values,
139  gpointer invocation_hint G_GNUC_UNUSED,
140  gpointer marshal_data)
141 {
142  typedef void (*GMarshalFunc_VOID__STRING_STRING) (gpointer data1,
143  gpointer arg1,
144  gpointer arg2,
145  gpointer data2);
146  GCClosure *cc = (GCClosure *) closure;
147  gpointer data1, data2;
148  GMarshalFunc_VOID__STRING_STRING callback;
149 
150  g_return_if_fail (n_param_values == 3);
151 
152  if (G_CCLOSURE_SWAP_DATA (closure))
153  {
154  data1 = closure->data;
155  data2 = g_value_peek_pointer (param_values + 0);
156  }
157  else
158  {
159  data1 = g_value_peek_pointer (param_values + 0);
160  data2 = closure->data;
161  }
162  callback = (GMarshalFunc_VOID__STRING_STRING) (marshal_data ? marshal_data : cc->callback);
163 
164  callback (data1,
165  g_marshal_value_peek_string (param_values + 1),
166  g_marshal_value_peek_string (param_values + 2),
167  data2);
168 }
169 
170 /* VOID:STRING,STRING,DOUBLE (./marshallers.list:4) */
171 void
173  GValue *return_value G_GNUC_UNUSED,
174  guint n_param_values,
175  const GValue *param_values,
176  gpointer invocation_hint G_GNUC_UNUSED,
177  gpointer marshal_data)
178 {
179  typedef void (*GMarshalFunc_VOID__STRING_STRING_DOUBLE) (gpointer data1,
180  gpointer arg1,
181  gpointer arg2,
182  gdouble arg3,
183  gpointer data2);
184  GCClosure *cc = (GCClosure *) closure;
185  gpointer data1, data2;
186  GMarshalFunc_VOID__STRING_STRING_DOUBLE callback;
187 
188  g_return_if_fail (n_param_values == 4);
189 
190  if (G_CCLOSURE_SWAP_DATA (closure))
191  {
192  data1 = closure->data;
193  data2 = g_value_peek_pointer (param_values + 0);
194  }
195  else
196  {
197  data1 = g_value_peek_pointer (param_values + 0);
198  data2 = closure->data;
199  }
200  callback = (GMarshalFunc_VOID__STRING_STRING_DOUBLE) (marshal_data ? marshal_data : cc->callback);
201 
202  callback (data1,
203  g_marshal_value_peek_string (param_values + 1),
204  g_marshal_value_peek_string (param_values + 2),
205  g_marshal_value_peek_double (param_values + 3),
206  data2);
207 }
208 
209 /* VOID:ENUM,STRING,STRING (./marshallers.list:5) */
210 void
212  GValue *return_value G_GNUC_UNUSED,
213  guint n_param_values,
214  const GValue *param_values,
215  gpointer invocation_hint G_GNUC_UNUSED,
216  gpointer marshal_data)
217 {
218  typedef void (*GMarshalFunc_VOID__ENUM_STRING_STRING) (gpointer data1,
219  gint arg1,
220  gpointer arg2,
221  gpointer arg3,
222  gpointer data2);
223  GCClosure *cc = (GCClosure *) closure;
224  gpointer data1, data2;
225  GMarshalFunc_VOID__ENUM_STRING_STRING callback;
226 
227  g_return_if_fail (n_param_values == 4);
228 
229  if (G_CCLOSURE_SWAP_DATA (closure))
230  {
231  data1 = closure->data;
232  data2 = g_value_peek_pointer (param_values + 0);
233  }
234  else
235  {
236  data1 = g_value_peek_pointer (param_values + 0);
237  data2 = closure->data;
238  }
239  callback = (GMarshalFunc_VOID__ENUM_STRING_STRING) (marshal_data ? marshal_data : cc->callback);
240 
241  callback (data1,
242  g_marshal_value_peek_enum (param_values + 1),
243  g_marshal_value_peek_string (param_values + 2),
244  g_marshal_value_peek_string (param_values + 3),
245  data2);
246 }
247 
248 /* VOID:ENUM,STRING,STRING,BOOLEAN (./marshallers.list:6) */
249 void
251  GValue *return_value G_GNUC_UNUSED,
252  guint n_param_values,
253  const GValue *param_values,
254  gpointer invocation_hint G_GNUC_UNUSED,
255  gpointer marshal_data)
256 {
257  typedef void (*GMarshalFunc_VOID__ENUM_STRING_STRING_BOOLEAN) (gpointer data1,
258  gint arg1,
259  gpointer arg2,
260  gpointer arg3,
261  gboolean arg4,
262  gpointer data2);
263  GCClosure *cc = (GCClosure *) closure;
264  gpointer data1, data2;
265  GMarshalFunc_VOID__ENUM_STRING_STRING_BOOLEAN callback;
266 
267  g_return_if_fail (n_param_values == 5);
268 
269  if (G_CCLOSURE_SWAP_DATA (closure))
270  {
271  data1 = closure->data;
272  data2 = g_value_peek_pointer (param_values + 0);
273  }
274  else
275  {
276  data1 = g_value_peek_pointer (param_values + 0);
277  data2 = closure->data;
278  }
279  callback = (GMarshalFunc_VOID__ENUM_STRING_STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
280 
281  callback (data1,
282  g_marshal_value_peek_enum (param_values + 1),
283  g_marshal_value_peek_string (param_values + 2),
284  g_marshal_value_peek_string (param_values + 3),
285  g_marshal_value_peek_boolean (param_values + 4),
286  data2);
287 }
288 
289 /* VOID:FLAGS,FLAGS (./marshallers.list:7) */
290 void
292  GValue *return_value G_GNUC_UNUSED,
293  guint n_param_values,
294  const GValue *param_values,
295  gpointer invocation_hint G_GNUC_UNUSED,
296  gpointer marshal_data)
297 {
298  typedef void (*GMarshalFunc_VOID__FLAGS_FLAGS) (gpointer data1,
299  guint arg1,
300  guint arg2,
301  gpointer data2);
302  GCClosure *cc = (GCClosure *) closure;
303  gpointer data1, data2;
304  GMarshalFunc_VOID__FLAGS_FLAGS callback;
305 
306  g_return_if_fail (n_param_values == 3);
307 
308  if (G_CCLOSURE_SWAP_DATA (closure))
309  {
310  data1 = closure->data;
311  data2 = g_value_peek_pointer (param_values + 0);
312  }
313  else
314  {
315  data1 = g_value_peek_pointer (param_values + 0);
316  data2 = closure->data;
317  }
318  callback = (GMarshalFunc_VOID__FLAGS_FLAGS) (marshal_data ? marshal_data : cc->callback);
319 
320  callback (data1,
321  g_marshal_value_peek_flags (param_values + 1),
322  g_marshal_value_peek_flags (param_values + 2),
323  data2);
324 }
325 
326 /* VOID:STRING,STRING,OBJECT,OBJECT (./marshallers.list:8) */
327 void
329  GValue *return_value G_GNUC_UNUSED,
330  guint n_param_values,
331  const GValue *param_values,
332  gpointer invocation_hint G_GNUC_UNUSED,
333  gpointer marshal_data)
334 {
335  typedef void (*GMarshalFunc_VOID__STRING_STRING_OBJECT_OBJECT) (gpointer data1,
336  gpointer arg1,
337  gpointer arg2,
338  gpointer arg3,
339  gpointer arg4,
340  gpointer data2);
341  GCClosure *cc = (GCClosure *) closure;
342  gpointer data1, data2;
343  GMarshalFunc_VOID__STRING_STRING_OBJECT_OBJECT callback;
344 
345  g_return_if_fail (n_param_values == 5);
346 
347  if (G_CCLOSURE_SWAP_DATA (closure))
348  {
349  data1 = closure->data;
350  data2 = g_value_peek_pointer (param_values + 0);
351  }
352  else
353  {
354  data1 = g_value_peek_pointer (param_values + 0);
355  data2 = closure->data;
356  }
357  callback = (GMarshalFunc_VOID__STRING_STRING_OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
358 
359  callback (data1,
360  g_marshal_value_peek_string (param_values + 1),
361  g_marshal_value_peek_string (param_values + 2),
362  g_marshal_value_peek_object (param_values + 3),
363  g_marshal_value_peek_object (param_values + 4),
364  data2);
365 }
366 
367 /* VOID:POINTER,POINTER,OBJECT,OBJECT (./marshallers.list:9) */
368 void
370  GValue *return_value G_GNUC_UNUSED,
371  guint n_param_values,
372  const GValue *param_values,
373  gpointer invocation_hint G_GNUC_UNUSED,
374  gpointer marshal_data)
375 {
376  typedef void (*GMarshalFunc_VOID__POINTER_POINTER_OBJECT_OBJECT) (gpointer data1,
377  gpointer arg1,
378  gpointer arg2,
379  gpointer arg3,
380  gpointer arg4,
381  gpointer data2);
382  GCClosure *cc = (GCClosure *) closure;
383  gpointer data1, data2;
384  GMarshalFunc_VOID__POINTER_POINTER_OBJECT_OBJECT callback;
385 
386  g_return_if_fail (n_param_values == 5);
387 
388  if (G_CCLOSURE_SWAP_DATA (closure))
389  {
390  data1 = closure->data;
391  data2 = g_value_peek_pointer (param_values + 0);
392  }
393  else
394  {
395  data1 = g_value_peek_pointer (param_values + 0);
396  data2 = closure->data;
397  }
398  callback = (GMarshalFunc_VOID__POINTER_POINTER_OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback);
399 
400  callback (data1,
401  g_marshal_value_peek_pointer (param_values + 1),
402  g_marshal_value_peek_pointer (param_values + 2),
403  g_marshal_value_peek_object (param_values + 3),
404  g_marshal_value_peek_object (param_values + 4),
405  data2);
406 }
407 
purple_smarshal_VOID__ENUM_STRING_STRING_BOOLEAN
void purple_smarshal_VOID__ENUM_STRING_STRING_BOOLEAN(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)
Definition: marshallers.c:250
purple_smarshal_VOID__STRING_STRING_OBJECT_OBJECT
void purple_smarshal_VOID__STRING_STRING_OBJECT_OBJECT(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)
Definition: marshallers.c:328
g_marshal_value_peek_pointer
#define g_marshal_value_peek_pointer(v)
Definition: marshallers.c:46
marshallers.h
purple_smarshal_BOOLEAN__OBJECT_POINTER_STRING
void purple_smarshal_BOOLEAN__OBJECT_POINTER_STRING(GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data)
Definition: marshallers.c:92
purple_smarshal_VOID__POINTER_POINTER_OBJECT
void purple_smarshal_VOID__POINTER_POINTER_OBJECT(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)
Definition: marshallers.c:53
g_marshal_value_peek_string
#define g_marshal_value_peek_string(v)
Definition: marshallers.c:43
NULL
#define NULL
Definition: getopt1.c:52
purple_smarshal_VOID__POINTER_POINTER_OBJECT_OBJECT
void purple_smarshal_VOID__POINTER_POINTER_OBJECT_OBJECT(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)
Definition: marshallers.c:369
g_marshal_value_peek_flags
#define g_marshal_value_peek_flags(v)
Definition: marshallers.c:40
g_marshal_value_peek_double
#define g_marshal_value_peek_double(v)
Definition: marshallers.c:42
purple_smarshal_VOID__FLAGS_FLAGS
void purple_smarshal_VOID__FLAGS_FLAGS(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)
Definition: marshallers.c:291
purple_smarshal_VOID__STRING_STRING
void purple_smarshal_VOID__STRING_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)
Definition: marshallers.c:135
g_marshal_value_peek_enum
#define g_marshal_value_peek_enum(v)
Definition: marshallers.c:39
purple_smarshal_VOID__STRING_STRING_DOUBLE
void purple_smarshal_VOID__STRING_STRING_DOUBLE(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)
Definition: marshallers.c:172
g_marshal_value_peek_object
#define g_marshal_value_peek_object(v)
Definition: marshallers.c:47
purple_smarshal_VOID__ENUM_STRING_STRING
void purple_smarshal_VOID__ENUM_STRING_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)
Definition: marshallers.c:211
g_marshal_value_peek_boolean
#define g_marshal_value_peek_boolean(v)
Definition: marshallers.c:30