Back to index

libappindicator  12.10.0
application-service-marshal.c
Go to the documentation of this file.
00001 #include "application-service-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:STRING,INT,STRING,STRING,STRING,STRING,STRING (./application-service-marshal.list:19) */
00054 void
00055 _application_service_marshal_VOID__STRING_INT_STRING_STRING_STRING_STRING_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__STRING_INT_STRING_STRING_STRING_STRING_STRING) (gpointer     data1,
00063                                                                                     gpointer     arg_1,
00064                                                                                     gint         arg_2,
00065                                                                                     gpointer     arg_3,
00066                                                                                     gpointer     arg_4,
00067                                                                                     gpointer     arg_5,
00068                                                                                     gpointer     arg_6,
00069                                                                                     gpointer     arg_7,
00070                                                                                     gpointer     data2);
00071   register GMarshalFunc_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING callback;
00072   register GCClosure *cc = (GCClosure*) closure;
00073   register gpointer data1, data2;
00074 
00075   g_return_if_fail (n_param_values == 8);
00076 
00077   if (G_CCLOSURE_SWAP_DATA (closure))
00078     {
00079       data1 = closure->data;
00080       data2 = g_value_peek_pointer (param_values + 0);
00081     }
00082   else
00083     {
00084       data1 = g_value_peek_pointer (param_values + 0);
00085       data2 = closure->data;
00086     }
00087   callback = (GMarshalFunc_VOID__STRING_INT_STRING_STRING_STRING_STRING_STRING) (marshal_data ? marshal_data : cc->callback);
00088 
00089   callback (data1,
00090             g_marshal_value_peek_string (param_values + 1),
00091             g_marshal_value_peek_int (param_values + 2),
00092             g_marshal_value_peek_string (param_values + 3),
00093             g_marshal_value_peek_string (param_values + 4),
00094             g_marshal_value_peek_string (param_values + 5),
00095             g_marshal_value_peek_string (param_values + 6),
00096             g_marshal_value_peek_string (param_values + 7),
00097             data2);
00098 }
00099 
00100 /* VOID:INT,STRING,STRING (./application-service-marshal.list:20) */
00101 void
00102 _application_service_marshal_VOID__INT_STRING_STRING (GClosure     *closure,
00103                                                       GValue       *return_value G_GNUC_UNUSED,
00104                                                       guint         n_param_values,
00105                                                       const GValue *param_values,
00106                                                       gpointer      invocation_hint G_GNUC_UNUSED,
00107                                                       gpointer      marshal_data)
00108 {
00109   typedef void (*GMarshalFunc_VOID__INT_STRING_STRING) (gpointer     data1,
00110                                                         gint         arg_1,
00111                                                         gpointer     arg_2,
00112                                                         gpointer     arg_3,
00113                                                         gpointer     data2);
00114   register GMarshalFunc_VOID__INT_STRING_STRING callback;
00115   register GCClosure *cc = (GCClosure*) closure;
00116   register gpointer data1, data2;
00117 
00118   g_return_if_fail (n_param_values == 4);
00119 
00120   if (G_CCLOSURE_SWAP_DATA (closure))
00121     {
00122       data1 = closure->data;
00123       data2 = g_value_peek_pointer (param_values + 0);
00124     }
00125   else
00126     {
00127       data1 = g_value_peek_pointer (param_values + 0);
00128       data2 = closure->data;
00129     }
00130   callback = (GMarshalFunc_VOID__INT_STRING_STRING) (marshal_data ? marshal_data : cc->callback);
00131 
00132   callback (data1,
00133             g_marshal_value_peek_int (param_values + 1),
00134             g_marshal_value_peek_string (param_values + 2),
00135             g_marshal_value_peek_string (param_values + 3),
00136             data2);
00137 }
00138 
00139 /* VOID:INT,STRING (./application-service-marshal.list:21) */
00140 void
00141 _application_service_marshal_VOID__INT_STRING (GClosure     *closure,
00142                                                GValue       *return_value G_GNUC_UNUSED,
00143                                                guint         n_param_values,
00144                                                const GValue *param_values,
00145                                                gpointer      invocation_hint G_GNUC_UNUSED,
00146                                                gpointer      marshal_data)
00147 {
00148   typedef void (*GMarshalFunc_VOID__INT_STRING) (gpointer     data1,
00149                                                  gint         arg_1,
00150                                                  gpointer     arg_2,
00151                                                  gpointer     data2);
00152   register GMarshalFunc_VOID__INT_STRING callback;
00153   register GCClosure *cc = (GCClosure*) closure;
00154   register gpointer data1, data2;
00155 
00156   g_return_if_fail (n_param_values == 3);
00157 
00158   if (G_CCLOSURE_SWAP_DATA (closure))
00159     {
00160       data1 = closure->data;
00161       data2 = g_value_peek_pointer (param_values + 0);
00162     }
00163   else
00164     {
00165       data1 = g_value_peek_pointer (param_values + 0);
00166       data2 = closure->data;
00167     }
00168   callback = (GMarshalFunc_VOID__INT_STRING) (marshal_data ? marshal_data : cc->callback);
00169 
00170   callback (data1,
00171             g_marshal_value_peek_int (param_values + 1),
00172             g_marshal_value_peek_string (param_values + 2),
00173             data2);
00174 }
00175 
00176 /* VOID:STRING,STRING (./application-service-marshal.list:22) */
00177 void
00178 _application_service_marshal_VOID__STRING_STRING (GClosure     *closure,
00179                                                   GValue       *return_value G_GNUC_UNUSED,
00180                                                   guint         n_param_values,
00181                                                   const GValue *param_values,
00182                                                   gpointer      invocation_hint G_GNUC_UNUSED,
00183                                                   gpointer      marshal_data)
00184 {
00185   typedef void (*GMarshalFunc_VOID__STRING_STRING) (gpointer     data1,
00186                                                     gpointer     arg_1,
00187                                                     gpointer     arg_2,
00188                                                     gpointer     data2);
00189   register GMarshalFunc_VOID__STRING_STRING callback;
00190   register GCClosure *cc = (GCClosure*) closure;
00191   register gpointer data1, data2;
00192 
00193   g_return_if_fail (n_param_values == 3);
00194 
00195   if (G_CCLOSURE_SWAP_DATA (closure))
00196     {
00197       data1 = closure->data;
00198       data2 = g_value_peek_pointer (param_values + 0);
00199     }
00200   else
00201     {
00202       data1 = g_value_peek_pointer (param_values + 0);
00203       data2 = closure->data;
00204     }
00205   callback = (GMarshalFunc_VOID__STRING_STRING) (marshal_data ? marshal_data : cc->callback);
00206 
00207   callback (data1,
00208             g_marshal_value_peek_string (param_values + 1),
00209             g_marshal_value_peek_string (param_values + 2),
00210             data2);
00211 }
00212 
00213 /* VOID:BOOL,STRING,OBJECT (./application-service-marshal.list:23) */
00214 void
00215 _application_service_marshal_VOID__BOOLEAN_STRING_OBJECT (GClosure     *closure,
00216                                                           GValue       *return_value G_GNUC_UNUSED,
00217                                                           guint         n_param_values,
00218                                                           const GValue *param_values,
00219                                                           gpointer      invocation_hint G_GNUC_UNUSED,
00220                                                           gpointer      marshal_data)
00221 {
00222   typedef void (*GMarshalFunc_VOID__BOOLEAN_STRING_OBJECT) (gpointer     data1,
00223                                                             gboolean     arg_1,
00224                                                             gpointer     arg_2,
00225                                                             gpointer     arg_3,
00226                                                             gpointer     data2);
00227   register GMarshalFunc_VOID__BOOLEAN_STRING_OBJECT callback;
00228   register GCClosure *cc = (GCClosure*) closure;
00229   register gpointer data1, data2;
00230 
00231   g_return_if_fail (n_param_values == 4);
00232 
00233   if (G_CCLOSURE_SWAP_DATA (closure))
00234     {
00235       data1 = closure->data;
00236       data2 = g_value_peek_pointer (param_values + 0);
00237     }
00238   else
00239     {
00240       data1 = g_value_peek_pointer (param_values + 0);
00241       data2 = closure->data;
00242     }
00243   callback = (GMarshalFunc_VOID__BOOLEAN_STRING_OBJECT) (marshal_data ? marshal_data : cc->callback);
00244 
00245   callback (data1,
00246             g_marshal_value_peek_boolean (param_values + 1),
00247             g_marshal_value_peek_string (param_values + 2),
00248             g_marshal_value_peek_object (param_values + 3),
00249             data2);
00250 }
00251 
00252 /* VOID:INT,UINT (./application-service-marshal.list:24) */
00253 void
00254 _application_service_marshal_VOID__INT_UINT (GClosure     *closure,
00255                                              GValue       *return_value G_GNUC_UNUSED,
00256                                              guint         n_param_values,
00257                                              const GValue *param_values,
00258                                              gpointer      invocation_hint G_GNUC_UNUSED,
00259                                              gpointer      marshal_data)
00260 {
00261   typedef void (*GMarshalFunc_VOID__INT_UINT) (gpointer     data1,
00262                                                gint         arg_1,
00263                                                guint        arg_2,
00264                                                gpointer     data2);
00265   register GMarshalFunc_VOID__INT_UINT callback;
00266   register GCClosure *cc = (GCClosure*) closure;
00267   register gpointer data1, data2;
00268 
00269   g_return_if_fail (n_param_values == 3);
00270 
00271   if (G_CCLOSURE_SWAP_DATA (closure))
00272     {
00273       data1 = closure->data;
00274       data2 = g_value_peek_pointer (param_values + 0);
00275     }
00276   else
00277     {
00278       data1 = g_value_peek_pointer (param_values + 0);
00279       data2 = closure->data;
00280     }
00281   callback = (GMarshalFunc_VOID__INT_UINT) (marshal_data ? marshal_data : cc->callback);
00282 
00283   callback (data1,
00284             g_marshal_value_peek_int (param_values + 1),
00285             g_marshal_value_peek_uint (param_values + 2),
00286             data2);
00287 }
00288 
00289 /* VOID:INT,INT (./application-service-marshal.list:25) */
00290 void
00291 _application_service_marshal_VOID__INT_INT (GClosure     *closure,
00292                                             GValue       *return_value G_GNUC_UNUSED,
00293                                             guint         n_param_values,
00294                                             const GValue *param_values,
00295                                             gpointer      invocation_hint G_GNUC_UNUSED,
00296                                             gpointer      marshal_data)
00297 {
00298   typedef void (*GMarshalFunc_VOID__INT_INT) (gpointer     data1,
00299                                               gint         arg_1,
00300                                               gint         arg_2,
00301                                               gpointer     data2);
00302   register GMarshalFunc_VOID__INT_INT callback;
00303   register GCClosure *cc = (GCClosure*) closure;
00304   register gpointer data1, data2;
00305 
00306   g_return_if_fail (n_param_values == 3);
00307 
00308   if (G_CCLOSURE_SWAP_DATA (closure))
00309     {
00310       data1 = closure->data;
00311       data2 = g_value_peek_pointer (param_values + 0);
00312     }
00313   else
00314     {
00315       data1 = g_value_peek_pointer (param_values + 0);
00316       data2 = closure->data;
00317     }
00318   callback = (GMarshalFunc_VOID__INT_INT) (marshal_data ? marshal_data : cc->callback);
00319 
00320   callback (data1,
00321             g_marshal_value_peek_int (param_values + 1),
00322             g_marshal_value_peek_int (param_values + 2),
00323             data2);
00324 }
00325