| /* | |
| * Generated by gdbus-codegen 2.40.2. DO NOT EDIT. | |
| * | |
| * The license of this code is the same as for the source it was derived from. | |
| */ | |
| #ifndef __INTERFACES_HOST_CONTROL_H__ | |
| #define __INTERFACES_HOST_CONTROL_H__ | |
| #include <gio/gio.h> | |
| G_BEGIN_DECLS | |
| /* ------------------------------------------------------------------------ */ | |
| /* Declarations for org.openbmc.HostControl */ | |
| #define TYPE_HOST_CONTROL (host_control_get_type ()) | |
| #define HOST_CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_CONTROL, HostControl)) | |
| #define IS_HOST_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_CONTROL)) | |
| #define HOST_CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_HOST_CONTROL, HostControlIface)) | |
| struct _HostControl; | |
| typedef struct _HostControl HostControl; | |
| typedef struct _HostControlIface HostControlIface; | |
| struct _HostControlIface | |
| { | |
| GTypeInterface parent_iface; | |
| gboolean (*handle_boot) ( | |
| HostControl *object, | |
| GDBusMethodInvocation *invocation); | |
| gboolean (*handle_shutdown) ( | |
| HostControl *object, | |
| GDBusMethodInvocation *invocation); | |
| void (*booted) ( | |
| HostControl *object); | |
| }; | |
| GType host_control_get_type (void) G_GNUC_CONST; | |
| GDBusInterfaceInfo *host_control_interface_info (void); | |
| guint host_control_override_properties (GObjectClass *klass, guint property_id_begin); | |
| /* D-Bus method call completion functions: */ | |
| void host_control_complete_boot ( | |
| HostControl *object, | |
| GDBusMethodInvocation *invocation); | |
| void host_control_complete_shutdown ( | |
| HostControl *object, | |
| GDBusMethodInvocation *invocation); | |
| /* D-Bus signal emissions functions: */ | |
| void host_control_emit_booted ( | |
| HostControl *object); | |
| /* D-Bus method calls: */ | |
| void host_control_call_boot ( | |
| HostControl *proxy, | |
| GCancellable *cancellable, | |
| GAsyncReadyCallback callback, | |
| gpointer user_data); | |
| gboolean host_control_call_boot_finish ( | |
| HostControl *proxy, | |
| GAsyncResult *res, | |
| GError **error); | |
| gboolean host_control_call_boot_sync ( | |
| HostControl *proxy, | |
| GCancellable *cancellable, | |
| GError **error); | |
| void host_control_call_shutdown ( | |
| HostControl *proxy, | |
| GCancellable *cancellable, | |
| GAsyncReadyCallback callback, | |
| gpointer user_data); | |
| gboolean host_control_call_shutdown_finish ( | |
| HostControl *proxy, | |
| GAsyncResult *res, | |
| GError **error); | |
| gboolean host_control_call_shutdown_sync ( | |
| HostControl *proxy, | |
| GCancellable *cancellable, | |
| GError **error); | |
| /* ---- */ | |
| #define TYPE_HOST_CONTROL_PROXY (host_control_proxy_get_type ()) | |
| #define HOST_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_CONTROL_PROXY, HostControlProxy)) | |
| #define HOST_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_CONTROL_PROXY, HostControlProxyClass)) | |
| #define HOST_CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_CONTROL_PROXY, HostControlProxyClass)) | |
| #define IS_HOST_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_CONTROL_PROXY)) | |
| #define IS_HOST_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_CONTROL_PROXY)) | |
| typedef struct _HostControlProxy HostControlProxy; | |
| typedef struct _HostControlProxyClass HostControlProxyClass; | |
| typedef struct _HostControlProxyPrivate HostControlProxyPrivate; | |
| struct _HostControlProxy | |
| { | |
| /*< private >*/ | |
| GDBusProxy parent_instance; | |
| HostControlProxyPrivate *priv; | |
| }; | |
| struct _HostControlProxyClass | |
| { | |
| GDBusProxyClass parent_class; | |
| }; | |
| GType host_control_proxy_get_type (void) G_GNUC_CONST; | |
| void host_control_proxy_new ( | |
| GDBusConnection *connection, | |
| GDBusProxyFlags flags, | |
| const gchar *name, | |
| const gchar *object_path, | |
| GCancellable *cancellable, | |
| GAsyncReadyCallback callback, | |
| gpointer user_data); | |
| HostControl *host_control_proxy_new_finish ( | |
| GAsyncResult *res, | |
| GError **error); | |
| HostControl *host_control_proxy_new_sync ( | |
| GDBusConnection *connection, | |
| GDBusProxyFlags flags, | |
| const gchar *name, | |
| const gchar *object_path, | |
| GCancellable *cancellable, | |
| GError **error); | |
| void host_control_proxy_new_for_bus ( | |
| GBusType bus_type, | |
| GDBusProxyFlags flags, | |
| const gchar *name, | |
| const gchar *object_path, | |
| GCancellable *cancellable, | |
| GAsyncReadyCallback callback, | |
| gpointer user_data); | |
| HostControl *host_control_proxy_new_for_bus_finish ( | |
| GAsyncResult *res, | |
| GError **error); | |
| HostControl *host_control_proxy_new_for_bus_sync ( | |
| GBusType bus_type, | |
| GDBusProxyFlags flags, | |
| const gchar *name, | |
| const gchar *object_path, | |
| GCancellable *cancellable, | |
| GError **error); | |
| /* ---- */ | |
| #define TYPE_HOST_CONTROL_SKELETON (host_control_skeleton_get_type ()) | |
| #define HOST_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_CONTROL_SKELETON, HostControlSkeleton)) | |
| #define HOST_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_CONTROL_SKELETON, HostControlSkeletonClass)) | |
| #define HOST_CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_CONTROL_SKELETON, HostControlSkeletonClass)) | |
| #define IS_HOST_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_CONTROL_SKELETON)) | |
| #define IS_HOST_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_CONTROL_SKELETON)) | |
| typedef struct _HostControlSkeleton HostControlSkeleton; | |
| typedef struct _HostControlSkeletonClass HostControlSkeletonClass; | |
| typedef struct _HostControlSkeletonPrivate HostControlSkeletonPrivate; | |
| struct _HostControlSkeleton | |
| { | |
| /*< private >*/ | |
| GDBusInterfaceSkeleton parent_instance; | |
| HostControlSkeletonPrivate *priv; | |
| }; | |
| struct _HostControlSkeletonClass | |
| { | |
| GDBusInterfaceSkeletonClass parent_class; | |
| }; | |
| GType host_control_skeleton_get_type (void) G_GNUC_CONST; | |
| HostControl *host_control_skeleton_new (void); | |
| /* ---- */ | |
| #define TYPE_OBJECT (object_get_type ()) | |
| #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) | |
| #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) | |
| #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) | |
| struct _Object; | |
| typedef struct _Object Object; | |
| typedef struct _ObjectIface ObjectIface; | |
| struct _ObjectIface | |
| { | |
| GTypeInterface parent_iface; | |
| }; | |
| GType object_get_type (void) G_GNUC_CONST; | |
| HostControl *object_get_host_control (Object *object); | |
| HostControl *object_peek_host_control (Object *object); | |
| #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) | |
| #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) | |
| #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) | |
| #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) | |
| #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) | |
| #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) | |
| typedef struct _ObjectProxy ObjectProxy; | |
| typedef struct _ObjectProxyClass ObjectProxyClass; | |
| typedef struct _ObjectProxyPrivate ObjectProxyPrivate; | |
| struct _ObjectProxy | |
| { | |
| /*< private >*/ | |
| GDBusObjectProxy parent_instance; | |
| ObjectProxyPrivate *priv; | |
| }; | |
| struct _ObjectProxyClass | |
| { | |
| GDBusObjectProxyClass parent_class; | |
| }; | |
| GType object_proxy_get_type (void) G_GNUC_CONST; | |
| ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); | |
| #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) | |
| #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) | |
| #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) | |
| #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) | |
| #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) | |
| #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) | |
| typedef struct _ObjectSkeleton ObjectSkeleton; | |
| typedef struct _ObjectSkeletonClass ObjectSkeletonClass; | |
| typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; | |
| struct _ObjectSkeleton | |
| { | |
| /*< private >*/ | |
| GDBusObjectSkeleton parent_instance; | |
| ObjectSkeletonPrivate *priv; | |
| }; | |
| struct _ObjectSkeletonClass | |
| { | |
| GDBusObjectSkeletonClass parent_class; | |
| }; | |
| GType object_skeleton_get_type (void) G_GNUC_CONST; | |
| ObjectSkeleton *object_skeleton_new (const gchar *object_path); | |
| void object_skeleton_set_host_control (ObjectSkeleton *object, HostControl *interface_); | |
| /* ---- */ | |
| #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) | |
| #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) | |
| #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) | |
| #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) | |
| #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) | |
| #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) | |
| typedef struct _ObjectManagerClient ObjectManagerClient; | |
| typedef struct _ObjectManagerClientClass ObjectManagerClientClass; | |
| typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; | |
| struct _ObjectManagerClient | |
| { | |
| /*< private >*/ | |
| GDBusObjectManagerClient parent_instance; | |
| ObjectManagerClientPrivate *priv; | |
| }; | |
| struct _ObjectManagerClientClass | |
| { | |
| GDBusObjectManagerClientClass parent_class; | |
| }; | |
| GType object_manager_client_get_type (void) G_GNUC_CONST; | |
| GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); | |
| void object_manager_client_new ( | |
| GDBusConnection *connection, | |
| GDBusObjectManagerClientFlags flags, | |
| const gchar *name, | |
| const gchar *object_path, | |
| GCancellable *cancellable, | |
| GAsyncReadyCallback callback, | |
| gpointer user_data); | |
| GDBusObjectManager *object_manager_client_new_finish ( | |
| GAsyncResult *res, | |
| GError **error); | |
| GDBusObjectManager *object_manager_client_new_sync ( | |
| GDBusConnection *connection, | |
| GDBusObjectManagerClientFlags flags, | |
| const gchar *name, | |
| const gchar *object_path, | |
| GCancellable *cancellable, | |
| GError **error); | |
| void object_manager_client_new_for_bus ( | |
| GBusType bus_type, | |
| GDBusObjectManagerClientFlags flags, | |
| const gchar *name, | |
| const gchar *object_path, | |
| GCancellable *cancellable, | |
| GAsyncReadyCallback callback, | |
| gpointer user_data); | |
| GDBusObjectManager *object_manager_client_new_for_bus_finish ( | |
| GAsyncResult *res, | |
| GError **error); | |
| GDBusObjectManager *object_manager_client_new_for_bus_sync ( | |
| GBusType bus_type, | |
| GDBusObjectManagerClientFlags flags, | |
| const gchar *name, | |
| const gchar *object_path, | |
| GCancellable *cancellable, | |
| GError **error); | |
| G_END_DECLS | |
| #endif /* __INTERFACES_HOST_CONTROL_H__ */ |