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 | /* ------------------------------------------------------------------------ */ |
| 16 | /* Declarations for org.openbmc.SensorInteger */ |
| 17 | |
| 18 | #define TYPE_SENSOR_INTEGER (sensor_integer_get_type ()) |
| 19 | #define SENSOR_INTEGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER, SensorInteger)) |
| 20 | #define IS_SENSOR_INTEGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER)) |
| 21 | #define SENSOR_INTEGER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_INTEGER, SensorIntegerIface)) |
| 22 | |
| 23 | struct _SensorInteger; |
| 24 | typedef struct _SensorInteger SensorInteger; |
| 25 | typedef struct _SensorIntegerIface SensorIntegerIface; |
| 26 | |
| 27 | struct _SensorIntegerIface |
| 28 | { |
| 29 | GTypeInterface parent_iface; |
| 30 | |
| 31 | |
| 32 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 33 | gboolean (*handle_get_threshold_state) ( |
| 34 | SensorInteger *object, |
| 35 | GDBusMethodInvocation *invocation); |
| 36 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 37 | gboolean (*handle_get_units) ( |
| 38 | SensorInteger *object, |
| 39 | GDBusMethodInvocation *invocation); |
| 40 | |
| 41 | gboolean (*handle_get_value) ( |
| 42 | SensorInteger *object, |
| 43 | GDBusMethodInvocation *invocation); |
| 44 | |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 45 | gboolean (*handle_set_config_data) ( |
| 46 | SensorInteger *object, |
| 47 | GDBusMethodInvocation *invocation, |
| 48 | const gchar *const *arg_config); |
| 49 | |
| 50 | gboolean (*handle_set_poll_interval) ( |
| 51 | SensorInteger *object, |
| 52 | GDBusMethodInvocation *invocation, |
| 53 | gint arg_poll_interval); |
| 54 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 55 | gboolean (*handle_set_thresholds) ( |
| 56 | SensorInteger *object, |
| 57 | GDBusMethodInvocation *invocation, |
| 58 | gint arg_lower_critical, |
| 59 | gint arg_lower_warning, |
| 60 | gint arg_upper_warning, |
| 61 | gint arg_upper_critical); |
| 62 | |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 63 | gint (*get_changed_tolerance) (SensorInteger *object); |
| 64 | |
| 65 | const gchar *const * (*get_config_data) (SensorInteger *object); |
| 66 | |
| 67 | gint (*get_poll_interval) (SensorInteger *object); |
| 68 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 69 | gint (*get_threshold_lower_critical) (SensorInteger *object); |
| 70 | |
| 71 | gint (*get_threshold_lower_warning) (SensorInteger *object); |
| 72 | |
| 73 | gint (*get_threshold_state) (SensorInteger *object); |
| 74 | |
| 75 | gint (*get_threshold_upper_critical) (SensorInteger *object); |
| 76 | |
| 77 | gint (*get_threshold_upper_warning) (SensorInteger *object); |
| 78 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 79 | const gchar * (*get_units) (SensorInteger *object); |
| 80 | |
| 81 | gint (*get_value) (SensorInteger *object); |
| 82 | |
| 83 | void (*changed) ( |
| 84 | SensorInteger *object, |
| 85 | gint arg_value); |
| 86 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 87 | void (*critical) ( |
| 88 | SensorInteger *object); |
| 89 | |
| 90 | void (*warning) ( |
| 91 | SensorInteger *object); |
| 92 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 93 | }; |
| 94 | |
| 95 | GType sensor_integer_get_type (void) G_GNUC_CONST; |
| 96 | |
| 97 | GDBusInterfaceInfo *sensor_integer_interface_info (void); |
| 98 | guint sensor_integer_override_properties (GObjectClass *klass, guint property_id_begin); |
| 99 | |
| 100 | |
| 101 | /* D-Bus method call completion functions: */ |
| 102 | void sensor_integer_complete_get_value ( |
| 103 | SensorInteger *object, |
| 104 | GDBusMethodInvocation *invocation, |
| 105 | gint value); |
| 106 | |
| 107 | void sensor_integer_complete_get_units ( |
| 108 | SensorInteger *object, |
| 109 | GDBusMethodInvocation *invocation, |
| 110 | const gchar *units); |
| 111 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 112 | void sensor_integer_complete_set_thresholds ( |
| 113 | SensorInteger *object, |
| 114 | GDBusMethodInvocation *invocation); |
| 115 | |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 116 | void sensor_integer_complete_set_poll_interval ( |
| 117 | SensorInteger *object, |
| 118 | GDBusMethodInvocation *invocation); |
| 119 | |
| 120 | void sensor_integer_complete_set_config_data ( |
| 121 | SensorInteger *object, |
| 122 | GDBusMethodInvocation *invocation); |
| 123 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 124 | void sensor_integer_complete_get_threshold_state ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 125 | SensorInteger *object, |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 126 | GDBusMethodInvocation *invocation, |
| 127 | gint threshold_state); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 128 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 129 | |
| 130 | |
| 131 | /* D-Bus signal emissions functions: */ |
| 132 | void sensor_integer_emit_changed ( |
| 133 | SensorInteger *object, |
| 134 | gint arg_value); |
| 135 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 136 | void sensor_integer_emit_warning ( |
| 137 | SensorInteger *object); |
| 138 | |
| 139 | void sensor_integer_emit_critical ( |
| 140 | SensorInteger *object); |
| 141 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 142 | |
| 143 | |
| 144 | /* D-Bus method calls: */ |
| 145 | void sensor_integer_call_get_value ( |
| 146 | SensorInteger *proxy, |
| 147 | GCancellable *cancellable, |
| 148 | GAsyncReadyCallback callback, |
| 149 | gpointer user_data); |
| 150 | |
| 151 | gboolean sensor_integer_call_get_value_finish ( |
| 152 | SensorInteger *proxy, |
| 153 | gint *out_value, |
| 154 | GAsyncResult *res, |
| 155 | GError **error); |
| 156 | |
| 157 | gboolean sensor_integer_call_get_value_sync ( |
| 158 | SensorInteger *proxy, |
| 159 | gint *out_value, |
| 160 | GCancellable *cancellable, |
| 161 | GError **error); |
| 162 | |
| 163 | void sensor_integer_call_get_units ( |
| 164 | SensorInteger *proxy, |
| 165 | GCancellable *cancellable, |
| 166 | GAsyncReadyCallback callback, |
| 167 | gpointer user_data); |
| 168 | |
| 169 | gboolean sensor_integer_call_get_units_finish ( |
| 170 | SensorInteger *proxy, |
| 171 | gchar **out_units, |
| 172 | GAsyncResult *res, |
| 173 | GError **error); |
| 174 | |
| 175 | gboolean sensor_integer_call_get_units_sync ( |
| 176 | SensorInteger *proxy, |
| 177 | gchar **out_units, |
| 178 | GCancellable *cancellable, |
| 179 | GError **error); |
| 180 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 181 | void sensor_integer_call_set_thresholds ( |
| 182 | SensorInteger *proxy, |
| 183 | gint arg_lower_critical, |
| 184 | gint arg_lower_warning, |
| 185 | gint arg_upper_warning, |
| 186 | gint arg_upper_critical, |
| 187 | GCancellable *cancellable, |
| 188 | GAsyncReadyCallback callback, |
| 189 | gpointer user_data); |
| 190 | |
| 191 | gboolean sensor_integer_call_set_thresholds_finish ( |
| 192 | SensorInteger *proxy, |
| 193 | GAsyncResult *res, |
| 194 | GError **error); |
| 195 | |
| 196 | gboolean sensor_integer_call_set_thresholds_sync ( |
| 197 | SensorInteger *proxy, |
| 198 | gint arg_lower_critical, |
| 199 | gint arg_lower_warning, |
| 200 | gint arg_upper_warning, |
| 201 | gint arg_upper_critical, |
| 202 | GCancellable *cancellable, |
| 203 | GError **error); |
| 204 | |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 205 | void sensor_integer_call_set_poll_interval ( |
| 206 | SensorInteger *proxy, |
| 207 | gint arg_poll_interval, |
| 208 | GCancellable *cancellable, |
| 209 | GAsyncReadyCallback callback, |
| 210 | gpointer user_data); |
| 211 | |
| 212 | gboolean sensor_integer_call_set_poll_interval_finish ( |
| 213 | SensorInteger *proxy, |
| 214 | GAsyncResult *res, |
| 215 | GError **error); |
| 216 | |
| 217 | gboolean sensor_integer_call_set_poll_interval_sync ( |
| 218 | SensorInteger *proxy, |
| 219 | gint arg_poll_interval, |
| 220 | GCancellable *cancellable, |
| 221 | GError **error); |
| 222 | |
| 223 | void sensor_integer_call_set_config_data ( |
| 224 | SensorInteger *proxy, |
| 225 | const gchar *const *arg_config, |
| 226 | GCancellable *cancellable, |
| 227 | GAsyncReadyCallback callback, |
| 228 | gpointer user_data); |
| 229 | |
| 230 | gboolean sensor_integer_call_set_config_data_finish ( |
| 231 | SensorInteger *proxy, |
| 232 | GAsyncResult *res, |
| 233 | GError **error); |
| 234 | |
| 235 | gboolean sensor_integer_call_set_config_data_sync ( |
| 236 | SensorInteger *proxy, |
| 237 | const gchar *const *arg_config, |
| 238 | GCancellable *cancellable, |
| 239 | GError **error); |
| 240 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 241 | void sensor_integer_call_get_threshold_state ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 242 | SensorInteger *proxy, |
| 243 | GCancellable *cancellable, |
| 244 | GAsyncReadyCallback callback, |
| 245 | gpointer user_data); |
| 246 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 247 | gboolean sensor_integer_call_get_threshold_state_finish ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 248 | SensorInteger *proxy, |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 249 | gint *out_threshold_state, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 250 | GAsyncResult *res, |
| 251 | GError **error); |
| 252 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 253 | gboolean sensor_integer_call_get_threshold_state_sync ( |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 254 | SensorInteger *proxy, |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 255 | gint *out_threshold_state, |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 256 | GCancellable *cancellable, |
| 257 | GError **error); |
| 258 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 259 | |
| 260 | |
| 261 | /* D-Bus property accessors: */ |
| 262 | gint sensor_integer_get_value (SensorInteger *object); |
| 263 | void sensor_integer_set_value (SensorInteger *object, gint value); |
| 264 | |
| 265 | const gchar *sensor_integer_get_units (SensorInteger *object); |
| 266 | gchar *sensor_integer_dup_units (SensorInteger *object); |
| 267 | void sensor_integer_set_units (SensorInteger *object, const gchar *value); |
| 268 | |
Norman James | 3f97c5d | 2015-08-26 17:44:14 -0500 | [diff] [blame] | 269 | gint sensor_integer_get_threshold_lower_critical (SensorInteger *object); |
| 270 | void sensor_integer_set_threshold_lower_critical (SensorInteger *object, gint value); |
| 271 | |
| 272 | gint sensor_integer_get_threshold_lower_warning (SensorInteger *object); |
| 273 | void sensor_integer_set_threshold_lower_warning (SensorInteger *object, gint value); |
| 274 | |
| 275 | gint sensor_integer_get_threshold_upper_warning (SensorInteger *object); |
| 276 | void sensor_integer_set_threshold_upper_warning (SensorInteger *object, gint value); |
| 277 | |
| 278 | gint sensor_integer_get_threshold_upper_critical (SensorInteger *object); |
| 279 | void sensor_integer_set_threshold_upper_critical (SensorInteger *object, gint value); |
| 280 | |
| 281 | gint sensor_integer_get_threshold_state (SensorInteger *object); |
| 282 | void sensor_integer_set_threshold_state (SensorInteger *object, gint value); |
| 283 | |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 284 | gint sensor_integer_get_poll_interval (SensorInteger *object); |
| 285 | void sensor_integer_set_poll_interval (SensorInteger *object, gint value); |
| 286 | |
| 287 | const gchar *const *sensor_integer_get_config_data (SensorInteger *object); |
| 288 | gchar **sensor_integer_dup_config_data (SensorInteger *object); |
| 289 | void sensor_integer_set_config_data (SensorInteger *object, const gchar *const *value); |
| 290 | |
| 291 | gint sensor_integer_get_changed_tolerance (SensorInteger *object); |
| 292 | void sensor_integer_set_changed_tolerance (SensorInteger *object, gint value); |
| 293 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 294 | |
| 295 | /* ---- */ |
| 296 | |
| 297 | #define TYPE_SENSOR_INTEGER_PROXY (sensor_integer_proxy_get_type ()) |
| 298 | #define SENSOR_INTEGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxy)) |
| 299 | #define SENSOR_INTEGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxyClass)) |
| 300 | #define SENSOR_INTEGER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_PROXY, SensorIntegerProxyClass)) |
| 301 | #define IS_SENSOR_INTEGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_PROXY)) |
| 302 | #define IS_SENSOR_INTEGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_PROXY)) |
| 303 | |
| 304 | typedef struct _SensorIntegerProxy SensorIntegerProxy; |
| 305 | typedef struct _SensorIntegerProxyClass SensorIntegerProxyClass; |
| 306 | typedef struct _SensorIntegerProxyPrivate SensorIntegerProxyPrivate; |
| 307 | |
| 308 | struct _SensorIntegerProxy |
| 309 | { |
| 310 | /*< private >*/ |
| 311 | GDBusProxy parent_instance; |
| 312 | SensorIntegerProxyPrivate *priv; |
| 313 | }; |
| 314 | |
| 315 | struct _SensorIntegerProxyClass |
| 316 | { |
| 317 | GDBusProxyClass parent_class; |
| 318 | }; |
| 319 | |
| 320 | GType sensor_integer_proxy_get_type (void) G_GNUC_CONST; |
| 321 | |
| 322 | void sensor_integer_proxy_new ( |
| 323 | GDBusConnection *connection, |
| 324 | GDBusProxyFlags flags, |
| 325 | const gchar *name, |
| 326 | const gchar *object_path, |
| 327 | GCancellable *cancellable, |
| 328 | GAsyncReadyCallback callback, |
| 329 | gpointer user_data); |
| 330 | SensorInteger *sensor_integer_proxy_new_finish ( |
| 331 | GAsyncResult *res, |
| 332 | GError **error); |
| 333 | SensorInteger *sensor_integer_proxy_new_sync ( |
| 334 | GDBusConnection *connection, |
| 335 | GDBusProxyFlags flags, |
| 336 | const gchar *name, |
| 337 | const gchar *object_path, |
| 338 | GCancellable *cancellable, |
| 339 | GError **error); |
| 340 | |
| 341 | void sensor_integer_proxy_new_for_bus ( |
| 342 | GBusType bus_type, |
| 343 | GDBusProxyFlags flags, |
| 344 | const gchar *name, |
| 345 | const gchar *object_path, |
| 346 | GCancellable *cancellable, |
| 347 | GAsyncReadyCallback callback, |
| 348 | gpointer user_data); |
| 349 | SensorInteger *sensor_integer_proxy_new_for_bus_finish ( |
| 350 | GAsyncResult *res, |
| 351 | GError **error); |
| 352 | SensorInteger *sensor_integer_proxy_new_for_bus_sync ( |
| 353 | GBusType bus_type, |
| 354 | GDBusProxyFlags flags, |
| 355 | const gchar *name, |
| 356 | const gchar *object_path, |
| 357 | GCancellable *cancellable, |
| 358 | GError **error); |
| 359 | |
| 360 | |
| 361 | /* ---- */ |
| 362 | |
| 363 | #define TYPE_SENSOR_INTEGER_SKELETON (sensor_integer_skeleton_get_type ()) |
| 364 | #define SENSOR_INTEGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeleton)) |
| 365 | #define SENSOR_INTEGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeletonClass)) |
| 366 | #define SENSOR_INTEGER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_SKELETON, SensorIntegerSkeletonClass)) |
| 367 | #define IS_SENSOR_INTEGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SKELETON)) |
| 368 | #define IS_SENSOR_INTEGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_SKELETON)) |
| 369 | |
| 370 | typedef struct _SensorIntegerSkeleton SensorIntegerSkeleton; |
| 371 | typedef struct _SensorIntegerSkeletonClass SensorIntegerSkeletonClass; |
| 372 | typedef struct _SensorIntegerSkeletonPrivate SensorIntegerSkeletonPrivate; |
| 373 | |
| 374 | struct _SensorIntegerSkeleton |
| 375 | { |
| 376 | /*< private >*/ |
| 377 | GDBusInterfaceSkeleton parent_instance; |
| 378 | SensorIntegerSkeletonPrivate *priv; |
| 379 | }; |
| 380 | |
| 381 | struct _SensorIntegerSkeletonClass |
| 382 | { |
| 383 | GDBusInterfaceSkeletonClass parent_class; |
| 384 | }; |
| 385 | |
| 386 | GType sensor_integer_skeleton_get_type (void) G_GNUC_CONST; |
| 387 | |
| 388 | SensorInteger *sensor_integer_skeleton_new (void); |
| 389 | |
| 390 | |
| 391 | /* ------------------------------------------------------------------------ */ |
| 392 | /* Declarations for org.openbmc.SensorString */ |
| 393 | |
| 394 | #define TYPE_SENSOR_STRING (sensor_string_get_type ()) |
| 395 | #define SENSOR_STRING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING, SensorString)) |
| 396 | #define IS_SENSOR_STRING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING)) |
| 397 | #define SENSOR_STRING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_STRING, SensorStringIface)) |
| 398 | |
| 399 | struct _SensorString; |
| 400 | typedef struct _SensorString SensorString; |
| 401 | typedef struct _SensorStringIface SensorStringIface; |
| 402 | |
| 403 | struct _SensorStringIface |
| 404 | { |
| 405 | GTypeInterface parent_iface; |
| 406 | |
| 407 | |
| 408 | |
| 409 | gboolean (*handle_get_units) ( |
| 410 | SensorString *object, |
| 411 | GDBusMethodInvocation *invocation); |
| 412 | |
| 413 | gboolean (*handle_get_value) ( |
| 414 | SensorString *object, |
| 415 | GDBusMethodInvocation *invocation); |
| 416 | |
| 417 | const gchar * (*get_units) (SensorString *object); |
| 418 | |
| 419 | gint (*get_value) (SensorString *object); |
| 420 | |
| 421 | void (*changed) ( |
| 422 | SensorString *object, |
| 423 | const gchar *arg_value); |
| 424 | |
| 425 | }; |
| 426 | |
| 427 | GType sensor_string_get_type (void) G_GNUC_CONST; |
| 428 | |
| 429 | GDBusInterfaceInfo *sensor_string_interface_info (void); |
| 430 | guint sensor_string_override_properties (GObjectClass *klass, guint property_id_begin); |
| 431 | |
| 432 | |
| 433 | /* D-Bus method call completion functions: */ |
| 434 | void sensor_string_complete_get_value ( |
| 435 | SensorString *object, |
| 436 | GDBusMethodInvocation *invocation, |
| 437 | const gchar *value); |
| 438 | |
| 439 | void sensor_string_complete_get_units ( |
| 440 | SensorString *object, |
| 441 | GDBusMethodInvocation *invocation, |
| 442 | const gchar *units); |
| 443 | |
| 444 | |
| 445 | |
| 446 | /* D-Bus signal emissions functions: */ |
| 447 | void sensor_string_emit_changed ( |
| 448 | SensorString *object, |
| 449 | const gchar *arg_value); |
| 450 | |
| 451 | |
| 452 | |
| 453 | /* D-Bus method calls: */ |
| 454 | void sensor_string_call_get_value ( |
| 455 | SensorString *proxy, |
| 456 | GCancellable *cancellable, |
| 457 | GAsyncReadyCallback callback, |
| 458 | gpointer user_data); |
| 459 | |
| 460 | gboolean sensor_string_call_get_value_finish ( |
| 461 | SensorString *proxy, |
| 462 | gchar **out_value, |
| 463 | GAsyncResult *res, |
| 464 | GError **error); |
| 465 | |
| 466 | gboolean sensor_string_call_get_value_sync ( |
| 467 | SensorString *proxy, |
| 468 | gchar **out_value, |
| 469 | GCancellable *cancellable, |
| 470 | GError **error); |
| 471 | |
| 472 | void sensor_string_call_get_units ( |
| 473 | SensorString *proxy, |
| 474 | GCancellable *cancellable, |
| 475 | GAsyncReadyCallback callback, |
| 476 | gpointer user_data); |
| 477 | |
| 478 | gboolean sensor_string_call_get_units_finish ( |
| 479 | SensorString *proxy, |
| 480 | gchar **out_units, |
| 481 | GAsyncResult *res, |
| 482 | GError **error); |
| 483 | |
| 484 | gboolean sensor_string_call_get_units_sync ( |
| 485 | SensorString *proxy, |
| 486 | gchar **out_units, |
| 487 | GCancellable *cancellable, |
| 488 | GError **error); |
| 489 | |
| 490 | |
| 491 | |
| 492 | /* D-Bus property accessors: */ |
| 493 | gint sensor_string_get_value (SensorString *object); |
| 494 | void sensor_string_set_value (SensorString *object, gint value); |
| 495 | |
| 496 | const gchar *sensor_string_get_units (SensorString *object); |
| 497 | gchar *sensor_string_dup_units (SensorString *object); |
| 498 | void sensor_string_set_units (SensorString *object, const gchar *value); |
| 499 | |
| 500 | |
| 501 | /* ---- */ |
| 502 | |
| 503 | #define TYPE_SENSOR_STRING_PROXY (sensor_string_proxy_get_type ()) |
| 504 | #define SENSOR_STRING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING_PROXY, SensorStringProxy)) |
| 505 | #define SENSOR_STRING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_STRING_PROXY, SensorStringProxyClass)) |
| 506 | #define SENSOR_STRING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_STRING_PROXY, SensorStringProxyClass)) |
| 507 | #define IS_SENSOR_STRING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING_PROXY)) |
| 508 | #define IS_SENSOR_STRING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_STRING_PROXY)) |
| 509 | |
| 510 | typedef struct _SensorStringProxy SensorStringProxy; |
| 511 | typedef struct _SensorStringProxyClass SensorStringProxyClass; |
| 512 | typedef struct _SensorStringProxyPrivate SensorStringProxyPrivate; |
| 513 | |
| 514 | struct _SensorStringProxy |
| 515 | { |
| 516 | /*< private >*/ |
| 517 | GDBusProxy parent_instance; |
| 518 | SensorStringProxyPrivate *priv; |
| 519 | }; |
| 520 | |
| 521 | struct _SensorStringProxyClass |
| 522 | { |
| 523 | GDBusProxyClass parent_class; |
| 524 | }; |
| 525 | |
| 526 | GType sensor_string_proxy_get_type (void) G_GNUC_CONST; |
| 527 | |
| 528 | void sensor_string_proxy_new ( |
| 529 | GDBusConnection *connection, |
| 530 | GDBusProxyFlags flags, |
| 531 | const gchar *name, |
| 532 | const gchar *object_path, |
| 533 | GCancellable *cancellable, |
| 534 | GAsyncReadyCallback callback, |
| 535 | gpointer user_data); |
| 536 | SensorString *sensor_string_proxy_new_finish ( |
| 537 | GAsyncResult *res, |
| 538 | GError **error); |
| 539 | SensorString *sensor_string_proxy_new_sync ( |
| 540 | GDBusConnection *connection, |
| 541 | GDBusProxyFlags flags, |
| 542 | const gchar *name, |
| 543 | const gchar *object_path, |
| 544 | GCancellable *cancellable, |
| 545 | GError **error); |
| 546 | |
| 547 | void sensor_string_proxy_new_for_bus ( |
| 548 | GBusType bus_type, |
| 549 | GDBusProxyFlags flags, |
| 550 | const gchar *name, |
| 551 | const gchar *object_path, |
| 552 | GCancellable *cancellable, |
| 553 | GAsyncReadyCallback callback, |
| 554 | gpointer user_data); |
| 555 | SensorString *sensor_string_proxy_new_for_bus_finish ( |
| 556 | GAsyncResult *res, |
| 557 | GError **error); |
| 558 | SensorString *sensor_string_proxy_new_for_bus_sync ( |
| 559 | GBusType bus_type, |
| 560 | GDBusProxyFlags flags, |
| 561 | const gchar *name, |
| 562 | const gchar *object_path, |
| 563 | GCancellable *cancellable, |
| 564 | GError **error); |
| 565 | |
| 566 | |
| 567 | /* ---- */ |
| 568 | |
| 569 | #define TYPE_SENSOR_STRING_SKELETON (sensor_string_skeleton_get_type ()) |
| 570 | #define SENSOR_STRING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeleton)) |
| 571 | #define SENSOR_STRING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeletonClass)) |
| 572 | #define SENSOR_STRING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_STRING_SKELETON, SensorStringSkeletonClass)) |
| 573 | #define IS_SENSOR_STRING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_STRING_SKELETON)) |
| 574 | #define IS_SENSOR_STRING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_STRING_SKELETON)) |
| 575 | |
| 576 | typedef struct _SensorStringSkeleton SensorStringSkeleton; |
| 577 | typedef struct _SensorStringSkeletonClass SensorStringSkeletonClass; |
| 578 | typedef struct _SensorStringSkeletonPrivate SensorStringSkeletonPrivate; |
| 579 | |
| 580 | struct _SensorStringSkeleton |
| 581 | { |
| 582 | /*< private >*/ |
| 583 | GDBusInterfaceSkeleton parent_instance; |
| 584 | SensorStringSkeletonPrivate *priv; |
| 585 | }; |
| 586 | |
| 587 | struct _SensorStringSkeletonClass |
| 588 | { |
| 589 | GDBusInterfaceSkeletonClass parent_class; |
| 590 | }; |
| 591 | |
| 592 | GType sensor_string_skeleton_get_type (void) G_GNUC_CONST; |
| 593 | |
| 594 | SensorString *sensor_string_skeleton_new (void); |
| 595 | |
| 596 | |
| 597 | /* ------------------------------------------------------------------------ */ |
| 598 | /* Declarations for org.openbmc.SensorIntegerSettable */ |
| 599 | |
| 600 | #define TYPE_SENSOR_INTEGER_SETTABLE (sensor_integer_settable_get_type ()) |
| 601 | #define SENSOR_INTEGER_SETTABLE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SETTABLE, SensorIntegerSettable)) |
| 602 | #define IS_SENSOR_INTEGER_SETTABLE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SETTABLE)) |
| 603 | #define SENSOR_INTEGER_SETTABLE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_INTEGER_SETTABLE, SensorIntegerSettableIface)) |
| 604 | |
| 605 | struct _SensorIntegerSettable; |
| 606 | typedef struct _SensorIntegerSettable SensorIntegerSettable; |
| 607 | typedef struct _SensorIntegerSettableIface SensorIntegerSettableIface; |
| 608 | |
| 609 | struct _SensorIntegerSettableIface |
| 610 | { |
| 611 | GTypeInterface parent_iface; |
| 612 | |
| 613 | |
| 614 | |
| 615 | gboolean (*handle_get_units) ( |
| 616 | SensorIntegerSettable *object, |
| 617 | GDBusMethodInvocation *invocation); |
| 618 | |
| 619 | gboolean (*handle_get_value) ( |
| 620 | SensorIntegerSettable *object, |
| 621 | GDBusMethodInvocation *invocation); |
| 622 | |
| 623 | gboolean (*handle_set_value) ( |
| 624 | SensorIntegerSettable *object, |
| 625 | GDBusMethodInvocation *invocation, |
| 626 | gint arg_value); |
| 627 | |
| 628 | const gchar * (*get_units) (SensorIntegerSettable *object); |
| 629 | |
| 630 | gint (*get_value) (SensorIntegerSettable *object); |
| 631 | |
| 632 | void (*changed) ( |
| 633 | SensorIntegerSettable *object, |
| 634 | gint arg_value); |
| 635 | |
| 636 | }; |
| 637 | |
| 638 | GType sensor_integer_settable_get_type (void) G_GNUC_CONST; |
| 639 | |
| 640 | GDBusInterfaceInfo *sensor_integer_settable_interface_info (void); |
| 641 | guint sensor_integer_settable_override_properties (GObjectClass *klass, guint property_id_begin); |
| 642 | |
| 643 | |
| 644 | /* D-Bus method call completion functions: */ |
| 645 | void sensor_integer_settable_complete_get_value ( |
| 646 | SensorIntegerSettable *object, |
| 647 | GDBusMethodInvocation *invocation, |
| 648 | gint value); |
| 649 | |
| 650 | void sensor_integer_settable_complete_set_value ( |
| 651 | SensorIntegerSettable *object, |
| 652 | GDBusMethodInvocation *invocation); |
| 653 | |
| 654 | void sensor_integer_settable_complete_get_units ( |
| 655 | SensorIntegerSettable *object, |
| 656 | GDBusMethodInvocation *invocation, |
| 657 | const gchar *units); |
| 658 | |
| 659 | |
| 660 | |
| 661 | /* D-Bus signal emissions functions: */ |
| 662 | void sensor_integer_settable_emit_changed ( |
| 663 | SensorIntegerSettable *object, |
| 664 | gint arg_value); |
| 665 | |
| 666 | |
| 667 | |
| 668 | /* D-Bus method calls: */ |
| 669 | void sensor_integer_settable_call_get_value ( |
| 670 | SensorIntegerSettable *proxy, |
| 671 | GCancellable *cancellable, |
| 672 | GAsyncReadyCallback callback, |
| 673 | gpointer user_data); |
| 674 | |
| 675 | gboolean sensor_integer_settable_call_get_value_finish ( |
| 676 | SensorIntegerSettable *proxy, |
| 677 | gint *out_value, |
| 678 | GAsyncResult *res, |
| 679 | GError **error); |
| 680 | |
| 681 | gboolean sensor_integer_settable_call_get_value_sync ( |
| 682 | SensorIntegerSettable *proxy, |
| 683 | gint *out_value, |
| 684 | GCancellable *cancellable, |
| 685 | GError **error); |
| 686 | |
| 687 | void sensor_integer_settable_call_set_value ( |
| 688 | SensorIntegerSettable *proxy, |
| 689 | gint arg_value, |
| 690 | GCancellable *cancellable, |
| 691 | GAsyncReadyCallback callback, |
| 692 | gpointer user_data); |
| 693 | |
| 694 | gboolean sensor_integer_settable_call_set_value_finish ( |
| 695 | SensorIntegerSettable *proxy, |
| 696 | GAsyncResult *res, |
| 697 | GError **error); |
| 698 | |
| 699 | gboolean sensor_integer_settable_call_set_value_sync ( |
| 700 | SensorIntegerSettable *proxy, |
| 701 | gint arg_value, |
| 702 | GCancellable *cancellable, |
| 703 | GError **error); |
| 704 | |
| 705 | void sensor_integer_settable_call_get_units ( |
| 706 | SensorIntegerSettable *proxy, |
| 707 | GCancellable *cancellable, |
| 708 | GAsyncReadyCallback callback, |
| 709 | gpointer user_data); |
| 710 | |
| 711 | gboolean sensor_integer_settable_call_get_units_finish ( |
| 712 | SensorIntegerSettable *proxy, |
| 713 | gchar **out_units, |
| 714 | GAsyncResult *res, |
| 715 | GError **error); |
| 716 | |
| 717 | gboolean sensor_integer_settable_call_get_units_sync ( |
| 718 | SensorIntegerSettable *proxy, |
| 719 | gchar **out_units, |
| 720 | GCancellable *cancellable, |
| 721 | GError **error); |
| 722 | |
| 723 | |
| 724 | |
| 725 | /* D-Bus property accessors: */ |
| 726 | gint sensor_integer_settable_get_value (SensorIntegerSettable *object); |
| 727 | void sensor_integer_settable_set_value (SensorIntegerSettable *object, gint value); |
| 728 | |
| 729 | const gchar *sensor_integer_settable_get_units (SensorIntegerSettable *object); |
| 730 | gchar *sensor_integer_settable_dup_units (SensorIntegerSettable *object); |
| 731 | void sensor_integer_settable_set_units (SensorIntegerSettable *object, const gchar *value); |
| 732 | |
| 733 | |
| 734 | /* ---- */ |
| 735 | |
| 736 | #define TYPE_SENSOR_INTEGER_SETTABLE_PROXY (sensor_integer_settable_proxy_get_type ()) |
| 737 | #define SENSOR_INTEGER_SETTABLE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SETTABLE_PROXY, SensorIntegerSettableProxy)) |
| 738 | #define SENSOR_INTEGER_SETTABLE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_SETTABLE_PROXY, SensorIntegerSettableProxyClass)) |
| 739 | #define SENSOR_INTEGER_SETTABLE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_SETTABLE_PROXY, SensorIntegerSettableProxyClass)) |
| 740 | #define IS_SENSOR_INTEGER_SETTABLE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SETTABLE_PROXY)) |
| 741 | #define IS_SENSOR_INTEGER_SETTABLE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_SETTABLE_PROXY)) |
| 742 | |
| 743 | typedef struct _SensorIntegerSettableProxy SensorIntegerSettableProxy; |
| 744 | typedef struct _SensorIntegerSettableProxyClass SensorIntegerSettableProxyClass; |
| 745 | typedef struct _SensorIntegerSettableProxyPrivate SensorIntegerSettableProxyPrivate; |
| 746 | |
| 747 | struct _SensorIntegerSettableProxy |
| 748 | { |
| 749 | /*< private >*/ |
| 750 | GDBusProxy parent_instance; |
| 751 | SensorIntegerSettableProxyPrivate *priv; |
| 752 | }; |
| 753 | |
| 754 | struct _SensorIntegerSettableProxyClass |
| 755 | { |
| 756 | GDBusProxyClass parent_class; |
| 757 | }; |
| 758 | |
| 759 | GType sensor_integer_settable_proxy_get_type (void) G_GNUC_CONST; |
| 760 | |
| 761 | void sensor_integer_settable_proxy_new ( |
| 762 | GDBusConnection *connection, |
| 763 | GDBusProxyFlags flags, |
| 764 | const gchar *name, |
| 765 | const gchar *object_path, |
| 766 | GCancellable *cancellable, |
| 767 | GAsyncReadyCallback callback, |
| 768 | gpointer user_data); |
| 769 | SensorIntegerSettable *sensor_integer_settable_proxy_new_finish ( |
| 770 | GAsyncResult *res, |
| 771 | GError **error); |
| 772 | SensorIntegerSettable *sensor_integer_settable_proxy_new_sync ( |
| 773 | GDBusConnection *connection, |
| 774 | GDBusProxyFlags flags, |
| 775 | const gchar *name, |
| 776 | const gchar *object_path, |
| 777 | GCancellable *cancellable, |
| 778 | GError **error); |
| 779 | |
| 780 | void sensor_integer_settable_proxy_new_for_bus ( |
| 781 | GBusType bus_type, |
| 782 | GDBusProxyFlags flags, |
| 783 | const gchar *name, |
| 784 | const gchar *object_path, |
| 785 | GCancellable *cancellable, |
| 786 | GAsyncReadyCallback callback, |
| 787 | gpointer user_data); |
| 788 | SensorIntegerSettable *sensor_integer_settable_proxy_new_for_bus_finish ( |
| 789 | GAsyncResult *res, |
| 790 | GError **error); |
| 791 | SensorIntegerSettable *sensor_integer_settable_proxy_new_for_bus_sync ( |
| 792 | GBusType bus_type, |
| 793 | GDBusProxyFlags flags, |
| 794 | const gchar *name, |
| 795 | const gchar *object_path, |
| 796 | GCancellable *cancellable, |
| 797 | GError **error); |
| 798 | |
| 799 | |
| 800 | /* ---- */ |
| 801 | |
| 802 | #define TYPE_SENSOR_INTEGER_SETTABLE_SKELETON (sensor_integer_settable_skeleton_get_type ()) |
| 803 | #define SENSOR_INTEGER_SETTABLE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON, SensorIntegerSettableSkeleton)) |
| 804 | #define SENSOR_INTEGER_SETTABLE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON, SensorIntegerSettableSkeletonClass)) |
| 805 | #define SENSOR_INTEGER_SETTABLE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON, SensorIntegerSettableSkeletonClass)) |
| 806 | #define IS_SENSOR_INTEGER_SETTABLE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON)) |
| 807 | #define IS_SENSOR_INTEGER_SETTABLE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_SETTABLE_SKELETON)) |
| 808 | |
| 809 | typedef struct _SensorIntegerSettableSkeleton SensorIntegerSettableSkeleton; |
| 810 | typedef struct _SensorIntegerSettableSkeletonClass SensorIntegerSettableSkeletonClass; |
| 811 | typedef struct _SensorIntegerSettableSkeletonPrivate SensorIntegerSettableSkeletonPrivate; |
| 812 | |
| 813 | struct _SensorIntegerSettableSkeleton |
| 814 | { |
| 815 | /*< private >*/ |
| 816 | GDBusInterfaceSkeleton parent_instance; |
| 817 | SensorIntegerSettableSkeletonPrivate *priv; |
| 818 | }; |
| 819 | |
| 820 | struct _SensorIntegerSettableSkeletonClass |
| 821 | { |
| 822 | GDBusInterfaceSkeletonClass parent_class; |
| 823 | }; |
| 824 | |
| 825 | GType sensor_integer_settable_skeleton_get_type (void) G_GNUC_CONST; |
| 826 | |
| 827 | SensorIntegerSettable *sensor_integer_settable_skeleton_new (void); |
| 828 | |
| 829 | |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 830 | /* ------------------------------------------------------------------------ */ |
| 831 | /* Declarations for org.openbmc.SensorIntegerThreshold */ |
| 832 | |
| 833 | #define TYPE_SENSOR_INTEGER_THRESHOLD (sensor_integer_threshold_get_type ()) |
| 834 | #define SENSOR_INTEGER_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD, SensorIntegerThreshold)) |
| 835 | #define IS_SENSOR_INTEGER_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD)) |
| 836 | #define SENSOR_INTEGER_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_INTEGER_THRESHOLD, SensorIntegerThresholdIface)) |
| 837 | |
| 838 | struct _SensorIntegerThreshold; |
| 839 | typedef struct _SensorIntegerThreshold SensorIntegerThreshold; |
| 840 | typedef struct _SensorIntegerThresholdIface SensorIntegerThresholdIface; |
| 841 | |
| 842 | struct _SensorIntegerThresholdIface |
| 843 | { |
| 844 | GTypeInterface parent_iface; |
| 845 | |
| 846 | |
| 847 | |
| 848 | gboolean (*handle_check) ( |
| 849 | SensorIntegerThreshold *object, |
| 850 | GDBusMethodInvocation *invocation, |
| 851 | gint arg_value); |
| 852 | |
| 853 | gboolean (*handle_set_thresholds) ( |
| 854 | SensorIntegerThreshold *object, |
| 855 | GDBusMethodInvocation *invocation, |
| 856 | gint arg_critical_upper, |
| 857 | gint arg_critical_lower, |
| 858 | gint arg_warning_upper, |
| 859 | gint arg_warning_lower); |
| 860 | |
| 861 | gint (*get_critical_lower) (SensorIntegerThreshold *object); |
| 862 | |
| 863 | gint (*get_critical_upper) (SensorIntegerThreshold *object); |
| 864 | |
| 865 | gint (*get_warning_lower) (SensorIntegerThreshold *object); |
| 866 | |
| 867 | gint (*get_warning_upper) (SensorIntegerThreshold *object); |
| 868 | |
| 869 | void (*critical) ( |
| 870 | SensorIntegerThreshold *object, |
| 871 | gboolean arg_over); |
| 872 | |
| 873 | void (*warning) ( |
| 874 | SensorIntegerThreshold *object, |
| 875 | gboolean arg_over); |
| 876 | |
| 877 | }; |
| 878 | |
| 879 | GType sensor_integer_threshold_get_type (void) G_GNUC_CONST; |
| 880 | |
| 881 | GDBusInterfaceInfo *sensor_integer_threshold_interface_info (void); |
| 882 | guint sensor_integer_threshold_override_properties (GObjectClass *klass, guint property_id_begin); |
| 883 | |
| 884 | |
| 885 | /* D-Bus method call completion functions: */ |
| 886 | void sensor_integer_threshold_complete_check ( |
| 887 | SensorIntegerThreshold *object, |
| 888 | GDBusMethodInvocation *invocation); |
| 889 | |
| 890 | void sensor_integer_threshold_complete_set_thresholds ( |
| 891 | SensorIntegerThreshold *object, |
| 892 | GDBusMethodInvocation *invocation); |
| 893 | |
| 894 | |
| 895 | |
| 896 | /* D-Bus signal emissions functions: */ |
| 897 | void sensor_integer_threshold_emit_critical ( |
| 898 | SensorIntegerThreshold *object, |
| 899 | gboolean arg_over); |
| 900 | |
| 901 | void sensor_integer_threshold_emit_warning ( |
| 902 | SensorIntegerThreshold *object, |
| 903 | gboolean arg_over); |
| 904 | |
| 905 | |
| 906 | |
| 907 | /* D-Bus method calls: */ |
| 908 | void sensor_integer_threshold_call_check ( |
| 909 | SensorIntegerThreshold *proxy, |
| 910 | gint arg_value, |
| 911 | GCancellable *cancellable, |
| 912 | GAsyncReadyCallback callback, |
| 913 | gpointer user_data); |
| 914 | |
| 915 | gboolean sensor_integer_threshold_call_check_finish ( |
| 916 | SensorIntegerThreshold *proxy, |
| 917 | GAsyncResult *res, |
| 918 | GError **error); |
| 919 | |
| 920 | gboolean sensor_integer_threshold_call_check_sync ( |
| 921 | SensorIntegerThreshold *proxy, |
| 922 | gint arg_value, |
| 923 | GCancellable *cancellable, |
| 924 | GError **error); |
| 925 | |
| 926 | void sensor_integer_threshold_call_set_thresholds ( |
| 927 | SensorIntegerThreshold *proxy, |
| 928 | gint arg_critical_upper, |
| 929 | gint arg_critical_lower, |
| 930 | gint arg_warning_upper, |
| 931 | gint arg_warning_lower, |
| 932 | GCancellable *cancellable, |
| 933 | GAsyncReadyCallback callback, |
| 934 | gpointer user_data); |
| 935 | |
| 936 | gboolean sensor_integer_threshold_call_set_thresholds_finish ( |
| 937 | SensorIntegerThreshold *proxy, |
| 938 | GAsyncResult *res, |
| 939 | GError **error); |
| 940 | |
| 941 | gboolean sensor_integer_threshold_call_set_thresholds_sync ( |
| 942 | SensorIntegerThreshold *proxy, |
| 943 | gint arg_critical_upper, |
| 944 | gint arg_critical_lower, |
| 945 | gint arg_warning_upper, |
| 946 | gint arg_warning_lower, |
| 947 | GCancellable *cancellable, |
| 948 | GError **error); |
| 949 | |
| 950 | |
| 951 | |
| 952 | /* D-Bus property accessors: */ |
| 953 | gint sensor_integer_threshold_get_critical_upper (SensorIntegerThreshold *object); |
| 954 | void sensor_integer_threshold_set_critical_upper (SensorIntegerThreshold *object, gint value); |
| 955 | |
| 956 | gint sensor_integer_threshold_get_critical_lower (SensorIntegerThreshold *object); |
| 957 | void sensor_integer_threshold_set_critical_lower (SensorIntegerThreshold *object, gint value); |
| 958 | |
| 959 | gint sensor_integer_threshold_get_warning_upper (SensorIntegerThreshold *object); |
| 960 | void sensor_integer_threshold_set_warning_upper (SensorIntegerThreshold *object, gint value); |
| 961 | |
| 962 | gint sensor_integer_threshold_get_warning_lower (SensorIntegerThreshold *object); |
| 963 | void sensor_integer_threshold_set_warning_lower (SensorIntegerThreshold *object, gint value); |
| 964 | |
| 965 | |
| 966 | /* ---- */ |
| 967 | |
| 968 | #define TYPE_SENSOR_INTEGER_THRESHOLD_PROXY (sensor_integer_threshold_proxy_get_type ()) |
| 969 | #define SENSOR_INTEGER_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxy)) |
| 970 | #define SENSOR_INTEGER_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxyClass)) |
| 971 | #define SENSOR_INTEGER_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY, SensorIntegerThresholdProxyClass)) |
| 972 | #define IS_SENSOR_INTEGER_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY)) |
| 973 | #define IS_SENSOR_INTEGER_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_THRESHOLD_PROXY)) |
| 974 | |
| 975 | typedef struct _SensorIntegerThresholdProxy SensorIntegerThresholdProxy; |
| 976 | typedef struct _SensorIntegerThresholdProxyClass SensorIntegerThresholdProxyClass; |
| 977 | typedef struct _SensorIntegerThresholdProxyPrivate SensorIntegerThresholdProxyPrivate; |
| 978 | |
| 979 | struct _SensorIntegerThresholdProxy |
| 980 | { |
| 981 | /*< private >*/ |
| 982 | GDBusProxy parent_instance; |
| 983 | SensorIntegerThresholdProxyPrivate *priv; |
| 984 | }; |
| 985 | |
| 986 | struct _SensorIntegerThresholdProxyClass |
| 987 | { |
| 988 | GDBusProxyClass parent_class; |
| 989 | }; |
| 990 | |
| 991 | GType sensor_integer_threshold_proxy_get_type (void) G_GNUC_CONST; |
| 992 | |
| 993 | void sensor_integer_threshold_proxy_new ( |
| 994 | GDBusConnection *connection, |
| 995 | GDBusProxyFlags flags, |
| 996 | const gchar *name, |
| 997 | const gchar *object_path, |
| 998 | GCancellable *cancellable, |
| 999 | GAsyncReadyCallback callback, |
| 1000 | gpointer user_data); |
| 1001 | SensorIntegerThreshold *sensor_integer_threshold_proxy_new_finish ( |
| 1002 | GAsyncResult *res, |
| 1003 | GError **error); |
| 1004 | SensorIntegerThreshold *sensor_integer_threshold_proxy_new_sync ( |
| 1005 | GDBusConnection *connection, |
| 1006 | GDBusProxyFlags flags, |
| 1007 | const gchar *name, |
| 1008 | const gchar *object_path, |
| 1009 | GCancellable *cancellable, |
| 1010 | GError **error); |
| 1011 | |
| 1012 | void sensor_integer_threshold_proxy_new_for_bus ( |
| 1013 | GBusType bus_type, |
| 1014 | GDBusProxyFlags flags, |
| 1015 | const gchar *name, |
| 1016 | const gchar *object_path, |
| 1017 | GCancellable *cancellable, |
| 1018 | GAsyncReadyCallback callback, |
| 1019 | gpointer user_data); |
| 1020 | SensorIntegerThreshold *sensor_integer_threshold_proxy_new_for_bus_finish ( |
| 1021 | GAsyncResult *res, |
| 1022 | GError **error); |
| 1023 | SensorIntegerThreshold *sensor_integer_threshold_proxy_new_for_bus_sync ( |
| 1024 | GBusType bus_type, |
| 1025 | GDBusProxyFlags flags, |
| 1026 | const gchar *name, |
| 1027 | const gchar *object_path, |
| 1028 | GCancellable *cancellable, |
| 1029 | GError **error); |
| 1030 | |
| 1031 | |
| 1032 | /* ---- */ |
| 1033 | |
| 1034 | #define TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON (sensor_integer_threshold_skeleton_get_type ()) |
| 1035 | #define SENSOR_INTEGER_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeleton)) |
| 1036 | #define SENSOR_INTEGER_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeletonClass)) |
| 1037 | #define SENSOR_INTEGER_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON, SensorIntegerThresholdSkeletonClass)) |
| 1038 | #define IS_SENSOR_INTEGER_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON)) |
| 1039 | #define IS_SENSOR_INTEGER_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_INTEGER_THRESHOLD_SKELETON)) |
| 1040 | |
| 1041 | typedef struct _SensorIntegerThresholdSkeleton SensorIntegerThresholdSkeleton; |
| 1042 | typedef struct _SensorIntegerThresholdSkeletonClass SensorIntegerThresholdSkeletonClass; |
| 1043 | typedef struct _SensorIntegerThresholdSkeletonPrivate SensorIntegerThresholdSkeletonPrivate; |
| 1044 | |
| 1045 | struct _SensorIntegerThresholdSkeleton |
| 1046 | { |
| 1047 | /*< private >*/ |
| 1048 | GDBusInterfaceSkeleton parent_instance; |
| 1049 | SensorIntegerThresholdSkeletonPrivate *priv; |
| 1050 | }; |
| 1051 | |
| 1052 | struct _SensorIntegerThresholdSkeletonClass |
| 1053 | { |
| 1054 | GDBusInterfaceSkeletonClass parent_class; |
| 1055 | }; |
| 1056 | |
| 1057 | GType sensor_integer_threshold_skeleton_get_type (void) G_GNUC_CONST; |
| 1058 | |
| 1059 | SensorIntegerThreshold *sensor_integer_threshold_skeleton_new (void); |
| 1060 | |
| 1061 | |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 1062 | /* ---- */ |
| 1063 | |
| 1064 | #define TYPE_OBJECT (object_get_type ()) |
| 1065 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 1066 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 1067 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 1068 | |
| 1069 | struct _Object; |
| 1070 | typedef struct _Object Object; |
| 1071 | typedef struct _ObjectIface ObjectIface; |
| 1072 | |
| 1073 | struct _ObjectIface |
| 1074 | { |
| 1075 | GTypeInterface parent_iface; |
| 1076 | }; |
| 1077 | |
| 1078 | GType object_get_type (void) G_GNUC_CONST; |
| 1079 | |
| 1080 | SensorInteger *object_get_sensor_integer (Object *object); |
| 1081 | SensorString *object_get_sensor_string (Object *object); |
| 1082 | SensorIntegerSettable *object_get_sensor_integer_settable (Object *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 1083 | SensorIntegerThreshold *object_get_sensor_integer_threshold (Object *object); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 1084 | SensorInteger *object_peek_sensor_integer (Object *object); |
| 1085 | SensorString *object_peek_sensor_string (Object *object); |
| 1086 | SensorIntegerSettable *object_peek_sensor_integer_settable (Object *object); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 1087 | SensorIntegerThreshold *object_peek_sensor_integer_threshold (Object *object); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 1088 | |
| 1089 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 1090 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 1091 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 1092 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 1093 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 1094 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 1095 | |
| 1096 | typedef struct _ObjectProxy ObjectProxy; |
| 1097 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 1098 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 1099 | |
| 1100 | struct _ObjectProxy |
| 1101 | { |
| 1102 | /*< private >*/ |
| 1103 | GDBusObjectProxy parent_instance; |
| 1104 | ObjectProxyPrivate *priv; |
| 1105 | }; |
| 1106 | |
| 1107 | struct _ObjectProxyClass |
| 1108 | { |
| 1109 | GDBusObjectProxyClass parent_class; |
| 1110 | }; |
| 1111 | |
| 1112 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 1113 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 1114 | |
| 1115 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 1116 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 1117 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 1118 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 1119 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 1120 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 1121 | |
| 1122 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 1123 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 1124 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 1125 | |
| 1126 | struct _ObjectSkeleton |
| 1127 | { |
| 1128 | /*< private >*/ |
| 1129 | GDBusObjectSkeleton parent_instance; |
| 1130 | ObjectSkeletonPrivate *priv; |
| 1131 | }; |
| 1132 | |
| 1133 | struct _ObjectSkeletonClass |
| 1134 | { |
| 1135 | GDBusObjectSkeletonClass parent_class; |
| 1136 | }; |
| 1137 | |
| 1138 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 1139 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
| 1140 | void object_skeleton_set_sensor_integer (ObjectSkeleton *object, SensorInteger *interface_); |
| 1141 | void object_skeleton_set_sensor_string (ObjectSkeleton *object, SensorString *interface_); |
| 1142 | void object_skeleton_set_sensor_integer_settable (ObjectSkeleton *object, SensorIntegerSettable *interface_); |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 1143 | void object_skeleton_set_sensor_integer_threshold (ObjectSkeleton *object, SensorIntegerThreshold *interface_); |
Norman James | e276510 | 2015-08-19 22:00:55 -0500 | [diff] [blame] | 1144 | |
| 1145 | /* ---- */ |
| 1146 | |
| 1147 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 1148 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 1149 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 1150 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 1151 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 1152 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 1153 | |
| 1154 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 1155 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 1156 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 1157 | |
| 1158 | struct _ObjectManagerClient |
| 1159 | { |
| 1160 | /*< private >*/ |
| 1161 | GDBusObjectManagerClient parent_instance; |
| 1162 | ObjectManagerClientPrivate *priv; |
| 1163 | }; |
| 1164 | |
| 1165 | struct _ObjectManagerClientClass |
| 1166 | { |
| 1167 | GDBusObjectManagerClientClass parent_class; |
| 1168 | }; |
| 1169 | |
| 1170 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 1171 | |
| 1172 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 1173 | |
| 1174 | void object_manager_client_new ( |
| 1175 | GDBusConnection *connection, |
| 1176 | GDBusObjectManagerClientFlags flags, |
| 1177 | const gchar *name, |
| 1178 | const gchar *object_path, |
| 1179 | GCancellable *cancellable, |
| 1180 | GAsyncReadyCallback callback, |
| 1181 | gpointer user_data); |
| 1182 | GDBusObjectManager *object_manager_client_new_finish ( |
| 1183 | GAsyncResult *res, |
| 1184 | GError **error); |
| 1185 | GDBusObjectManager *object_manager_client_new_sync ( |
| 1186 | GDBusConnection *connection, |
| 1187 | GDBusObjectManagerClientFlags flags, |
| 1188 | const gchar *name, |
| 1189 | const gchar *object_path, |
| 1190 | GCancellable *cancellable, |
| 1191 | GError **error); |
| 1192 | |
| 1193 | void object_manager_client_new_for_bus ( |
| 1194 | GBusType bus_type, |
| 1195 | GDBusObjectManagerClientFlags flags, |
| 1196 | const gchar *name, |
| 1197 | const gchar *object_path, |
| 1198 | GCancellable *cancellable, |
| 1199 | GAsyncReadyCallback callback, |
| 1200 | gpointer user_data); |
| 1201 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 1202 | GAsyncResult *res, |
| 1203 | GError **error); |
| 1204 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 1205 | GBusType bus_type, |
| 1206 | GDBusObjectManagerClientFlags flags, |
| 1207 | const gchar *name, |
| 1208 | const gchar *object_path, |
| 1209 | GCancellable *cancellable, |
| 1210 | GError **error); |
| 1211 | |
| 1212 | |
| 1213 | G_END_DECLS |
| 1214 | |
| 1215 | #endif /* __INTERFACES_SENSOR_H__ */ |