Back to index

libindicator  12.10.0
indicator-object-marshal.c
Go to the documentation of this file.
00001 #include "indicator-object-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:POINTER,UINT,UINT (./indicator-object-marshal.list:1) */
00054 void
00055 _indicator_object_marshal_VOID__POINTER_UINT_UINT (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__POINTER_UINT_UINT) (gpointer     data1,
00063                                                         gpointer     arg_1,
00064                                                         guint        arg_2,
00065                                                         guint        arg_3,
00066                                                         gpointer     data2);
00067   register GMarshalFunc_VOID__POINTER_UINT_UINT 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__POINTER_UINT_UINT) (marshal_data ? marshal_data : cc->callback);
00084 
00085   callback (data1,
00086             g_marshal_value_peek_pointer (param_values + 1),
00087             g_marshal_value_peek_uint (param_values + 2),
00088             g_marshal_value_peek_uint (param_values + 3),
00089             data2);
00090 }
00091 
00092 /* VOID:POINTER,UINT,ENUM (./indicator-object-marshal.list:2) */
00093 void
00094 _indicator_object_marshal_VOID__POINTER_UINT_ENUM (GClosure     *closure,
00095                                                    GValue       *return_value G_GNUC_UNUSED,
00096                                                    guint         n_param_values,
00097                                                    const GValue *param_values,
00098                                                    gpointer      invocation_hint G_GNUC_UNUSED,
00099                                                    gpointer      marshal_data)
00100 {
00101   typedef void (*GMarshalFunc_VOID__POINTER_UINT_ENUM) (gpointer     data1,
00102                                                         gpointer     arg_1,
00103                                                         guint        arg_2,
00104                                                         gint         arg_3,
00105                                                         gpointer     data2);
00106   register GMarshalFunc_VOID__POINTER_UINT_ENUM callback;
00107   register GCClosure *cc = (GCClosure*) closure;
00108   register gpointer data1, data2;
00109 
00110   g_return_if_fail (n_param_values == 4);
00111 
00112   if (G_CCLOSURE_SWAP_DATA (closure))
00113     {
00114       data1 = closure->data;
00115       data2 = g_value_peek_pointer (param_values + 0);
00116     }
00117   else
00118     {
00119       data1 = g_value_peek_pointer (param_values + 0);
00120       data2 = closure->data;
00121     }
00122   callback = (GMarshalFunc_VOID__POINTER_UINT_ENUM) (marshal_data ? marshal_data : cc->callback);
00123 
00124   callback (data1,
00125             g_marshal_value_peek_pointer (param_values + 1),
00126             g_marshal_value_peek_uint (param_values + 2),
00127             g_marshal_value_peek_enum (param_values + 3),
00128             data2);
00129 }
00130 
00131 /* VOID:POINTER,UINT (./indicator-object-marshal.list:3) */
00132 void
00133 _indicator_object_marshal_VOID__POINTER_UINT (GClosure     *closure,
00134                                               GValue       *return_value G_GNUC_UNUSED,
00135                                               guint         n_param_values,
00136                                               const GValue *param_values,
00137                                               gpointer      invocation_hint G_GNUC_UNUSED,
00138                                               gpointer      marshal_data)
00139 {
00140   typedef void (*GMarshalFunc_VOID__POINTER_UINT) (gpointer     data1,
00141                                                    gpointer     arg_1,
00142                                                    guint        arg_2,
00143                                                    gpointer     data2);
00144   register GMarshalFunc_VOID__POINTER_UINT callback;
00145   register GCClosure *cc = (GCClosure*) closure;
00146   register gpointer data1, data2;
00147 
00148   g_return_if_fail (n_param_values == 3);
00149 
00150   if (G_CCLOSURE_SWAP_DATA (closure))
00151     {
00152       data1 = closure->data;
00153       data2 = g_value_peek_pointer (param_values + 0);
00154     }
00155   else
00156     {
00157       data1 = g_value_peek_pointer (param_values + 0);
00158       data2 = closure->data;
00159     }
00160   callback = (GMarshalFunc_VOID__POINTER_UINT) (marshal_data ? marshal_data : cc->callback);
00161 
00162   callback (data1,
00163             g_marshal_value_peek_pointer (param_values + 1),
00164             g_marshal_value_peek_uint (param_values + 2),
00165             data2);
00166 }
00167 
00168 /* VOID:POINTER,BOOLEAN (./indicator-object-marshal.list:4) */
00169 void
00170 _indicator_object_marshal_VOID__POINTER_BOOLEAN (GClosure     *closure,
00171                                                  GValue       *return_value G_GNUC_UNUSED,
00172                                                  guint         n_param_values,
00173                                                  const GValue *param_values,
00174                                                  gpointer      invocation_hint G_GNUC_UNUSED,
00175                                                  gpointer      marshal_data)
00176 {
00177   typedef void (*GMarshalFunc_VOID__POINTER_BOOLEAN) (gpointer     data1,
00178                                                       gpointer     arg_1,
00179                                                       gboolean     arg_2,
00180                                                       gpointer     data2);
00181   register GMarshalFunc_VOID__POINTER_BOOLEAN callback;
00182   register GCClosure *cc = (GCClosure*) closure;
00183   register gpointer data1, data2;
00184 
00185   g_return_if_fail (n_param_values == 3);
00186 
00187   if (G_CCLOSURE_SWAP_DATA (closure))
00188     {
00189       data1 = closure->data;
00190       data2 = g_value_peek_pointer (param_values + 0);
00191     }
00192   else
00193     {
00194       data1 = g_value_peek_pointer (param_values + 0);
00195       data2 = closure->data;
00196     }
00197   callback = (GMarshalFunc_VOID__POINTER_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
00198 
00199   callback (data1,
00200             g_marshal_value_peek_pointer (param_values + 1),
00201             g_marshal_value_peek_boolean (param_values + 2),
00202             data2);
00203 }
00204