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_FLASH_H__
|
| 8 | #define __INTERFACES_FLASH_H__
|
| 9 |
|
| 10 | #include <gio/gio.h>
|
| 11 |
|
| 12 | G_BEGIN_DECLS
|
| 13 |
|
| 14 |
|
| 15 | /* ------------------------------------------------------------------------ */
|
| 16 | /* Declarations for org.openbmc.Flash */
|
| 17 |
|
| 18 | #define TYPE_FLASH (flash_get_type ())
|
| 19 | #define FLASH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH, Flash))
|
| 20 | #define IS_FLASH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH))
|
| 21 | #define FLASH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH, FlashIface))
|
| 22 |
|
| 23 | struct _Flash;
|
| 24 | typedef struct _Flash Flash;
|
| 25 | typedef struct _FlashIface FlashIface;
|
| 26 |
|
| 27 | struct _FlashIface
|
| 28 | {
|
| 29 | GTypeInterface parent_iface;
|
| 30 |
|
| 31 |
|
| 32 | gboolean (*handle_erase) (
|
| 33 | Flash *object,
|
| 34 | GDBusMethodInvocation *invocation);
|
| 35 |
|
| 36 | gboolean (*handle_init) (
|
| 37 | Flash *object,
|
| 38 | GDBusMethodInvocation *invocation);
|
| 39 |
|
| 40 | gboolean (*handle_update_via_file) (
|
| 41 | Flash *object,
|
| 42 | GDBusMethodInvocation *invocation,
|
| 43 | const gchar *arg_file);
|
| 44 |
|
| 45 | gboolean (*handle_update_via_http) (
|
| 46 | Flash *object,
|
| 47 | GDBusMethodInvocation *invocation,
|
| 48 | const gchar *arg_url);
|
| 49 |
|
| 50 | void (*updated) (
|
| 51 | Flash *object);
|
| 52 |
|
| 53 | };
|
| 54 |
|
| 55 | GType flash_get_type (void) G_GNUC_CONST;
|
| 56 |
|
| 57 | GDBusInterfaceInfo *flash_interface_info (void);
|
| 58 | guint flash_override_properties (GObjectClass *klass, guint property_id_begin);
|
| 59 |
|
| 60 |
|
| 61 | /* D-Bus method call completion functions: */
|
| 62 | void flash_complete_update_via_file (
|
| 63 | Flash *object,
|
| 64 | GDBusMethodInvocation *invocation);
|
| 65 |
|
| 66 | void flash_complete_update_via_http (
|
| 67 | Flash *object,
|
| 68 | GDBusMethodInvocation *invocation);
|
| 69 |
|
| 70 | void flash_complete_erase (
|
| 71 | Flash *object,
|
| 72 | GDBusMethodInvocation *invocation);
|
| 73 |
|
| 74 | void flash_complete_init (
|
| 75 | Flash *object,
|
| 76 | GDBusMethodInvocation *invocation);
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 | /* D-Bus signal emissions functions: */
|
| 81 | void flash_emit_updated (
|
| 82 | Flash *object);
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 | /* D-Bus method calls: */
|
| 87 | void flash_call_update_via_file (
|
| 88 | Flash *proxy,
|
| 89 | const gchar *arg_file,
|
| 90 | GCancellable *cancellable,
|
| 91 | GAsyncReadyCallback callback,
|
| 92 | gpointer user_data);
|
| 93 |
|
| 94 | gboolean flash_call_update_via_file_finish (
|
| 95 | Flash *proxy,
|
| 96 | GAsyncResult *res,
|
| 97 | GError **error);
|
| 98 |
|
| 99 | gboolean flash_call_update_via_file_sync (
|
| 100 | Flash *proxy,
|
| 101 | const gchar *arg_file,
|
| 102 | GCancellable *cancellable,
|
| 103 | GError **error);
|
| 104 |
|
| 105 | void flash_call_update_via_http (
|
| 106 | Flash *proxy,
|
| 107 | const gchar *arg_url,
|
| 108 | GCancellable *cancellable,
|
| 109 | GAsyncReadyCallback callback,
|
| 110 | gpointer user_data);
|
| 111 |
|
| 112 | gboolean flash_call_update_via_http_finish (
|
| 113 | Flash *proxy,
|
| 114 | GAsyncResult *res,
|
| 115 | GError **error);
|
| 116 |
|
| 117 | gboolean flash_call_update_via_http_sync (
|
| 118 | Flash *proxy,
|
| 119 | const gchar *arg_url,
|
| 120 | GCancellable *cancellable,
|
| 121 | GError **error);
|
| 122 |
|
| 123 | void flash_call_erase (
|
| 124 | Flash *proxy,
|
| 125 | GCancellable *cancellable,
|
| 126 | GAsyncReadyCallback callback,
|
| 127 | gpointer user_data);
|
| 128 |
|
| 129 | gboolean flash_call_erase_finish (
|
| 130 | Flash *proxy,
|
| 131 | GAsyncResult *res,
|
| 132 | GError **error);
|
| 133 |
|
| 134 | gboolean flash_call_erase_sync (
|
| 135 | Flash *proxy,
|
| 136 | GCancellable *cancellable,
|
| 137 | GError **error);
|
| 138 |
|
| 139 | void flash_call_init (
|
| 140 | Flash *proxy,
|
| 141 | GCancellable *cancellable,
|
| 142 | GAsyncReadyCallback callback,
|
| 143 | gpointer user_data);
|
| 144 |
|
| 145 | gboolean flash_call_init_finish (
|
| 146 | Flash *proxy,
|
| 147 | GAsyncResult *res,
|
| 148 | GError **error);
|
| 149 |
|
| 150 | gboolean flash_call_init_sync (
|
| 151 | Flash *proxy,
|
| 152 | GCancellable *cancellable,
|
| 153 | GError **error);
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 | /* ---- */
|
| 158 |
|
| 159 | #define TYPE_FLASH_PROXY (flash_proxy_get_type ())
|
| 160 | #define FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_PROXY, FlashProxy))
|
| 161 | #define FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_PROXY, FlashProxyClass))
|
| 162 | #define FLASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_PROXY, FlashProxyClass))
|
| 163 | #define IS_FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_PROXY))
|
| 164 | #define IS_FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_PROXY))
|
| 165 |
|
| 166 | typedef struct _FlashProxy FlashProxy;
|
| 167 | typedef struct _FlashProxyClass FlashProxyClass;
|
| 168 | typedef struct _FlashProxyPrivate FlashProxyPrivate;
|
| 169 |
|
| 170 | struct _FlashProxy
|
| 171 | {
|
| 172 | /*< private >*/
|
| 173 | GDBusProxy parent_instance;
|
| 174 | FlashProxyPrivate *priv;
|
| 175 | };
|
| 176 |
|
| 177 | struct _FlashProxyClass
|
| 178 | {
|
| 179 | GDBusProxyClass parent_class;
|
| 180 | };
|
| 181 |
|
| 182 | GType flash_proxy_get_type (void) G_GNUC_CONST;
|
| 183 |
|
| 184 | void flash_proxy_new (
|
| 185 | GDBusConnection *connection,
|
| 186 | GDBusProxyFlags flags,
|
| 187 | const gchar *name,
|
| 188 | const gchar *object_path,
|
| 189 | GCancellable *cancellable,
|
| 190 | GAsyncReadyCallback callback,
|
| 191 | gpointer user_data);
|
| 192 | Flash *flash_proxy_new_finish (
|
| 193 | GAsyncResult *res,
|
| 194 | GError **error);
|
| 195 | Flash *flash_proxy_new_sync (
|
| 196 | GDBusConnection *connection,
|
| 197 | GDBusProxyFlags flags,
|
| 198 | const gchar *name,
|
| 199 | const gchar *object_path,
|
| 200 | GCancellable *cancellable,
|
| 201 | GError **error);
|
| 202 |
|
| 203 | void flash_proxy_new_for_bus (
|
| 204 | GBusType bus_type,
|
| 205 | GDBusProxyFlags flags,
|
| 206 | const gchar *name,
|
| 207 | const gchar *object_path,
|
| 208 | GCancellable *cancellable,
|
| 209 | GAsyncReadyCallback callback,
|
| 210 | gpointer user_data);
|
| 211 | Flash *flash_proxy_new_for_bus_finish (
|
| 212 | GAsyncResult *res,
|
| 213 | GError **error);
|
| 214 | Flash *flash_proxy_new_for_bus_sync (
|
| 215 | GBusType bus_type,
|
| 216 | GDBusProxyFlags flags,
|
| 217 | const gchar *name,
|
| 218 | const gchar *object_path,
|
| 219 | GCancellable *cancellable,
|
| 220 | GError **error);
|
| 221 |
|
| 222 |
|
| 223 | /* ---- */
|
| 224 |
|
| 225 | #define TYPE_FLASH_SKELETON (flash_skeleton_get_type ())
|
| 226 | #define FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_SKELETON, FlashSkeleton))
|
| 227 | #define FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_SKELETON, FlashSkeletonClass))
|
| 228 | #define FLASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_SKELETON, FlashSkeletonClass))
|
| 229 | #define IS_FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_SKELETON))
|
| 230 | #define IS_FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_SKELETON))
|
| 231 |
|
| 232 | typedef struct _FlashSkeleton FlashSkeleton;
|
| 233 | typedef struct _FlashSkeletonClass FlashSkeletonClass;
|
| 234 | typedef struct _FlashSkeletonPrivate FlashSkeletonPrivate;
|
| 235 |
|
| 236 | struct _FlashSkeleton
|
| 237 | {
|
| 238 | /*< private >*/
|
| 239 | GDBusInterfaceSkeleton parent_instance;
|
| 240 | FlashSkeletonPrivate *priv;
|
| 241 | };
|
| 242 |
|
| 243 | struct _FlashSkeletonClass
|
| 244 | {
|
| 245 | GDBusInterfaceSkeletonClass parent_class;
|
| 246 | };
|
| 247 |
|
| 248 | GType flash_skeleton_get_type (void) G_GNUC_CONST;
|
| 249 |
|
| 250 | Flash *flash_skeleton_new (void);
|
| 251 |
|
| 252 |
|
| 253 | /* ---- */
|
| 254 |
|
| 255 | #define TYPE_OBJECT (object_get_type ())
|
| 256 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object))
|
| 257 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT))
|
| 258 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object))
|
| 259 |
|
| 260 | struct _Object;
|
| 261 | typedef struct _Object Object;
|
| 262 | typedef struct _ObjectIface ObjectIface;
|
| 263 |
|
| 264 | struct _ObjectIface
|
| 265 | {
|
| 266 | GTypeInterface parent_iface;
|
| 267 | };
|
| 268 |
|
| 269 | GType object_get_type (void) G_GNUC_CONST;
|
| 270 |
|
| 271 | Flash *object_get_flash (Object *object);
|
| 272 | Flash *object_peek_flash (Object *object);
|
| 273 |
|
| 274 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ())
|
| 275 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy))
|
| 276 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass))
|
| 277 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass))
|
| 278 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY))
|
| 279 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY))
|
| 280 |
|
| 281 | typedef struct _ObjectProxy ObjectProxy;
|
| 282 | typedef struct _ObjectProxyClass ObjectProxyClass;
|
| 283 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate;
|
| 284 |
|
| 285 | struct _ObjectProxy
|
| 286 | {
|
| 287 | /*< private >*/
|
| 288 | GDBusObjectProxy parent_instance;
|
| 289 | ObjectProxyPrivate *priv;
|
| 290 | };
|
| 291 |
|
| 292 | struct _ObjectProxyClass
|
| 293 | {
|
| 294 | GDBusObjectProxyClass parent_class;
|
| 295 | };
|
| 296 |
|
| 297 | GType object_proxy_get_type (void) G_GNUC_CONST;
|
| 298 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path);
|
| 299 |
|
| 300 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ())
|
| 301 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton))
|
| 302 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
|
| 303 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass))
|
| 304 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON))
|
| 305 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON))
|
| 306 |
|
| 307 | typedef struct _ObjectSkeleton ObjectSkeleton;
|
| 308 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass;
|
| 309 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate;
|
| 310 |
|
| 311 | struct _ObjectSkeleton
|
| 312 | {
|
| 313 | /*< private >*/
|
| 314 | GDBusObjectSkeleton parent_instance;
|
| 315 | ObjectSkeletonPrivate *priv;
|
| 316 | };
|
| 317 |
|
| 318 | struct _ObjectSkeletonClass
|
| 319 | {
|
| 320 | GDBusObjectSkeletonClass parent_class;
|
| 321 | };
|
| 322 |
|
| 323 | GType object_skeleton_get_type (void) G_GNUC_CONST;
|
| 324 | ObjectSkeleton *object_skeleton_new (const gchar *object_path);
|
| 325 | void object_skeleton_set_flash (ObjectSkeleton *object, Flash *interface_);
|
| 326 |
|
| 327 | /* ---- */
|
| 328 |
|
| 329 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ())
|
| 330 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient))
|
| 331 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
|
| 332 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass))
|
| 333 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT))
|
| 334 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT))
|
| 335 |
|
| 336 | typedef struct _ObjectManagerClient ObjectManagerClient;
|
| 337 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass;
|
| 338 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate;
|
| 339 |
|
| 340 | struct _ObjectManagerClient
|
| 341 | {
|
| 342 | /*< private >*/
|
| 343 | GDBusObjectManagerClient parent_instance;
|
| 344 | ObjectManagerClientPrivate *priv;
|
| 345 | };
|
| 346 |
|
| 347 | struct _ObjectManagerClientClass
|
| 348 | {
|
| 349 | GDBusObjectManagerClientClass parent_class;
|
| 350 | };
|
| 351 |
|
| 352 | GType object_manager_client_get_type (void) G_GNUC_CONST;
|
| 353 |
|
| 354 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);
|
| 355 |
|
| 356 | void object_manager_client_new (
|
| 357 | GDBusConnection *connection,
|
| 358 | GDBusObjectManagerClientFlags flags,
|
| 359 | const gchar *name,
|
| 360 | const gchar *object_path,
|
| 361 | GCancellable *cancellable,
|
| 362 | GAsyncReadyCallback callback,
|
| 363 | gpointer user_data);
|
| 364 | GDBusObjectManager *object_manager_client_new_finish (
|
| 365 | GAsyncResult *res,
|
| 366 | GError **error);
|
| 367 | GDBusObjectManager *object_manager_client_new_sync (
|
| 368 | GDBusConnection *connection,
|
| 369 | GDBusObjectManagerClientFlags flags,
|
| 370 | const gchar *name,
|
| 371 | const gchar *object_path,
|
| 372 | GCancellable *cancellable,
|
| 373 | GError **error);
|
| 374 |
|
| 375 | void object_manager_client_new_for_bus (
|
| 376 | GBusType bus_type,
|
| 377 | GDBusObjectManagerClientFlags flags,
|
| 378 | const gchar *name,
|
| 379 | const gchar *object_path,
|
| 380 | GCancellable *cancellable,
|
| 381 | GAsyncReadyCallback callback,
|
| 382 | gpointer user_data);
|
| 383 | GDBusObjectManager *object_manager_client_new_for_bus_finish (
|
| 384 | GAsyncResult *res,
|
| 385 | GError **error);
|
| 386 | GDBusObjectManager *object_manager_client_new_for_bus_sync (
|
| 387 | GBusType bus_type,
|
| 388 | GDBusObjectManagerClientFlags flags,
|
| 389 | const gchar *name,
|
| 390 | const gchar *object_path,
|
| 391 | GCancellable *cancellable,
|
| 392 | GError **error);
|
| 393 |
|
| 394 |
|
| 395 | G_END_DECLS
|
| 396 |
|
| 397 | #endif /* __INTERFACES_FLASH_H__ */
|