Norman James | fa2e76e | 2015-08-26 17:41:20 -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_CONTROL_HOST_H__ |
| 8 | #define __INTERFACES_CONTROL_HOST_H__ |
| 9 | |
| 10 | #include <gio/gio.h> |
| 11 | |
| 12 | G_BEGIN_DECLS |
| 13 | |
| 14 | |
| 15 | /* ------------------------------------------------------------------------ */ |
| 16 | /* Declarations for org.openbmc.control.Host */ |
| 17 | |
| 18 | #define TYPE_CONTROL_HOST (control_host_get_type ()) |
| 19 | #define CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST, ControlHost)) |
| 20 | #define IS_CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST)) |
| 21 | #define CONTROL_HOST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_HOST, ControlHostIface)) |
| 22 | |
| 23 | struct _ControlHost; |
| 24 | typedef struct _ControlHost ControlHost; |
| 25 | typedef struct _ControlHostIface ControlHostIface; |
| 26 | |
| 27 | struct _ControlHostIface |
| 28 | { |
| 29 | GTypeInterface parent_iface; |
| 30 | |
| 31 | |
| 32 | gboolean (*handle_boot) ( |
| 33 | ControlHost *object, |
| 34 | GDBusMethodInvocation *invocation); |
| 35 | |
| 36 | gboolean (*handle_reboot) ( |
| 37 | ControlHost *object, |
| 38 | GDBusMethodInvocation *invocation); |
| 39 | |
| 40 | gboolean (*handle_shutdown) ( |
| 41 | ControlHost *object, |
| 42 | GDBusMethodInvocation *invocation); |
| 43 | |
| 44 | void (*booted) ( |
| 45 | ControlHost *object); |
| 46 | |
| 47 | }; |
| 48 | |
| 49 | GType control_host_get_type (void) G_GNUC_CONST; |
| 50 | |
| 51 | GDBusInterfaceInfo *control_host_interface_info (void); |
| 52 | guint control_host_override_properties (GObjectClass *klass, guint property_id_begin); |
| 53 | |
| 54 | |
| 55 | /* D-Bus method call completion functions: */ |
| 56 | void control_host_complete_boot ( |
| 57 | ControlHost *object, |
| 58 | GDBusMethodInvocation *invocation); |
| 59 | |
| 60 | void control_host_complete_shutdown ( |
| 61 | ControlHost *object, |
| 62 | GDBusMethodInvocation *invocation); |
| 63 | |
| 64 | void control_host_complete_reboot ( |
| 65 | ControlHost *object, |
| 66 | GDBusMethodInvocation *invocation); |
| 67 | |
| 68 | |
| 69 | |
| 70 | /* D-Bus signal emissions functions: */ |
| 71 | void control_host_emit_booted ( |
| 72 | ControlHost *object); |
| 73 | |
| 74 | |
| 75 | |
| 76 | /* D-Bus method calls: */ |
| 77 | void control_host_call_boot ( |
| 78 | ControlHost *proxy, |
| 79 | GCancellable *cancellable, |
| 80 | GAsyncReadyCallback callback, |
| 81 | gpointer user_data); |
| 82 | |
| 83 | gboolean control_host_call_boot_finish ( |
| 84 | ControlHost *proxy, |
| 85 | GAsyncResult *res, |
| 86 | GError **error); |
| 87 | |
| 88 | gboolean control_host_call_boot_sync ( |
| 89 | ControlHost *proxy, |
| 90 | GCancellable *cancellable, |
| 91 | GError **error); |
| 92 | |
| 93 | void control_host_call_shutdown ( |
| 94 | ControlHost *proxy, |
| 95 | GCancellable *cancellable, |
| 96 | GAsyncReadyCallback callback, |
| 97 | gpointer user_data); |
| 98 | |
| 99 | gboolean control_host_call_shutdown_finish ( |
| 100 | ControlHost *proxy, |
| 101 | GAsyncResult *res, |
| 102 | GError **error); |
| 103 | |
| 104 | gboolean control_host_call_shutdown_sync ( |
| 105 | ControlHost *proxy, |
| 106 | GCancellable *cancellable, |
| 107 | GError **error); |
| 108 | |
| 109 | void control_host_call_reboot ( |
| 110 | ControlHost *proxy, |
| 111 | GCancellable *cancellable, |
| 112 | GAsyncReadyCallback callback, |
| 113 | gpointer user_data); |
| 114 | |
| 115 | gboolean control_host_call_reboot_finish ( |
| 116 | ControlHost *proxy, |
| 117 | GAsyncResult *res, |
| 118 | GError **error); |
| 119 | |
| 120 | gboolean control_host_call_reboot_sync ( |
| 121 | ControlHost *proxy, |
| 122 | GCancellable *cancellable, |
| 123 | GError **error); |
| 124 | |
| 125 | |
| 126 | |
| 127 | /* ---- */ |
| 128 | |
| 129 | #define TYPE_CONTROL_HOST_PROXY (control_host_proxy_get_type ()) |
| 130 | #define CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxy)) |
| 131 | #define CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) |
| 132 | #define CONTROL_HOST_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) |
| 133 | #define IS_CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_PROXY)) |
| 134 | #define IS_CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_PROXY)) |
| 135 | |
| 136 | typedef struct _ControlHostProxy ControlHostProxy; |
| 137 | typedef struct _ControlHostProxyClass ControlHostProxyClass; |
| 138 | typedef struct _ControlHostProxyPrivate ControlHostProxyPrivate; |
| 139 | |
| 140 | struct _ControlHostProxy |
| 141 | { |
| 142 | /*< private >*/ |
| 143 | GDBusProxy parent_instance; |
| 144 | ControlHostProxyPrivate *priv; |
| 145 | }; |
| 146 | |
| 147 | struct _ControlHostProxyClass |
| 148 | { |
| 149 | GDBusProxyClass parent_class; |
| 150 | }; |
| 151 | |
| 152 | GType control_host_proxy_get_type (void) G_GNUC_CONST; |
| 153 | |
| 154 | void control_host_proxy_new ( |
| 155 | GDBusConnection *connection, |
| 156 | GDBusProxyFlags flags, |
| 157 | const gchar *name, |
| 158 | const gchar *object_path, |
| 159 | GCancellable *cancellable, |
| 160 | GAsyncReadyCallback callback, |
| 161 | gpointer user_data); |
| 162 | ControlHost *control_host_proxy_new_finish ( |
| 163 | GAsyncResult *res, |
| 164 | GError **error); |
| 165 | ControlHost *control_host_proxy_new_sync ( |
| 166 | GDBusConnection *connection, |
| 167 | GDBusProxyFlags flags, |
| 168 | const gchar *name, |
| 169 | const gchar *object_path, |
| 170 | GCancellable *cancellable, |
| 171 | GError **error); |
| 172 | |
| 173 | void control_host_proxy_new_for_bus ( |
| 174 | GBusType bus_type, |
| 175 | GDBusProxyFlags flags, |
| 176 | const gchar *name, |
| 177 | const gchar *object_path, |
| 178 | GCancellable *cancellable, |
| 179 | GAsyncReadyCallback callback, |
| 180 | gpointer user_data); |
| 181 | ControlHost *control_host_proxy_new_for_bus_finish ( |
| 182 | GAsyncResult *res, |
| 183 | GError **error); |
| 184 | ControlHost *control_host_proxy_new_for_bus_sync ( |
| 185 | GBusType bus_type, |
| 186 | GDBusProxyFlags flags, |
| 187 | const gchar *name, |
| 188 | const gchar *object_path, |
| 189 | GCancellable *cancellable, |
| 190 | GError **error); |
| 191 | |
| 192 | |
| 193 | /* ---- */ |
| 194 | |
| 195 | #define TYPE_CONTROL_HOST_SKELETON (control_host_skeleton_get_type ()) |
| 196 | #define CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeleton)) |
| 197 | #define CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) |
| 198 | #define CONTROL_HOST_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) |
| 199 | #define IS_CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_SKELETON)) |
| 200 | #define IS_CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_SKELETON)) |
| 201 | |
| 202 | typedef struct _ControlHostSkeleton ControlHostSkeleton; |
| 203 | typedef struct _ControlHostSkeletonClass ControlHostSkeletonClass; |
| 204 | typedef struct _ControlHostSkeletonPrivate ControlHostSkeletonPrivate; |
| 205 | |
| 206 | struct _ControlHostSkeleton |
| 207 | { |
| 208 | /*< private >*/ |
| 209 | GDBusInterfaceSkeleton parent_instance; |
| 210 | ControlHostSkeletonPrivate *priv; |
| 211 | }; |
| 212 | |
| 213 | struct _ControlHostSkeletonClass |
| 214 | { |
| 215 | GDBusInterfaceSkeletonClass parent_class; |
| 216 | }; |
| 217 | |
| 218 | GType control_host_skeleton_get_type (void) G_GNUC_CONST; |
| 219 | |
| 220 | ControlHost *control_host_skeleton_new (void); |
| 221 | |
| 222 | |
| 223 | /* ---- */ |
| 224 | |
| 225 | #define TYPE_OBJECT (object_get_type ()) |
| 226 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 227 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 228 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 229 | |
| 230 | struct _Object; |
| 231 | typedef struct _Object Object; |
| 232 | typedef struct _ObjectIface ObjectIface; |
| 233 | |
| 234 | struct _ObjectIface |
| 235 | { |
| 236 | GTypeInterface parent_iface; |
| 237 | }; |
| 238 | |
| 239 | GType object_get_type (void) G_GNUC_CONST; |
| 240 | |
| 241 | ControlHost *object_get_control_host (Object *object); |
| 242 | ControlHost *object_peek_control_host (Object *object); |
| 243 | |
| 244 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 245 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 246 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 247 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 248 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 249 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 250 | |
| 251 | typedef struct _ObjectProxy ObjectProxy; |
| 252 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 253 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 254 | |
| 255 | struct _ObjectProxy |
| 256 | { |
| 257 | /*< private >*/ |
| 258 | GDBusObjectProxy parent_instance; |
| 259 | ObjectProxyPrivate *priv; |
| 260 | }; |
| 261 | |
| 262 | struct _ObjectProxyClass |
| 263 | { |
| 264 | GDBusObjectProxyClass parent_class; |
| 265 | }; |
| 266 | |
| 267 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 268 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 269 | |
| 270 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 271 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 272 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 273 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 274 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 275 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 276 | |
| 277 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 278 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 279 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 280 | |
| 281 | struct _ObjectSkeleton |
| 282 | { |
| 283 | /*< private >*/ |
| 284 | GDBusObjectSkeleton parent_instance; |
| 285 | ObjectSkeletonPrivate *priv; |
| 286 | }; |
| 287 | |
| 288 | struct _ObjectSkeletonClass |
| 289 | { |
| 290 | GDBusObjectSkeletonClass parent_class; |
| 291 | }; |
| 292 | |
| 293 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 294 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
| 295 | void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_); |
| 296 | |
| 297 | /* ---- */ |
| 298 | |
| 299 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 300 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 301 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 302 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 303 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 304 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 305 | |
| 306 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 307 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 308 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 309 | |
| 310 | struct _ObjectManagerClient |
| 311 | { |
| 312 | /*< private >*/ |
| 313 | GDBusObjectManagerClient parent_instance; |
| 314 | ObjectManagerClientPrivate *priv; |
| 315 | }; |
| 316 | |
| 317 | struct _ObjectManagerClientClass |
| 318 | { |
| 319 | GDBusObjectManagerClientClass parent_class; |
| 320 | }; |
| 321 | |
| 322 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 323 | |
| 324 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 325 | |
| 326 | void object_manager_client_new ( |
| 327 | GDBusConnection *connection, |
| 328 | GDBusObjectManagerClientFlags flags, |
| 329 | const gchar *name, |
| 330 | const gchar *object_path, |
| 331 | GCancellable *cancellable, |
| 332 | GAsyncReadyCallback callback, |
| 333 | gpointer user_data); |
| 334 | GDBusObjectManager *object_manager_client_new_finish ( |
| 335 | GAsyncResult *res, |
| 336 | GError **error); |
| 337 | GDBusObjectManager *object_manager_client_new_sync ( |
| 338 | GDBusConnection *connection, |
| 339 | GDBusObjectManagerClientFlags flags, |
| 340 | const gchar *name, |
| 341 | const gchar *object_path, |
| 342 | GCancellable *cancellable, |
| 343 | GError **error); |
| 344 | |
| 345 | void object_manager_client_new_for_bus ( |
| 346 | GBusType bus_type, |
| 347 | GDBusObjectManagerClientFlags flags, |
| 348 | const gchar *name, |
| 349 | const gchar *object_path, |
| 350 | GCancellable *cancellable, |
| 351 | GAsyncReadyCallback callback, |
| 352 | gpointer user_data); |
| 353 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 354 | GAsyncResult *res, |
| 355 | GError **error); |
| 356 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 357 | GBusType bus_type, |
| 358 | GDBusObjectManagerClientFlags flags, |
| 359 | const gchar *name, |
| 360 | const gchar *object_path, |
| 361 | GCancellable *cancellable, |
| 362 | GError **error); |
| 363 | |
| 364 | |
| 365 | G_END_DECLS |
| 366 | |
| 367 | #endif /* __INTERFACES_CONTROL_HOST_H__ */ |