Back to index

lightning-sunbird  0.9+nobinonly
gtkmozembedmarshal.c
Go to the documentation of this file.
00001 
00002 #include      <glib-object.h>
00003 
00004 
00005 #ifdef G_ENABLE_DEBUG
00006 #define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
00007 #define g_marshal_value_peek_char(v)     g_value_get_char (v)
00008 #define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
00009 #define g_marshal_value_peek_int(v)      g_value_get_int (v)
00010 #define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
00011 #define g_marshal_value_peek_long(v)     g_value_get_long (v)
00012 #define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
00013 #define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
00014 #define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
00015 #define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
00016 #define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
00017 #define g_marshal_value_peek_float(v)    g_value_get_float (v)
00018 #define g_marshal_value_peek_double(v)   g_value_get_double (v)
00019 #define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
00020 #define g_marshal_value_peek_param(v)    g_value_get_param (v)
00021 #define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
00022 #define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
00023 #define g_marshal_value_peek_object(v)   g_value_get_object (v)
00024 #else /* !G_ENABLE_DEBUG */
00025 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
00026  *          Do not access GValues directly in your code. Instead, use the
00027  *          g_value_get_*() functions
00028  */
00029 #define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
00030 #define g_marshal_value_peek_char(v)     (v)->data[0].v_int
00031 #define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
00032 #define g_marshal_value_peek_int(v)      (v)->data[0].v_int
00033 #define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
00034 #define g_marshal_value_peek_long(v)     (v)->data[0].v_long
00035 #define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
00036 #define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
00037 #define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
00038 #define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
00039 #define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
00040 #define g_marshal_value_peek_float(v)    (v)->data[0].v_float
00041 #define g_marshal_value_peek_double(v)   (v)->data[0].v_double
00042 #define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
00043 #define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
00044 #define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
00045 #define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
00046 #define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
00047 #endif /* !G_ENABLE_DEBUG */
00048 
00049 
00050 /* BOOL:STRING (types.txt:1) */
00051 void
00052 gtkmozembed_BOOLEAN__STRING (GClosure     *closure,
00053                              GValue       *return_value,
00054                              guint         n_param_values,
00055                              const GValue *param_values,
00056                              gpointer      invocation_hint,
00057                              gpointer      marshal_data)
00058 {
00059   typedef gboolean (*GMarshalFunc_BOOLEAN__STRING) (gpointer     data1,
00060                                                     gpointer     arg_1,
00061                                                     gpointer     data2);
00062   register GMarshalFunc_BOOLEAN__STRING callback;
00063   register GCClosure *cc = (GCClosure*) closure;
00064   register gpointer data1, data2;
00065   gboolean v_return;
00066 
00067   g_return_if_fail (return_value != NULL);
00068   g_return_if_fail (n_param_values == 2);
00069 
00070   if (G_CCLOSURE_SWAP_DATA (closure))
00071     {
00072       data1 = closure->data;
00073       data2 = g_value_peek_pointer (param_values + 0);
00074     }
00075   else
00076     {
00077       data1 = g_value_peek_pointer (param_values + 0);
00078       data2 = closure->data;
00079     }
00080   callback = (GMarshalFunc_BOOLEAN__STRING) (marshal_data ? marshal_data : cc->callback);
00081 
00082   v_return = callback (data1,
00083                        g_marshal_value_peek_string (param_values + 1),
00084                        data2);
00085 
00086   g_value_set_boolean (return_value, v_return);
00087 }
00088 
00089 /* VOID:STRING,INT,INT (types.txt:2) */
00090 void
00091 gtkmozembed_VOID__STRING_INT_INT (GClosure     *closure,
00092                                   GValue       *return_value,
00093                                   guint         n_param_values,
00094                                   const GValue *param_values,
00095                                   gpointer      invocation_hint,
00096                                   gpointer      marshal_data)
00097 {
00098   typedef void (*GMarshalFunc_VOID__STRING_INT_INT) (gpointer     data1,
00099                                                      gpointer     arg_1,
00100                                                      gint         arg_2,
00101                                                      gint         arg_3,
00102                                                      gpointer     data2);
00103   register GMarshalFunc_VOID__STRING_INT_INT callback;
00104   register GCClosure *cc = (GCClosure*) closure;
00105   register gpointer data1, data2;
00106 
00107   g_return_if_fail (n_param_values == 4);
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__STRING_INT_INT) (marshal_data ? marshal_data : cc->callback);
00120 
00121   callback (data1,
00122             g_marshal_value_peek_string (param_values + 1),
00123             g_marshal_value_peek_int (param_values + 2),
00124             g_marshal_value_peek_int (param_values + 3),
00125             data2);
00126 }
00127 
00128 /* VOID:INT,UINT (types.txt:3) */
00129 void
00130 gtkmozembed_VOID__INT_UINT (GClosure     *closure,
00131                             GValue       *return_value,
00132                             guint         n_param_values,
00133                             const GValue *param_values,
00134                             gpointer      invocation_hint,
00135                             gpointer      marshal_data)
00136 {
00137   typedef void (*GMarshalFunc_VOID__INT_UINT) (gpointer     data1,
00138                                                gint         arg_1,
00139                                                guint        arg_2,
00140                                                gpointer     data2);
00141   register GMarshalFunc_VOID__INT_UINT callback;
00142   register GCClosure *cc = (GCClosure*) closure;
00143   register gpointer data1, data2;
00144 
00145   g_return_if_fail (n_param_values == 3);
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__INT_UINT) (marshal_data ? marshal_data : cc->callback);
00158 
00159   callback (data1,
00160             g_marshal_value_peek_int (param_values + 1),
00161             g_marshal_value_peek_uint (param_values + 2),
00162             data2);
00163 }
00164 
00165 /* VOID:STRING,INT,UINT (types.txt:4) */
00166 void
00167 gtkmozembed_VOID__STRING_INT_UINT (GClosure     *closure,
00168                                    GValue       *return_value,
00169                                    guint         n_param_values,
00170                                    const GValue *param_values,
00171                                    gpointer      invocation_hint,
00172                                    gpointer      marshal_data)
00173 {
00174   typedef void (*GMarshalFunc_VOID__STRING_INT_UINT) (gpointer     data1,
00175                                                       gpointer     arg_1,
00176                                                       gint         arg_2,
00177                                                       guint        arg_3,
00178                                                       gpointer     data2);
00179   register GMarshalFunc_VOID__STRING_INT_UINT callback;
00180   register GCClosure *cc = (GCClosure*) closure;
00181   register gpointer data1, data2;
00182 
00183   g_return_if_fail (n_param_values == 4);
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__STRING_INT_UINT) (marshal_data ? marshal_data : cc->callback);
00196 
00197   callback (data1,
00198             g_marshal_value_peek_string (param_values + 1),
00199             g_marshal_value_peek_int (param_values + 2),
00200             g_marshal_value_peek_uint (param_values + 3),
00201             data2);
00202 }
00203 
00204 /* VOID:POINTER,INT,POINTER (types.txt:5) */
00205 void
00206 gtkmozembed_VOID__POINTER_INT_POINTER (GClosure     *closure,
00207                                        GValue       *return_value,
00208                                        guint         n_param_values,
00209                                        const GValue *param_values,
00210                                        gpointer      invocation_hint,
00211                                        gpointer      marshal_data)
00212 {
00213   typedef void (*GMarshalFunc_VOID__POINTER_INT_POINTER) (gpointer     data1,
00214                                                           gpointer     arg_1,
00215                                                           gint         arg_2,
00216                                                           gpointer     arg_3,
00217                                                           gpointer     data2);
00218   register GMarshalFunc_VOID__POINTER_INT_POINTER callback;
00219   register GCClosure *cc = (GCClosure*) closure;
00220   register gpointer data1, data2;
00221 
00222   g_return_if_fail (n_param_values == 4);
00223 
00224   if (G_CCLOSURE_SWAP_DATA (closure))
00225     {
00226       data1 = closure->data;
00227       data2 = g_value_peek_pointer (param_values + 0);
00228     }
00229   else
00230     {
00231       data1 = g_value_peek_pointer (param_values + 0);
00232       data2 = closure->data;
00233     }
00234   callback = (GMarshalFunc_VOID__POINTER_INT_POINTER) (marshal_data ? marshal_data : cc->callback);
00235 
00236   callback (data1,
00237             g_marshal_value_peek_pointer (param_values + 1),
00238             g_marshal_value_peek_int (param_values + 2),
00239             g_marshal_value_peek_pointer (param_values + 3),
00240             data2);
00241 }
00242