| /* |
| * 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_SENSOR_H__ |
| #define __INTERFACES_SENSOR_H__ |
| |
| #include <gio/gio.h> |
| |
| G_BEGIN_DECLS |
| |
| |
| /* ------------------------------------------------------------------------ */ |
| /* Declarations for org.openbmc.SensorValue */ |
| |
| #define TYPE_SENSOR_VALUE (sensor_value_get_type ()) |
| #define SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE, SensorValue)) |
| #define IS_SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE)) |
| #define SENSOR_VALUE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_VALUE, SensorValueIface)) |
| |
| struct _SensorValue; |
| typedef struct _SensorValue SensorValue; |
| typedef struct _SensorValueIface SensorValueIface; |
| |
| struct _SensorValueIface |
| { |
| GTypeInterface parent_iface; |
| |
| |
| |
| gboolean (*handle_get_value) ( |
| SensorValue *object, |
| GDBusMethodInvocation *invocation); |
| |
| gboolean (*handle_init) ( |
| SensorValue *object, |
| GDBusMethodInvocation *invocation); |
| |
| gboolean (*handle_set_value) ( |
| SensorValue *object, |
| GDBusMethodInvocation *invocation, |
| GVariant *arg_value); |
| |
| gint (*get_heatbeat) (SensorValue *object); |
| |
| gint (*get_poll_interval) (SensorValue *object); |
| |
| gboolean (*get_settable) (SensorValue *object); |
| |
| const gchar * (*get_units) (SensorValue *object); |
| |
| GVariant * (*get_value) (SensorValue *object); |
| |
| void (*changed) ( |
| SensorValue *object, |
| GVariant *arg_value, |
| const gchar *arg_units); |
| |
| void (*heartbeat) ( |
| SensorValue *object, |
| const gchar *arg_bus_name); |
| |
| }; |
| |
| GType sensor_value_get_type (void) G_GNUC_CONST; |
| |
| GDBusInterfaceInfo *sensor_value_interface_info (void); |
| guint sensor_value_override_properties (GObjectClass *klass, guint property_id_begin); |
| |
| |
| /* D-Bus method call completion functions: */ |
| void sensor_value_complete_init ( |
| SensorValue *object, |
| GDBusMethodInvocation *invocation); |
| |
| void sensor_value_complete_get_value ( |
| SensorValue *object, |
| GDBusMethodInvocation *invocation, |
| GVariant *value); |
| |
| void sensor_value_complete_set_value ( |
| SensorValue *object, |
| GDBusMethodInvocation *invocation); |
| |
| |
| |
| /* D-Bus signal emissions functions: */ |
| void sensor_value_emit_changed ( |
| SensorValue *object, |
| GVariant *arg_value, |
| const gchar *arg_units); |
| |
| void sensor_value_emit_heartbeat ( |
| SensorValue *object, |
| const gchar *arg_bus_name); |
| |
| |
| |
| /* D-Bus method calls: */ |
| void sensor_value_call_init ( |
| SensorValue *proxy, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| |
| gboolean sensor_value_call_init_finish ( |
| SensorValue *proxy, |
| GAsyncResult *res, |
| GError **error); |
| |
| gboolean sensor_value_call_init_sync ( |
| SensorValue *proxy, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void sensor_value_call_get_value ( |
| SensorValue *proxy, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| |
| gboolean sensor_value_call_get_value_finish ( |
| SensorValue *proxy, |
| GVariant **out_value, |
| GAsyncResult *res, |
| GError **error); |
| |
| gboolean sensor_value_call_get_value_sync ( |
| SensorValue *proxy, |
| GVariant **out_value, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void sensor_value_call_set_value ( |
| SensorValue *proxy, |
| GVariant *arg_value, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| |
| gboolean sensor_value_call_set_value_finish ( |
| SensorValue *proxy, |
| GAsyncResult *res, |
| GError **error); |
| |
| gboolean sensor_value_call_set_value_sync ( |
| SensorValue *proxy, |
| GVariant *arg_value, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| |
| /* D-Bus property accessors: */ |
| GVariant *sensor_value_get_value (SensorValue *object); |
| GVariant *sensor_value_dup_value (SensorValue *object); |
| void sensor_value_set_value (SensorValue *object, GVariant *value); |
| |
| const gchar *sensor_value_get_units (SensorValue *object); |
| gchar *sensor_value_dup_units (SensorValue *object); |
| void sensor_value_set_units (SensorValue *object, const gchar *value); |
| |
| gint sensor_value_get_poll_interval (SensorValue *object); |
| void sensor_value_set_poll_interval (SensorValue *object, gint value); |
| |
| gint sensor_value_get_heatbeat (SensorValue *object); |
| void sensor_value_set_heatbeat (SensorValue *object, gint value); |
| |
| gboolean sensor_value_get_settable (SensorValue *object); |
| void sensor_value_set_settable (SensorValue *object, gboolean value); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_SENSOR_VALUE_PROXY (sensor_value_proxy_get_type ()) |
| #define SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxy)) |
| #define SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) |
| #define SENSOR_VALUE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) |
| #define IS_SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_PROXY)) |
| #define IS_SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_PROXY)) |
| |
| typedef struct _SensorValueProxy SensorValueProxy; |
| typedef struct _SensorValueProxyClass SensorValueProxyClass; |
| typedef struct _SensorValueProxyPrivate SensorValueProxyPrivate; |
| |
| struct _SensorValueProxy |
| { |
| /*< private >*/ |
| GDBusProxy parent_instance; |
| SensorValueProxyPrivate *priv; |
| }; |
| |
| struct _SensorValueProxyClass |
| { |
| GDBusProxyClass parent_class; |
| }; |
| |
| GType sensor_value_proxy_get_type (void) G_GNUC_CONST; |
| |
| void sensor_value_proxy_new ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| SensorValue *sensor_value_proxy_new_finish ( |
| GAsyncResult *res, |
| GError **error); |
| SensorValue *sensor_value_proxy_new_sync ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void sensor_value_proxy_new_for_bus ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| SensorValue *sensor_value_proxy_new_for_bus_finish ( |
| GAsyncResult *res, |
| GError **error); |
| SensorValue *sensor_value_proxy_new_for_bus_sync ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_SENSOR_VALUE_SKELETON (sensor_value_skeleton_get_type ()) |
| #define SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeleton)) |
| #define SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) |
| #define SENSOR_VALUE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) |
| #define IS_SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_SKELETON)) |
| #define IS_SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_SKELETON)) |
| |
| typedef struct _SensorValueSkeleton SensorValueSkeleton; |
| typedef struct _SensorValueSkeletonClass SensorValueSkeletonClass; |
| typedef struct _SensorValueSkeletonPrivate SensorValueSkeletonPrivate; |
| |
| struct _SensorValueSkeleton |
| { |
| /*< private >*/ |
| GDBusInterfaceSkeleton parent_instance; |
| SensorValueSkeletonPrivate *priv; |
| }; |
| |
| struct _SensorValueSkeletonClass |
| { |
| GDBusInterfaceSkeletonClass parent_class; |
| }; |
| |
| GType sensor_value_skeleton_get_type (void) G_GNUC_CONST; |
| |
| SensorValue *sensor_value_skeleton_new (void); |
| |
| |
| /* ------------------------------------------------------------------------ */ |
| /* Declarations for org.openbmc.SensorThreshold */ |
| |
| #define TYPE_SENSOR_THRESHOLD (sensor_threshold_get_type ()) |
| #define SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD, SensorThreshold)) |
| #define IS_SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD)) |
| #define SENSOR_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_THRESHOLD, SensorThresholdIface)) |
| |
| struct _SensorThreshold; |
| typedef struct _SensorThreshold SensorThreshold; |
| typedef struct _SensorThresholdIface SensorThresholdIface; |
| |
| struct _SensorThresholdIface |
| { |
| GTypeInterface parent_iface; |
| |
| |
| |
| gboolean (*handle_get_state) ( |
| SensorThreshold *object, |
| GDBusMethodInvocation *invocation); |
| |
| GVariant * (*get_lower_critical) (SensorThreshold *object); |
| |
| GVariant * (*get_lower_warning) (SensorThreshold *object); |
| |
| guchar (*get_state) (SensorThreshold *object); |
| |
| GVariant * (*get_upper_critical) (SensorThreshold *object); |
| |
| GVariant * (*get_upper_warning) (SensorThreshold *object); |
| |
| void (*critical) ( |
| SensorThreshold *object); |
| |
| void (*normal) ( |
| SensorThreshold *object); |
| |
| void (*warning) ( |
| SensorThreshold *object); |
| |
| }; |
| |
| GType sensor_threshold_get_type (void) G_GNUC_CONST; |
| |
| GDBusInterfaceInfo *sensor_threshold_interface_info (void); |
| guint sensor_threshold_override_properties (GObjectClass *klass, guint property_id_begin); |
| |
| |
| /* D-Bus method call completion functions: */ |
| void sensor_threshold_complete_get_state ( |
| SensorThreshold *object, |
| GDBusMethodInvocation *invocation, |
| guchar state); |
| |
| |
| |
| /* D-Bus signal emissions functions: */ |
| void sensor_threshold_emit_warning ( |
| SensorThreshold *object); |
| |
| void sensor_threshold_emit_critical ( |
| SensorThreshold *object); |
| |
| void sensor_threshold_emit_normal ( |
| SensorThreshold *object); |
| |
| |
| |
| /* D-Bus method calls: */ |
| void sensor_threshold_call_get_state ( |
| SensorThreshold *proxy, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| |
| gboolean sensor_threshold_call_get_state_finish ( |
| SensorThreshold *proxy, |
| guchar *out_state, |
| GAsyncResult *res, |
| GError **error); |
| |
| gboolean sensor_threshold_call_get_state_sync ( |
| SensorThreshold *proxy, |
| guchar *out_state, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| |
| /* D-Bus property accessors: */ |
| GVariant *sensor_threshold_get_lower_critical (SensorThreshold *object); |
| GVariant *sensor_threshold_dup_lower_critical (SensorThreshold *object); |
| void sensor_threshold_set_lower_critical (SensorThreshold *object, GVariant *value); |
| |
| GVariant *sensor_threshold_get_lower_warning (SensorThreshold *object); |
| GVariant *sensor_threshold_dup_lower_warning (SensorThreshold *object); |
| void sensor_threshold_set_lower_warning (SensorThreshold *object, GVariant *value); |
| |
| GVariant *sensor_threshold_get_upper_warning (SensorThreshold *object); |
| GVariant *sensor_threshold_dup_upper_warning (SensorThreshold *object); |
| void sensor_threshold_set_upper_warning (SensorThreshold *object, GVariant *value); |
| |
| GVariant *sensor_threshold_get_upper_critical (SensorThreshold *object); |
| GVariant *sensor_threshold_dup_upper_critical (SensorThreshold *object); |
| void sensor_threshold_set_upper_critical (SensorThreshold *object, GVariant *value); |
| |
| guchar sensor_threshold_get_state (SensorThreshold *object); |
| void sensor_threshold_set_state (SensorThreshold *object, guchar value); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_SENSOR_THRESHOLD_PROXY (sensor_threshold_proxy_get_type ()) |
| #define SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxy)) |
| #define SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) |
| #define SENSOR_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) |
| #define IS_SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_PROXY)) |
| #define IS_SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_PROXY)) |
| |
| typedef struct _SensorThresholdProxy SensorThresholdProxy; |
| typedef struct _SensorThresholdProxyClass SensorThresholdProxyClass; |
| typedef struct _SensorThresholdProxyPrivate SensorThresholdProxyPrivate; |
| |
| struct _SensorThresholdProxy |
| { |
| /*< private >*/ |
| GDBusProxy parent_instance; |
| SensorThresholdProxyPrivate *priv; |
| }; |
| |
| struct _SensorThresholdProxyClass |
| { |
| GDBusProxyClass parent_class; |
| }; |
| |
| GType sensor_threshold_proxy_get_type (void) G_GNUC_CONST; |
| |
| void sensor_threshold_proxy_new ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| SensorThreshold *sensor_threshold_proxy_new_finish ( |
| GAsyncResult *res, |
| GError **error); |
| SensorThreshold *sensor_threshold_proxy_new_sync ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void sensor_threshold_proxy_new_for_bus ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| SensorThreshold *sensor_threshold_proxy_new_for_bus_finish ( |
| GAsyncResult *res, |
| GError **error); |
| SensorThreshold *sensor_threshold_proxy_new_for_bus_sync ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_SENSOR_THRESHOLD_SKELETON (sensor_threshold_skeleton_get_type ()) |
| #define SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeleton)) |
| #define SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) |
| #define SENSOR_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) |
| #define IS_SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_SKELETON)) |
| #define IS_SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_SKELETON)) |
| |
| typedef struct _SensorThresholdSkeleton SensorThresholdSkeleton; |
| typedef struct _SensorThresholdSkeletonClass SensorThresholdSkeletonClass; |
| typedef struct _SensorThresholdSkeletonPrivate SensorThresholdSkeletonPrivate; |
| |
| struct _SensorThresholdSkeleton |
| { |
| /*< private >*/ |
| GDBusInterfaceSkeleton parent_instance; |
| SensorThresholdSkeletonPrivate *priv; |
| }; |
| |
| struct _SensorThresholdSkeletonClass |
| { |
| GDBusInterfaceSkeletonClass parent_class; |
| }; |
| |
| GType sensor_threshold_skeleton_get_type (void) G_GNUC_CONST; |
| |
| SensorThreshold *sensor_threshold_skeleton_new (void); |
| |
| |
| /* ------------------------------------------------------------------------ */ |
| /* Declarations for org.openbmc.SensorI2c */ |
| |
| #define TYPE_SENSOR_I2C (sensor_i2c_get_type ()) |
| #define SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C, SensorI2c)) |
| #define IS_SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C)) |
| #define SENSOR_I2C_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_I2C, SensorI2cIface)) |
| |
| struct _SensorI2c; |
| typedef struct _SensorI2c SensorI2c; |
| typedef struct _SensorI2cIface SensorI2cIface; |
| |
| struct _SensorI2cIface |
| { |
| GTypeInterface parent_iface; |
| |
| const gchar * (*get_address) (SensorI2c *object); |
| |
| const gchar * (*get_dev_path) (SensorI2c *object); |
| |
| }; |
| |
| GType sensor_i2c_get_type (void) G_GNUC_CONST; |
| |
| GDBusInterfaceInfo *sensor_i2c_interface_info (void); |
| guint sensor_i2c_override_properties (GObjectClass *klass, guint property_id_begin); |
| |
| |
| /* D-Bus property accessors: */ |
| const gchar *sensor_i2c_get_dev_path (SensorI2c *object); |
| gchar *sensor_i2c_dup_dev_path (SensorI2c *object); |
| void sensor_i2c_set_dev_path (SensorI2c *object, const gchar *value); |
| |
| const gchar *sensor_i2c_get_address (SensorI2c *object); |
| gchar *sensor_i2c_dup_address (SensorI2c *object); |
| void sensor_i2c_set_address (SensorI2c *object, const gchar *value); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_SENSOR_I2C_PROXY (sensor_i2c_proxy_get_type ()) |
| #define SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxy)) |
| #define SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) |
| #define SENSOR_I2C_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) |
| #define IS_SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_PROXY)) |
| #define IS_SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_PROXY)) |
| |
| typedef struct _SensorI2cProxy SensorI2cProxy; |
| typedef struct _SensorI2cProxyClass SensorI2cProxyClass; |
| typedef struct _SensorI2cProxyPrivate SensorI2cProxyPrivate; |
| |
| struct _SensorI2cProxy |
| { |
| /*< private >*/ |
| GDBusProxy parent_instance; |
| SensorI2cProxyPrivate *priv; |
| }; |
| |
| struct _SensorI2cProxyClass |
| { |
| GDBusProxyClass parent_class; |
| }; |
| |
| GType sensor_i2c_proxy_get_type (void) G_GNUC_CONST; |
| |
| void sensor_i2c_proxy_new ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| SensorI2c *sensor_i2c_proxy_new_finish ( |
| GAsyncResult *res, |
| GError **error); |
| SensorI2c *sensor_i2c_proxy_new_sync ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void sensor_i2c_proxy_new_for_bus ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| SensorI2c *sensor_i2c_proxy_new_for_bus_finish ( |
| GAsyncResult *res, |
| GError **error); |
| SensorI2c *sensor_i2c_proxy_new_for_bus_sync ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_SENSOR_I2C_SKELETON (sensor_i2c_skeleton_get_type ()) |
| #define SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeleton)) |
| #define SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) |
| #define SENSOR_I2C_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) |
| #define IS_SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_SKELETON)) |
| #define IS_SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_SKELETON)) |
| |
| typedef struct _SensorI2cSkeleton SensorI2cSkeleton; |
| typedef struct _SensorI2cSkeletonClass SensorI2cSkeletonClass; |
| typedef struct _SensorI2cSkeletonPrivate SensorI2cSkeletonPrivate; |
| |
| struct _SensorI2cSkeleton |
| { |
| /*< private >*/ |
| GDBusInterfaceSkeleton parent_instance; |
| SensorI2cSkeletonPrivate *priv; |
| }; |
| |
| struct _SensorI2cSkeletonClass |
| { |
| GDBusInterfaceSkeletonClass parent_class; |
| }; |
| |
| GType sensor_i2c_skeleton_get_type (void) G_GNUC_CONST; |
| |
| SensorI2c *sensor_i2c_skeleton_new (void); |
| |
| |
| /* ------------------------------------------------------------------------ */ |
| /* Declarations for org.openbmc.SensorMatch */ |
| |
| #define TYPE_SENSOR_MATCH (sensor_match_get_type ()) |
| #define SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH, SensorMatch)) |
| #define IS_SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH)) |
| #define SENSOR_MATCH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_MATCH, SensorMatchIface)) |
| |
| struct _SensorMatch; |
| typedef struct _SensorMatch SensorMatch; |
| typedef struct _SensorMatchIface SensorMatchIface; |
| |
| struct _SensorMatchIface |
| { |
| GTypeInterface parent_iface; |
| |
| |
| GVariant * (*get_match_value) (SensorMatch *object); |
| |
| guchar (*get_state) (SensorMatch *object); |
| |
| void (*sensor_match) ( |
| SensorMatch *object, |
| guchar arg_state); |
| |
| }; |
| |
| GType sensor_match_get_type (void) G_GNUC_CONST; |
| |
| GDBusInterfaceInfo *sensor_match_interface_info (void); |
| guint sensor_match_override_properties (GObjectClass *klass, guint property_id_begin); |
| |
| |
| /* D-Bus signal emissions functions: */ |
| void sensor_match_emit_sensor_match ( |
| SensorMatch *object, |
| guchar arg_state); |
| |
| |
| |
| /* D-Bus property accessors: */ |
| GVariant *sensor_match_get_match_value (SensorMatch *object); |
| GVariant *sensor_match_dup_match_value (SensorMatch *object); |
| void sensor_match_set_match_value (SensorMatch *object, GVariant *value); |
| |
| guchar sensor_match_get_state (SensorMatch *object); |
| void sensor_match_set_state (SensorMatch *object, guchar value); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_SENSOR_MATCH_PROXY (sensor_match_proxy_get_type ()) |
| #define SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxy)) |
| #define SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass)) |
| #define SENSOR_MATCH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass)) |
| #define IS_SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_PROXY)) |
| #define IS_SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_PROXY)) |
| |
| typedef struct _SensorMatchProxy SensorMatchProxy; |
| typedef struct _SensorMatchProxyClass SensorMatchProxyClass; |
| typedef struct _SensorMatchProxyPrivate SensorMatchProxyPrivate; |
| |
| struct _SensorMatchProxy |
| { |
| /*< private >*/ |
| GDBusProxy parent_instance; |
| SensorMatchProxyPrivate *priv; |
| }; |
| |
| struct _SensorMatchProxyClass |
| { |
| GDBusProxyClass parent_class; |
| }; |
| |
| GType sensor_match_proxy_get_type (void) G_GNUC_CONST; |
| |
| void sensor_match_proxy_new ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| SensorMatch *sensor_match_proxy_new_finish ( |
| GAsyncResult *res, |
| GError **error); |
| SensorMatch *sensor_match_proxy_new_sync ( |
| GDBusConnection *connection, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| void sensor_match_proxy_new_for_bus ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GAsyncReadyCallback callback, |
| gpointer user_data); |
| SensorMatch *sensor_match_proxy_new_for_bus_finish ( |
| GAsyncResult *res, |
| GError **error); |
| SensorMatch *sensor_match_proxy_new_for_bus_sync ( |
| GBusType bus_type, |
| GDBusProxyFlags flags, |
| const gchar *name, |
| const gchar *object_path, |
| GCancellable *cancellable, |
| GError **error); |
| |
| |
| /* ---- */ |
| |
| #define TYPE_SENSOR_MATCH_SKELETON (sensor_match_skeleton_get_type ()) |
| #define SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeleton)) |
| #define SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass)) |
| #define SENSOR_MATCH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass)) |
| #define IS_SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_SKELETON)) |
| #define IS_SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_SKELETON)) |
| |
| typedef struct _SensorMatchSkeleton SensorMatchSkeleton; |
| typedef struct _SensorMatchSkeletonClass SensorMatchSkeletonClass; |
| typedef struct _SensorMatchSkeletonPrivate SensorMatchSkeletonPrivate; |
| |
| struct _SensorMatchSkeleton |
| { |
| /*< private >*/ |
| GDBusInterfaceSkeleton parent_instance; |
| SensorMatchSkeletonPrivate *priv; |
| }; |
| |
| struct _SensorMatchSkeletonClass |
| { |
| GDBusInterfaceSkeletonClass parent_class; |
| }; |
| |
| GType sensor_match_skeleton_get_type (void) G_GNUC_CONST; |
| |
| SensorMatch *sensor_match_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; |
| |
| SensorValue *object_get_sensor_value (Object *object); |
| SensorThreshold *object_get_sensor_threshold (Object *object); |
| SensorI2c *object_get_sensor_i2c (Object *object); |
| SensorMatch *object_get_sensor_match (Object *object); |
| SensorValue *object_peek_sensor_value (Object *object); |
| SensorThreshold *object_peek_sensor_threshold (Object *object); |
| SensorI2c *object_peek_sensor_i2c (Object *object); |
| SensorMatch *object_peek_sensor_match (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_sensor_value (ObjectSkeleton *object, SensorValue *interface_); |
| void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_); |
| void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_); |
| void object_skeleton_set_sensor_match (ObjectSkeleton *object, SensorMatch *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_SENSOR_H__ */ |