1 /* |
|
2 * gabble-roomlist-channel-signals-marshal.c - Source for Gabble service discovery |
|
3 * |
|
4 * Copyright (C) 2006 Collabora Ltd. |
|
5 * |
|
6 * |
|
7 * This library is free software; you can redistribute it and/or |
|
8 * modify it under the terms of the GNU Lesser General Public |
|
9 * License as published by the Free Software Foundation; either |
|
10 * version 2.1 of the License, or (at your option) any later version. |
|
11 * |
|
12 * This library is distributed in the hope that it will be useful, |
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
15 * Lesser General Public License for more details. |
|
16 * |
|
17 * You should have received a copy of the GNU Lesser General Public |
|
18 * License along with this library; if not, write to the Free Software |
|
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
20 * |
|
21 * -- LET'S DISCO!!! \o/ \o_ _o/ /\o/\ _/o/- -\o\_ -- |
|
22 */ |
|
23 #include <glib-object.h> |
|
24 |
|
25 |
|
26 #ifdef G_ENABLE_DEBUG |
|
27 #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) |
|
28 #define g_marshal_value_peek_char(v) g_value_get_char (v) |
|
29 #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) |
|
30 #define g_marshal_value_peek_int(v) g_value_get_int (v) |
|
31 #define g_marshal_value_peek_uint(v) g_value_get_uint (v) |
|
32 #define g_marshal_value_peek_long(v) g_value_get_long (v) |
|
33 #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) |
|
34 #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) |
|
35 #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) |
|
36 #define g_marshal_value_peek_enum(v) g_value_get_enum (v) |
|
37 #define g_marshal_value_peek_flags(v) g_value_get_flags (v) |
|
38 #define g_marshal_value_peek_float(v) g_value_get_float (v) |
|
39 #define g_marshal_value_peek_double(v) g_value_get_double (v) |
|
40 #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) |
|
41 #define g_marshal_value_peek_param(v) g_value_get_param (v) |
|
42 #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) |
|
43 #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) |
|
44 #define g_marshal_value_peek_object(v) g_value_get_object (v) |
|
45 #else /* !G_ENABLE_DEBUG */ |
|
46 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. |
|
47 * Do not access GValues directly in your code. Instead, use the |
|
48 * g_value_get_*() functions |
|
49 */ |
|
50 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int |
|
51 #define g_marshal_value_peek_char(v) (v)->data[0].v_int |
|
52 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint |
|
53 #define g_marshal_value_peek_int(v) (v)->data[0].v_int |
|
54 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint |
|
55 #define g_marshal_value_peek_long(v) (v)->data[0].v_long |
|
56 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong |
|
57 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 |
|
58 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 |
|
59 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long |
|
60 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong |
|
61 #define g_marshal_value_peek_float(v) (v)->data[0].v_float |
|
62 #define g_marshal_value_peek_double(v) (v)->data[0].v_double |
|
63 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer |
|
64 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer |
|
65 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer |
|
66 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer |
|
67 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer |
|
68 #endif /* !G_ENABLE_DEBUG */ |
|
69 |
|
70 |
|