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_SENSOR_H__ |
| 8 | #define __INTERFACES_SENSOR_H__ |
| 9 | |
| 10 | #include <gio/gio.h> |
| 11 | |
| 12 | G_BEGIN_DECLS |
| 13 | |
| 14 | |
| 15 | /* ------------------------------------------------------------------------ */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 16 | /* Declarations for org.openbmc.SensorValue */ |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 17 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 18 | #define TYPE_SENSOR_VALUE (sensor_value_get_type ()) |
| 19 | #define SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE, SensorValue)) |
| 20 | #define IS_SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE)) |
| 21 | #define SENSOR_VALUE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_VALUE, SensorValueIface)) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 22 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 23 | struct _SensorValue; |
| 24 | typedef struct _SensorValue SensorValue; |
| 25 | typedef struct _SensorValueIface SensorValueIface; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 26 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 27 | struct _SensorValueIface |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 28 | { |
| 29 | GTypeInterface parent_iface; |
| 30 | |
| 31 | |
| 32 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 33 | gboolean (*handle_get_value) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 34 | SensorValue *object, |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 35 | GDBusMethodInvocation *invocation); |
| 36 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 37 | gboolean (*handle_init) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 38 | SensorValue *object, |
Norman James | e759492 | 2015-08-27 14:25:24 -0500 | [diff] [blame] | 39 | GDBusMethodInvocation *invocation); |
| 40 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 41 | gboolean (*handle_set_value) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 42 | SensorValue *object, |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 43 | GDBusMethodInvocation *invocation, |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 44 | GVariant *arg_value); |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 45 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 46 | gint (*get_heatbeat) (SensorValue *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 47 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 48 | gint (*get_poll_interval) (SensorValue *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 49 | |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 50 | gboolean (*get_settable) (SensorValue *object); |
| 51 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 52 | const gchar * (*get_units) (SensorValue *object); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 53 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 54 | GVariant * (*get_value) (SensorValue *object); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 55 | |
| 56 | void (*changed) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 57 | SensorValue *object, |
| 58 | GVariant *arg_value, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 59 | const gchar *arg_units); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 60 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 61 | void (*heartbeat) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 62 | SensorValue *object, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 63 | const gchar *arg_bus_name); |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 64 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 65 | }; |
| 66 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 67 | GType sensor_value_get_type (void) G_GNUC_CONST; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 68 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 69 | GDBusInterfaceInfo *sensor_value_interface_info (void); |
| 70 | guint sensor_value_override_properties (GObjectClass *klass, guint property_id_begin); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 71 | |
| 72 | |
| 73 | /* D-Bus method call completion functions: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 74 | void sensor_value_complete_init ( |
| 75 | SensorValue *object, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 76 | GDBusMethodInvocation *invocation); |
| 77 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 78 | void sensor_value_complete_get_value ( |
| 79 | SensorValue *object, |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 80 | GDBusMethodInvocation *invocation, |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 81 | GVariant *value); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 82 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 83 | void sensor_value_complete_set_value ( |
| 84 | SensorValue *object, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 85 | GDBusMethodInvocation *invocation); |
| 86 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 87 | |
| 88 | |
| 89 | /* D-Bus signal emissions functions: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 90 | void sensor_value_emit_changed ( |
| 91 | SensorValue *object, |
| 92 | GVariant *arg_value, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 93 | const gchar *arg_units); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 94 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 95 | void sensor_value_emit_heartbeat ( |
| 96 | SensorValue *object, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 97 | const gchar *arg_bus_name); |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 98 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 99 | |
| 100 | |
| 101 | /* D-Bus method calls: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 102 | void sensor_value_call_init ( |
| 103 | SensorValue *proxy, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 104 | GCancellable *cancellable, |
| 105 | GAsyncReadyCallback callback, |
| 106 | gpointer user_data); |
| 107 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 108 | gboolean sensor_value_call_init_finish ( |
| 109 | SensorValue *proxy, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 110 | GAsyncResult *res, |
| 111 | GError **error); |
| 112 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 113 | gboolean sensor_value_call_init_sync ( |
| 114 | SensorValue *proxy, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 115 | GCancellable *cancellable, |
| 116 | GError **error); |
| 117 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 118 | void sensor_value_call_get_value ( |
| 119 | SensorValue *proxy, |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 120 | GCancellable *cancellable, |
| 121 | GAsyncReadyCallback callback, |
| 122 | gpointer user_data); |
| 123 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 124 | gboolean sensor_value_call_get_value_finish ( |
| 125 | SensorValue *proxy, |
| 126 | GVariant **out_value, |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 127 | GAsyncResult *res, |
| 128 | GError **error); |
| 129 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 130 | gboolean sensor_value_call_get_value_sync ( |
| 131 | SensorValue *proxy, |
| 132 | GVariant **out_value, |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 133 | GCancellable *cancellable, |
| 134 | GError **error); |
| 135 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 136 | void sensor_value_call_set_value ( |
| 137 | SensorValue *proxy, |
| 138 | GVariant *arg_value, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 139 | GCancellable *cancellable, |
| 140 | GAsyncReadyCallback callback, |
| 141 | gpointer user_data); |
| 142 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 143 | gboolean sensor_value_call_set_value_finish ( |
| 144 | SensorValue *proxy, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 145 | GAsyncResult *res, |
| 146 | GError **error); |
| 147 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 148 | gboolean sensor_value_call_set_value_sync ( |
| 149 | SensorValue *proxy, |
| 150 | GVariant *arg_value, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 151 | GCancellable *cancellable, |
| 152 | GError **error); |
| 153 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 154 | |
| 155 | |
| 156 | /* D-Bus property accessors: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 157 | GVariant *sensor_value_get_value (SensorValue *object); |
| 158 | GVariant *sensor_value_dup_value (SensorValue *object); |
| 159 | void sensor_value_set_value (SensorValue *object, GVariant *value); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 160 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 161 | const gchar *sensor_value_get_units (SensorValue *object); |
| 162 | gchar *sensor_value_dup_units (SensorValue *object); |
| 163 | void sensor_value_set_units (SensorValue *object, const gchar *value); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 164 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 165 | gint sensor_value_get_poll_interval (SensorValue *object); |
| 166 | void sensor_value_set_poll_interval (SensorValue *object, gint value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 167 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 168 | gint sensor_value_get_heatbeat (SensorValue *object); |
| 169 | void sensor_value_set_heatbeat (SensorValue *object, gint value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 170 | |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 171 | gboolean sensor_value_get_settable (SensorValue *object); |
| 172 | void sensor_value_set_settable (SensorValue *object, gboolean value); |
| 173 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 174 | |
| 175 | /* ---- */ |
| 176 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 177 | #define TYPE_SENSOR_VALUE_PROXY (sensor_value_proxy_get_type ()) |
| 178 | #define SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxy)) |
| 179 | #define SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) |
| 180 | #define SENSOR_VALUE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) |
| 181 | #define IS_SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_PROXY)) |
| 182 | #define IS_SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_PROXY)) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 183 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 184 | typedef struct _SensorValueProxy SensorValueProxy; |
| 185 | typedef struct _SensorValueProxyClass SensorValueProxyClass; |
| 186 | typedef struct _SensorValueProxyPrivate SensorValueProxyPrivate; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 187 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 188 | struct _SensorValueProxy |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 189 | { |
| 190 | /*< private >*/ |
| 191 | GDBusProxy parent_instance; |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 192 | SensorValueProxyPrivate *priv; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 193 | }; |
| 194 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 195 | struct _SensorValueProxyClass |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 196 | { |
| 197 | GDBusProxyClass parent_class; |
| 198 | }; |
| 199 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 200 | GType sensor_value_proxy_get_type (void) G_GNUC_CONST; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 201 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 202 | void sensor_value_proxy_new ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 203 | GDBusConnection *connection, |
| 204 | GDBusProxyFlags flags, |
| 205 | const gchar *name, |
| 206 | const gchar *object_path, |
| 207 | GCancellable *cancellable, |
| 208 | GAsyncReadyCallback callback, |
| 209 | gpointer user_data); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 210 | SensorValue *sensor_value_proxy_new_finish ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 211 | GAsyncResult *res, |
| 212 | GError **error); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 213 | SensorValue *sensor_value_proxy_new_sync ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 214 | GDBusConnection *connection, |
| 215 | GDBusProxyFlags flags, |
| 216 | const gchar *name, |
| 217 | const gchar *object_path, |
| 218 | GCancellable *cancellable, |
| 219 | GError **error); |
| 220 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 221 | void sensor_value_proxy_new_for_bus ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 222 | GBusType bus_type, |
| 223 | GDBusProxyFlags flags, |
| 224 | const gchar *name, |
| 225 | const gchar *object_path, |
| 226 | GCancellable *cancellable, |
| 227 | GAsyncReadyCallback callback, |
| 228 | gpointer user_data); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 229 | SensorValue *sensor_value_proxy_new_for_bus_finish ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 230 | GAsyncResult *res, |
| 231 | GError **error); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 232 | SensorValue *sensor_value_proxy_new_for_bus_sync ( |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 233 | GBusType bus_type, |
| 234 | GDBusProxyFlags flags, |
| 235 | const gchar *name, |
| 236 | const gchar *object_path, |
| 237 | GCancellable *cancellable, |
| 238 | GError **error); |
| 239 | |
| 240 | |
| 241 | /* ---- */ |
| 242 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 243 | #define TYPE_SENSOR_VALUE_SKELETON (sensor_value_skeleton_get_type ()) |
| 244 | #define SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeleton)) |
| 245 | #define SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) |
| 246 | #define SENSOR_VALUE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) |
| 247 | #define IS_SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_SKELETON)) |
| 248 | #define IS_SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_SKELETON)) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 249 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 250 | typedef struct _SensorValueSkeleton SensorValueSkeleton; |
| 251 | typedef struct _SensorValueSkeletonClass SensorValueSkeletonClass; |
| 252 | typedef struct _SensorValueSkeletonPrivate SensorValueSkeletonPrivate; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 253 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 254 | struct _SensorValueSkeleton |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 255 | { |
| 256 | /*< private >*/ |
| 257 | GDBusInterfaceSkeleton parent_instance; |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 258 | SensorValueSkeletonPrivate *priv; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 259 | }; |
| 260 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 261 | struct _SensorValueSkeletonClass |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 262 | { |
| 263 | GDBusInterfaceSkeletonClass parent_class; |
| 264 | }; |
| 265 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 266 | GType sensor_value_skeleton_get_type (void) G_GNUC_CONST; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 267 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 268 | SensorValue *sensor_value_skeleton_new (void); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 269 | |
| 270 | |
| 271 | /* ------------------------------------------------------------------------ */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 272 | /* Declarations for org.openbmc.SensorThreshold */ |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 273 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 274 | #define TYPE_SENSOR_THRESHOLD (sensor_threshold_get_type ()) |
| 275 | #define SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD, SensorThreshold)) |
| 276 | #define IS_SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD)) |
| 277 | #define SENSOR_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_THRESHOLD, SensorThresholdIface)) |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 278 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 279 | struct _SensorThreshold; |
| 280 | typedef struct _SensorThreshold SensorThreshold; |
| 281 | typedef struct _SensorThresholdIface SensorThresholdIface; |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 282 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 283 | struct _SensorThresholdIface |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 284 | { |
| 285 | GTypeInterface parent_iface; |
| 286 | |
| 287 | |
| 288 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 289 | gboolean (*handle_get_state) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 290 | SensorThreshold *object, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 291 | GDBusMethodInvocation *invocation); |
| 292 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 293 | GVariant * (*get_lower_critical) (SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 294 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 295 | GVariant * (*get_lower_warning) (SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 296 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 297 | guchar (*get_state) (SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 298 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 299 | GVariant * (*get_upper_critical) (SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 300 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 301 | GVariant * (*get_upper_warning) (SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 302 | |
| 303 | void (*critical) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 304 | SensorThreshold *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 305 | |
| 306 | void (*normal) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 307 | SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 308 | |
| 309 | void (*warning) ( |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 310 | SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 311 | |
| 312 | }; |
| 313 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 314 | GType sensor_threshold_get_type (void) G_GNUC_CONST; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 315 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 316 | GDBusInterfaceInfo *sensor_threshold_interface_info (void); |
| 317 | guint sensor_threshold_override_properties (GObjectClass *klass, guint property_id_begin); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 318 | |
| 319 | |
| 320 | /* D-Bus method call completion functions: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 321 | void sensor_threshold_complete_get_state ( |
| 322 | SensorThreshold *object, |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 323 | GDBusMethodInvocation *invocation, |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 324 | guchar state); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 325 | |
| 326 | |
| 327 | |
| 328 | /* D-Bus signal emissions functions: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 329 | void sensor_threshold_emit_warning ( |
| 330 | SensorThreshold *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 331 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 332 | void sensor_threshold_emit_critical ( |
| 333 | SensorThreshold *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 334 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 335 | void sensor_threshold_emit_normal ( |
| 336 | SensorThreshold *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 337 | |
| 338 | |
| 339 | |
| 340 | /* D-Bus method calls: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 341 | void sensor_threshold_call_get_state ( |
| 342 | SensorThreshold *proxy, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 343 | GCancellable *cancellable, |
| 344 | GAsyncReadyCallback callback, |
| 345 | gpointer user_data); |
| 346 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 347 | gboolean sensor_threshold_call_get_state_finish ( |
| 348 | SensorThreshold *proxy, |
| 349 | guchar *out_state, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 350 | GAsyncResult *res, |
| 351 | GError **error); |
| 352 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 353 | gboolean sensor_threshold_call_get_state_sync ( |
| 354 | SensorThreshold *proxy, |
| 355 | guchar *out_state, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 356 | GCancellable *cancellable, |
| 357 | GError **error); |
| 358 | |
| 359 | |
| 360 | |
| 361 | /* D-Bus property accessors: */ |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 362 | GVariant *sensor_threshold_get_lower_critical (SensorThreshold *object); |
| 363 | GVariant *sensor_threshold_dup_lower_critical (SensorThreshold *object); |
| 364 | void sensor_threshold_set_lower_critical (SensorThreshold *object, GVariant *value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 365 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 366 | GVariant *sensor_threshold_get_lower_warning (SensorThreshold *object); |
| 367 | GVariant *sensor_threshold_dup_lower_warning (SensorThreshold *object); |
| 368 | void sensor_threshold_set_lower_warning (SensorThreshold *object, GVariant *value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 369 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 370 | GVariant *sensor_threshold_get_upper_warning (SensorThreshold *object); |
| 371 | GVariant *sensor_threshold_dup_upper_warning (SensorThreshold *object); |
| 372 | void sensor_threshold_set_upper_warning (SensorThreshold *object, GVariant *value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 373 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 374 | GVariant *sensor_threshold_get_upper_critical (SensorThreshold *object); |
| 375 | GVariant *sensor_threshold_dup_upper_critical (SensorThreshold *object); |
| 376 | void sensor_threshold_set_upper_critical (SensorThreshold *object, GVariant *value); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 377 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 378 | guchar sensor_threshold_get_state (SensorThreshold *object); |
| 379 | void sensor_threshold_set_state (SensorThreshold *object, guchar value); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 380 | |
| 381 | |
| 382 | /* ---- */ |
| 383 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 384 | #define TYPE_SENSOR_THRESHOLD_PROXY (sensor_threshold_proxy_get_type ()) |
| 385 | #define SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxy)) |
| 386 | #define SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) |
| 387 | #define SENSOR_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) |
| 388 | #define IS_SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_PROXY)) |
| 389 | #define IS_SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_PROXY)) |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 390 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 391 | typedef struct _SensorThresholdProxy SensorThresholdProxy; |
| 392 | typedef struct _SensorThresholdProxyClass SensorThresholdProxyClass; |
| 393 | typedef struct _SensorThresholdProxyPrivate SensorThresholdProxyPrivate; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 394 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 395 | struct _SensorThresholdProxy |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 396 | { |
| 397 | /*< private >*/ |
| 398 | GDBusProxy parent_instance; |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 399 | SensorThresholdProxyPrivate *priv; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 400 | }; |
| 401 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 402 | struct _SensorThresholdProxyClass |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 403 | { |
| 404 | GDBusProxyClass parent_class; |
| 405 | }; |
| 406 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 407 | GType sensor_threshold_proxy_get_type (void) G_GNUC_CONST; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 408 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 409 | void sensor_threshold_proxy_new ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 410 | GDBusConnection *connection, |
| 411 | GDBusProxyFlags flags, |
| 412 | const gchar *name, |
| 413 | const gchar *object_path, |
| 414 | GCancellable *cancellable, |
| 415 | GAsyncReadyCallback callback, |
| 416 | gpointer user_data); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 417 | SensorThreshold *sensor_threshold_proxy_new_finish ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 418 | GAsyncResult *res, |
| 419 | GError **error); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 420 | SensorThreshold *sensor_threshold_proxy_new_sync ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 421 | GDBusConnection *connection, |
| 422 | GDBusProxyFlags flags, |
| 423 | const gchar *name, |
| 424 | const gchar *object_path, |
| 425 | GCancellable *cancellable, |
| 426 | GError **error); |
| 427 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 428 | void sensor_threshold_proxy_new_for_bus ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 429 | GBusType bus_type, |
| 430 | GDBusProxyFlags flags, |
| 431 | const gchar *name, |
| 432 | const gchar *object_path, |
| 433 | GCancellable *cancellable, |
| 434 | GAsyncReadyCallback callback, |
| 435 | gpointer user_data); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 436 | SensorThreshold *sensor_threshold_proxy_new_for_bus_finish ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 437 | GAsyncResult *res, |
| 438 | GError **error); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 439 | SensorThreshold *sensor_threshold_proxy_new_for_bus_sync ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 440 | GBusType bus_type, |
| 441 | GDBusProxyFlags flags, |
| 442 | const gchar *name, |
| 443 | const gchar *object_path, |
| 444 | GCancellable *cancellable, |
| 445 | GError **error); |
| 446 | |
| 447 | |
| 448 | /* ---- */ |
| 449 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 450 | #define TYPE_SENSOR_THRESHOLD_SKELETON (sensor_threshold_skeleton_get_type ()) |
| 451 | #define SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeleton)) |
| 452 | #define SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) |
| 453 | #define SENSOR_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) |
| 454 | #define IS_SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_SKELETON)) |
| 455 | #define IS_SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_SKELETON)) |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 456 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 457 | typedef struct _SensorThresholdSkeleton SensorThresholdSkeleton; |
| 458 | typedef struct _SensorThresholdSkeletonClass SensorThresholdSkeletonClass; |
| 459 | typedef struct _SensorThresholdSkeletonPrivate SensorThresholdSkeletonPrivate; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 460 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 461 | struct _SensorThresholdSkeleton |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 462 | { |
| 463 | /*< private >*/ |
| 464 | GDBusInterfaceSkeleton parent_instance; |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 465 | SensorThresholdSkeletonPrivate *priv; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 466 | }; |
| 467 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 468 | struct _SensorThresholdSkeletonClass |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 469 | { |
| 470 | GDBusInterfaceSkeletonClass parent_class; |
| 471 | }; |
| 472 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 473 | GType sensor_threshold_skeleton_get_type (void) G_GNUC_CONST; |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 474 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 475 | SensorThreshold *sensor_threshold_skeleton_new (void); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 476 | |
| 477 | |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 478 | /* ------------------------------------------------------------------------ */ |
| 479 | /* Declarations for org.openbmc.SensorI2c */ |
| 480 | |
| 481 | #define TYPE_SENSOR_I2C (sensor_i2c_get_type ()) |
| 482 | #define SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C, SensorI2c)) |
| 483 | #define IS_SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C)) |
| 484 | #define SENSOR_I2C_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_I2C, SensorI2cIface)) |
| 485 | |
| 486 | struct _SensorI2c; |
| 487 | typedef struct _SensorI2c SensorI2c; |
| 488 | typedef struct _SensorI2cIface SensorI2cIface; |
| 489 | |
| 490 | struct _SensorI2cIface |
| 491 | { |
| 492 | GTypeInterface parent_iface; |
| 493 | |
| 494 | const gchar * (*get_address) (SensorI2c *object); |
| 495 | |
| 496 | const gchar * (*get_dev_path) (SensorI2c *object); |
| 497 | |
| 498 | }; |
| 499 | |
| 500 | GType sensor_i2c_get_type (void) G_GNUC_CONST; |
| 501 | |
| 502 | GDBusInterfaceInfo *sensor_i2c_interface_info (void); |
| 503 | guint sensor_i2c_override_properties (GObjectClass *klass, guint property_id_begin); |
| 504 | |
| 505 | |
| 506 | /* D-Bus property accessors: */ |
| 507 | const gchar *sensor_i2c_get_dev_path (SensorI2c *object); |
| 508 | gchar *sensor_i2c_dup_dev_path (SensorI2c *object); |
| 509 | void sensor_i2c_set_dev_path (SensorI2c *object, const gchar *value); |
| 510 | |
| 511 | const gchar *sensor_i2c_get_address (SensorI2c *object); |
| 512 | gchar *sensor_i2c_dup_address (SensorI2c *object); |
| 513 | void sensor_i2c_set_address (SensorI2c *object, const gchar *value); |
| 514 | |
| 515 | |
| 516 | /* ---- */ |
| 517 | |
| 518 | #define TYPE_SENSOR_I2C_PROXY (sensor_i2c_proxy_get_type ()) |
| 519 | #define SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxy)) |
| 520 | #define SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) |
| 521 | #define SENSOR_I2C_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) |
| 522 | #define IS_SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_PROXY)) |
| 523 | #define IS_SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_PROXY)) |
| 524 | |
| 525 | typedef struct _SensorI2cProxy SensorI2cProxy; |
| 526 | typedef struct _SensorI2cProxyClass SensorI2cProxyClass; |
| 527 | typedef struct _SensorI2cProxyPrivate SensorI2cProxyPrivate; |
| 528 | |
| 529 | struct _SensorI2cProxy |
| 530 | { |
| 531 | /*< private >*/ |
| 532 | GDBusProxy parent_instance; |
| 533 | SensorI2cProxyPrivate *priv; |
| 534 | }; |
| 535 | |
| 536 | struct _SensorI2cProxyClass |
| 537 | { |
| 538 | GDBusProxyClass parent_class; |
| 539 | }; |
| 540 | |
| 541 | GType sensor_i2c_proxy_get_type (void) G_GNUC_CONST; |
| 542 | |
| 543 | void sensor_i2c_proxy_new ( |
| 544 | GDBusConnection *connection, |
| 545 | GDBusProxyFlags flags, |
| 546 | const gchar *name, |
| 547 | const gchar *object_path, |
| 548 | GCancellable *cancellable, |
| 549 | GAsyncReadyCallback callback, |
| 550 | gpointer user_data); |
| 551 | SensorI2c *sensor_i2c_proxy_new_finish ( |
| 552 | GAsyncResult *res, |
| 553 | GError **error); |
| 554 | SensorI2c *sensor_i2c_proxy_new_sync ( |
| 555 | GDBusConnection *connection, |
| 556 | GDBusProxyFlags flags, |
| 557 | const gchar *name, |
| 558 | const gchar *object_path, |
| 559 | GCancellable *cancellable, |
| 560 | GError **error); |
| 561 | |
| 562 | void sensor_i2c_proxy_new_for_bus ( |
| 563 | GBusType bus_type, |
| 564 | GDBusProxyFlags flags, |
| 565 | const gchar *name, |
| 566 | const gchar *object_path, |
| 567 | GCancellable *cancellable, |
| 568 | GAsyncReadyCallback callback, |
| 569 | gpointer user_data); |
| 570 | SensorI2c *sensor_i2c_proxy_new_for_bus_finish ( |
| 571 | GAsyncResult *res, |
| 572 | GError **error); |
| 573 | SensorI2c *sensor_i2c_proxy_new_for_bus_sync ( |
| 574 | GBusType bus_type, |
| 575 | GDBusProxyFlags flags, |
| 576 | const gchar *name, |
| 577 | const gchar *object_path, |
| 578 | GCancellable *cancellable, |
| 579 | GError **error); |
| 580 | |
| 581 | |
| 582 | /* ---- */ |
| 583 | |
| 584 | #define TYPE_SENSOR_I2C_SKELETON (sensor_i2c_skeleton_get_type ()) |
| 585 | #define SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeleton)) |
| 586 | #define SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) |
| 587 | #define SENSOR_I2C_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) |
| 588 | #define IS_SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_SKELETON)) |
| 589 | #define IS_SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_SKELETON)) |
| 590 | |
| 591 | typedef struct _SensorI2cSkeleton SensorI2cSkeleton; |
| 592 | typedef struct _SensorI2cSkeletonClass SensorI2cSkeletonClass; |
| 593 | typedef struct _SensorI2cSkeletonPrivate SensorI2cSkeletonPrivate; |
| 594 | |
| 595 | struct _SensorI2cSkeleton |
| 596 | { |
| 597 | /*< private >*/ |
| 598 | GDBusInterfaceSkeleton parent_instance; |
| 599 | SensorI2cSkeletonPrivate *priv; |
| 600 | }; |
| 601 | |
| 602 | struct _SensorI2cSkeletonClass |
| 603 | { |
| 604 | GDBusInterfaceSkeletonClass parent_class; |
| 605 | }; |
| 606 | |
| 607 | GType sensor_i2c_skeleton_get_type (void) G_GNUC_CONST; |
| 608 | |
| 609 | SensorI2c *sensor_i2c_skeleton_new (void); |
| 610 | |
| 611 | |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 612 | /* ------------------------------------------------------------------------ */ |
| 613 | /* Declarations for org.openbmc.SensorMatch */ |
| 614 | |
| 615 | #define TYPE_SENSOR_MATCH (sensor_match_get_type ()) |
| 616 | #define SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH, SensorMatch)) |
| 617 | #define IS_SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH)) |
| 618 | #define SENSOR_MATCH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_MATCH, SensorMatchIface)) |
| 619 | |
| 620 | struct _SensorMatch; |
| 621 | typedef struct _SensorMatch SensorMatch; |
| 622 | typedef struct _SensorMatchIface SensorMatchIface; |
| 623 | |
| 624 | struct _SensorMatchIface |
| 625 | { |
| 626 | GTypeInterface parent_iface; |
| 627 | |
| 628 | |
| 629 | GVariant * (*get_match_value) (SensorMatch *object); |
| 630 | |
| 631 | guchar (*get_state) (SensorMatch *object); |
| 632 | |
| 633 | void (*sensor_match) ( |
| 634 | SensorMatch *object, |
| 635 | guchar arg_state); |
| 636 | |
| 637 | }; |
| 638 | |
| 639 | GType sensor_match_get_type (void) G_GNUC_CONST; |
| 640 | |
| 641 | GDBusInterfaceInfo *sensor_match_interface_info (void); |
| 642 | guint sensor_match_override_properties (GObjectClass *klass, guint property_id_begin); |
| 643 | |
| 644 | |
| 645 | /* D-Bus signal emissions functions: */ |
| 646 | void sensor_match_emit_sensor_match ( |
| 647 | SensorMatch *object, |
| 648 | guchar arg_state); |
| 649 | |
| 650 | |
| 651 | |
| 652 | /* D-Bus property accessors: */ |
| 653 | GVariant *sensor_match_get_match_value (SensorMatch *object); |
| 654 | GVariant *sensor_match_dup_match_value (SensorMatch *object); |
| 655 | void sensor_match_set_match_value (SensorMatch *object, GVariant *value); |
| 656 | |
| 657 | guchar sensor_match_get_state (SensorMatch *object); |
| 658 | void sensor_match_set_state (SensorMatch *object, guchar value); |
| 659 | |
| 660 | |
| 661 | /* ---- */ |
| 662 | |
| 663 | #define TYPE_SENSOR_MATCH_PROXY (sensor_match_proxy_get_type ()) |
| 664 | #define SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxy)) |
| 665 | #define SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass)) |
| 666 | #define SENSOR_MATCH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass)) |
| 667 | #define IS_SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_PROXY)) |
| 668 | #define IS_SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_PROXY)) |
| 669 | |
| 670 | typedef struct _SensorMatchProxy SensorMatchProxy; |
| 671 | typedef struct _SensorMatchProxyClass SensorMatchProxyClass; |
| 672 | typedef struct _SensorMatchProxyPrivate SensorMatchProxyPrivate; |
| 673 | |
| 674 | struct _SensorMatchProxy |
| 675 | { |
| 676 | /*< private >*/ |
| 677 | GDBusProxy parent_instance; |
| 678 | SensorMatchProxyPrivate *priv; |
| 679 | }; |
| 680 | |
| 681 | struct _SensorMatchProxyClass |
| 682 | { |
| 683 | GDBusProxyClass parent_class; |
| 684 | }; |
| 685 | |
| 686 | GType sensor_match_proxy_get_type (void) G_GNUC_CONST; |
| 687 | |
| 688 | void sensor_match_proxy_new ( |
| 689 | GDBusConnection *connection, |
| 690 | GDBusProxyFlags flags, |
| 691 | const gchar *name, |
| 692 | const gchar *object_path, |
| 693 | GCancellable *cancellable, |
| 694 | GAsyncReadyCallback callback, |
| 695 | gpointer user_data); |
| 696 | SensorMatch *sensor_match_proxy_new_finish ( |
| 697 | GAsyncResult *res, |
| 698 | GError **error); |
| 699 | SensorMatch *sensor_match_proxy_new_sync ( |
| 700 | GDBusConnection *connection, |
| 701 | GDBusProxyFlags flags, |
| 702 | const gchar *name, |
| 703 | const gchar *object_path, |
| 704 | GCancellable *cancellable, |
| 705 | GError **error); |
| 706 | |
| 707 | void sensor_match_proxy_new_for_bus ( |
| 708 | GBusType bus_type, |
| 709 | GDBusProxyFlags flags, |
| 710 | const gchar *name, |
| 711 | const gchar *object_path, |
| 712 | GCancellable *cancellable, |
| 713 | GAsyncReadyCallback callback, |
| 714 | gpointer user_data); |
| 715 | SensorMatch *sensor_match_proxy_new_for_bus_finish ( |
| 716 | GAsyncResult *res, |
| 717 | GError **error); |
| 718 | SensorMatch *sensor_match_proxy_new_for_bus_sync ( |
| 719 | GBusType bus_type, |
| 720 | GDBusProxyFlags flags, |
| 721 | const gchar *name, |
| 722 | const gchar *object_path, |
| 723 | GCancellable *cancellable, |
| 724 | GError **error); |
| 725 | |
| 726 | |
| 727 | /* ---- */ |
| 728 | |
| 729 | #define TYPE_SENSOR_MATCH_SKELETON (sensor_match_skeleton_get_type ()) |
| 730 | #define SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeleton)) |
| 731 | #define SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass)) |
| 732 | #define SENSOR_MATCH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass)) |
| 733 | #define IS_SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_SKELETON)) |
| 734 | #define IS_SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_SKELETON)) |
| 735 | |
| 736 | typedef struct _SensorMatchSkeleton SensorMatchSkeleton; |
| 737 | typedef struct _SensorMatchSkeletonClass SensorMatchSkeletonClass; |
| 738 | typedef struct _SensorMatchSkeletonPrivate SensorMatchSkeletonPrivate; |
| 739 | |
| 740 | struct _SensorMatchSkeleton |
| 741 | { |
| 742 | /*< private >*/ |
| 743 | GDBusInterfaceSkeleton parent_instance; |
| 744 | SensorMatchSkeletonPrivate *priv; |
| 745 | }; |
| 746 | |
| 747 | struct _SensorMatchSkeletonClass |
| 748 | { |
| 749 | GDBusInterfaceSkeletonClass parent_class; |
| 750 | }; |
| 751 | |
| 752 | GType sensor_match_skeleton_get_type (void) G_GNUC_CONST; |
| 753 | |
| 754 | SensorMatch *sensor_match_skeleton_new (void); |
| 755 | |
| 756 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 757 | /* ---- */ |
| 758 | |
| 759 | #define TYPE_OBJECT (object_get_type ()) |
| 760 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 761 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 762 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 763 | |
| 764 | struct _Object; |
| 765 | typedef struct _Object Object; |
| 766 | typedef struct _ObjectIface ObjectIface; |
| 767 | |
| 768 | struct _ObjectIface |
| 769 | { |
| 770 | GTypeInterface parent_iface; |
| 771 | }; |
| 772 | |
| 773 | GType object_get_type (void) G_GNUC_CONST; |
| 774 | |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 775 | SensorValue *object_get_sensor_value (Object *object); |
| 776 | SensorThreshold *object_get_sensor_threshold (Object *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 777 | SensorI2c *object_get_sensor_i2c (Object *object); |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 778 | SensorMatch *object_get_sensor_match (Object *object); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 779 | SensorValue *object_peek_sensor_value (Object *object); |
| 780 | SensorThreshold *object_peek_sensor_threshold (Object *object); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 781 | SensorI2c *object_peek_sensor_i2c (Object *object); |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 782 | SensorMatch *object_peek_sensor_match (Object *object); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 783 | |
| 784 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 785 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 786 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 787 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 788 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 789 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 790 | |
| 791 | typedef struct _ObjectProxy ObjectProxy; |
| 792 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 793 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 794 | |
| 795 | struct _ObjectProxy |
| 796 | { |
| 797 | /*< private >*/ |
| 798 | GDBusObjectProxy parent_instance; |
| 799 | ObjectProxyPrivate *priv; |
| 800 | }; |
| 801 | |
| 802 | struct _ObjectProxyClass |
| 803 | { |
| 804 | GDBusObjectProxyClass parent_class; |
| 805 | }; |
| 806 | |
| 807 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 808 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 809 | |
| 810 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 811 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 812 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 813 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 814 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 815 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 816 | |
| 817 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 818 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 819 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 820 | |
| 821 | struct _ObjectSkeleton |
| 822 | { |
| 823 | /*< private >*/ |
| 824 | GDBusObjectSkeleton parent_instance; |
| 825 | ObjectSkeletonPrivate *priv; |
| 826 | }; |
| 827 | |
| 828 | struct _ObjectSkeletonClass |
| 829 | { |
| 830 | GDBusObjectSkeletonClass parent_class; |
| 831 | }; |
| 832 | |
| 833 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 834 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
Norman James | 5d78b4d | 2015-09-05 13:34:34 -0500 | [diff] [blame] | 835 | void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_); |
| 836 | void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_); |
Norman James | 90baede | 2015-09-02 20:32:49 -0500 | [diff] [blame] | 837 | void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_); |
Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 838 | void object_skeleton_set_sensor_match (ObjectSkeleton *object, SensorMatch *interface_); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 839 | |
| 840 | /* ---- */ |
| 841 | |
| 842 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 843 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 844 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 845 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 846 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 847 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 848 | |
| 849 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 850 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 851 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 852 | |
| 853 | struct _ObjectManagerClient |
| 854 | { |
| 855 | /*< private >*/ |
| 856 | GDBusObjectManagerClient parent_instance; |
| 857 | ObjectManagerClientPrivate *priv; |
| 858 | }; |
| 859 | |
| 860 | struct _ObjectManagerClientClass |
| 861 | { |
| 862 | GDBusObjectManagerClientClass parent_class; |
| 863 | }; |
| 864 | |
| 865 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 866 | |
| 867 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 868 | |
| 869 | void object_manager_client_new ( |
| 870 | GDBusConnection *connection, |
| 871 | GDBusObjectManagerClientFlags flags, |
| 872 | const gchar *name, |
| 873 | const gchar *object_path, |
| 874 | GCancellable *cancellable, |
| 875 | GAsyncReadyCallback callback, |
| 876 | gpointer user_data); |
| 877 | GDBusObjectManager *object_manager_client_new_finish ( |
| 878 | GAsyncResult *res, |
| 879 | GError **error); |
| 880 | GDBusObjectManager *object_manager_client_new_sync ( |
| 881 | GDBusConnection *connection, |
| 882 | GDBusObjectManagerClientFlags flags, |
| 883 | const gchar *name, |
| 884 | const gchar *object_path, |
| 885 | GCancellable *cancellable, |
| 886 | GError **error); |
| 887 | |
| 888 | void object_manager_client_new_for_bus ( |
| 889 | GBusType bus_type, |
| 890 | GDBusObjectManagerClientFlags flags, |
| 891 | const gchar *name, |
| 892 | const gchar *object_path, |
| 893 | GCancellable *cancellable, |
| 894 | GAsyncReadyCallback callback, |
| 895 | gpointer user_data); |
| 896 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 897 | GAsyncResult *res, |
| 898 | GError **error); |
| 899 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 900 | GBusType bus_type, |
| 901 | GDBusObjectManagerClientFlags flags, |
| 902 | const gchar *name, |
| 903 | const gchar *object_path, |
| 904 | GCancellable *cancellable, |
| 905 | GError **error); |
| 906 | |
| 907 | |
| 908 | G_END_DECLS |
| 909 | |
| 910 | #endif /* __INTERFACES_SENSOR_H__ */ |