Back to index

libindicate  12.10.0
indicate-marshal.c
Go to the documentation of this file.
00001 #include "indicate-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 (./indicate-marshal.list:29) */
00054 void
00055 _indicate_marshal_VOID__UINT_STRING (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) (gpointer     data1,
00063                                                   guint        arg_1,
00064                                                   gpointer     arg_2,
00065                                                   gpointer     data2);
00066   register GMarshalFunc_VOID__UINT_STRING callback;
00067   register GCClosure *cc = (GCClosure*) closure;
00068   register gpointer data1, data2;
00069 
00070   g_return_if_fail (n_param_values == 3);
00071 
00072   if (G_CCLOSURE_SWAP_DATA (closure))
00073     {
00074       data1 = closure->data;
00075       data2 = g_value_peek_pointer (param_values + 0);
00076     }
00077   else
00078     {
00079       data1 = g_value_peek_pointer (param_values + 0);
00080       data2 = closure->data;
00081     }
00082   callback = (GMarshalFunc_VOID__UINT_STRING) (marshal_data ? marshal_data : cc->callback);
00083 
00084   callback (data1,
00085             g_marshal_value_peek_uint (param_values + 1),
00086             g_marshal_value_peek_string (param_values + 2),
00087             data2);
00088 }
00089 
00090 /* VOID:POINTER,POINTER (./indicate-marshal.list:31) */
00091 void
00092 _indicate_marshal_VOID__POINTER_POINTER (GClosure     *closure,
00093                                          GValue       *return_value G_GNUC_UNUSED,
00094                                          guint         n_param_values,
00095                                          const GValue *param_values,
00096                                          gpointer      invocation_hint G_GNUC_UNUSED,
00097                                          gpointer      marshal_data)
00098 {
00099   typedef void (*GMarshalFunc_VOID__POINTER_POINTER) (gpointer     data1,
00100                                                       gpointer     arg_1,
00101                                                       gpointer     arg_2,
00102                                                       gpointer     data2);
00103   register GMarshalFunc_VOID__POINTER_POINTER callback;
00104   register GCClosure *cc = (GCClosure*) closure;
00105   register gpointer data1, data2;
00106 
00107   g_return_if_fail (n_param_values == 3);
00108 
00109   if (G_CCLOSURE_SWAP_DATA (closure))
00110     {
00111       data1 = closure->data;
00112       data2 = g_value_peek_pointer (param_values + 0);
00113     }
00114   else
00115     {
00116       data1 = g_value_peek_pointer (param_values + 0);
00117       data2 = closure->data;
00118     }
00119   callback = (GMarshalFunc_VOID__POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
00120 
00121   callback (data1,
00122             g_marshal_value_peek_pointer (param_values + 1),
00123             g_marshal_value_peek_pointer (param_values + 2),
00124             data2);
00125 }
00126 
00127 /* VOID:POINTER,POINTER,STRING (./indicate-marshal.list:33) */
00128 void
00129 _indicate_marshal_VOID__POINTER_POINTER_STRING (GClosure     *closure,
00130                                                 GValue       *return_value G_GNUC_UNUSED,
00131                                                 guint         n_param_values,
00132                                                 const GValue *param_values,
00133                                                 gpointer      invocation_hint G_GNUC_UNUSED,
00134                                                 gpointer      marshal_data)
00135 {
00136   typedef void (*GMarshalFunc_VOID__POINTER_POINTER_STRING) (gpointer     data1,
00137                                                              gpointer     arg_1,
00138                                                              gpointer     arg_2,
00139                                                              gpointer     arg_3,
00140                                                              gpointer     data2);
00141   register GMarshalFunc_VOID__POINTER_POINTER_STRING callback;
00142   register GCClosure *cc = (GCClosure*) closure;
00143   register gpointer data1, data2;
00144 
00145   g_return_if_fail (n_param_values == 4);
00146 
00147   if (G_CCLOSURE_SWAP_DATA (closure))
00148     {
00149       data1 = closure->data;
00150       data2 = g_value_peek_pointer (param_values + 0);
00151     }
00152   else
00153     {
00154       data1 = g_value_peek_pointer (param_values + 0);
00155       data2 = closure->data;
00156     }
00157   callback = (GMarshalFunc_VOID__POINTER_POINTER_STRING) (marshal_data ? marshal_data : cc->callback);
00158 
00159   callback (data1,
00160             g_marshal_value_peek_pointer (param_values + 1),
00161             g_marshal_value_peek_pointer (param_values + 2),
00162             g_marshal_value_peek_string (param_values + 3),
00163             data2);
00164 }
00165 
00166 /* VOID:POINTER,STRING (./indicate-marshal.list:35) */
00167 void
00168 _indicate_marshal_VOID__POINTER_STRING (GClosure     *closure,
00169                                         GValue       *return_value G_GNUC_UNUSED,
00170                                         guint         n_param_values,
00171                                         const GValue *param_values,
00172                                         gpointer      invocation_hint G_GNUC_UNUSED,
00173                                         gpointer      marshal_data)
00174 {
00175   typedef void (*GMarshalFunc_VOID__POINTER_STRING) (gpointer     data1,
00176                                                      gpointer     arg_1,
00177                                                      gpointer     arg_2,
00178                                                      gpointer     data2);
00179   register GMarshalFunc_VOID__POINTER_STRING callback;
00180   register GCClosure *cc = (GCClosure*) closure;
00181   register gpointer data1, data2;
00182 
00183   g_return_if_fail (n_param_values == 3);
00184 
00185   if (G_CCLOSURE_SWAP_DATA (closure))
00186     {
00187       data1 = closure->data;
00188       data2 = g_value_peek_pointer (param_values + 0);
00189     }
00190   else
00191     {
00192       data1 = g_value_peek_pointer (param_values + 0);
00193       data2 = closure->data;
00194     }
00195   callback = (GMarshalFunc_VOID__POINTER_STRING) (marshal_data ? marshal_data : cc->callback);
00196 
00197   callback (data1,
00198             g_marshal_value_peek_pointer (param_values + 1),
00199             g_marshal_value_peek_string (param_values + 2),
00200             data2);
00201 }
00202 
00203 /* VOID:POINTER,UINT (./indicate-marshal.list:37) */
00204 void
00205 _indicate_marshal_VOID__POINTER_UINT (GClosure     *closure,
00206                                       GValue       *return_value G_GNUC_UNUSED,
00207                                       guint         n_param_values,
00208                                       const GValue *param_values,
00209                                       gpointer      invocation_hint G_GNUC_UNUSED,
00210                                       gpointer      marshal_data)
00211 {
00212   typedef void (*GMarshalFunc_VOID__POINTER_UINT) (gpointer     data1,
00213                                                    gpointer     arg_1,
00214                                                    guint        arg_2,
00215                                                    gpointer     data2);
00216   register GMarshalFunc_VOID__POINTER_UINT callback;
00217   register GCClosure *cc = (GCClosure*) closure;
00218   register gpointer data1, data2;
00219 
00220   g_return_if_fail (n_param_values == 3);
00221 
00222   if (G_CCLOSURE_SWAP_DATA (closure))
00223     {
00224       data1 = closure->data;
00225       data2 = g_value_peek_pointer (param_values + 0);
00226     }
00227   else
00228     {
00229       data1 = g_value_peek_pointer (param_values + 0);
00230       data2 = closure->data;
00231     }
00232   callback = (GMarshalFunc_VOID__POINTER_UINT) (marshal_data ? marshal_data : cc->callback);
00233 
00234   callback (data1,
00235             g_marshal_value_peek_pointer (param_values + 1),
00236             g_marshal_value_peek_uint (param_values + 2),
00237             data2);
00238 }
00239 
00240 /* VOID:UINT (./indicate-marshal.list:39) */
00241