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