Back to index

indicator-appmenu  12.10.0
indicator-appmenu-marshal.c
Go to the documentation of this file.
00001 #include "indicator-appmenu-marshal.h"
00002 
00003 #include      <glib-object.h>
00004 
00005 
00006 #ifdef G_ENABLE_DEBUG
00007 #define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
00008 #define g_marshal_value_peek_char(v)     g_value_get_schar (v)
00009 #define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
00010 #define g_marshal_value_peek_int(v)      g_value_get_int (v)
00011 #define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
00012 #define g_marshal_value_peek_long(v)     g_value_get_long (v)
00013 #define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
00014 #define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
00015 #define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
00016 #define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
00017 #define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
00018 #define g_marshal_value_peek_float(v)    g_value_get_float (v)
00019 #define g_marshal_value_peek_double(v)   g_value_get_double (v)
00020 #define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
00021 #define g_marshal_value_peek_param(v)    g_value_get_param (v)
00022 #define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
00023 #define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
00024 #define g_marshal_value_peek_object(v)   g_value_get_object (v)
00025 #define g_marshal_value_peek_variant(v)  g_value_get_variant (v)
00026 #else /* !G_ENABLE_DEBUG */
00027 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
00028  *          Do not access GValues directly in your code. Instead, use the
00029  *          g_value_get_*() functions
00030  */
00031 #define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
00032 #define g_marshal_value_peek_char(v)     (v)->data[0].v_int
00033 #define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
00034 #define g_marshal_value_peek_int(v)      (v)->data[0].v_int
00035 #define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
00036 #define g_marshal_value_peek_long(v)     (v)->data[0].v_long
00037 #define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
00038 #define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
00039 #define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
00040 #define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
00041 #define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
00042 #define g_marshal_value_peek_float(v)    (v)->data[0].v_float
00043 #define g_marshal_value_peek_double(v)   (v)->data[0].v_double
00044 #define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
00045 #define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
00046 #define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
00047 #define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
00048 #define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
00049 #define g_marshal_value_peek_variant(v)  (v)->data[0].v_pointer
00050 #endif /* !G_ENABLE_DEBUG */
00051 
00052 
00053 /* VOID:UINT,STRING,BOXED (./indicator-appmenu-marshal.list:1) */
00054 void
00055 _indicator_appmenu_marshal_VOID__UINT_STRING_BOXED (GClosure     *closure,
00056                                                     GValue       *return_value G_GNUC_UNUSED,
00057                                                     guint         n_param_values,
00058                                                     const GValue *param_values,
00059                                                     gpointer      invocation_hint G_GNUC_UNUSED,
00060                                                     gpointer      marshal_data)
00061 {
00062   typedef void (*GMarshalFunc_VOID__UINT_STRING_BOXED) (gpointer     data1,
00063                                                         guint        arg_1,
00064                                                         gpointer     arg_2,
00065                                                         gpointer     arg_3,
00066                                                         gpointer     data2);
00067   register GMarshalFunc_VOID__UINT_STRING_BOXED callback;
00068   register GCClosure *cc = (GCClosure*) closure;
00069   register gpointer data1, data2;
00070 
00071   g_return_if_fail (n_param_values == 4);
00072 
00073   if (G_CCLOSURE_SWAP_DATA (closure))
00074     {
00075       data1 = closure->data;
00076       data2 = g_value_peek_pointer (param_values + 0);
00077     }
00078   else
00079     {
00080       data1 = g_value_peek_pointer (param_values + 0);
00081       data2 = closure->data;
00082     }
00083   callback = (GMarshalFunc_VOID__UINT_STRING_BOXED) (marshal_data ? marshal_data : cc->callback);
00084 
00085   callback (data1,
00086             g_marshal_value_peek_uint (param_values + 1),
00087             g_marshal_value_peek_string (param_values + 2),
00088             g_marshal_value_peek_boxed (param_values + 3),
00089             data2);
00090 }
00091 
00092 /* VOID:UINT (./indicator-appmenu-marshal.list:2) */
00093 
00094 /* VOID:POINTER,UINT (./indicator-appmenu-marshal.list:3) */
00095 void
00096 _indicator_appmenu_marshal_VOID__POINTER_UINT (GClosure     *closure,
00097                                                GValue       *return_value G_GNUC_UNUSED,
00098                                                guint         n_param_values,
00099                                                const GValue *param_values,
00100                                                gpointer      invocation_hint G_GNUC_UNUSED,
00101                                                gpointer      marshal_data)
00102 {
00103   typedef void (*GMarshalFunc_VOID__POINTER_UINT) (gpointer     data1,
00104                                                    gpointer     arg_1,
00105                                                    guint        arg_2,
00106                                                    gpointer     data2);
00107   register GMarshalFunc_VOID__POINTER_UINT callback;
00108   register GCClosure *cc = (GCClosure*) closure;
00109   register gpointer data1, data2;
00110 
00111   g_return_if_fail (n_param_values == 3);
00112 
00113   if (G_CCLOSURE_SWAP_DATA (closure))
00114     {
00115       data1 = closure->data;
00116       data2 = g_value_peek_pointer (param_values + 0);
00117     }
00118   else
00119     {
00120       data1 = g_value_peek_pointer (param_values + 0);
00121       data2 = closure->data;
00122     }
00123   callback = (GMarshalFunc_VOID__POINTER_UINT) (marshal_data ? marshal_data : cc->callback);
00124 
00125   callback (data1,
00126             g_marshal_value_peek_pointer (param_values + 1),
00127             g_marshal_value_peek_uint (param_values + 2),
00128             data2);
00129 }
00130 
00131 /* VOID:POINTER (./indicator-appmenu-marshal.list:4) */
00132