| Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 1 | /* | 
|  | 2 | * Generated by gdbus-codegen 2.40.2. DO NOT EDIT. | 
|  | 3 | * | 
|  | 4 | * The license of this code is the same as for the source it was derived from. | 
|  | 5 | */ | 
|  | 6 |  | 
|  | 7 | #ifndef __INTERFACES_BUTTON_H__ | 
|  | 8 | #define __INTERFACES_BUTTON_H__ | 
|  | 9 |  | 
|  | 10 | #include <gio/gio.h> | 
|  | 11 |  | 
|  | 12 | G_BEGIN_DECLS | 
|  | 13 |  | 
|  | 14 |  | 
|  | 15 | /* ------------------------------------------------------------------------ */ | 
|  | 16 | /* Declarations for org.openbmc.Button */ | 
|  | 17 |  | 
|  | 18 | #define TYPE_BUTTON (button_get_type ()) | 
|  | 19 | #define BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON, Button)) | 
|  | 20 | #define IS_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON)) | 
|  | 21 | #define BUTTON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_BUTTON, ButtonIface)) | 
|  | 22 |  | 
|  | 23 | struct _Button; | 
|  | 24 | typedef struct _Button Button; | 
|  | 25 | typedef struct _ButtonIface ButtonIface; | 
|  | 26 |  | 
|  | 27 | struct _ButtonIface | 
|  | 28 | { | 
|  | 29 | GTypeInterface parent_iface; | 
|  | 30 |  | 
|  | 31 |  | 
|  | 32 |  | 
|  | 33 | gboolean (*handle_is_on) ( | 
|  | 34 | Button *object, | 
|  | 35 | GDBusMethodInvocation *invocation); | 
|  | 36 |  | 
|  | 37 | gboolean (*handle_sim_button_long_press) ( | 
|  | 38 | Button *object, | 
|  | 39 | GDBusMethodInvocation *invocation); | 
|  | 40 |  | 
|  | 41 | gboolean (*handle_sim_button_press) ( | 
|  | 42 | Button *object, | 
|  | 43 | GDBusMethodInvocation *invocation); | 
|  | 44 |  | 
|  | 45 | gboolean  (*get_state) (Button *object); | 
|  | 46 |  | 
|  | 47 | void (*button_pressed) ( | 
|  | 48 | Button *object); | 
|  | 49 |  | 
|  | 50 | void (*button_pressed_long) ( | 
|  | 51 | Button *object); | 
|  | 52 |  | 
|  | 53 | void (*button_release) ( | 
|  | 54 | Button *object); | 
|  | 55 |  | 
|  | 56 | }; | 
|  | 57 |  | 
|  | 58 | GType button_get_type (void) G_GNUC_CONST; | 
|  | 59 |  | 
|  | 60 | GDBusInterfaceInfo *button_interface_info (void); | 
|  | 61 | guint button_override_properties (GObjectClass *klass, guint property_id_begin); | 
|  | 62 |  | 
|  | 63 |  | 
|  | 64 | /* D-Bus method call completion functions: */ | 
|  | 65 | void button_complete_is_on ( | 
|  | 66 | Button *object, | 
|  | 67 | GDBusMethodInvocation *invocation, | 
|  | 68 | gboolean state); | 
|  | 69 |  | 
|  | 70 | void button_complete_sim_button_press ( | 
|  | 71 | Button *object, | 
|  | 72 | GDBusMethodInvocation *invocation); | 
|  | 73 |  | 
|  | 74 | void button_complete_sim_button_long_press ( | 
|  | 75 | Button *object, | 
|  | 76 | GDBusMethodInvocation *invocation); | 
|  | 77 |  | 
|  | 78 |  | 
|  | 79 |  | 
|  | 80 | /* D-Bus signal emissions functions: */ | 
|  | 81 | void button_emit_button_release ( | 
|  | 82 | Button *object); | 
|  | 83 |  | 
|  | 84 | void button_emit_button_pressed ( | 
|  | 85 | Button *object); | 
|  | 86 |  | 
|  | 87 | void button_emit_button_pressed_long ( | 
|  | 88 | Button *object); | 
|  | 89 |  | 
|  | 90 |  | 
|  | 91 |  | 
|  | 92 | /* D-Bus method calls: */ | 
|  | 93 | void button_call_is_on ( | 
|  | 94 | Button *proxy, | 
|  | 95 | GCancellable *cancellable, | 
|  | 96 | GAsyncReadyCallback callback, | 
|  | 97 | gpointer user_data); | 
|  | 98 |  | 
|  | 99 | gboolean button_call_is_on_finish ( | 
|  | 100 | Button *proxy, | 
|  | 101 | gboolean *out_state, | 
|  | 102 | GAsyncResult *res, | 
|  | 103 | GError **error); | 
|  | 104 |  | 
|  | 105 | gboolean button_call_is_on_sync ( | 
|  | 106 | Button *proxy, | 
|  | 107 | gboolean *out_state, | 
|  | 108 | GCancellable *cancellable, | 
|  | 109 | GError **error); | 
|  | 110 |  | 
|  | 111 | void button_call_sim_button_press ( | 
|  | 112 | Button *proxy, | 
|  | 113 | GCancellable *cancellable, | 
|  | 114 | GAsyncReadyCallback callback, | 
|  | 115 | gpointer user_data); | 
|  | 116 |  | 
|  | 117 | gboolean button_call_sim_button_press_finish ( | 
|  | 118 | Button *proxy, | 
|  | 119 | GAsyncResult *res, | 
|  | 120 | GError **error); | 
|  | 121 |  | 
|  | 122 | gboolean button_call_sim_button_press_sync ( | 
|  | 123 | Button *proxy, | 
|  | 124 | GCancellable *cancellable, | 
|  | 125 | GError **error); | 
|  | 126 |  | 
|  | 127 | void button_call_sim_button_long_press ( | 
|  | 128 | Button *proxy, | 
|  | 129 | GCancellable *cancellable, | 
|  | 130 | GAsyncReadyCallback callback, | 
|  | 131 | gpointer user_data); | 
|  | 132 |  | 
|  | 133 | gboolean button_call_sim_button_long_press_finish ( | 
|  | 134 | Button *proxy, | 
|  | 135 | GAsyncResult *res, | 
|  | 136 | GError **error); | 
|  | 137 |  | 
|  | 138 | gboolean button_call_sim_button_long_press_sync ( | 
|  | 139 | Button *proxy, | 
|  | 140 | GCancellable *cancellable, | 
|  | 141 | GError **error); | 
|  | 142 |  | 
|  | 143 |  | 
|  | 144 |  | 
|  | 145 | /* D-Bus property accessors: */ | 
|  | 146 | gboolean button_get_state (Button *object); | 
|  | 147 | void button_set_state (Button *object, gboolean value); | 
|  | 148 |  | 
|  | 149 |  | 
|  | 150 | /* ---- */ | 
|  | 151 |  | 
|  | 152 | #define TYPE_BUTTON_PROXY (button_proxy_get_type ()) | 
|  | 153 | #define BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_PROXY, ButtonProxy)) | 
|  | 154 | #define BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_PROXY, ButtonProxyClass)) | 
|  | 155 | #define BUTTON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_PROXY, ButtonProxyClass)) | 
|  | 156 | #define IS_BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_PROXY)) | 
|  | 157 | #define IS_BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_PROXY)) | 
|  | 158 |  | 
|  | 159 | typedef struct _ButtonProxy ButtonProxy; | 
|  | 160 | typedef struct _ButtonProxyClass ButtonProxyClass; | 
|  | 161 | typedef struct _ButtonProxyPrivate ButtonProxyPrivate; | 
|  | 162 |  | 
|  | 163 | struct _ButtonProxy | 
|  | 164 | { | 
|  | 165 | /*< private >*/ | 
|  | 166 | GDBusProxy parent_instance; | 
|  | 167 | ButtonProxyPrivate *priv; | 
|  | 168 | }; | 
|  | 169 |  | 
|  | 170 | struct _ButtonProxyClass | 
|  | 171 | { | 
|  | 172 | GDBusProxyClass parent_class; | 
|  | 173 | }; | 
|  | 174 |  | 
|  | 175 | GType button_proxy_get_type (void) G_GNUC_CONST; | 
|  | 176 |  | 
|  | 177 | void button_proxy_new ( | 
|  | 178 | GDBusConnection     *connection, | 
|  | 179 | GDBusProxyFlags      flags, | 
|  | 180 | const gchar         *name, | 
|  | 181 | const gchar         *object_path, | 
|  | 182 | GCancellable        *cancellable, | 
|  | 183 | GAsyncReadyCallback  callback, | 
|  | 184 | gpointer             user_data); | 
|  | 185 | Button *button_proxy_new_finish ( | 
|  | 186 | GAsyncResult        *res, | 
|  | 187 | GError             **error); | 
|  | 188 | Button *button_proxy_new_sync ( | 
|  | 189 | GDBusConnection     *connection, | 
|  | 190 | GDBusProxyFlags      flags, | 
|  | 191 | const gchar         *name, | 
|  | 192 | const gchar         *object_path, | 
|  | 193 | GCancellable        *cancellable, | 
|  | 194 | GError             **error); | 
|  | 195 |  | 
|  | 196 | void button_proxy_new_for_bus ( | 
|  | 197 | GBusType             bus_type, | 
|  | 198 | GDBusProxyFlags      flags, | 
|  | 199 | const gchar         *name, | 
|  | 200 | const gchar         *object_path, | 
|  | 201 | GCancellable        *cancellable, | 
|  | 202 | GAsyncReadyCallback  callback, | 
|  | 203 | gpointer             user_data); | 
|  | 204 | Button *button_proxy_new_for_bus_finish ( | 
|  | 205 | GAsyncResult        *res, | 
|  | 206 | GError             **error); | 
|  | 207 | Button *button_proxy_new_for_bus_sync ( | 
|  | 208 | GBusType             bus_type, | 
|  | 209 | GDBusProxyFlags      flags, | 
|  | 210 | const gchar         *name, | 
|  | 211 | const gchar         *object_path, | 
|  | 212 | GCancellable        *cancellable, | 
|  | 213 | GError             **error); | 
|  | 214 |  | 
|  | 215 |  | 
|  | 216 | /* ---- */ | 
|  | 217 |  | 
|  | 218 | #define TYPE_BUTTON_SKELETON (button_skeleton_get_type ()) | 
|  | 219 | #define BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_SKELETON, ButtonSkeleton)) | 
|  | 220 | #define BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) | 
|  | 221 | #define BUTTON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) | 
|  | 222 | #define IS_BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_SKELETON)) | 
|  | 223 | #define IS_BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_SKELETON)) | 
|  | 224 |  | 
|  | 225 | typedef struct _ButtonSkeleton ButtonSkeleton; | 
|  | 226 | typedef struct _ButtonSkeletonClass ButtonSkeletonClass; | 
|  | 227 | typedef struct _ButtonSkeletonPrivate ButtonSkeletonPrivate; | 
|  | 228 |  | 
|  | 229 | struct _ButtonSkeleton | 
|  | 230 | { | 
|  | 231 | /*< private >*/ | 
|  | 232 | GDBusInterfaceSkeleton parent_instance; | 
|  | 233 | ButtonSkeletonPrivate *priv; | 
|  | 234 | }; | 
|  | 235 |  | 
|  | 236 | struct _ButtonSkeletonClass | 
|  | 237 | { | 
|  | 238 | GDBusInterfaceSkeletonClass parent_class; | 
|  | 239 | }; | 
|  | 240 |  | 
|  | 241 | GType button_skeleton_get_type (void) G_GNUC_CONST; | 
|  | 242 |  | 
|  | 243 | Button *button_skeleton_new (void); | 
|  | 244 |  | 
|  | 245 |  | 
|  | 246 | /* ---- */ | 
|  | 247 |  | 
|  | 248 | #define TYPE_OBJECT (object_get_type ()) | 
|  | 249 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) | 
|  | 250 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) | 
|  | 251 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) | 
|  | 252 |  | 
|  | 253 | struct _Object; | 
|  | 254 | typedef struct _Object Object; | 
|  | 255 | typedef struct _ObjectIface ObjectIface; | 
|  | 256 |  | 
|  | 257 | struct _ObjectIface | 
|  | 258 | { | 
|  | 259 | GTypeInterface parent_iface; | 
|  | 260 | }; | 
|  | 261 |  | 
|  | 262 | GType object_get_type (void) G_GNUC_CONST; | 
|  | 263 |  | 
|  | 264 | Button *object_get_button (Object *object); | 
|  | 265 | Button *object_peek_button (Object *object); | 
|  | 266 |  | 
|  | 267 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) | 
|  | 268 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) | 
|  | 269 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) | 
|  | 270 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) | 
|  | 271 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) | 
|  | 272 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) | 
|  | 273 |  | 
|  | 274 | typedef struct _ObjectProxy ObjectProxy; | 
|  | 275 | typedef struct _ObjectProxyClass ObjectProxyClass; | 
|  | 276 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; | 
|  | 277 |  | 
|  | 278 | struct _ObjectProxy | 
|  | 279 | { | 
|  | 280 | /*< private >*/ | 
|  | 281 | GDBusObjectProxy parent_instance; | 
|  | 282 | ObjectProxyPrivate *priv; | 
|  | 283 | }; | 
|  | 284 |  | 
|  | 285 | struct _ObjectProxyClass | 
|  | 286 | { | 
|  | 287 | GDBusObjectProxyClass parent_class; | 
|  | 288 | }; | 
|  | 289 |  | 
|  | 290 | GType object_proxy_get_type (void) G_GNUC_CONST; | 
|  | 291 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); | 
|  | 292 |  | 
|  | 293 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) | 
|  | 294 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) | 
|  | 295 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) | 
|  | 296 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) | 
|  | 297 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) | 
|  | 298 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) | 
|  | 299 |  | 
|  | 300 | typedef struct _ObjectSkeleton ObjectSkeleton; | 
|  | 301 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; | 
|  | 302 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; | 
|  | 303 |  | 
|  | 304 | struct _ObjectSkeleton | 
|  | 305 | { | 
|  | 306 | /*< private >*/ | 
|  | 307 | GDBusObjectSkeleton parent_instance; | 
|  | 308 | ObjectSkeletonPrivate *priv; | 
|  | 309 | }; | 
|  | 310 |  | 
|  | 311 | struct _ObjectSkeletonClass | 
|  | 312 | { | 
|  | 313 | GDBusObjectSkeletonClass parent_class; | 
|  | 314 | }; | 
|  | 315 |  | 
|  | 316 | GType object_skeleton_get_type (void) G_GNUC_CONST; | 
|  | 317 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); | 
|  | 318 | void object_skeleton_set_button (ObjectSkeleton *object, Button *interface_); | 
|  | 319 |  | 
|  | 320 | /* ---- */ | 
|  | 321 |  | 
|  | 322 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) | 
|  | 323 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) | 
|  | 324 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) | 
|  | 325 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) | 
|  | 326 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) | 
|  | 327 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) | 
|  | 328 |  | 
|  | 329 | typedef struct _ObjectManagerClient ObjectManagerClient; | 
|  | 330 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; | 
|  | 331 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; | 
|  | 332 |  | 
|  | 333 | struct _ObjectManagerClient | 
|  | 334 | { | 
|  | 335 | /*< private >*/ | 
|  | 336 | GDBusObjectManagerClient parent_instance; | 
|  | 337 | ObjectManagerClientPrivate *priv; | 
|  | 338 | }; | 
|  | 339 |  | 
|  | 340 | struct _ObjectManagerClientClass | 
|  | 341 | { | 
|  | 342 | GDBusObjectManagerClientClass parent_class; | 
|  | 343 | }; | 
|  | 344 |  | 
|  | 345 | GType object_manager_client_get_type (void) G_GNUC_CONST; | 
|  | 346 |  | 
|  | 347 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); | 
|  | 348 |  | 
|  | 349 | void object_manager_client_new ( | 
|  | 350 | GDBusConnection        *connection, | 
|  | 351 | GDBusObjectManagerClientFlags  flags, | 
|  | 352 | const gchar            *name, | 
|  | 353 | const gchar            *object_path, | 
|  | 354 | GCancellable           *cancellable, | 
|  | 355 | GAsyncReadyCallback     callback, | 
|  | 356 | gpointer                user_data); | 
|  | 357 | GDBusObjectManager *object_manager_client_new_finish ( | 
|  | 358 | GAsyncResult        *res, | 
|  | 359 | GError             **error); | 
|  | 360 | GDBusObjectManager *object_manager_client_new_sync ( | 
|  | 361 | GDBusConnection        *connection, | 
|  | 362 | GDBusObjectManagerClientFlags  flags, | 
|  | 363 | const gchar            *name, | 
|  | 364 | const gchar            *object_path, | 
|  | 365 | GCancellable           *cancellable, | 
|  | 366 | GError                **error); | 
|  | 367 |  | 
|  | 368 | void object_manager_client_new_for_bus ( | 
|  | 369 | GBusType                bus_type, | 
|  | 370 | GDBusObjectManagerClientFlags  flags, | 
|  | 371 | const gchar            *name, | 
|  | 372 | const gchar            *object_path, | 
|  | 373 | GCancellable           *cancellable, | 
|  | 374 | GAsyncReadyCallback     callback, | 
|  | 375 | gpointer                user_data); | 
|  | 376 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( | 
|  | 377 | GAsyncResult        *res, | 
|  | 378 | GError             **error); | 
|  | 379 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( | 
|  | 380 | GBusType                bus_type, | 
|  | 381 | GDBusObjectManagerClientFlags  flags, | 
|  | 382 | const gchar            *name, | 
|  | 383 | const gchar            *object_path, | 
|  | 384 | GCancellable           *cancellable, | 
|  | 385 | GError                **error); | 
|  | 386 |  | 
|  | 387 |  | 
|  | 388 | G_END_DECLS | 
|  | 389 |  | 
|  | 390 | #endif /* __INTERFACES_BUTTON_H__ */ |