statemachine-glue.h

00001 /* Generated by dbus-binding-tool; do not edit! */
00002 
00003 
00004 #ifndef __dbus_glib_marshal_sm_object_MARSHAL_H__
00005 #define __dbus_glib_marshal_sm_object_MARSHAL_H__
00006 
00007 #include        <glib-object.h>
00008 
00009 G_BEGIN_DECLS
00010 
00011 #ifdef G_ENABLE_DEBUG
00012 #define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
00013 #define g_marshal_value_peek_char(v)     g_value_get_char (v)
00014 #define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
00015 #define g_marshal_value_peek_int(v)      g_value_get_int (v)
00016 #define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
00017 #define g_marshal_value_peek_long(v)     g_value_get_long (v)
00018 #define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
00019 #define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
00020 #define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
00021 #define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
00022 #define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
00023 #define g_marshal_value_peek_float(v)    g_value_get_float (v)
00024 #define g_marshal_value_peek_double(v)   g_value_get_double (v)
00025 #define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
00026 #define g_marshal_value_peek_param(v)    g_value_get_param (v)
00027 #define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
00028 #define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
00029 #define g_marshal_value_peek_object(v)   g_value_get_object (v)
00030 #else /* !G_ENABLE_DEBUG */
00031 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
00032  *          Do not access GValues directly in your code. Instead, use the
00033  *          g_value_get_*() functions
00034  */
00035 #define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
00036 #define g_marshal_value_peek_char(v)     (v)->data[0].v_int
00037 #define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
00038 #define g_marshal_value_peek_int(v)      (v)->data[0].v_int
00039 #define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
00040 #define g_marshal_value_peek_long(v)     (v)->data[0].v_long
00041 #define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
00042 #define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
00043 #define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
00044 #define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
00045 #define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
00046 #define g_marshal_value_peek_float(v)    (v)->data[0].v_float
00047 #define g_marshal_value_peek_double(v)   (v)->data[0].v_double
00048 #define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
00049 #define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
00050 #define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
00051 #define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
00052 #define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
00053 #endif /* !G_ENABLE_DEBUG */
00054 
00055 
00056 /* BOOLEAN:POINTER,POINTER (/var/tmp/dbus-binding-tool-c-marshallers.Y3QBQU:1) */
00057 extern void dbus_glib_marshal_sm_object_BOOLEAN__POINTER_POINTER (GClosure     *closure,
00058                                                                   GValue       *return_value,
00059                                                                   guint         n_param_values,
00060                                                                   const GValue *param_values,
00061                                                                   gpointer      invocation_hint,
00062                                                                   gpointer      marshal_data);
00063 void
00064 dbus_glib_marshal_sm_object_BOOLEAN__POINTER_POINTER (GClosure     *closure,
00065                                                       GValue       *return_value G_GNUC_UNUSED,
00066                                                       guint         n_param_values,
00067                                                       const GValue *param_values,
00068                                                       gpointer      invocation_hint G_GNUC_UNUSED,
00069                                                       gpointer      marshal_data)
00070 {
00071   typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER_POINTER) (gpointer     data1,
00072                                                              gpointer     arg_1,
00073                                                              gpointer     arg_2,
00074                                                              gpointer     data2);
00075   register GMarshalFunc_BOOLEAN__POINTER_POINTER callback;
00076   register GCClosure *cc = (GCClosure*) closure;
00077   register gpointer data1, data2;
00078   gboolean v_return;
00079 
00080   g_return_if_fail (return_value != NULL);
00081   g_return_if_fail (n_param_values == 3);
00082 
00083   if (G_CCLOSURE_SWAP_DATA (closure))
00084     {
00085       data1 = closure->data;
00086       data2 = g_value_peek_pointer (param_values + 0);
00087     }
00088   else
00089     {
00090       data1 = g_value_peek_pointer (param_values + 0);
00091       data2 = closure->data;
00092     }
00093   callback = (GMarshalFunc_BOOLEAN__POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
00094 
00095   v_return = callback (data1,
00096                        g_marshal_value_peek_pointer (param_values + 1),
00097                        g_marshal_value_peek_pointer (param_values + 2),
00098                        data2);
00099 
00100   g_value_set_boolean (return_value, v_return);
00101 }
00102 
00103 /* BOOLEAN:POINTER,POINTER,POINTER (/var/tmp/dbus-binding-tool-c-marshallers.Y3QBQU:2) */
00104 extern void dbus_glib_marshal_sm_object_BOOLEAN__POINTER_POINTER_POINTER (GClosure     *closure,
00105                                                                           GValue       *return_value,
00106                                                                           guint         n_param_values,
00107                                                                           const GValue *param_values,
00108                                                                           gpointer      invocation_hint,
00109                                                                           gpointer      marshal_data);
00110 void
00111 dbus_glib_marshal_sm_object_BOOLEAN__POINTER_POINTER_POINTER (GClosure     *closure,
00112                                                               GValue       *return_value G_GNUC_UNUSED,
00113                                                               guint         n_param_values,
00114                                                               const GValue *param_values,
00115                                                               gpointer      invocation_hint G_GNUC_UNUSED,
00116                                                               gpointer      marshal_data)
00117 {
00118   typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER_POINTER_POINTER) (gpointer     data1,
00119                                                                      gpointer     arg_1,
00120                                                                      gpointer     arg_2,
00121                                                                      gpointer     arg_3,
00122                                                                      gpointer     data2);
00123   register GMarshalFunc_BOOLEAN__POINTER_POINTER_POINTER callback;
00124   register GCClosure *cc = (GCClosure*) closure;
00125   register gpointer data1, data2;
00126   gboolean v_return;
00127 
00128   g_return_if_fail (return_value != NULL);
00129   g_return_if_fail (n_param_values == 4);
00130 
00131   if (G_CCLOSURE_SWAP_DATA (closure))
00132     {
00133       data1 = closure->data;
00134       data2 = g_value_peek_pointer (param_values + 0);
00135     }
00136   else
00137     {
00138       data1 = g_value_peek_pointer (param_values + 0);
00139       data2 = closure->data;
00140     }
00141   callback = (GMarshalFunc_BOOLEAN__POINTER_POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
00142 
00143   v_return = callback (data1,
00144                        g_marshal_value_peek_pointer (param_values + 1),
00145                        g_marshal_value_peek_pointer (param_values + 2),
00146                        g_marshal_value_peek_pointer (param_values + 3),
00147                        data2);
00148 
00149   g_value_set_boolean (return_value, v_return);
00150 }
00151 
00152 /* BOOLEAN:POINTER (/var/tmp/dbus-binding-tool-c-marshallers.Y3QBQU:3) */
00153 extern void dbus_glib_marshal_sm_object_BOOLEAN__POINTER (GClosure     *closure,
00154                                                           GValue       *return_value,
00155                                                           guint         n_param_values,
00156                                                           const GValue *param_values,
00157                                                           gpointer      invocation_hint,
00158                                                           gpointer      marshal_data);
00159 void
00160 dbus_glib_marshal_sm_object_BOOLEAN__POINTER (GClosure     *closure,
00161                                               GValue       *return_value G_GNUC_UNUSED,
00162                                               guint         n_param_values,
00163                                               const GValue *param_values,
00164                                               gpointer      invocation_hint G_GNUC_UNUSED,
00165                                               gpointer      marshal_data)
00166 {
00167   typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER) (gpointer     data1,
00168                                                      gpointer     arg_1,
00169                                                      gpointer     data2);
00170   register GMarshalFunc_BOOLEAN__POINTER callback;
00171   register GCClosure *cc = (GCClosure*) closure;
00172   register gpointer data1, data2;
00173   gboolean v_return;
00174 
00175   g_return_if_fail (return_value != NULL);
00176   g_return_if_fail (n_param_values == 2);
00177 
00178   if (G_CCLOSURE_SWAP_DATA (closure))
00179     {
00180       data1 = closure->data;
00181       data2 = g_value_peek_pointer (param_values + 0);
00182     }
00183   else
00184     {
00185       data1 = g_value_peek_pointer (param_values + 0);
00186       data2 = closure->data;
00187     }
00188   callback = (GMarshalFunc_BOOLEAN__POINTER) (marshal_data ? marshal_data : cc->callback);
00189 
00190   v_return = callback (data1,
00191                        g_marshal_value_peek_pointer (param_values + 1),
00192                        data2);
00193 
00194   g_value_set_boolean (return_value, v_return);
00195 }
00196 
00197 G_END_DECLS
00198 
00199 #endif /* __dbus_glib_marshal_sm_object_MARSHAL_H__ */
00200 
00201 #include <dbus/dbus-glib.h>
00202 static const DBusGMethodInfo dbus_glib_sm_object_methods[] = {
00203   { (GCallback) sm_object_get_info, dbus_glib_marshal_sm_object_BOOLEAN__POINTER_POINTER_POINTER, 0 },
00204   { (GCallback) sm_object_start, dbus_glib_marshal_sm_object_BOOLEAN__POINTER, 63 },
00205   { (GCallback) sm_object_shutdown, dbus_glib_marshal_sm_object_BOOLEAN__POINTER, 97 },
00206   { (GCallback) sm_object_reinitialize, dbus_glib_marshal_sm_object_BOOLEAN__POINTER, 134 },
00207   { (GCallback) sm_object_reacquire, dbus_glib_marshal_sm_object_BOOLEAN__POINTER, 175 },
00208   { (GCallback) sm_object_get_acquiring_progress, dbus_glib_marshal_sm_object_BOOLEAN__POINTER_POINTER, 213 },
00209 };
00210 
00211 const DBusGObjectInfo dbus_glib_sm_object_object_info = {
00212   0,
00213   dbus_glib_sm_object_methods,
00214   6,
00215 "com.example.StateMachine\0GetInfo\0S\0name\0O\0F\0N\0s\0state\0O\0F\0N\0s\0\0com.example.StateMachine\0Start\0S\0\0com.example.StateMachine\0Shutdown\0S\0\0com.example.StateMachine\0Reinitialize\0S\0\0com.example.StateMachine\0Reacquire\0S\0\0com.example.StateMachine\0GetAcquiringProgress\0S\0arg0\0O\0F\0N\0d\0\0\0",
00216 "com.example.StateMachine\0StateChanged\0com.example.StateMachine\0AcquisitionFailed\0com.example.StateMachine\0AcquisitionProgress\0\0",
00217 "\0"
00218 };
00219 

Generated on Tue Feb 24 16:47:59 2009 for D-BUSGLibBindings by  doxygen 1.5.1