Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1 | /* |
Patrick Williams | 66823d1 | 2024-10-04 09:04:09 -0400 | [diff] [blame] | 2 | * This file is generated by gdbus-codegen, do not modify it. |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3 | * |
Patrick Williams | 66823d1 | 2024-10-04 09:04:09 -0400 | [diff] [blame] | 4 | * The license of this code is the same as for the D-Bus interface description |
| 5 | * it was derived from. Note that it links to GLib, so must comply with the |
| 6 | * LGPL linking clauses. |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 7 | */ |
| 8 | |
Brad Bishop | 8a8b003 | 2016-06-27 12:08:08 -0400 | [diff] [blame] | 9 | #ifndef __OPENBMC_INTF_H__ |
| 10 | #define __OPENBMC_INTF_H__ |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 11 | |
| 12 | #include <gio/gio.h> |
| 13 | |
| 14 | G_BEGIN_DECLS |
| 15 | |
| 16 | |
| 17 | /* ------------------------------------------------------------------------ */ |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 18 | /* Declarations for org.openbmc.Hwmon */ |
| 19 | |
| 20 | #define TYPE_HWMON (hwmon_get_type ()) |
| 21 | #define HWMON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HWMON, Hwmon)) |
| 22 | #define IS_HWMON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HWMON)) |
| 23 | #define HWMON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_HWMON, HwmonIface)) |
| 24 | |
| 25 | struct _Hwmon; |
| 26 | typedef struct _Hwmon Hwmon; |
| 27 | typedef struct _HwmonIface HwmonIface; |
| 28 | |
| 29 | struct _HwmonIface |
| 30 | { |
| 31 | GTypeInterface parent_iface; |
| 32 | |
| 33 | gint (*get_poll_interval) (Hwmon *object); |
| 34 | |
Norman James | 7482845 | 2015-11-17 13:10:34 -0600 | [diff] [blame] | 35 | gint (*get_scale) (Hwmon *object); |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 36 | |
Norman James | 7482845 | 2015-11-17 13:10:34 -0600 | [diff] [blame] | 37 | const gchar * (*get_sysfs_path) (Hwmon *object); |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 38 | |
| 39 | }; |
| 40 | |
| 41 | GType hwmon_get_type (void) G_GNUC_CONST; |
| 42 | |
| 43 | GDBusInterfaceInfo *hwmon_interface_info (void); |
| 44 | guint hwmon_override_properties (GObjectClass *klass, guint property_id_begin); |
| 45 | |
| 46 | |
| 47 | /* D-Bus property accessors: */ |
| 48 | gint hwmon_get_poll_interval (Hwmon *object); |
| 49 | void hwmon_set_poll_interval (Hwmon *object, gint value); |
| 50 | |
| 51 | const gchar *hwmon_get_sysfs_path (Hwmon *object); |
| 52 | gchar *hwmon_dup_sysfs_path (Hwmon *object); |
| 53 | void hwmon_set_sysfs_path (Hwmon *object, const gchar *value); |
| 54 | |
Norman James | 7482845 | 2015-11-17 13:10:34 -0600 | [diff] [blame] | 55 | gint hwmon_get_scale (Hwmon *object); |
| 56 | void hwmon_set_scale (Hwmon *object, gint value); |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 57 | |
| 58 | |
| 59 | /* ---- */ |
| 60 | |
| 61 | #define TYPE_HWMON_PROXY (hwmon_proxy_get_type ()) |
| 62 | #define HWMON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HWMON_PROXY, HwmonProxy)) |
| 63 | #define HWMON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HWMON_PROXY, HwmonProxyClass)) |
| 64 | #define HWMON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HWMON_PROXY, HwmonProxyClass)) |
| 65 | #define IS_HWMON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HWMON_PROXY)) |
| 66 | #define IS_HWMON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HWMON_PROXY)) |
| 67 | |
| 68 | typedef struct _HwmonProxy HwmonProxy; |
| 69 | typedef struct _HwmonProxyClass HwmonProxyClass; |
| 70 | typedef struct _HwmonProxyPrivate HwmonProxyPrivate; |
| 71 | |
| 72 | struct _HwmonProxy |
| 73 | { |
| 74 | /*< private >*/ |
| 75 | GDBusProxy parent_instance; |
| 76 | HwmonProxyPrivate *priv; |
| 77 | }; |
| 78 | |
| 79 | struct _HwmonProxyClass |
| 80 | { |
| 81 | GDBusProxyClass parent_class; |
| 82 | }; |
| 83 | |
| 84 | GType hwmon_proxy_get_type (void) G_GNUC_CONST; |
| 85 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 86 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 87 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (HwmonProxy, g_object_unref) |
| 88 | #endif |
| 89 | |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 90 | void hwmon_proxy_new ( |
| 91 | GDBusConnection *connection, |
| 92 | GDBusProxyFlags flags, |
| 93 | const gchar *name, |
| 94 | const gchar *object_path, |
| 95 | GCancellable *cancellable, |
| 96 | GAsyncReadyCallback callback, |
| 97 | gpointer user_data); |
| 98 | Hwmon *hwmon_proxy_new_finish ( |
| 99 | GAsyncResult *res, |
| 100 | GError **error); |
| 101 | Hwmon *hwmon_proxy_new_sync ( |
| 102 | GDBusConnection *connection, |
| 103 | GDBusProxyFlags flags, |
| 104 | const gchar *name, |
| 105 | const gchar *object_path, |
| 106 | GCancellable *cancellable, |
| 107 | GError **error); |
| 108 | |
| 109 | void hwmon_proxy_new_for_bus ( |
| 110 | GBusType bus_type, |
| 111 | GDBusProxyFlags flags, |
| 112 | const gchar *name, |
| 113 | const gchar *object_path, |
| 114 | GCancellable *cancellable, |
| 115 | GAsyncReadyCallback callback, |
| 116 | gpointer user_data); |
| 117 | Hwmon *hwmon_proxy_new_for_bus_finish ( |
| 118 | GAsyncResult *res, |
| 119 | GError **error); |
| 120 | Hwmon *hwmon_proxy_new_for_bus_sync ( |
| 121 | GBusType bus_type, |
| 122 | GDBusProxyFlags flags, |
| 123 | const gchar *name, |
| 124 | const gchar *object_path, |
| 125 | GCancellable *cancellable, |
| 126 | GError **error); |
| 127 | |
| 128 | |
| 129 | /* ---- */ |
| 130 | |
| 131 | #define TYPE_HWMON_SKELETON (hwmon_skeleton_get_type ()) |
| 132 | #define HWMON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HWMON_SKELETON, HwmonSkeleton)) |
| 133 | #define HWMON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HWMON_SKELETON, HwmonSkeletonClass)) |
| 134 | #define HWMON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HWMON_SKELETON, HwmonSkeletonClass)) |
| 135 | #define IS_HWMON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HWMON_SKELETON)) |
| 136 | #define IS_HWMON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HWMON_SKELETON)) |
| 137 | |
| 138 | typedef struct _HwmonSkeleton HwmonSkeleton; |
| 139 | typedef struct _HwmonSkeletonClass HwmonSkeletonClass; |
| 140 | typedef struct _HwmonSkeletonPrivate HwmonSkeletonPrivate; |
| 141 | |
| 142 | struct _HwmonSkeleton |
| 143 | { |
| 144 | /*< private >*/ |
| 145 | GDBusInterfaceSkeleton parent_instance; |
| 146 | HwmonSkeletonPrivate *priv; |
| 147 | }; |
| 148 | |
| 149 | struct _HwmonSkeletonClass |
| 150 | { |
| 151 | GDBusInterfaceSkeletonClass parent_class; |
| 152 | }; |
| 153 | |
| 154 | GType hwmon_skeleton_get_type (void) G_GNUC_CONST; |
| 155 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 156 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 157 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (HwmonSkeleton, g_object_unref) |
| 158 | #endif |
| 159 | |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 160 | Hwmon *hwmon_skeleton_new (void); |
| 161 | |
| 162 | |
| 163 | /* ------------------------------------------------------------------------ */ |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 164 | /* Declarations for org.openbmc.Fan */ |
| 165 | |
| 166 | #define TYPE_FAN (fan_get_type ()) |
| 167 | #define FAN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN, Fan)) |
| 168 | #define IS_FAN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN)) |
| 169 | #define FAN_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FAN, FanIface)) |
| 170 | |
| 171 | struct _Fan; |
| 172 | typedef struct _Fan Fan; |
| 173 | typedef struct _FanIface FanIface; |
| 174 | |
| 175 | struct _FanIface |
| 176 | { |
| 177 | GTypeInterface parent_iface; |
| 178 | |
| 179 | |
| 180 | |
| 181 | gboolean (*handle_get_speed) ( |
| 182 | Fan *object, |
| 183 | GDBusMethodInvocation *invocation); |
| 184 | |
| 185 | gboolean (*handle_set_cooling_zone) ( |
| 186 | Fan *object, |
| 187 | GDBusMethodInvocation *invocation, |
| 188 | gint arg_cooling_zone); |
| 189 | |
| 190 | gboolean (*handle_set_speed) ( |
| 191 | Fan *object, |
| 192 | GDBusMethodInvocation *invocation, |
| 193 | gint arg_speed); |
| 194 | |
| 195 | gint (*get_cooling_zone) (Fan *object); |
| 196 | |
| 197 | gint (*get_pwm_num) (Fan *object); |
| 198 | |
| 199 | gint (*get_speed) (Fan *object); |
| 200 | |
| 201 | void (*speed_changed) ( |
| 202 | Fan *object, |
| 203 | gint arg_speed); |
| 204 | |
| 205 | void (*tach_error) ( |
| 206 | Fan *object); |
| 207 | |
| 208 | }; |
| 209 | |
| 210 | GType fan_get_type (void) G_GNUC_CONST; |
| 211 | |
| 212 | GDBusInterfaceInfo *fan_interface_info (void); |
| 213 | guint fan_override_properties (GObjectClass *klass, guint property_id_begin); |
| 214 | |
| 215 | |
| 216 | /* D-Bus method call completion functions: */ |
| 217 | void fan_complete_set_cooling_zone ( |
| 218 | Fan *object, |
| 219 | GDBusMethodInvocation *invocation); |
| 220 | |
| 221 | void fan_complete_get_speed ( |
| 222 | Fan *object, |
| 223 | GDBusMethodInvocation *invocation, |
| 224 | gint speed); |
| 225 | |
| 226 | void fan_complete_set_speed ( |
| 227 | Fan *object, |
| 228 | GDBusMethodInvocation *invocation); |
| 229 | |
| 230 | |
| 231 | |
| 232 | /* D-Bus signal emissions functions: */ |
| 233 | void fan_emit_speed_changed ( |
| 234 | Fan *object, |
| 235 | gint arg_speed); |
| 236 | |
| 237 | void fan_emit_tach_error ( |
| 238 | Fan *object); |
| 239 | |
| 240 | |
| 241 | |
| 242 | /* D-Bus method calls: */ |
| 243 | void fan_call_set_cooling_zone ( |
| 244 | Fan *proxy, |
| 245 | gint arg_cooling_zone, |
| 246 | GCancellable *cancellable, |
| 247 | GAsyncReadyCallback callback, |
| 248 | gpointer user_data); |
| 249 | |
| 250 | gboolean fan_call_set_cooling_zone_finish ( |
| 251 | Fan *proxy, |
| 252 | GAsyncResult *res, |
| 253 | GError **error); |
| 254 | |
| 255 | gboolean fan_call_set_cooling_zone_sync ( |
| 256 | Fan *proxy, |
| 257 | gint arg_cooling_zone, |
| 258 | GCancellable *cancellable, |
| 259 | GError **error); |
| 260 | |
| 261 | void fan_call_get_speed ( |
| 262 | Fan *proxy, |
| 263 | GCancellable *cancellable, |
| 264 | GAsyncReadyCallback callback, |
| 265 | gpointer user_data); |
| 266 | |
| 267 | gboolean fan_call_get_speed_finish ( |
| 268 | Fan *proxy, |
| 269 | gint *out_speed, |
| 270 | GAsyncResult *res, |
| 271 | GError **error); |
| 272 | |
| 273 | gboolean fan_call_get_speed_sync ( |
| 274 | Fan *proxy, |
| 275 | gint *out_speed, |
| 276 | GCancellable *cancellable, |
| 277 | GError **error); |
| 278 | |
| 279 | void fan_call_set_speed ( |
| 280 | Fan *proxy, |
| 281 | gint arg_speed, |
| 282 | GCancellable *cancellable, |
| 283 | GAsyncReadyCallback callback, |
| 284 | gpointer user_data); |
| 285 | |
| 286 | gboolean fan_call_set_speed_finish ( |
| 287 | Fan *proxy, |
| 288 | GAsyncResult *res, |
| 289 | GError **error); |
| 290 | |
| 291 | gboolean fan_call_set_speed_sync ( |
| 292 | Fan *proxy, |
| 293 | gint arg_speed, |
| 294 | GCancellable *cancellable, |
| 295 | GError **error); |
| 296 | |
| 297 | |
| 298 | |
| 299 | /* D-Bus property accessors: */ |
| 300 | gint fan_get_speed (Fan *object); |
| 301 | void fan_set_speed (Fan *object, gint value); |
| 302 | |
| 303 | gint fan_get_cooling_zone (Fan *object); |
| 304 | void fan_set_cooling_zone (Fan *object, gint value); |
| 305 | |
| 306 | gint fan_get_pwm_num (Fan *object); |
| 307 | void fan_set_pwm_num (Fan *object, gint value); |
| 308 | |
| 309 | |
| 310 | /* ---- */ |
| 311 | |
| 312 | #define TYPE_FAN_PROXY (fan_proxy_get_type ()) |
| 313 | #define FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN_PROXY, FanProxy)) |
| 314 | #define FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FAN_PROXY, FanProxyClass)) |
| 315 | #define FAN_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FAN_PROXY, FanProxyClass)) |
| 316 | #define IS_FAN_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN_PROXY)) |
| 317 | #define IS_FAN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FAN_PROXY)) |
| 318 | |
| 319 | typedef struct _FanProxy FanProxy; |
| 320 | typedef struct _FanProxyClass FanProxyClass; |
| 321 | typedef struct _FanProxyPrivate FanProxyPrivate; |
| 322 | |
| 323 | struct _FanProxy |
| 324 | { |
| 325 | /*< private >*/ |
| 326 | GDBusProxy parent_instance; |
| 327 | FanProxyPrivate *priv; |
| 328 | }; |
| 329 | |
| 330 | struct _FanProxyClass |
| 331 | { |
| 332 | GDBusProxyClass parent_class; |
| 333 | }; |
| 334 | |
| 335 | GType fan_proxy_get_type (void) G_GNUC_CONST; |
| 336 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 337 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 338 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (FanProxy, g_object_unref) |
| 339 | #endif |
| 340 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 341 | void fan_proxy_new ( |
| 342 | GDBusConnection *connection, |
| 343 | GDBusProxyFlags flags, |
| 344 | const gchar *name, |
| 345 | const gchar *object_path, |
| 346 | GCancellable *cancellable, |
| 347 | GAsyncReadyCallback callback, |
| 348 | gpointer user_data); |
| 349 | Fan *fan_proxy_new_finish ( |
| 350 | GAsyncResult *res, |
| 351 | GError **error); |
| 352 | Fan *fan_proxy_new_sync ( |
| 353 | GDBusConnection *connection, |
| 354 | GDBusProxyFlags flags, |
| 355 | const gchar *name, |
| 356 | const gchar *object_path, |
| 357 | GCancellable *cancellable, |
| 358 | GError **error); |
| 359 | |
| 360 | void fan_proxy_new_for_bus ( |
| 361 | GBusType bus_type, |
| 362 | GDBusProxyFlags flags, |
| 363 | const gchar *name, |
| 364 | const gchar *object_path, |
| 365 | GCancellable *cancellable, |
| 366 | GAsyncReadyCallback callback, |
| 367 | gpointer user_data); |
| 368 | Fan *fan_proxy_new_for_bus_finish ( |
| 369 | GAsyncResult *res, |
| 370 | GError **error); |
| 371 | Fan *fan_proxy_new_for_bus_sync ( |
| 372 | GBusType bus_type, |
| 373 | GDBusProxyFlags flags, |
| 374 | const gchar *name, |
| 375 | const gchar *object_path, |
| 376 | GCancellable *cancellable, |
| 377 | GError **error); |
| 378 | |
| 379 | |
| 380 | /* ---- */ |
| 381 | |
| 382 | #define TYPE_FAN_SKELETON (fan_skeleton_get_type ()) |
| 383 | #define FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FAN_SKELETON, FanSkeleton)) |
| 384 | #define FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FAN_SKELETON, FanSkeletonClass)) |
| 385 | #define FAN_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FAN_SKELETON, FanSkeletonClass)) |
| 386 | #define IS_FAN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FAN_SKELETON)) |
| 387 | #define IS_FAN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FAN_SKELETON)) |
| 388 | |
| 389 | typedef struct _FanSkeleton FanSkeleton; |
| 390 | typedef struct _FanSkeletonClass FanSkeletonClass; |
| 391 | typedef struct _FanSkeletonPrivate FanSkeletonPrivate; |
| 392 | |
| 393 | struct _FanSkeleton |
| 394 | { |
| 395 | /*< private >*/ |
| 396 | GDBusInterfaceSkeleton parent_instance; |
| 397 | FanSkeletonPrivate *priv; |
| 398 | }; |
| 399 | |
| 400 | struct _FanSkeletonClass |
| 401 | { |
| 402 | GDBusInterfaceSkeletonClass parent_class; |
| 403 | }; |
| 404 | |
| 405 | GType fan_skeleton_get_type (void) G_GNUC_CONST; |
| 406 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 407 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 408 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (FanSkeleton, g_object_unref) |
| 409 | #endif |
| 410 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 411 | Fan *fan_skeleton_new (void); |
| 412 | |
| 413 | |
| 414 | /* ------------------------------------------------------------------------ */ |
| 415 | /* Declarations for org.openbmc.SensorValue */ |
| 416 | |
| 417 | #define TYPE_SENSOR_VALUE (sensor_value_get_type ()) |
| 418 | #define SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE, SensorValue)) |
| 419 | #define IS_SENSOR_VALUE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE)) |
| 420 | #define SENSOR_VALUE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_VALUE, SensorValueIface)) |
| 421 | |
| 422 | struct _SensorValue; |
| 423 | typedef struct _SensorValue SensorValue; |
| 424 | typedef struct _SensorValueIface SensorValueIface; |
| 425 | |
| 426 | struct _SensorValueIface |
| 427 | { |
| 428 | GTypeInterface parent_iface; |
| 429 | |
| 430 | |
| 431 | |
| 432 | gboolean (*handle_get_value) ( |
| 433 | SensorValue *object, |
| 434 | GDBusMethodInvocation *invocation); |
| 435 | |
| 436 | gboolean (*handle_init) ( |
| 437 | SensorValue *object, |
| 438 | GDBusMethodInvocation *invocation); |
| 439 | |
Norman James | 19e4591 | 2015-10-04 20:19:41 -0500 | [diff] [blame] | 440 | gboolean (*handle_set_value) ( |
| 441 | SensorValue *object, |
| 442 | GDBusMethodInvocation *invocation, |
| 443 | GVariant *arg_value); |
| 444 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 445 | gint (*get_heatbeat) (SensorValue *object); |
| 446 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 447 | gint (*get_poll_interval) (SensorValue *object); |
| 448 | |
| 449 | gboolean (*get_settable) (SensorValue *object); |
| 450 | |
| 451 | const gchar * (*get_units) (SensorValue *object); |
| 452 | |
| 453 | GVariant * (*get_value) (SensorValue *object); |
| 454 | |
| 455 | void (*changed) ( |
| 456 | SensorValue *object, |
| 457 | GVariant *arg_value, |
| 458 | const gchar *arg_units); |
| 459 | |
Norman James | 32e74e2 | 2015-09-15 21:28:06 -0500 | [diff] [blame] | 460 | void (*error) ( |
| 461 | SensorValue *object); |
| 462 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 463 | void (*heartbeat) ( |
| 464 | SensorValue *object, |
| 465 | const gchar *arg_bus_name); |
| 466 | |
| 467 | }; |
| 468 | |
| 469 | GType sensor_value_get_type (void) G_GNUC_CONST; |
| 470 | |
| 471 | GDBusInterfaceInfo *sensor_value_interface_info (void); |
| 472 | guint sensor_value_override_properties (GObjectClass *klass, guint property_id_begin); |
| 473 | |
| 474 | |
| 475 | /* D-Bus method call completion functions: */ |
| 476 | void sensor_value_complete_init ( |
| 477 | SensorValue *object, |
| 478 | GDBusMethodInvocation *invocation); |
| 479 | |
| 480 | void sensor_value_complete_get_value ( |
| 481 | SensorValue *object, |
| 482 | GDBusMethodInvocation *invocation, |
| 483 | GVariant *value); |
| 484 | |
Norman James | 19e4591 | 2015-10-04 20:19:41 -0500 | [diff] [blame] | 485 | void sensor_value_complete_set_value ( |
| 486 | SensorValue *object, |
| 487 | GDBusMethodInvocation *invocation); |
| 488 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 489 | |
| 490 | |
| 491 | /* D-Bus signal emissions functions: */ |
| 492 | void sensor_value_emit_changed ( |
| 493 | SensorValue *object, |
| 494 | GVariant *arg_value, |
| 495 | const gchar *arg_units); |
| 496 | |
Norman James | 32e74e2 | 2015-09-15 21:28:06 -0500 | [diff] [blame] | 497 | void sensor_value_emit_error ( |
| 498 | SensorValue *object); |
| 499 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 500 | void sensor_value_emit_heartbeat ( |
| 501 | SensorValue *object, |
| 502 | const gchar *arg_bus_name); |
| 503 | |
| 504 | |
| 505 | |
| 506 | /* D-Bus method calls: */ |
| 507 | void sensor_value_call_init ( |
| 508 | SensorValue *proxy, |
| 509 | GCancellable *cancellable, |
| 510 | GAsyncReadyCallback callback, |
| 511 | gpointer user_data); |
| 512 | |
| 513 | gboolean sensor_value_call_init_finish ( |
| 514 | SensorValue *proxy, |
| 515 | GAsyncResult *res, |
| 516 | GError **error); |
| 517 | |
| 518 | gboolean sensor_value_call_init_sync ( |
| 519 | SensorValue *proxy, |
| 520 | GCancellable *cancellable, |
| 521 | GError **error); |
| 522 | |
| 523 | void sensor_value_call_get_value ( |
| 524 | SensorValue *proxy, |
| 525 | GCancellable *cancellable, |
| 526 | GAsyncReadyCallback callback, |
| 527 | gpointer user_data); |
| 528 | |
| 529 | gboolean sensor_value_call_get_value_finish ( |
| 530 | SensorValue *proxy, |
| 531 | GVariant **out_value, |
| 532 | GAsyncResult *res, |
| 533 | GError **error); |
| 534 | |
| 535 | gboolean sensor_value_call_get_value_sync ( |
| 536 | SensorValue *proxy, |
| 537 | GVariant **out_value, |
| 538 | GCancellable *cancellable, |
| 539 | GError **error); |
| 540 | |
Norman James | 19e4591 | 2015-10-04 20:19:41 -0500 | [diff] [blame] | 541 | void sensor_value_call_set_value ( |
| 542 | SensorValue *proxy, |
| 543 | GVariant *arg_value, |
| 544 | GCancellable *cancellable, |
| 545 | GAsyncReadyCallback callback, |
| 546 | gpointer user_data); |
| 547 | |
| 548 | gboolean sensor_value_call_set_value_finish ( |
| 549 | SensorValue *proxy, |
| 550 | GAsyncResult *res, |
| 551 | GError **error); |
| 552 | |
| 553 | gboolean sensor_value_call_set_value_sync ( |
| 554 | SensorValue *proxy, |
| 555 | GVariant *arg_value, |
| 556 | GCancellable *cancellable, |
| 557 | GError **error); |
| 558 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 559 | |
| 560 | |
| 561 | /* D-Bus property accessors: */ |
| 562 | GVariant *sensor_value_get_value (SensorValue *object); |
| 563 | GVariant *sensor_value_dup_value (SensorValue *object); |
| 564 | void sensor_value_set_value (SensorValue *object, GVariant *value); |
| 565 | |
| 566 | const gchar *sensor_value_get_units (SensorValue *object); |
| 567 | gchar *sensor_value_dup_units (SensorValue *object); |
| 568 | void sensor_value_set_units (SensorValue *object, const gchar *value); |
| 569 | |
| 570 | gint sensor_value_get_poll_interval (SensorValue *object); |
| 571 | void sensor_value_set_poll_interval (SensorValue *object, gint value); |
| 572 | |
| 573 | gint sensor_value_get_heatbeat (SensorValue *object); |
| 574 | void sensor_value_set_heatbeat (SensorValue *object, gint value); |
| 575 | |
| 576 | gboolean sensor_value_get_settable (SensorValue *object); |
| 577 | void sensor_value_set_settable (SensorValue *object, gboolean value); |
| 578 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 579 | |
| 580 | /* ---- */ |
| 581 | |
| 582 | #define TYPE_SENSOR_VALUE_PROXY (sensor_value_proxy_get_type ()) |
| 583 | #define SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxy)) |
| 584 | #define SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) |
| 585 | #define SENSOR_VALUE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_PROXY, SensorValueProxyClass)) |
| 586 | #define IS_SENSOR_VALUE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_PROXY)) |
| 587 | #define IS_SENSOR_VALUE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_PROXY)) |
| 588 | |
| 589 | typedef struct _SensorValueProxy SensorValueProxy; |
| 590 | typedef struct _SensorValueProxyClass SensorValueProxyClass; |
| 591 | typedef struct _SensorValueProxyPrivate SensorValueProxyPrivate; |
| 592 | |
| 593 | struct _SensorValueProxy |
| 594 | { |
| 595 | /*< private >*/ |
| 596 | GDBusProxy parent_instance; |
| 597 | SensorValueProxyPrivate *priv; |
| 598 | }; |
| 599 | |
| 600 | struct _SensorValueProxyClass |
| 601 | { |
| 602 | GDBusProxyClass parent_class; |
| 603 | }; |
| 604 | |
| 605 | GType sensor_value_proxy_get_type (void) G_GNUC_CONST; |
| 606 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 607 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 608 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorValueProxy, g_object_unref) |
| 609 | #endif |
| 610 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 611 | void sensor_value_proxy_new ( |
| 612 | GDBusConnection *connection, |
| 613 | GDBusProxyFlags flags, |
| 614 | const gchar *name, |
| 615 | const gchar *object_path, |
| 616 | GCancellable *cancellable, |
| 617 | GAsyncReadyCallback callback, |
| 618 | gpointer user_data); |
| 619 | SensorValue *sensor_value_proxy_new_finish ( |
| 620 | GAsyncResult *res, |
| 621 | GError **error); |
| 622 | SensorValue *sensor_value_proxy_new_sync ( |
| 623 | GDBusConnection *connection, |
| 624 | GDBusProxyFlags flags, |
| 625 | const gchar *name, |
| 626 | const gchar *object_path, |
| 627 | GCancellable *cancellable, |
| 628 | GError **error); |
| 629 | |
| 630 | void sensor_value_proxy_new_for_bus ( |
| 631 | GBusType bus_type, |
| 632 | GDBusProxyFlags flags, |
| 633 | const gchar *name, |
| 634 | const gchar *object_path, |
| 635 | GCancellable *cancellable, |
| 636 | GAsyncReadyCallback callback, |
| 637 | gpointer user_data); |
| 638 | SensorValue *sensor_value_proxy_new_for_bus_finish ( |
| 639 | GAsyncResult *res, |
| 640 | GError **error); |
| 641 | SensorValue *sensor_value_proxy_new_for_bus_sync ( |
| 642 | GBusType bus_type, |
| 643 | GDBusProxyFlags flags, |
| 644 | const gchar *name, |
| 645 | const gchar *object_path, |
| 646 | GCancellable *cancellable, |
| 647 | GError **error); |
| 648 | |
| 649 | |
| 650 | /* ---- */ |
| 651 | |
| 652 | #define TYPE_SENSOR_VALUE_SKELETON (sensor_value_skeleton_get_type ()) |
| 653 | #define SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeleton)) |
| 654 | #define SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) |
| 655 | #define SENSOR_VALUE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_VALUE_SKELETON, SensorValueSkeletonClass)) |
| 656 | #define IS_SENSOR_VALUE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_VALUE_SKELETON)) |
| 657 | #define IS_SENSOR_VALUE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_VALUE_SKELETON)) |
| 658 | |
| 659 | typedef struct _SensorValueSkeleton SensorValueSkeleton; |
| 660 | typedef struct _SensorValueSkeletonClass SensorValueSkeletonClass; |
| 661 | typedef struct _SensorValueSkeletonPrivate SensorValueSkeletonPrivate; |
| 662 | |
| 663 | struct _SensorValueSkeleton |
| 664 | { |
| 665 | /*< private >*/ |
| 666 | GDBusInterfaceSkeleton parent_instance; |
| 667 | SensorValueSkeletonPrivate *priv; |
| 668 | }; |
| 669 | |
| 670 | struct _SensorValueSkeletonClass |
| 671 | { |
| 672 | GDBusInterfaceSkeletonClass parent_class; |
| 673 | }; |
| 674 | |
| 675 | GType sensor_value_skeleton_get_type (void) G_GNUC_CONST; |
| 676 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 677 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 678 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorValueSkeleton, g_object_unref) |
| 679 | #endif |
| 680 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 681 | SensorValue *sensor_value_skeleton_new (void); |
| 682 | |
| 683 | |
| 684 | /* ------------------------------------------------------------------------ */ |
| 685 | /* Declarations for org.openbmc.SensorThreshold */ |
| 686 | |
| 687 | #define TYPE_SENSOR_THRESHOLD (sensor_threshold_get_type ()) |
| 688 | #define SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD, SensorThreshold)) |
| 689 | #define IS_SENSOR_THRESHOLD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD)) |
| 690 | #define SENSOR_THRESHOLD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_THRESHOLD, SensorThresholdIface)) |
| 691 | |
| 692 | struct _SensorThreshold; |
| 693 | typedef struct _SensorThreshold SensorThreshold; |
| 694 | typedef struct _SensorThresholdIface SensorThresholdIface; |
| 695 | |
| 696 | struct _SensorThresholdIface |
| 697 | { |
| 698 | GTypeInterface parent_iface; |
| 699 | |
| 700 | |
| 701 | |
| 702 | gboolean (*handle_get_state) ( |
| 703 | SensorThreshold *object, |
| 704 | GDBusMethodInvocation *invocation); |
| 705 | |
| 706 | GVariant * (*get_lower_critical) (SensorThreshold *object); |
| 707 | |
| 708 | GVariant * (*get_lower_warning) (SensorThreshold *object); |
| 709 | |
| 710 | guchar (*get_state) (SensorThreshold *object); |
| 711 | |
| 712 | GVariant * (*get_upper_critical) (SensorThreshold *object); |
| 713 | |
| 714 | GVariant * (*get_upper_warning) (SensorThreshold *object); |
| 715 | |
| 716 | void (*critical) ( |
| 717 | SensorThreshold *object); |
| 718 | |
| 719 | void (*normal) ( |
| 720 | SensorThreshold *object); |
| 721 | |
| 722 | void (*warning) ( |
| 723 | SensorThreshold *object); |
| 724 | |
| 725 | }; |
| 726 | |
| 727 | GType sensor_threshold_get_type (void) G_GNUC_CONST; |
| 728 | |
| 729 | GDBusInterfaceInfo *sensor_threshold_interface_info (void); |
| 730 | guint sensor_threshold_override_properties (GObjectClass *klass, guint property_id_begin); |
| 731 | |
| 732 | |
| 733 | /* D-Bus method call completion functions: */ |
| 734 | void sensor_threshold_complete_get_state ( |
| 735 | SensorThreshold *object, |
| 736 | GDBusMethodInvocation *invocation, |
| 737 | guchar state); |
| 738 | |
| 739 | |
| 740 | |
| 741 | /* D-Bus signal emissions functions: */ |
| 742 | void sensor_threshold_emit_warning ( |
| 743 | SensorThreshold *object); |
| 744 | |
| 745 | void sensor_threshold_emit_critical ( |
| 746 | SensorThreshold *object); |
| 747 | |
| 748 | void sensor_threshold_emit_normal ( |
| 749 | SensorThreshold *object); |
| 750 | |
| 751 | |
| 752 | |
| 753 | /* D-Bus method calls: */ |
| 754 | void sensor_threshold_call_get_state ( |
| 755 | SensorThreshold *proxy, |
| 756 | GCancellable *cancellable, |
| 757 | GAsyncReadyCallback callback, |
| 758 | gpointer user_data); |
| 759 | |
| 760 | gboolean sensor_threshold_call_get_state_finish ( |
| 761 | SensorThreshold *proxy, |
| 762 | guchar *out_state, |
| 763 | GAsyncResult *res, |
| 764 | GError **error); |
| 765 | |
| 766 | gboolean sensor_threshold_call_get_state_sync ( |
| 767 | SensorThreshold *proxy, |
| 768 | guchar *out_state, |
| 769 | GCancellable *cancellable, |
| 770 | GError **error); |
| 771 | |
| 772 | |
| 773 | |
| 774 | /* D-Bus property accessors: */ |
| 775 | GVariant *sensor_threshold_get_lower_critical (SensorThreshold *object); |
| 776 | GVariant *sensor_threshold_dup_lower_critical (SensorThreshold *object); |
| 777 | void sensor_threshold_set_lower_critical (SensorThreshold *object, GVariant *value); |
| 778 | |
| 779 | GVariant *sensor_threshold_get_lower_warning (SensorThreshold *object); |
| 780 | GVariant *sensor_threshold_dup_lower_warning (SensorThreshold *object); |
| 781 | void sensor_threshold_set_lower_warning (SensorThreshold *object, GVariant *value); |
| 782 | |
| 783 | GVariant *sensor_threshold_get_upper_warning (SensorThreshold *object); |
| 784 | GVariant *sensor_threshold_dup_upper_warning (SensorThreshold *object); |
| 785 | void sensor_threshold_set_upper_warning (SensorThreshold *object, GVariant *value); |
| 786 | |
| 787 | GVariant *sensor_threshold_get_upper_critical (SensorThreshold *object); |
| 788 | GVariant *sensor_threshold_dup_upper_critical (SensorThreshold *object); |
| 789 | void sensor_threshold_set_upper_critical (SensorThreshold *object, GVariant *value); |
| 790 | |
| 791 | guchar sensor_threshold_get_state (SensorThreshold *object); |
| 792 | void sensor_threshold_set_state (SensorThreshold *object, guchar value); |
| 793 | |
| 794 | |
| 795 | /* ---- */ |
| 796 | |
| 797 | #define TYPE_SENSOR_THRESHOLD_PROXY (sensor_threshold_proxy_get_type ()) |
| 798 | #define SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxy)) |
| 799 | #define SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) |
| 800 | #define SENSOR_THRESHOLD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_PROXY, SensorThresholdProxyClass)) |
| 801 | #define IS_SENSOR_THRESHOLD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_PROXY)) |
| 802 | #define IS_SENSOR_THRESHOLD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_PROXY)) |
| 803 | |
| 804 | typedef struct _SensorThresholdProxy SensorThresholdProxy; |
| 805 | typedef struct _SensorThresholdProxyClass SensorThresholdProxyClass; |
| 806 | typedef struct _SensorThresholdProxyPrivate SensorThresholdProxyPrivate; |
| 807 | |
| 808 | struct _SensorThresholdProxy |
| 809 | { |
| 810 | /*< private >*/ |
| 811 | GDBusProxy parent_instance; |
| 812 | SensorThresholdProxyPrivate *priv; |
| 813 | }; |
| 814 | |
| 815 | struct _SensorThresholdProxyClass |
| 816 | { |
| 817 | GDBusProxyClass parent_class; |
| 818 | }; |
| 819 | |
| 820 | GType sensor_threshold_proxy_get_type (void) G_GNUC_CONST; |
| 821 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 822 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 823 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorThresholdProxy, g_object_unref) |
| 824 | #endif |
| 825 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 826 | void sensor_threshold_proxy_new ( |
| 827 | GDBusConnection *connection, |
| 828 | GDBusProxyFlags flags, |
| 829 | const gchar *name, |
| 830 | const gchar *object_path, |
| 831 | GCancellable *cancellable, |
| 832 | GAsyncReadyCallback callback, |
| 833 | gpointer user_data); |
| 834 | SensorThreshold *sensor_threshold_proxy_new_finish ( |
| 835 | GAsyncResult *res, |
| 836 | GError **error); |
| 837 | SensorThreshold *sensor_threshold_proxy_new_sync ( |
| 838 | GDBusConnection *connection, |
| 839 | GDBusProxyFlags flags, |
| 840 | const gchar *name, |
| 841 | const gchar *object_path, |
| 842 | GCancellable *cancellable, |
| 843 | GError **error); |
| 844 | |
| 845 | void sensor_threshold_proxy_new_for_bus ( |
| 846 | GBusType bus_type, |
| 847 | GDBusProxyFlags flags, |
| 848 | const gchar *name, |
| 849 | const gchar *object_path, |
| 850 | GCancellable *cancellable, |
| 851 | GAsyncReadyCallback callback, |
| 852 | gpointer user_data); |
| 853 | SensorThreshold *sensor_threshold_proxy_new_for_bus_finish ( |
| 854 | GAsyncResult *res, |
| 855 | GError **error); |
| 856 | SensorThreshold *sensor_threshold_proxy_new_for_bus_sync ( |
| 857 | GBusType bus_type, |
| 858 | GDBusProxyFlags flags, |
| 859 | const gchar *name, |
| 860 | const gchar *object_path, |
| 861 | GCancellable *cancellable, |
| 862 | GError **error); |
| 863 | |
| 864 | |
| 865 | /* ---- */ |
| 866 | |
| 867 | #define TYPE_SENSOR_THRESHOLD_SKELETON (sensor_threshold_skeleton_get_type ()) |
| 868 | #define SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeleton)) |
| 869 | #define SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) |
| 870 | #define SENSOR_THRESHOLD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_THRESHOLD_SKELETON, SensorThresholdSkeletonClass)) |
| 871 | #define IS_SENSOR_THRESHOLD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_THRESHOLD_SKELETON)) |
| 872 | #define IS_SENSOR_THRESHOLD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_THRESHOLD_SKELETON)) |
| 873 | |
| 874 | typedef struct _SensorThresholdSkeleton SensorThresholdSkeleton; |
| 875 | typedef struct _SensorThresholdSkeletonClass SensorThresholdSkeletonClass; |
| 876 | typedef struct _SensorThresholdSkeletonPrivate SensorThresholdSkeletonPrivate; |
| 877 | |
| 878 | struct _SensorThresholdSkeleton |
| 879 | { |
| 880 | /*< private >*/ |
| 881 | GDBusInterfaceSkeleton parent_instance; |
| 882 | SensorThresholdSkeletonPrivate *priv; |
| 883 | }; |
| 884 | |
| 885 | struct _SensorThresholdSkeletonClass |
| 886 | { |
| 887 | GDBusInterfaceSkeletonClass parent_class; |
| 888 | }; |
| 889 | |
| 890 | GType sensor_threshold_skeleton_get_type (void) G_GNUC_CONST; |
| 891 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 892 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 893 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorThresholdSkeleton, g_object_unref) |
| 894 | #endif |
| 895 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 896 | SensorThreshold *sensor_threshold_skeleton_new (void); |
| 897 | |
| 898 | |
| 899 | /* ------------------------------------------------------------------------ */ |
| 900 | /* Declarations for org.openbmc.SensorI2c */ |
| 901 | |
| 902 | #define TYPE_SENSOR_I2C (sensor_i2c_get_type ()) |
| 903 | #define SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C, SensorI2c)) |
| 904 | #define IS_SENSOR_I2C(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C)) |
| 905 | #define SENSOR_I2C_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_I2C, SensorI2cIface)) |
| 906 | |
| 907 | struct _SensorI2c; |
| 908 | typedef struct _SensorI2c SensorI2c; |
| 909 | typedef struct _SensorI2cIface SensorI2cIface; |
| 910 | |
| 911 | struct _SensorI2cIface |
| 912 | { |
| 913 | GTypeInterface parent_iface; |
| 914 | |
| 915 | const gchar * (*get_address) (SensorI2c *object); |
| 916 | |
| 917 | const gchar * (*get_dev_path) (SensorI2c *object); |
| 918 | |
| 919 | }; |
| 920 | |
| 921 | GType sensor_i2c_get_type (void) G_GNUC_CONST; |
| 922 | |
| 923 | GDBusInterfaceInfo *sensor_i2c_interface_info (void); |
| 924 | guint sensor_i2c_override_properties (GObjectClass *klass, guint property_id_begin); |
| 925 | |
| 926 | |
| 927 | /* D-Bus property accessors: */ |
| 928 | const gchar *sensor_i2c_get_dev_path (SensorI2c *object); |
| 929 | gchar *sensor_i2c_dup_dev_path (SensorI2c *object); |
| 930 | void sensor_i2c_set_dev_path (SensorI2c *object, const gchar *value); |
| 931 | |
| 932 | const gchar *sensor_i2c_get_address (SensorI2c *object); |
| 933 | gchar *sensor_i2c_dup_address (SensorI2c *object); |
| 934 | void sensor_i2c_set_address (SensorI2c *object, const gchar *value); |
| 935 | |
| 936 | |
| 937 | /* ---- */ |
| 938 | |
| 939 | #define TYPE_SENSOR_I2C_PROXY (sensor_i2c_proxy_get_type ()) |
| 940 | #define SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxy)) |
| 941 | #define SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) |
| 942 | #define SENSOR_I2C_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_PROXY, SensorI2cProxyClass)) |
| 943 | #define IS_SENSOR_I2C_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_PROXY)) |
| 944 | #define IS_SENSOR_I2C_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_PROXY)) |
| 945 | |
| 946 | typedef struct _SensorI2cProxy SensorI2cProxy; |
| 947 | typedef struct _SensorI2cProxyClass SensorI2cProxyClass; |
| 948 | typedef struct _SensorI2cProxyPrivate SensorI2cProxyPrivate; |
| 949 | |
| 950 | struct _SensorI2cProxy |
| 951 | { |
| 952 | /*< private >*/ |
| 953 | GDBusProxy parent_instance; |
| 954 | SensorI2cProxyPrivate *priv; |
| 955 | }; |
| 956 | |
| 957 | struct _SensorI2cProxyClass |
| 958 | { |
| 959 | GDBusProxyClass parent_class; |
| 960 | }; |
| 961 | |
| 962 | GType sensor_i2c_proxy_get_type (void) G_GNUC_CONST; |
| 963 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 964 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 965 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorI2cProxy, g_object_unref) |
| 966 | #endif |
| 967 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 968 | void sensor_i2c_proxy_new ( |
| 969 | GDBusConnection *connection, |
| 970 | GDBusProxyFlags flags, |
| 971 | const gchar *name, |
| 972 | const gchar *object_path, |
| 973 | GCancellable *cancellable, |
| 974 | GAsyncReadyCallback callback, |
| 975 | gpointer user_data); |
| 976 | SensorI2c *sensor_i2c_proxy_new_finish ( |
| 977 | GAsyncResult *res, |
| 978 | GError **error); |
| 979 | SensorI2c *sensor_i2c_proxy_new_sync ( |
| 980 | GDBusConnection *connection, |
| 981 | GDBusProxyFlags flags, |
| 982 | const gchar *name, |
| 983 | const gchar *object_path, |
| 984 | GCancellable *cancellable, |
| 985 | GError **error); |
| 986 | |
| 987 | void sensor_i2c_proxy_new_for_bus ( |
| 988 | GBusType bus_type, |
| 989 | GDBusProxyFlags flags, |
| 990 | const gchar *name, |
| 991 | const gchar *object_path, |
| 992 | GCancellable *cancellable, |
| 993 | GAsyncReadyCallback callback, |
| 994 | gpointer user_data); |
| 995 | SensorI2c *sensor_i2c_proxy_new_for_bus_finish ( |
| 996 | GAsyncResult *res, |
| 997 | GError **error); |
| 998 | SensorI2c *sensor_i2c_proxy_new_for_bus_sync ( |
| 999 | GBusType bus_type, |
| 1000 | GDBusProxyFlags flags, |
| 1001 | const gchar *name, |
| 1002 | const gchar *object_path, |
| 1003 | GCancellable *cancellable, |
| 1004 | GError **error); |
| 1005 | |
| 1006 | |
| 1007 | /* ---- */ |
| 1008 | |
| 1009 | #define TYPE_SENSOR_I2C_SKELETON (sensor_i2c_skeleton_get_type ()) |
| 1010 | #define SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeleton)) |
| 1011 | #define SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) |
| 1012 | #define SENSOR_I2C_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_I2C_SKELETON, SensorI2cSkeletonClass)) |
| 1013 | #define IS_SENSOR_I2C_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_I2C_SKELETON)) |
| 1014 | #define IS_SENSOR_I2C_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_I2C_SKELETON)) |
| 1015 | |
| 1016 | typedef struct _SensorI2cSkeleton SensorI2cSkeleton; |
| 1017 | typedef struct _SensorI2cSkeletonClass SensorI2cSkeletonClass; |
| 1018 | typedef struct _SensorI2cSkeletonPrivate SensorI2cSkeletonPrivate; |
| 1019 | |
| 1020 | struct _SensorI2cSkeleton |
| 1021 | { |
| 1022 | /*< private >*/ |
| 1023 | GDBusInterfaceSkeleton parent_instance; |
| 1024 | SensorI2cSkeletonPrivate *priv; |
| 1025 | }; |
| 1026 | |
| 1027 | struct _SensorI2cSkeletonClass |
| 1028 | { |
| 1029 | GDBusInterfaceSkeletonClass parent_class; |
| 1030 | }; |
| 1031 | |
| 1032 | GType sensor_i2c_skeleton_get_type (void) G_GNUC_CONST; |
| 1033 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 1034 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 1035 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorI2cSkeleton, g_object_unref) |
| 1036 | #endif |
| 1037 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1038 | SensorI2c *sensor_i2c_skeleton_new (void); |
| 1039 | |
| 1040 | |
| 1041 | /* ------------------------------------------------------------------------ */ |
| 1042 | /* Declarations for org.openbmc.SensorMatch */ |
| 1043 | |
| 1044 | #define TYPE_SENSOR_MATCH (sensor_match_get_type ()) |
| 1045 | #define SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH, SensorMatch)) |
| 1046 | #define IS_SENSOR_MATCH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH)) |
| 1047 | #define SENSOR_MATCH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SENSOR_MATCH, SensorMatchIface)) |
| 1048 | |
| 1049 | struct _SensorMatch; |
| 1050 | typedef struct _SensorMatch SensorMatch; |
| 1051 | typedef struct _SensorMatchIface SensorMatchIface; |
| 1052 | |
| 1053 | struct _SensorMatchIface |
| 1054 | { |
| 1055 | GTypeInterface parent_iface; |
| 1056 | |
| 1057 | |
| 1058 | GVariant * (*get_match_value) (SensorMatch *object); |
| 1059 | |
| 1060 | guchar (*get_state) (SensorMatch *object); |
| 1061 | |
| 1062 | void (*sensor_match) ( |
| 1063 | SensorMatch *object, |
| 1064 | guchar arg_state); |
| 1065 | |
| 1066 | }; |
| 1067 | |
| 1068 | GType sensor_match_get_type (void) G_GNUC_CONST; |
| 1069 | |
| 1070 | GDBusInterfaceInfo *sensor_match_interface_info (void); |
| 1071 | guint sensor_match_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1072 | |
| 1073 | |
| 1074 | /* D-Bus signal emissions functions: */ |
| 1075 | void sensor_match_emit_sensor_match ( |
| 1076 | SensorMatch *object, |
| 1077 | guchar arg_state); |
| 1078 | |
| 1079 | |
| 1080 | |
| 1081 | /* D-Bus property accessors: */ |
| 1082 | GVariant *sensor_match_get_match_value (SensorMatch *object); |
| 1083 | GVariant *sensor_match_dup_match_value (SensorMatch *object); |
| 1084 | void sensor_match_set_match_value (SensorMatch *object, GVariant *value); |
| 1085 | |
| 1086 | guchar sensor_match_get_state (SensorMatch *object); |
| 1087 | void sensor_match_set_state (SensorMatch *object, guchar value); |
| 1088 | |
| 1089 | |
| 1090 | /* ---- */ |
| 1091 | |
| 1092 | #define TYPE_SENSOR_MATCH_PROXY (sensor_match_proxy_get_type ()) |
| 1093 | #define SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxy)) |
| 1094 | #define SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass)) |
| 1095 | #define SENSOR_MATCH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_PROXY, SensorMatchProxyClass)) |
| 1096 | #define IS_SENSOR_MATCH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_PROXY)) |
| 1097 | #define IS_SENSOR_MATCH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_PROXY)) |
| 1098 | |
| 1099 | typedef struct _SensorMatchProxy SensorMatchProxy; |
| 1100 | typedef struct _SensorMatchProxyClass SensorMatchProxyClass; |
| 1101 | typedef struct _SensorMatchProxyPrivate SensorMatchProxyPrivate; |
| 1102 | |
| 1103 | struct _SensorMatchProxy |
| 1104 | { |
| 1105 | /*< private >*/ |
| 1106 | GDBusProxy parent_instance; |
| 1107 | SensorMatchProxyPrivate *priv; |
| 1108 | }; |
| 1109 | |
| 1110 | struct _SensorMatchProxyClass |
| 1111 | { |
| 1112 | GDBusProxyClass parent_class; |
| 1113 | }; |
| 1114 | |
| 1115 | GType sensor_match_proxy_get_type (void) G_GNUC_CONST; |
| 1116 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 1117 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 1118 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorMatchProxy, g_object_unref) |
| 1119 | #endif |
| 1120 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1121 | void sensor_match_proxy_new ( |
| 1122 | GDBusConnection *connection, |
| 1123 | GDBusProxyFlags flags, |
| 1124 | const gchar *name, |
| 1125 | const gchar *object_path, |
| 1126 | GCancellable *cancellable, |
| 1127 | GAsyncReadyCallback callback, |
| 1128 | gpointer user_data); |
| 1129 | SensorMatch *sensor_match_proxy_new_finish ( |
| 1130 | GAsyncResult *res, |
| 1131 | GError **error); |
| 1132 | SensorMatch *sensor_match_proxy_new_sync ( |
| 1133 | GDBusConnection *connection, |
| 1134 | GDBusProxyFlags flags, |
| 1135 | const gchar *name, |
| 1136 | const gchar *object_path, |
| 1137 | GCancellable *cancellable, |
| 1138 | GError **error); |
| 1139 | |
| 1140 | void sensor_match_proxy_new_for_bus ( |
| 1141 | GBusType bus_type, |
| 1142 | GDBusProxyFlags flags, |
| 1143 | const gchar *name, |
| 1144 | const gchar *object_path, |
| 1145 | GCancellable *cancellable, |
| 1146 | GAsyncReadyCallback callback, |
| 1147 | gpointer user_data); |
| 1148 | SensorMatch *sensor_match_proxy_new_for_bus_finish ( |
| 1149 | GAsyncResult *res, |
| 1150 | GError **error); |
| 1151 | SensorMatch *sensor_match_proxy_new_for_bus_sync ( |
| 1152 | GBusType bus_type, |
| 1153 | GDBusProxyFlags flags, |
| 1154 | const gchar *name, |
| 1155 | const gchar *object_path, |
| 1156 | GCancellable *cancellable, |
| 1157 | GError **error); |
| 1158 | |
| 1159 | |
| 1160 | /* ---- */ |
| 1161 | |
| 1162 | #define TYPE_SENSOR_MATCH_SKELETON (sensor_match_skeleton_get_type ()) |
| 1163 | #define SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeleton)) |
| 1164 | #define SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass)) |
| 1165 | #define SENSOR_MATCH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SENSOR_MATCH_SKELETON, SensorMatchSkeletonClass)) |
| 1166 | #define IS_SENSOR_MATCH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SENSOR_MATCH_SKELETON)) |
| 1167 | #define IS_SENSOR_MATCH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SENSOR_MATCH_SKELETON)) |
| 1168 | |
| 1169 | typedef struct _SensorMatchSkeleton SensorMatchSkeleton; |
| 1170 | typedef struct _SensorMatchSkeletonClass SensorMatchSkeletonClass; |
| 1171 | typedef struct _SensorMatchSkeletonPrivate SensorMatchSkeletonPrivate; |
| 1172 | |
| 1173 | struct _SensorMatchSkeleton |
| 1174 | { |
| 1175 | /*< private >*/ |
| 1176 | GDBusInterfaceSkeleton parent_instance; |
| 1177 | SensorMatchSkeletonPrivate *priv; |
| 1178 | }; |
| 1179 | |
| 1180 | struct _SensorMatchSkeletonClass |
| 1181 | { |
| 1182 | GDBusInterfaceSkeletonClass parent_class; |
| 1183 | }; |
| 1184 | |
| 1185 | GType sensor_match_skeleton_get_type (void) G_GNUC_CONST; |
| 1186 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 1187 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 1188 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (SensorMatchSkeleton, g_object_unref) |
| 1189 | #endif |
| 1190 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1191 | SensorMatch *sensor_match_skeleton_new (void); |
| 1192 | |
| 1193 | |
| 1194 | /* ------------------------------------------------------------------------ */ |
| 1195 | /* Declarations for org.openbmc.Process */ |
| 1196 | |
| 1197 | #define TYPE_PROCESS (process_get_type ()) |
| 1198 | #define PROCESS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS, Process)) |
| 1199 | #define IS_PROCESS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS)) |
| 1200 | #define PROCESS_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_PROCESS, ProcessIface)) |
| 1201 | |
| 1202 | struct _Process; |
| 1203 | typedef struct _Process Process; |
| 1204 | typedef struct _ProcessIface ProcessIface; |
| 1205 | |
| 1206 | struct _ProcessIface |
| 1207 | { |
| 1208 | GTypeInterface parent_iface; |
| 1209 | |
| 1210 | gboolean (*handle_stop) ( |
| 1211 | Process *object, |
| 1212 | GDBusMethodInvocation *invocation); |
| 1213 | |
| 1214 | }; |
| 1215 | |
| 1216 | GType process_get_type (void) G_GNUC_CONST; |
| 1217 | |
| 1218 | GDBusInterfaceInfo *process_interface_info (void); |
| 1219 | guint process_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1220 | |
| 1221 | |
| 1222 | /* D-Bus method call completion functions: */ |
| 1223 | void process_complete_stop ( |
| 1224 | Process *object, |
| 1225 | GDBusMethodInvocation *invocation); |
| 1226 | |
| 1227 | |
| 1228 | |
| 1229 | /* D-Bus method calls: */ |
| 1230 | void process_call_stop ( |
| 1231 | Process *proxy, |
| 1232 | GCancellable *cancellable, |
| 1233 | GAsyncReadyCallback callback, |
| 1234 | gpointer user_data); |
| 1235 | |
| 1236 | gboolean process_call_stop_finish ( |
| 1237 | Process *proxy, |
| 1238 | GAsyncResult *res, |
| 1239 | GError **error); |
| 1240 | |
| 1241 | gboolean process_call_stop_sync ( |
| 1242 | Process *proxy, |
| 1243 | GCancellable *cancellable, |
| 1244 | GError **error); |
| 1245 | |
| 1246 | |
| 1247 | |
| 1248 | /* ---- */ |
| 1249 | |
| 1250 | #define TYPE_PROCESS_PROXY (process_proxy_get_type ()) |
| 1251 | #define PROCESS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS_PROXY, ProcessProxy)) |
| 1252 | #define PROCESS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_PROCESS_PROXY, ProcessProxyClass)) |
| 1253 | #define PROCESS_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_PROCESS_PROXY, ProcessProxyClass)) |
| 1254 | #define IS_PROCESS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS_PROXY)) |
| 1255 | #define IS_PROCESS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_PROCESS_PROXY)) |
| 1256 | |
| 1257 | typedef struct _ProcessProxy ProcessProxy; |
| 1258 | typedef struct _ProcessProxyClass ProcessProxyClass; |
| 1259 | typedef struct _ProcessProxyPrivate ProcessProxyPrivate; |
| 1260 | |
| 1261 | struct _ProcessProxy |
| 1262 | { |
| 1263 | /*< private >*/ |
| 1264 | GDBusProxy parent_instance; |
| 1265 | ProcessProxyPrivate *priv; |
| 1266 | }; |
| 1267 | |
| 1268 | struct _ProcessProxyClass |
| 1269 | { |
| 1270 | GDBusProxyClass parent_class; |
| 1271 | }; |
| 1272 | |
| 1273 | GType process_proxy_get_type (void) G_GNUC_CONST; |
| 1274 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 1275 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 1276 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProcessProxy, g_object_unref) |
| 1277 | #endif |
| 1278 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1279 | void process_proxy_new ( |
| 1280 | GDBusConnection *connection, |
| 1281 | GDBusProxyFlags flags, |
| 1282 | const gchar *name, |
| 1283 | const gchar *object_path, |
| 1284 | GCancellable *cancellable, |
| 1285 | GAsyncReadyCallback callback, |
| 1286 | gpointer user_data); |
| 1287 | Process *process_proxy_new_finish ( |
| 1288 | GAsyncResult *res, |
| 1289 | GError **error); |
| 1290 | Process *process_proxy_new_sync ( |
| 1291 | GDBusConnection *connection, |
| 1292 | GDBusProxyFlags flags, |
| 1293 | const gchar *name, |
| 1294 | const gchar *object_path, |
| 1295 | GCancellable *cancellable, |
| 1296 | GError **error); |
| 1297 | |
| 1298 | void process_proxy_new_for_bus ( |
| 1299 | GBusType bus_type, |
| 1300 | GDBusProxyFlags flags, |
| 1301 | const gchar *name, |
| 1302 | const gchar *object_path, |
| 1303 | GCancellable *cancellable, |
| 1304 | GAsyncReadyCallback callback, |
| 1305 | gpointer user_data); |
| 1306 | Process *process_proxy_new_for_bus_finish ( |
| 1307 | GAsyncResult *res, |
| 1308 | GError **error); |
| 1309 | Process *process_proxy_new_for_bus_sync ( |
| 1310 | GBusType bus_type, |
| 1311 | GDBusProxyFlags flags, |
| 1312 | const gchar *name, |
| 1313 | const gchar *object_path, |
| 1314 | GCancellable *cancellable, |
| 1315 | GError **error); |
| 1316 | |
| 1317 | |
| 1318 | /* ---- */ |
| 1319 | |
| 1320 | #define TYPE_PROCESS_SKELETON (process_skeleton_get_type ()) |
| 1321 | #define PROCESS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_PROCESS_SKELETON, ProcessSkeleton)) |
| 1322 | #define PROCESS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_PROCESS_SKELETON, ProcessSkeletonClass)) |
| 1323 | #define PROCESS_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_PROCESS_SKELETON, ProcessSkeletonClass)) |
| 1324 | #define IS_PROCESS_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_PROCESS_SKELETON)) |
| 1325 | #define IS_PROCESS_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_PROCESS_SKELETON)) |
| 1326 | |
| 1327 | typedef struct _ProcessSkeleton ProcessSkeleton; |
| 1328 | typedef struct _ProcessSkeletonClass ProcessSkeletonClass; |
| 1329 | typedef struct _ProcessSkeletonPrivate ProcessSkeletonPrivate; |
| 1330 | |
| 1331 | struct _ProcessSkeleton |
| 1332 | { |
| 1333 | /*< private >*/ |
| 1334 | GDBusInterfaceSkeleton parent_instance; |
| 1335 | ProcessSkeletonPrivate *priv; |
| 1336 | }; |
| 1337 | |
| 1338 | struct _ProcessSkeletonClass |
| 1339 | { |
| 1340 | GDBusInterfaceSkeletonClass parent_class; |
| 1341 | }; |
| 1342 | |
| 1343 | GType process_skeleton_get_type (void) G_GNUC_CONST; |
| 1344 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 1345 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 1346 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ProcessSkeleton, g_object_unref) |
| 1347 | #endif |
| 1348 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1349 | Process *process_skeleton_new (void); |
| 1350 | |
| 1351 | |
| 1352 | /* ------------------------------------------------------------------------ */ |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 1353 | /* Declarations for org.openbmc.SharedResource */ |
| 1354 | |
| 1355 | #define TYPE_SHARED_RESOURCE (shared_resource_get_type ()) |
| 1356 | #define SHARED_RESOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SHARED_RESOURCE, SharedResource)) |
| 1357 | #define IS_SHARED_RESOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SHARED_RESOURCE)) |
| 1358 | #define SHARED_RESOURCE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SHARED_RESOURCE, SharedResourceIface)) |
| 1359 | |
| 1360 | struct _SharedResource; |
| 1361 | typedef struct _SharedResource SharedResource; |
| 1362 | typedef struct _SharedResourceIface SharedResourceIface; |
| 1363 | |
| 1364 | struct _SharedResourceIface |
| 1365 | { |
| 1366 | GTypeInterface parent_iface; |
| 1367 | |
| 1368 | |
| 1369 | gboolean (*handle_is_locked) ( |
| 1370 | SharedResource *object, |
| 1371 | GDBusMethodInvocation *invocation); |
| 1372 | |
| 1373 | gboolean (*handle_lock) ( |
| 1374 | SharedResource *object, |
| 1375 | GDBusMethodInvocation *invocation, |
| 1376 | const gchar *arg_name); |
| 1377 | |
| 1378 | gboolean (*handle_unlock) ( |
| 1379 | SharedResource *object, |
| 1380 | GDBusMethodInvocation *invocation); |
| 1381 | |
| 1382 | gboolean (*get_lock) (SharedResource *object); |
| 1383 | |
| 1384 | const gchar * (*get_name) (SharedResource *object); |
| 1385 | |
| 1386 | }; |
| 1387 | |
| 1388 | GType shared_resource_get_type (void) G_GNUC_CONST; |
| 1389 | |
| 1390 | GDBusInterfaceInfo *shared_resource_interface_info (void); |
| 1391 | guint shared_resource_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1392 | |
| 1393 | |
| 1394 | /* D-Bus method call completion functions: */ |
| 1395 | void shared_resource_complete_lock ( |
| 1396 | SharedResource *object, |
| 1397 | GDBusMethodInvocation *invocation); |
| 1398 | |
| 1399 | void shared_resource_complete_unlock ( |
| 1400 | SharedResource *object, |
| 1401 | GDBusMethodInvocation *invocation); |
| 1402 | |
| 1403 | void shared_resource_complete_is_locked ( |
| 1404 | SharedResource *object, |
| 1405 | GDBusMethodInvocation *invocation, |
| 1406 | gboolean lock, |
| 1407 | const gchar *name); |
| 1408 | |
| 1409 | |
| 1410 | |
| 1411 | /* D-Bus method calls: */ |
| 1412 | void shared_resource_call_lock ( |
| 1413 | SharedResource *proxy, |
| 1414 | const gchar *arg_name, |
| 1415 | GCancellable *cancellable, |
| 1416 | GAsyncReadyCallback callback, |
| 1417 | gpointer user_data); |
| 1418 | |
| 1419 | gboolean shared_resource_call_lock_finish ( |
| 1420 | SharedResource *proxy, |
| 1421 | GAsyncResult *res, |
| 1422 | GError **error); |
| 1423 | |
| 1424 | gboolean shared_resource_call_lock_sync ( |
| 1425 | SharedResource *proxy, |
| 1426 | const gchar *arg_name, |
| 1427 | GCancellable *cancellable, |
| 1428 | GError **error); |
| 1429 | |
| 1430 | void shared_resource_call_unlock ( |
| 1431 | SharedResource *proxy, |
| 1432 | GCancellable *cancellable, |
| 1433 | GAsyncReadyCallback callback, |
| 1434 | gpointer user_data); |
| 1435 | |
| 1436 | gboolean shared_resource_call_unlock_finish ( |
| 1437 | SharedResource *proxy, |
| 1438 | GAsyncResult *res, |
| 1439 | GError **error); |
| 1440 | |
| 1441 | gboolean shared_resource_call_unlock_sync ( |
| 1442 | SharedResource *proxy, |
| 1443 | GCancellable *cancellable, |
| 1444 | GError **error); |
| 1445 | |
| 1446 | void shared_resource_call_is_locked ( |
| 1447 | SharedResource *proxy, |
| 1448 | GCancellable *cancellable, |
| 1449 | GAsyncReadyCallback callback, |
| 1450 | gpointer user_data); |
| 1451 | |
| 1452 | gboolean shared_resource_call_is_locked_finish ( |
| 1453 | SharedResource *proxy, |
| 1454 | gboolean *out_lock, |
| 1455 | gchar **out_name, |
| 1456 | GAsyncResult *res, |
| 1457 | GError **error); |
| 1458 | |
| 1459 | gboolean shared_resource_call_is_locked_sync ( |
| 1460 | SharedResource *proxy, |
| 1461 | gboolean *out_lock, |
| 1462 | gchar **out_name, |
| 1463 | GCancellable *cancellable, |
| 1464 | GError **error); |
| 1465 | |
| 1466 | |
| 1467 | |
| 1468 | /* D-Bus property accessors: */ |
| 1469 | gboolean shared_resource_get_lock (SharedResource *object); |
| 1470 | void shared_resource_set_lock (SharedResource *object, gboolean value); |
| 1471 | |
| 1472 | const gchar *shared_resource_get_name (SharedResource *object); |
| 1473 | gchar *shared_resource_dup_name (SharedResource *object); |
| 1474 | void shared_resource_set_name (SharedResource *object, const gchar *value); |
| 1475 | |
| 1476 | |
| 1477 | /* ---- */ |
| 1478 | |
| 1479 | #define TYPE_SHARED_RESOURCE_PROXY (shared_resource_proxy_get_type ()) |
| 1480 | #define SHARED_RESOURCE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SHARED_RESOURCE_PROXY, SharedResourceProxy)) |
| 1481 | #define SHARED_RESOURCE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SHARED_RESOURCE_PROXY, SharedResourceProxyClass)) |
| 1482 | #define SHARED_RESOURCE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SHARED_RESOURCE_PROXY, SharedResourceProxyClass)) |
| 1483 | #define IS_SHARED_RESOURCE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SHARED_RESOURCE_PROXY)) |
| 1484 | #define IS_SHARED_RESOURCE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SHARED_RESOURCE_PROXY)) |
| 1485 | |
| 1486 | typedef struct _SharedResourceProxy SharedResourceProxy; |
| 1487 | typedef struct _SharedResourceProxyClass SharedResourceProxyClass; |
| 1488 | typedef struct _SharedResourceProxyPrivate SharedResourceProxyPrivate; |
| 1489 | |
| 1490 | struct _SharedResourceProxy |
| 1491 | { |
| 1492 | /*< private >*/ |
| 1493 | GDBusProxy parent_instance; |
| 1494 | SharedResourceProxyPrivate *priv; |
| 1495 | }; |
| 1496 | |
| 1497 | struct _SharedResourceProxyClass |
| 1498 | { |
| 1499 | GDBusProxyClass parent_class; |
| 1500 | }; |
| 1501 | |
| 1502 | GType shared_resource_proxy_get_type (void) G_GNUC_CONST; |
| 1503 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 1504 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 1505 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (SharedResourceProxy, g_object_unref) |
| 1506 | #endif |
| 1507 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 1508 | void shared_resource_proxy_new ( |
| 1509 | GDBusConnection *connection, |
| 1510 | GDBusProxyFlags flags, |
| 1511 | const gchar *name, |
| 1512 | const gchar *object_path, |
| 1513 | GCancellable *cancellable, |
| 1514 | GAsyncReadyCallback callback, |
| 1515 | gpointer user_data); |
| 1516 | SharedResource *shared_resource_proxy_new_finish ( |
| 1517 | GAsyncResult *res, |
| 1518 | GError **error); |
| 1519 | SharedResource *shared_resource_proxy_new_sync ( |
| 1520 | GDBusConnection *connection, |
| 1521 | GDBusProxyFlags flags, |
| 1522 | const gchar *name, |
| 1523 | const gchar *object_path, |
| 1524 | GCancellable *cancellable, |
| 1525 | GError **error); |
| 1526 | |
| 1527 | void shared_resource_proxy_new_for_bus ( |
| 1528 | GBusType bus_type, |
| 1529 | GDBusProxyFlags flags, |
| 1530 | const gchar *name, |
| 1531 | const gchar *object_path, |
| 1532 | GCancellable *cancellable, |
| 1533 | GAsyncReadyCallback callback, |
| 1534 | gpointer user_data); |
| 1535 | SharedResource *shared_resource_proxy_new_for_bus_finish ( |
| 1536 | GAsyncResult *res, |
| 1537 | GError **error); |
| 1538 | SharedResource *shared_resource_proxy_new_for_bus_sync ( |
| 1539 | GBusType bus_type, |
| 1540 | GDBusProxyFlags flags, |
| 1541 | const gchar *name, |
| 1542 | const gchar *object_path, |
| 1543 | GCancellable *cancellable, |
| 1544 | GError **error); |
| 1545 | |
| 1546 | |
| 1547 | /* ---- */ |
| 1548 | |
| 1549 | #define TYPE_SHARED_RESOURCE_SKELETON (shared_resource_skeleton_get_type ()) |
| 1550 | #define SHARED_RESOURCE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SHARED_RESOURCE_SKELETON, SharedResourceSkeleton)) |
| 1551 | #define SHARED_RESOURCE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SHARED_RESOURCE_SKELETON, SharedResourceSkeletonClass)) |
| 1552 | #define SHARED_RESOURCE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SHARED_RESOURCE_SKELETON, SharedResourceSkeletonClass)) |
| 1553 | #define IS_SHARED_RESOURCE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SHARED_RESOURCE_SKELETON)) |
| 1554 | #define IS_SHARED_RESOURCE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SHARED_RESOURCE_SKELETON)) |
| 1555 | |
| 1556 | typedef struct _SharedResourceSkeleton SharedResourceSkeleton; |
| 1557 | typedef struct _SharedResourceSkeletonClass SharedResourceSkeletonClass; |
| 1558 | typedef struct _SharedResourceSkeletonPrivate SharedResourceSkeletonPrivate; |
| 1559 | |
| 1560 | struct _SharedResourceSkeleton |
| 1561 | { |
| 1562 | /*< private >*/ |
| 1563 | GDBusInterfaceSkeleton parent_instance; |
| 1564 | SharedResourceSkeletonPrivate *priv; |
| 1565 | }; |
| 1566 | |
| 1567 | struct _SharedResourceSkeletonClass |
| 1568 | { |
| 1569 | GDBusInterfaceSkeletonClass parent_class; |
| 1570 | }; |
| 1571 | |
| 1572 | GType shared_resource_skeleton_get_type (void) G_GNUC_CONST; |
| 1573 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 1574 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 1575 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (SharedResourceSkeleton, g_object_unref) |
| 1576 | #endif |
| 1577 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 1578 | SharedResource *shared_resource_skeleton_new (void); |
| 1579 | |
| 1580 | |
| 1581 | /* ------------------------------------------------------------------------ */ |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1582 | /* Declarations for org.openbmc.Control */ |
| 1583 | |
| 1584 | #define TYPE_CONTROL (control_get_type ()) |
| 1585 | #define CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL, Control)) |
| 1586 | #define IS_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL)) |
| 1587 | #define CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL, ControlIface)) |
| 1588 | |
| 1589 | struct _Control; |
| 1590 | typedef struct _Control Control; |
| 1591 | typedef struct _ControlIface ControlIface; |
| 1592 | |
| 1593 | struct _ControlIface |
| 1594 | { |
| 1595 | GTypeInterface parent_iface; |
| 1596 | |
| 1597 | |
| 1598 | |
| 1599 | gboolean (*handle_init) ( |
| 1600 | Control *object, |
| 1601 | GDBusMethodInvocation *invocation); |
| 1602 | |
| 1603 | gint (*get_heatbeat) (Control *object); |
| 1604 | |
| 1605 | gint (*get_poll_interval) (Control *object); |
| 1606 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1607 | void (*heartbeat) ( |
| 1608 | Control *object, |
| 1609 | const gchar *arg_bus_name); |
| 1610 | |
Norman James | a3e47c4 | 2015-10-18 14:43:10 -0500 | [diff] [blame] | 1611 | void (*started) ( |
| 1612 | Control *object); |
| 1613 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1614 | }; |
| 1615 | |
| 1616 | GType control_get_type (void) G_GNUC_CONST; |
| 1617 | |
| 1618 | GDBusInterfaceInfo *control_interface_info (void); |
| 1619 | guint control_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1620 | |
| 1621 | |
| 1622 | /* D-Bus method call completion functions: */ |
| 1623 | void control_complete_init ( |
| 1624 | Control *object, |
| 1625 | GDBusMethodInvocation *invocation); |
| 1626 | |
| 1627 | |
| 1628 | |
| 1629 | /* D-Bus signal emissions functions: */ |
| 1630 | void control_emit_heartbeat ( |
| 1631 | Control *object, |
| 1632 | const gchar *arg_bus_name); |
| 1633 | |
Norman James | a3e47c4 | 2015-10-18 14:43:10 -0500 | [diff] [blame] | 1634 | void control_emit_started ( |
| 1635 | Control *object); |
| 1636 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1637 | |
| 1638 | |
| 1639 | /* D-Bus method calls: */ |
| 1640 | void control_call_init ( |
| 1641 | Control *proxy, |
| 1642 | GCancellable *cancellable, |
| 1643 | GAsyncReadyCallback callback, |
| 1644 | gpointer user_data); |
| 1645 | |
| 1646 | gboolean control_call_init_finish ( |
| 1647 | Control *proxy, |
| 1648 | GAsyncResult *res, |
| 1649 | GError **error); |
| 1650 | |
| 1651 | gboolean control_call_init_sync ( |
| 1652 | Control *proxy, |
| 1653 | GCancellable *cancellable, |
| 1654 | GError **error); |
| 1655 | |
| 1656 | |
| 1657 | |
| 1658 | /* D-Bus property accessors: */ |
| 1659 | gint control_get_poll_interval (Control *object); |
| 1660 | void control_set_poll_interval (Control *object, gint value); |
| 1661 | |
| 1662 | gint control_get_heatbeat (Control *object); |
| 1663 | void control_set_heatbeat (Control *object, gint value); |
| 1664 | |
| 1665 | |
| 1666 | /* ---- */ |
| 1667 | |
| 1668 | #define TYPE_CONTROL_PROXY (control_proxy_get_type ()) |
| 1669 | #define CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_PROXY, ControlProxy)) |
| 1670 | #define CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_PROXY, ControlProxyClass)) |
| 1671 | #define CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_PROXY, ControlProxyClass)) |
| 1672 | #define IS_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_PROXY)) |
| 1673 | #define IS_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_PROXY)) |
| 1674 | |
| 1675 | typedef struct _ControlProxy ControlProxy; |
| 1676 | typedef struct _ControlProxyClass ControlProxyClass; |
| 1677 | typedef struct _ControlProxyPrivate ControlProxyPrivate; |
| 1678 | |
| 1679 | struct _ControlProxy |
| 1680 | { |
| 1681 | /*< private >*/ |
| 1682 | GDBusProxy parent_instance; |
| 1683 | ControlProxyPrivate *priv; |
| 1684 | }; |
| 1685 | |
| 1686 | struct _ControlProxyClass |
| 1687 | { |
| 1688 | GDBusProxyClass parent_class; |
| 1689 | }; |
| 1690 | |
| 1691 | GType control_proxy_get_type (void) G_GNUC_CONST; |
| 1692 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 1693 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 1694 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlProxy, g_object_unref) |
| 1695 | #endif |
| 1696 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1697 | void control_proxy_new ( |
| 1698 | GDBusConnection *connection, |
| 1699 | GDBusProxyFlags flags, |
| 1700 | const gchar *name, |
| 1701 | const gchar *object_path, |
| 1702 | GCancellable *cancellable, |
| 1703 | GAsyncReadyCallback callback, |
| 1704 | gpointer user_data); |
| 1705 | Control *control_proxy_new_finish ( |
| 1706 | GAsyncResult *res, |
| 1707 | GError **error); |
| 1708 | Control *control_proxy_new_sync ( |
| 1709 | GDBusConnection *connection, |
| 1710 | GDBusProxyFlags flags, |
| 1711 | const gchar *name, |
| 1712 | const gchar *object_path, |
| 1713 | GCancellable *cancellable, |
| 1714 | GError **error); |
| 1715 | |
| 1716 | void control_proxy_new_for_bus ( |
| 1717 | GBusType bus_type, |
| 1718 | GDBusProxyFlags flags, |
| 1719 | const gchar *name, |
| 1720 | const gchar *object_path, |
| 1721 | GCancellable *cancellable, |
| 1722 | GAsyncReadyCallback callback, |
| 1723 | gpointer user_data); |
| 1724 | Control *control_proxy_new_for_bus_finish ( |
| 1725 | GAsyncResult *res, |
| 1726 | GError **error); |
| 1727 | Control *control_proxy_new_for_bus_sync ( |
| 1728 | GBusType bus_type, |
| 1729 | GDBusProxyFlags flags, |
| 1730 | const gchar *name, |
| 1731 | const gchar *object_path, |
| 1732 | GCancellable *cancellable, |
| 1733 | GError **error); |
| 1734 | |
| 1735 | |
| 1736 | /* ---- */ |
| 1737 | |
| 1738 | #define TYPE_CONTROL_SKELETON (control_skeleton_get_type ()) |
| 1739 | #define CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_SKELETON, ControlSkeleton)) |
| 1740 | #define CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_SKELETON, ControlSkeletonClass)) |
| 1741 | #define CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_SKELETON, ControlSkeletonClass)) |
| 1742 | #define IS_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_SKELETON)) |
| 1743 | #define IS_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_SKELETON)) |
| 1744 | |
| 1745 | typedef struct _ControlSkeleton ControlSkeleton; |
| 1746 | typedef struct _ControlSkeletonClass ControlSkeletonClass; |
| 1747 | typedef struct _ControlSkeletonPrivate ControlSkeletonPrivate; |
| 1748 | |
| 1749 | struct _ControlSkeleton |
| 1750 | { |
| 1751 | /*< private >*/ |
| 1752 | GDBusInterfaceSkeleton parent_instance; |
| 1753 | ControlSkeletonPrivate *priv; |
| 1754 | }; |
| 1755 | |
| 1756 | struct _ControlSkeletonClass |
| 1757 | { |
| 1758 | GDBusInterfaceSkeletonClass parent_class; |
| 1759 | }; |
| 1760 | |
| 1761 | GType control_skeleton_get_type (void) G_GNUC_CONST; |
| 1762 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 1763 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 1764 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlSkeleton, g_object_unref) |
| 1765 | #endif |
| 1766 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1767 | Control *control_skeleton_new (void); |
| 1768 | |
| 1769 | |
| 1770 | /* ------------------------------------------------------------------------ */ |
| 1771 | /* Declarations for org.openbmc.control.Bmc */ |
| 1772 | |
| 1773 | #define TYPE_CONTROL_BMC (control_bmc_get_type ()) |
| 1774 | #define CONTROL_BMC(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC, ControlBmc)) |
| 1775 | #define IS_CONTROL_BMC(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC)) |
| 1776 | #define CONTROL_BMC_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_BMC, ControlBmcIface)) |
| 1777 | |
| 1778 | struct _ControlBmc; |
| 1779 | typedef struct _ControlBmc ControlBmc; |
| 1780 | typedef struct _ControlBmcIface ControlBmcIface; |
| 1781 | |
| 1782 | struct _ControlBmcIface |
| 1783 | { |
| 1784 | GTypeInterface parent_iface; |
| 1785 | |
Nan Li | 44dd5a6 | 2016-08-24 17:13:06 +0800 | [diff] [blame] | 1786 | gboolean (*handle_cold_reset) ( |
| 1787 | ControlBmc *object, |
| 1788 | GDBusMethodInvocation *invocation); |
| 1789 | |
William | f784d75 | 2016-01-19 12:28:49 +0800 | [diff] [blame] | 1790 | gboolean (*handle_warm_reset) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1791 | ControlBmc *object, |
| 1792 | GDBusMethodInvocation *invocation); |
| 1793 | |
| 1794 | }; |
| 1795 | |
| 1796 | GType control_bmc_get_type (void) G_GNUC_CONST; |
| 1797 | |
| 1798 | GDBusInterfaceInfo *control_bmc_interface_info (void); |
| 1799 | guint control_bmc_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1800 | |
| 1801 | |
| 1802 | /* D-Bus method call completion functions: */ |
Nan Li | 44dd5a6 | 2016-08-24 17:13:06 +0800 | [diff] [blame] | 1803 | void control_bmc_complete_cold_reset ( |
| 1804 | ControlBmc *object, |
| 1805 | GDBusMethodInvocation *invocation); |
| 1806 | |
William | f784d75 | 2016-01-19 12:28:49 +0800 | [diff] [blame] | 1807 | void control_bmc_complete_warm_reset ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1808 | ControlBmc *object, |
| 1809 | GDBusMethodInvocation *invocation); |
| 1810 | |
| 1811 | |
| 1812 | |
| 1813 | /* D-Bus method calls: */ |
Nan Li | 44dd5a6 | 2016-08-24 17:13:06 +0800 | [diff] [blame] | 1814 | void control_bmc_call_cold_reset ( |
| 1815 | ControlBmc *proxy, |
| 1816 | GCancellable *cancellable, |
| 1817 | GAsyncReadyCallback callback, |
| 1818 | gpointer user_data); |
| 1819 | |
| 1820 | gboolean control_bmc_call_cold_reset_finish ( |
| 1821 | ControlBmc *proxy, |
| 1822 | GAsyncResult *res, |
| 1823 | GError **error); |
| 1824 | |
| 1825 | gboolean control_bmc_call_cold_reset_sync ( |
| 1826 | ControlBmc *proxy, |
| 1827 | GCancellable *cancellable, |
| 1828 | GError **error); |
| 1829 | |
William | f784d75 | 2016-01-19 12:28:49 +0800 | [diff] [blame] | 1830 | void control_bmc_call_warm_reset ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1831 | ControlBmc *proxy, |
| 1832 | GCancellable *cancellable, |
| 1833 | GAsyncReadyCallback callback, |
| 1834 | gpointer user_data); |
| 1835 | |
William | f784d75 | 2016-01-19 12:28:49 +0800 | [diff] [blame] | 1836 | gboolean control_bmc_call_warm_reset_finish ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1837 | ControlBmc *proxy, |
| 1838 | GAsyncResult *res, |
| 1839 | GError **error); |
| 1840 | |
William | f784d75 | 2016-01-19 12:28:49 +0800 | [diff] [blame] | 1841 | gboolean control_bmc_call_warm_reset_sync ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1842 | ControlBmc *proxy, |
| 1843 | GCancellable *cancellable, |
| 1844 | GError **error); |
| 1845 | |
| 1846 | |
| 1847 | |
| 1848 | /* ---- */ |
| 1849 | |
| 1850 | #define TYPE_CONTROL_BMC_PROXY (control_bmc_proxy_get_type ()) |
| 1851 | #define CONTROL_BMC_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC_PROXY, ControlBmcProxy)) |
| 1852 | #define CONTROL_BMC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_BMC_PROXY, ControlBmcProxyClass)) |
| 1853 | #define CONTROL_BMC_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_BMC_PROXY, ControlBmcProxyClass)) |
| 1854 | #define IS_CONTROL_BMC_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC_PROXY)) |
| 1855 | #define IS_CONTROL_BMC_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_BMC_PROXY)) |
| 1856 | |
| 1857 | typedef struct _ControlBmcProxy ControlBmcProxy; |
| 1858 | typedef struct _ControlBmcProxyClass ControlBmcProxyClass; |
| 1859 | typedef struct _ControlBmcProxyPrivate ControlBmcProxyPrivate; |
| 1860 | |
| 1861 | struct _ControlBmcProxy |
| 1862 | { |
| 1863 | /*< private >*/ |
| 1864 | GDBusProxy parent_instance; |
| 1865 | ControlBmcProxyPrivate *priv; |
| 1866 | }; |
| 1867 | |
| 1868 | struct _ControlBmcProxyClass |
| 1869 | { |
| 1870 | GDBusProxyClass parent_class; |
| 1871 | }; |
| 1872 | |
| 1873 | GType control_bmc_proxy_get_type (void) G_GNUC_CONST; |
| 1874 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 1875 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 1876 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlBmcProxy, g_object_unref) |
| 1877 | #endif |
| 1878 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1879 | void control_bmc_proxy_new ( |
| 1880 | GDBusConnection *connection, |
| 1881 | GDBusProxyFlags flags, |
| 1882 | const gchar *name, |
| 1883 | const gchar *object_path, |
| 1884 | GCancellable *cancellable, |
| 1885 | GAsyncReadyCallback callback, |
| 1886 | gpointer user_data); |
| 1887 | ControlBmc *control_bmc_proxy_new_finish ( |
| 1888 | GAsyncResult *res, |
| 1889 | GError **error); |
| 1890 | ControlBmc *control_bmc_proxy_new_sync ( |
| 1891 | GDBusConnection *connection, |
| 1892 | GDBusProxyFlags flags, |
| 1893 | const gchar *name, |
| 1894 | const gchar *object_path, |
| 1895 | GCancellable *cancellable, |
| 1896 | GError **error); |
| 1897 | |
| 1898 | void control_bmc_proxy_new_for_bus ( |
| 1899 | GBusType bus_type, |
| 1900 | GDBusProxyFlags flags, |
| 1901 | const gchar *name, |
| 1902 | const gchar *object_path, |
| 1903 | GCancellable *cancellable, |
| 1904 | GAsyncReadyCallback callback, |
| 1905 | gpointer user_data); |
| 1906 | ControlBmc *control_bmc_proxy_new_for_bus_finish ( |
| 1907 | GAsyncResult *res, |
| 1908 | GError **error); |
| 1909 | ControlBmc *control_bmc_proxy_new_for_bus_sync ( |
| 1910 | GBusType bus_type, |
| 1911 | GDBusProxyFlags flags, |
| 1912 | const gchar *name, |
| 1913 | const gchar *object_path, |
| 1914 | GCancellable *cancellable, |
| 1915 | GError **error); |
| 1916 | |
| 1917 | |
| 1918 | /* ---- */ |
| 1919 | |
| 1920 | #define TYPE_CONTROL_BMC_SKELETON (control_bmc_skeleton_get_type ()) |
| 1921 | #define CONTROL_BMC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeleton)) |
| 1922 | #define CONTROL_BMC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeletonClass)) |
| 1923 | #define CONTROL_BMC_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_BMC_SKELETON, ControlBmcSkeletonClass)) |
| 1924 | #define IS_CONTROL_BMC_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_BMC_SKELETON)) |
| 1925 | #define IS_CONTROL_BMC_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_BMC_SKELETON)) |
| 1926 | |
| 1927 | typedef struct _ControlBmcSkeleton ControlBmcSkeleton; |
| 1928 | typedef struct _ControlBmcSkeletonClass ControlBmcSkeletonClass; |
| 1929 | typedef struct _ControlBmcSkeletonPrivate ControlBmcSkeletonPrivate; |
| 1930 | |
| 1931 | struct _ControlBmcSkeleton |
| 1932 | { |
| 1933 | /*< private >*/ |
| 1934 | GDBusInterfaceSkeleton parent_instance; |
| 1935 | ControlBmcSkeletonPrivate *priv; |
| 1936 | }; |
| 1937 | |
| 1938 | struct _ControlBmcSkeletonClass |
| 1939 | { |
| 1940 | GDBusInterfaceSkeletonClass parent_class; |
| 1941 | }; |
| 1942 | |
| 1943 | GType control_bmc_skeleton_get_type (void) G_GNUC_CONST; |
| 1944 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 1945 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 1946 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlBmcSkeleton, g_object_unref) |
| 1947 | #endif |
| 1948 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1949 | ControlBmc *control_bmc_skeleton_new (void); |
| 1950 | |
| 1951 | |
| 1952 | /* ------------------------------------------------------------------------ */ |
| 1953 | /* Declarations for org.openbmc.control.Host */ |
| 1954 | |
| 1955 | #define TYPE_CONTROL_HOST (control_host_get_type ()) |
| 1956 | #define CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST, ControlHost)) |
| 1957 | #define IS_CONTROL_HOST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST)) |
| 1958 | #define CONTROL_HOST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_HOST, ControlHostIface)) |
| 1959 | |
| 1960 | struct _ControlHost; |
| 1961 | typedef struct _ControlHost ControlHost; |
| 1962 | typedef struct _ControlHostIface ControlHostIface; |
| 1963 | |
| 1964 | struct _ControlHostIface |
| 1965 | { |
| 1966 | GTypeInterface parent_iface; |
| 1967 | |
| 1968 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 1969 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1970 | gboolean (*handle_boot) ( |
| 1971 | ControlHost *object, |
| 1972 | GDBusMethodInvocation *invocation); |
| 1973 | |
| 1974 | gboolean (*handle_reboot) ( |
| 1975 | ControlHost *object, |
| 1976 | GDBusMethodInvocation *invocation); |
| 1977 | |
| 1978 | gboolean (*handle_shutdown) ( |
| 1979 | ControlHost *object, |
| 1980 | GDBusMethodInvocation *invocation); |
| 1981 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 1982 | gint (*get_debug_mode) (ControlHost *object); |
| 1983 | |
| 1984 | const gchar * (*get_flash_side) (ControlHost *object); |
| 1985 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 1986 | void (*booted) ( |
| 1987 | ControlHost *object); |
| 1988 | |
| 1989 | }; |
| 1990 | |
| 1991 | GType control_host_get_type (void) G_GNUC_CONST; |
| 1992 | |
| 1993 | GDBusInterfaceInfo *control_host_interface_info (void); |
| 1994 | guint control_host_override_properties (GObjectClass *klass, guint property_id_begin); |
| 1995 | |
| 1996 | |
| 1997 | /* D-Bus method call completion functions: */ |
| 1998 | void control_host_complete_boot ( |
| 1999 | ControlHost *object, |
| 2000 | GDBusMethodInvocation *invocation); |
| 2001 | |
| 2002 | void control_host_complete_shutdown ( |
| 2003 | ControlHost *object, |
| 2004 | GDBusMethodInvocation *invocation); |
| 2005 | |
| 2006 | void control_host_complete_reboot ( |
| 2007 | ControlHost *object, |
| 2008 | GDBusMethodInvocation *invocation); |
| 2009 | |
| 2010 | |
| 2011 | |
| 2012 | /* D-Bus signal emissions functions: */ |
| 2013 | void control_host_emit_booted ( |
| 2014 | ControlHost *object); |
| 2015 | |
| 2016 | |
| 2017 | |
| 2018 | /* D-Bus method calls: */ |
| 2019 | void control_host_call_boot ( |
| 2020 | ControlHost *proxy, |
| 2021 | GCancellable *cancellable, |
| 2022 | GAsyncReadyCallback callback, |
| 2023 | gpointer user_data); |
| 2024 | |
| 2025 | gboolean control_host_call_boot_finish ( |
| 2026 | ControlHost *proxy, |
| 2027 | GAsyncResult *res, |
| 2028 | GError **error); |
| 2029 | |
| 2030 | gboolean control_host_call_boot_sync ( |
| 2031 | ControlHost *proxy, |
| 2032 | GCancellable *cancellable, |
| 2033 | GError **error); |
| 2034 | |
| 2035 | void control_host_call_shutdown ( |
| 2036 | ControlHost *proxy, |
| 2037 | GCancellable *cancellable, |
| 2038 | GAsyncReadyCallback callback, |
| 2039 | gpointer user_data); |
| 2040 | |
| 2041 | gboolean control_host_call_shutdown_finish ( |
| 2042 | ControlHost *proxy, |
| 2043 | GAsyncResult *res, |
| 2044 | GError **error); |
| 2045 | |
| 2046 | gboolean control_host_call_shutdown_sync ( |
| 2047 | ControlHost *proxy, |
| 2048 | GCancellable *cancellable, |
| 2049 | GError **error); |
| 2050 | |
| 2051 | void control_host_call_reboot ( |
| 2052 | ControlHost *proxy, |
| 2053 | GCancellable *cancellable, |
| 2054 | GAsyncReadyCallback callback, |
| 2055 | gpointer user_data); |
| 2056 | |
| 2057 | gboolean control_host_call_reboot_finish ( |
| 2058 | ControlHost *proxy, |
| 2059 | GAsyncResult *res, |
| 2060 | GError **error); |
| 2061 | |
| 2062 | gboolean control_host_call_reboot_sync ( |
| 2063 | ControlHost *proxy, |
| 2064 | GCancellable *cancellable, |
| 2065 | GError **error); |
| 2066 | |
| 2067 | |
| 2068 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 2069 | /* D-Bus property accessors: */ |
| 2070 | gint control_host_get_debug_mode (ControlHost *object); |
| 2071 | void control_host_set_debug_mode (ControlHost *object, gint value); |
| 2072 | |
| 2073 | const gchar *control_host_get_flash_side (ControlHost *object); |
| 2074 | gchar *control_host_dup_flash_side (ControlHost *object); |
| 2075 | void control_host_set_flash_side (ControlHost *object, const gchar *value); |
| 2076 | |
| 2077 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2078 | /* ---- */ |
| 2079 | |
| 2080 | #define TYPE_CONTROL_HOST_PROXY (control_host_proxy_get_type ()) |
| 2081 | #define CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxy)) |
| 2082 | #define CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) |
| 2083 | #define CONTROL_HOST_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_PROXY, ControlHostProxyClass)) |
| 2084 | #define IS_CONTROL_HOST_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_PROXY)) |
| 2085 | #define IS_CONTROL_HOST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_PROXY)) |
| 2086 | |
| 2087 | typedef struct _ControlHostProxy ControlHostProxy; |
| 2088 | typedef struct _ControlHostProxyClass ControlHostProxyClass; |
| 2089 | typedef struct _ControlHostProxyPrivate ControlHostProxyPrivate; |
| 2090 | |
| 2091 | struct _ControlHostProxy |
| 2092 | { |
| 2093 | /*< private >*/ |
| 2094 | GDBusProxy parent_instance; |
| 2095 | ControlHostProxyPrivate *priv; |
| 2096 | }; |
| 2097 | |
| 2098 | struct _ControlHostProxyClass |
| 2099 | { |
| 2100 | GDBusProxyClass parent_class; |
| 2101 | }; |
| 2102 | |
| 2103 | GType control_host_proxy_get_type (void) G_GNUC_CONST; |
| 2104 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 2105 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 2106 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlHostProxy, g_object_unref) |
| 2107 | #endif |
| 2108 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2109 | void control_host_proxy_new ( |
| 2110 | GDBusConnection *connection, |
| 2111 | GDBusProxyFlags flags, |
| 2112 | const gchar *name, |
| 2113 | const gchar *object_path, |
| 2114 | GCancellable *cancellable, |
| 2115 | GAsyncReadyCallback callback, |
| 2116 | gpointer user_data); |
| 2117 | ControlHost *control_host_proxy_new_finish ( |
| 2118 | GAsyncResult *res, |
| 2119 | GError **error); |
| 2120 | ControlHost *control_host_proxy_new_sync ( |
| 2121 | GDBusConnection *connection, |
| 2122 | GDBusProxyFlags flags, |
| 2123 | const gchar *name, |
| 2124 | const gchar *object_path, |
| 2125 | GCancellable *cancellable, |
| 2126 | GError **error); |
| 2127 | |
| 2128 | void control_host_proxy_new_for_bus ( |
| 2129 | GBusType bus_type, |
| 2130 | GDBusProxyFlags flags, |
| 2131 | const gchar *name, |
| 2132 | const gchar *object_path, |
| 2133 | GCancellable *cancellable, |
| 2134 | GAsyncReadyCallback callback, |
| 2135 | gpointer user_data); |
| 2136 | ControlHost *control_host_proxy_new_for_bus_finish ( |
| 2137 | GAsyncResult *res, |
| 2138 | GError **error); |
| 2139 | ControlHost *control_host_proxy_new_for_bus_sync ( |
| 2140 | GBusType bus_type, |
| 2141 | GDBusProxyFlags flags, |
| 2142 | const gchar *name, |
| 2143 | const gchar *object_path, |
| 2144 | GCancellable *cancellable, |
| 2145 | GError **error); |
| 2146 | |
| 2147 | |
| 2148 | /* ---- */ |
| 2149 | |
| 2150 | #define TYPE_CONTROL_HOST_SKELETON (control_host_skeleton_get_type ()) |
| 2151 | #define CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeleton)) |
| 2152 | #define CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) |
| 2153 | #define CONTROL_HOST_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_HOST_SKELETON, ControlHostSkeletonClass)) |
| 2154 | #define IS_CONTROL_HOST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_HOST_SKELETON)) |
| 2155 | #define IS_CONTROL_HOST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_HOST_SKELETON)) |
| 2156 | |
| 2157 | typedef struct _ControlHostSkeleton ControlHostSkeleton; |
| 2158 | typedef struct _ControlHostSkeletonClass ControlHostSkeletonClass; |
| 2159 | typedef struct _ControlHostSkeletonPrivate ControlHostSkeletonPrivate; |
| 2160 | |
| 2161 | struct _ControlHostSkeleton |
| 2162 | { |
| 2163 | /*< private >*/ |
| 2164 | GDBusInterfaceSkeleton parent_instance; |
| 2165 | ControlHostSkeletonPrivate *priv; |
| 2166 | }; |
| 2167 | |
| 2168 | struct _ControlHostSkeletonClass |
| 2169 | { |
| 2170 | GDBusInterfaceSkeletonClass parent_class; |
| 2171 | }; |
| 2172 | |
| 2173 | GType control_host_skeleton_get_type (void) G_GNUC_CONST; |
| 2174 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 2175 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 2176 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlHostSkeleton, g_object_unref) |
| 2177 | #endif |
| 2178 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2179 | ControlHost *control_host_skeleton_new (void); |
| 2180 | |
| 2181 | |
| 2182 | /* ------------------------------------------------------------------------ */ |
| 2183 | /* Declarations for org.openbmc.control.Power */ |
| 2184 | |
| 2185 | #define TYPE_CONTROL_POWER (control_power_get_type ()) |
| 2186 | #define CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER, ControlPower)) |
| 2187 | #define IS_CONTROL_POWER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER)) |
| 2188 | #define CONTROL_POWER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_POWER, ControlPowerIface)) |
| 2189 | |
| 2190 | struct _ControlPower; |
| 2191 | typedef struct _ControlPower ControlPower; |
| 2192 | typedef struct _ControlPowerIface ControlPowerIface; |
| 2193 | |
| 2194 | struct _ControlPowerIface |
| 2195 | { |
| 2196 | GTypeInterface parent_iface; |
| 2197 | |
| 2198 | |
| 2199 | |
| 2200 | gboolean (*handle_get_power_state) ( |
| 2201 | ControlPower *object, |
| 2202 | GDBusMethodInvocation *invocation); |
| 2203 | |
| 2204 | gboolean (*handle_set_power_state) ( |
| 2205 | ControlPower *object, |
| 2206 | GDBusMethodInvocation *invocation, |
| 2207 | gint arg_state); |
| 2208 | |
| 2209 | gint (*get_pgood) (ControlPower *object); |
| 2210 | |
Norman James | 32e74e2 | 2015-09-15 21:28:06 -0500 | [diff] [blame] | 2211 | gint (*get_pgood_timeout) (ControlPower *object); |
| 2212 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2213 | gint (*get_state) (ControlPower *object); |
| 2214 | |
| 2215 | void (*power_good) ( |
| 2216 | ControlPower *object); |
| 2217 | |
| 2218 | void (*power_lost) ( |
| 2219 | ControlPower *object); |
| 2220 | |
| 2221 | }; |
| 2222 | |
| 2223 | GType control_power_get_type (void) G_GNUC_CONST; |
| 2224 | |
| 2225 | GDBusInterfaceInfo *control_power_interface_info (void); |
| 2226 | guint control_power_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2227 | |
| 2228 | |
| 2229 | /* D-Bus method call completion functions: */ |
| 2230 | void control_power_complete_set_power_state ( |
| 2231 | ControlPower *object, |
| 2232 | GDBusMethodInvocation *invocation); |
| 2233 | |
| 2234 | void control_power_complete_get_power_state ( |
| 2235 | ControlPower *object, |
| 2236 | GDBusMethodInvocation *invocation, |
| 2237 | gint state); |
| 2238 | |
| 2239 | |
| 2240 | |
| 2241 | /* D-Bus signal emissions functions: */ |
| 2242 | void control_power_emit_power_good ( |
| 2243 | ControlPower *object); |
| 2244 | |
| 2245 | void control_power_emit_power_lost ( |
| 2246 | ControlPower *object); |
| 2247 | |
| 2248 | |
| 2249 | |
| 2250 | /* D-Bus method calls: */ |
| 2251 | void control_power_call_set_power_state ( |
| 2252 | ControlPower *proxy, |
| 2253 | gint arg_state, |
| 2254 | GCancellable *cancellable, |
| 2255 | GAsyncReadyCallback callback, |
| 2256 | gpointer user_data); |
| 2257 | |
| 2258 | gboolean control_power_call_set_power_state_finish ( |
| 2259 | ControlPower *proxy, |
| 2260 | GAsyncResult *res, |
| 2261 | GError **error); |
| 2262 | |
| 2263 | gboolean control_power_call_set_power_state_sync ( |
| 2264 | ControlPower *proxy, |
| 2265 | gint arg_state, |
| 2266 | GCancellable *cancellable, |
| 2267 | GError **error); |
| 2268 | |
| 2269 | void control_power_call_get_power_state ( |
| 2270 | ControlPower *proxy, |
| 2271 | GCancellable *cancellable, |
| 2272 | GAsyncReadyCallback callback, |
| 2273 | gpointer user_data); |
| 2274 | |
| 2275 | gboolean control_power_call_get_power_state_finish ( |
| 2276 | ControlPower *proxy, |
| 2277 | gint *out_state, |
| 2278 | GAsyncResult *res, |
| 2279 | GError **error); |
| 2280 | |
| 2281 | gboolean control_power_call_get_power_state_sync ( |
| 2282 | ControlPower *proxy, |
| 2283 | gint *out_state, |
| 2284 | GCancellable *cancellable, |
| 2285 | GError **error); |
| 2286 | |
| 2287 | |
| 2288 | |
| 2289 | /* D-Bus property accessors: */ |
| 2290 | gint control_power_get_pgood (ControlPower *object); |
| 2291 | void control_power_set_pgood (ControlPower *object, gint value); |
| 2292 | |
| 2293 | gint control_power_get_state (ControlPower *object); |
| 2294 | void control_power_set_state (ControlPower *object, gint value); |
| 2295 | |
Norman James | 32e74e2 | 2015-09-15 21:28:06 -0500 | [diff] [blame] | 2296 | gint control_power_get_pgood_timeout (ControlPower *object); |
| 2297 | void control_power_set_pgood_timeout (ControlPower *object, gint value); |
| 2298 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2299 | |
| 2300 | /* ---- */ |
| 2301 | |
| 2302 | #define TYPE_CONTROL_POWER_PROXY (control_power_proxy_get_type ()) |
| 2303 | #define CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxy)) |
| 2304 | #define CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass)) |
| 2305 | #define CONTROL_POWER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_PROXY, ControlPowerProxyClass)) |
| 2306 | #define IS_CONTROL_POWER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_PROXY)) |
| 2307 | #define IS_CONTROL_POWER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_PROXY)) |
| 2308 | |
| 2309 | typedef struct _ControlPowerProxy ControlPowerProxy; |
| 2310 | typedef struct _ControlPowerProxyClass ControlPowerProxyClass; |
| 2311 | typedef struct _ControlPowerProxyPrivate ControlPowerProxyPrivate; |
| 2312 | |
| 2313 | struct _ControlPowerProxy |
| 2314 | { |
| 2315 | /*< private >*/ |
| 2316 | GDBusProxy parent_instance; |
| 2317 | ControlPowerProxyPrivate *priv; |
| 2318 | }; |
| 2319 | |
| 2320 | struct _ControlPowerProxyClass |
| 2321 | { |
| 2322 | GDBusProxyClass parent_class; |
| 2323 | }; |
| 2324 | |
| 2325 | GType control_power_proxy_get_type (void) G_GNUC_CONST; |
| 2326 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 2327 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 2328 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlPowerProxy, g_object_unref) |
| 2329 | #endif |
| 2330 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2331 | void control_power_proxy_new ( |
| 2332 | GDBusConnection *connection, |
| 2333 | GDBusProxyFlags flags, |
| 2334 | const gchar *name, |
| 2335 | const gchar *object_path, |
| 2336 | GCancellable *cancellable, |
| 2337 | GAsyncReadyCallback callback, |
| 2338 | gpointer user_data); |
| 2339 | ControlPower *control_power_proxy_new_finish ( |
| 2340 | GAsyncResult *res, |
| 2341 | GError **error); |
| 2342 | ControlPower *control_power_proxy_new_sync ( |
| 2343 | GDBusConnection *connection, |
| 2344 | GDBusProxyFlags flags, |
| 2345 | const gchar *name, |
| 2346 | const gchar *object_path, |
| 2347 | GCancellable *cancellable, |
| 2348 | GError **error); |
| 2349 | |
| 2350 | void control_power_proxy_new_for_bus ( |
| 2351 | GBusType bus_type, |
| 2352 | GDBusProxyFlags flags, |
| 2353 | const gchar *name, |
| 2354 | const gchar *object_path, |
| 2355 | GCancellable *cancellable, |
| 2356 | GAsyncReadyCallback callback, |
| 2357 | gpointer user_data); |
| 2358 | ControlPower *control_power_proxy_new_for_bus_finish ( |
| 2359 | GAsyncResult *res, |
| 2360 | GError **error); |
| 2361 | ControlPower *control_power_proxy_new_for_bus_sync ( |
| 2362 | GBusType bus_type, |
| 2363 | GDBusProxyFlags flags, |
| 2364 | const gchar *name, |
| 2365 | const gchar *object_path, |
| 2366 | GCancellable *cancellable, |
| 2367 | GError **error); |
| 2368 | |
| 2369 | |
| 2370 | /* ---- */ |
| 2371 | |
| 2372 | #define TYPE_CONTROL_POWER_SKELETON (control_power_skeleton_get_type ()) |
| 2373 | #define CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeleton)) |
| 2374 | #define CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass)) |
| 2375 | #define CONTROL_POWER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_POWER_SKELETON, ControlPowerSkeletonClass)) |
| 2376 | #define IS_CONTROL_POWER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_POWER_SKELETON)) |
| 2377 | #define IS_CONTROL_POWER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_POWER_SKELETON)) |
| 2378 | |
| 2379 | typedef struct _ControlPowerSkeleton ControlPowerSkeleton; |
| 2380 | typedef struct _ControlPowerSkeletonClass ControlPowerSkeletonClass; |
| 2381 | typedef struct _ControlPowerSkeletonPrivate ControlPowerSkeletonPrivate; |
| 2382 | |
| 2383 | struct _ControlPowerSkeleton |
| 2384 | { |
| 2385 | /*< private >*/ |
| 2386 | GDBusInterfaceSkeleton parent_instance; |
| 2387 | ControlPowerSkeletonPrivate *priv; |
| 2388 | }; |
| 2389 | |
| 2390 | struct _ControlPowerSkeletonClass |
| 2391 | { |
| 2392 | GDBusInterfaceSkeletonClass parent_class; |
| 2393 | }; |
| 2394 | |
| 2395 | GType control_power_skeleton_get_type (void) G_GNUC_CONST; |
| 2396 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 2397 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 2398 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlPowerSkeleton, g_object_unref) |
| 2399 | #endif |
| 2400 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2401 | ControlPower *control_power_skeleton_new (void); |
| 2402 | |
| 2403 | |
| 2404 | /* ------------------------------------------------------------------------ */ |
Adriana Kobylak | fd77882 | 2016-06-16 09:08:37 -0500 | [diff] [blame] | 2405 | /* Declarations for org.openbmc.control.Checkstop */ |
| 2406 | |
| 2407 | #define TYPE_CONTROL_CHECKSTOP (control_checkstop_get_type ()) |
| 2408 | #define CONTROL_CHECKSTOP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP, ControlCheckstop)) |
| 2409 | #define IS_CONTROL_CHECKSTOP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP)) |
| 2410 | #define CONTROL_CHECKSTOP_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_CONTROL_CHECKSTOP, ControlCheckstopIface)) |
| 2411 | |
| 2412 | struct _ControlCheckstop; |
| 2413 | typedef struct _ControlCheckstop ControlCheckstop; |
| 2414 | typedef struct _ControlCheckstopIface ControlCheckstopIface; |
| 2415 | |
| 2416 | struct _ControlCheckstopIface |
| 2417 | { |
| 2418 | GTypeInterface parent_iface; |
| 2419 | }; |
| 2420 | |
| 2421 | GType control_checkstop_get_type (void) G_GNUC_CONST; |
| 2422 | |
| 2423 | GDBusInterfaceInfo *control_checkstop_interface_info (void); |
| 2424 | guint control_checkstop_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2425 | |
| 2426 | |
| 2427 | /* ---- */ |
| 2428 | |
| 2429 | #define TYPE_CONTROL_CHECKSTOP_PROXY (control_checkstop_proxy_get_type ()) |
| 2430 | #define CONTROL_CHECKSTOP_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxy)) |
| 2431 | #define CONTROL_CHECKSTOP_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxyClass)) |
| 2432 | #define CONTROL_CHECKSTOP_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_CHECKSTOP_PROXY, ControlCheckstopProxyClass)) |
| 2433 | #define IS_CONTROL_CHECKSTOP_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP_PROXY)) |
| 2434 | #define IS_CONTROL_CHECKSTOP_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_CHECKSTOP_PROXY)) |
| 2435 | |
| 2436 | typedef struct _ControlCheckstopProxy ControlCheckstopProxy; |
| 2437 | typedef struct _ControlCheckstopProxyClass ControlCheckstopProxyClass; |
| 2438 | typedef struct _ControlCheckstopProxyPrivate ControlCheckstopProxyPrivate; |
| 2439 | |
| 2440 | struct _ControlCheckstopProxy |
| 2441 | { |
| 2442 | /*< private >*/ |
| 2443 | GDBusProxy parent_instance; |
| 2444 | ControlCheckstopProxyPrivate *priv; |
| 2445 | }; |
| 2446 | |
| 2447 | struct _ControlCheckstopProxyClass |
| 2448 | { |
| 2449 | GDBusProxyClass parent_class; |
| 2450 | }; |
| 2451 | |
| 2452 | GType control_checkstop_proxy_get_type (void) G_GNUC_CONST; |
| 2453 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 2454 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 2455 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlCheckstopProxy, g_object_unref) |
| 2456 | #endif |
| 2457 | |
Adriana Kobylak | fd77882 | 2016-06-16 09:08:37 -0500 | [diff] [blame] | 2458 | void control_checkstop_proxy_new ( |
| 2459 | GDBusConnection *connection, |
| 2460 | GDBusProxyFlags flags, |
| 2461 | const gchar *name, |
| 2462 | const gchar *object_path, |
| 2463 | GCancellable *cancellable, |
| 2464 | GAsyncReadyCallback callback, |
| 2465 | gpointer user_data); |
| 2466 | ControlCheckstop *control_checkstop_proxy_new_finish ( |
| 2467 | GAsyncResult *res, |
| 2468 | GError **error); |
| 2469 | ControlCheckstop *control_checkstop_proxy_new_sync ( |
| 2470 | GDBusConnection *connection, |
| 2471 | GDBusProxyFlags flags, |
| 2472 | const gchar *name, |
| 2473 | const gchar *object_path, |
| 2474 | GCancellable *cancellable, |
| 2475 | GError **error); |
| 2476 | |
| 2477 | void control_checkstop_proxy_new_for_bus ( |
| 2478 | GBusType bus_type, |
| 2479 | GDBusProxyFlags flags, |
| 2480 | const gchar *name, |
| 2481 | const gchar *object_path, |
| 2482 | GCancellable *cancellable, |
| 2483 | GAsyncReadyCallback callback, |
| 2484 | gpointer user_data); |
| 2485 | ControlCheckstop *control_checkstop_proxy_new_for_bus_finish ( |
| 2486 | GAsyncResult *res, |
| 2487 | GError **error); |
| 2488 | ControlCheckstop *control_checkstop_proxy_new_for_bus_sync ( |
| 2489 | GBusType bus_type, |
| 2490 | GDBusProxyFlags flags, |
| 2491 | const gchar *name, |
| 2492 | const gchar *object_path, |
| 2493 | GCancellable *cancellable, |
| 2494 | GError **error); |
| 2495 | |
| 2496 | |
| 2497 | /* ---- */ |
| 2498 | |
| 2499 | #define TYPE_CONTROL_CHECKSTOP_SKELETON (control_checkstop_skeleton_get_type ()) |
| 2500 | #define CONTROL_CHECKSTOP_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeleton)) |
| 2501 | #define CONTROL_CHECKSTOP_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeletonClass)) |
| 2502 | #define CONTROL_CHECKSTOP_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_CONTROL_CHECKSTOP_SKELETON, ControlCheckstopSkeletonClass)) |
| 2503 | #define IS_CONTROL_CHECKSTOP_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_CONTROL_CHECKSTOP_SKELETON)) |
| 2504 | #define IS_CONTROL_CHECKSTOP_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_CONTROL_CHECKSTOP_SKELETON)) |
| 2505 | |
| 2506 | typedef struct _ControlCheckstopSkeleton ControlCheckstopSkeleton; |
| 2507 | typedef struct _ControlCheckstopSkeletonClass ControlCheckstopSkeletonClass; |
| 2508 | typedef struct _ControlCheckstopSkeletonPrivate ControlCheckstopSkeletonPrivate; |
| 2509 | |
| 2510 | struct _ControlCheckstopSkeleton |
| 2511 | { |
| 2512 | /*< private >*/ |
| 2513 | GDBusInterfaceSkeleton parent_instance; |
| 2514 | ControlCheckstopSkeletonPrivate *priv; |
| 2515 | }; |
| 2516 | |
| 2517 | struct _ControlCheckstopSkeletonClass |
| 2518 | { |
| 2519 | GDBusInterfaceSkeletonClass parent_class; |
| 2520 | }; |
| 2521 | |
| 2522 | GType control_checkstop_skeleton_get_type (void) G_GNUC_CONST; |
| 2523 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 2524 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 2525 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ControlCheckstopSkeleton, g_object_unref) |
| 2526 | #endif |
| 2527 | |
Adriana Kobylak | fd77882 | 2016-06-16 09:08:37 -0500 | [diff] [blame] | 2528 | ControlCheckstop *control_checkstop_skeleton_new (void); |
| 2529 | |
| 2530 | |
| 2531 | /* ------------------------------------------------------------------------ */ |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2532 | /* Declarations for org.openbmc.Watchdog */ |
| 2533 | |
| 2534 | #define TYPE_WATCHDOG (watchdog_get_type ()) |
| 2535 | #define WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG, Watchdog)) |
| 2536 | #define IS_WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG)) |
| 2537 | #define WATCHDOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_WATCHDOG, WatchdogIface)) |
| 2538 | |
| 2539 | struct _Watchdog; |
| 2540 | typedef struct _Watchdog Watchdog; |
| 2541 | typedef struct _WatchdogIface WatchdogIface; |
| 2542 | |
| 2543 | struct _WatchdogIface |
| 2544 | { |
| 2545 | GTypeInterface parent_iface; |
| 2546 | |
| 2547 | |
| 2548 | |
| 2549 | gboolean (*handle_poke) ( |
| 2550 | Watchdog *object, |
| 2551 | GDBusMethodInvocation *invocation); |
| 2552 | |
Adriana Kobylak | 2cb2775 | 2015-10-19 16:23:14 -0500 | [diff] [blame] | 2553 | gboolean (*handle_set) ( |
| 2554 | Watchdog *object, |
| 2555 | GDBusMethodInvocation *invocation, |
| 2556 | gint arg_interval); |
| 2557 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2558 | gboolean (*handle_start) ( |
| 2559 | Watchdog *object, |
| 2560 | GDBusMethodInvocation *invocation); |
| 2561 | |
| 2562 | gboolean (*handle_stop) ( |
| 2563 | Watchdog *object, |
| 2564 | GDBusMethodInvocation *invocation); |
| 2565 | |
| 2566 | gint (*get_poll_interval) (Watchdog *object); |
| 2567 | |
| 2568 | gint (*get_watchdog) (Watchdog *object); |
| 2569 | |
| 2570 | void (*watchdog_error) ( |
| 2571 | Watchdog *object); |
| 2572 | |
| 2573 | }; |
| 2574 | |
| 2575 | GType watchdog_get_type (void) G_GNUC_CONST; |
| 2576 | |
| 2577 | GDBusInterfaceInfo *watchdog_interface_info (void); |
| 2578 | guint watchdog_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2579 | |
| 2580 | |
| 2581 | /* D-Bus method call completion functions: */ |
| 2582 | void watchdog_complete_start ( |
| 2583 | Watchdog *object, |
| 2584 | GDBusMethodInvocation *invocation); |
| 2585 | |
| 2586 | void watchdog_complete_poke ( |
| 2587 | Watchdog *object, |
| 2588 | GDBusMethodInvocation *invocation); |
| 2589 | |
| 2590 | void watchdog_complete_stop ( |
| 2591 | Watchdog *object, |
| 2592 | GDBusMethodInvocation *invocation); |
| 2593 | |
Adriana Kobylak | 2cb2775 | 2015-10-19 16:23:14 -0500 | [diff] [blame] | 2594 | void watchdog_complete_set ( |
| 2595 | Watchdog *object, |
| 2596 | GDBusMethodInvocation *invocation); |
| 2597 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2598 | |
| 2599 | |
| 2600 | /* D-Bus signal emissions functions: */ |
| 2601 | void watchdog_emit_watchdog_error ( |
| 2602 | Watchdog *object); |
| 2603 | |
| 2604 | |
| 2605 | |
| 2606 | /* D-Bus method calls: */ |
| 2607 | void watchdog_call_start ( |
| 2608 | Watchdog *proxy, |
| 2609 | GCancellable *cancellable, |
| 2610 | GAsyncReadyCallback callback, |
| 2611 | gpointer user_data); |
| 2612 | |
| 2613 | gboolean watchdog_call_start_finish ( |
| 2614 | Watchdog *proxy, |
| 2615 | GAsyncResult *res, |
| 2616 | GError **error); |
| 2617 | |
| 2618 | gboolean watchdog_call_start_sync ( |
| 2619 | Watchdog *proxy, |
| 2620 | GCancellable *cancellable, |
| 2621 | GError **error); |
| 2622 | |
| 2623 | void watchdog_call_poke ( |
| 2624 | Watchdog *proxy, |
| 2625 | GCancellable *cancellable, |
| 2626 | GAsyncReadyCallback callback, |
| 2627 | gpointer user_data); |
| 2628 | |
| 2629 | gboolean watchdog_call_poke_finish ( |
| 2630 | Watchdog *proxy, |
| 2631 | GAsyncResult *res, |
| 2632 | GError **error); |
| 2633 | |
| 2634 | gboolean watchdog_call_poke_sync ( |
| 2635 | Watchdog *proxy, |
| 2636 | GCancellable *cancellable, |
| 2637 | GError **error); |
| 2638 | |
| 2639 | void watchdog_call_stop ( |
| 2640 | Watchdog *proxy, |
| 2641 | GCancellable *cancellable, |
| 2642 | GAsyncReadyCallback callback, |
| 2643 | gpointer user_data); |
| 2644 | |
| 2645 | gboolean watchdog_call_stop_finish ( |
| 2646 | Watchdog *proxy, |
| 2647 | GAsyncResult *res, |
| 2648 | GError **error); |
| 2649 | |
| 2650 | gboolean watchdog_call_stop_sync ( |
| 2651 | Watchdog *proxy, |
| 2652 | GCancellable *cancellable, |
| 2653 | GError **error); |
| 2654 | |
Adriana Kobylak | 2cb2775 | 2015-10-19 16:23:14 -0500 | [diff] [blame] | 2655 | void watchdog_call_set ( |
| 2656 | Watchdog *proxy, |
| 2657 | gint arg_interval, |
| 2658 | GCancellable *cancellable, |
| 2659 | GAsyncReadyCallback callback, |
| 2660 | gpointer user_data); |
| 2661 | |
| 2662 | gboolean watchdog_call_set_finish ( |
| 2663 | Watchdog *proxy, |
| 2664 | GAsyncResult *res, |
| 2665 | GError **error); |
| 2666 | |
| 2667 | gboolean watchdog_call_set_sync ( |
| 2668 | Watchdog *proxy, |
| 2669 | gint arg_interval, |
| 2670 | GCancellable *cancellable, |
| 2671 | GError **error); |
| 2672 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2673 | |
| 2674 | |
| 2675 | /* D-Bus property accessors: */ |
| 2676 | gint watchdog_get_watchdog (Watchdog *object); |
| 2677 | void watchdog_set_watchdog (Watchdog *object, gint value); |
| 2678 | |
| 2679 | gint watchdog_get_poll_interval (Watchdog *object); |
| 2680 | void watchdog_set_poll_interval (Watchdog *object, gint value); |
| 2681 | |
| 2682 | |
| 2683 | /* ---- */ |
| 2684 | |
| 2685 | #define TYPE_WATCHDOG_PROXY (watchdog_proxy_get_type ()) |
| 2686 | #define WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_PROXY, WatchdogProxy)) |
| 2687 | #define WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_PROXY, WatchdogProxyClass)) |
| 2688 | #define WATCHDOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_PROXY, WatchdogProxyClass)) |
| 2689 | #define IS_WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_PROXY)) |
| 2690 | #define IS_WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_PROXY)) |
| 2691 | |
| 2692 | typedef struct _WatchdogProxy WatchdogProxy; |
| 2693 | typedef struct _WatchdogProxyClass WatchdogProxyClass; |
| 2694 | typedef struct _WatchdogProxyPrivate WatchdogProxyPrivate; |
| 2695 | |
| 2696 | struct _WatchdogProxy |
| 2697 | { |
| 2698 | /*< private >*/ |
| 2699 | GDBusProxy parent_instance; |
| 2700 | WatchdogProxyPrivate *priv; |
| 2701 | }; |
| 2702 | |
| 2703 | struct _WatchdogProxyClass |
| 2704 | { |
| 2705 | GDBusProxyClass parent_class; |
| 2706 | }; |
| 2707 | |
| 2708 | GType watchdog_proxy_get_type (void) G_GNUC_CONST; |
| 2709 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 2710 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 2711 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (WatchdogProxy, g_object_unref) |
| 2712 | #endif |
| 2713 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2714 | void watchdog_proxy_new ( |
| 2715 | GDBusConnection *connection, |
| 2716 | GDBusProxyFlags flags, |
| 2717 | const gchar *name, |
| 2718 | const gchar *object_path, |
| 2719 | GCancellable *cancellable, |
| 2720 | GAsyncReadyCallback callback, |
| 2721 | gpointer user_data); |
| 2722 | Watchdog *watchdog_proxy_new_finish ( |
| 2723 | GAsyncResult *res, |
| 2724 | GError **error); |
| 2725 | Watchdog *watchdog_proxy_new_sync ( |
| 2726 | GDBusConnection *connection, |
| 2727 | GDBusProxyFlags flags, |
| 2728 | const gchar *name, |
| 2729 | const gchar *object_path, |
| 2730 | GCancellable *cancellable, |
| 2731 | GError **error); |
| 2732 | |
| 2733 | void watchdog_proxy_new_for_bus ( |
| 2734 | GBusType bus_type, |
| 2735 | GDBusProxyFlags flags, |
| 2736 | const gchar *name, |
| 2737 | const gchar *object_path, |
| 2738 | GCancellable *cancellable, |
| 2739 | GAsyncReadyCallback callback, |
| 2740 | gpointer user_data); |
| 2741 | Watchdog *watchdog_proxy_new_for_bus_finish ( |
| 2742 | GAsyncResult *res, |
| 2743 | GError **error); |
| 2744 | Watchdog *watchdog_proxy_new_for_bus_sync ( |
| 2745 | GBusType bus_type, |
| 2746 | GDBusProxyFlags flags, |
| 2747 | const gchar *name, |
| 2748 | const gchar *object_path, |
| 2749 | GCancellable *cancellable, |
| 2750 | GError **error); |
| 2751 | |
| 2752 | |
| 2753 | /* ---- */ |
| 2754 | |
| 2755 | #define TYPE_WATCHDOG_SKELETON (watchdog_skeleton_get_type ()) |
| 2756 | #define WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeleton)) |
| 2757 | #define WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass)) |
| 2758 | #define WATCHDOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass)) |
| 2759 | #define IS_WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_SKELETON)) |
| 2760 | #define IS_WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_SKELETON)) |
| 2761 | |
| 2762 | typedef struct _WatchdogSkeleton WatchdogSkeleton; |
| 2763 | typedef struct _WatchdogSkeletonClass WatchdogSkeletonClass; |
| 2764 | typedef struct _WatchdogSkeletonPrivate WatchdogSkeletonPrivate; |
| 2765 | |
| 2766 | struct _WatchdogSkeleton |
| 2767 | { |
| 2768 | /*< private >*/ |
| 2769 | GDBusInterfaceSkeleton parent_instance; |
| 2770 | WatchdogSkeletonPrivate *priv; |
| 2771 | }; |
| 2772 | |
| 2773 | struct _WatchdogSkeletonClass |
| 2774 | { |
| 2775 | GDBusInterfaceSkeletonClass parent_class; |
| 2776 | }; |
| 2777 | |
| 2778 | GType watchdog_skeleton_get_type (void) G_GNUC_CONST; |
| 2779 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 2780 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 2781 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (WatchdogSkeleton, g_object_unref) |
| 2782 | #endif |
| 2783 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2784 | Watchdog *watchdog_skeleton_new (void); |
| 2785 | |
| 2786 | |
| 2787 | /* ------------------------------------------------------------------------ */ |
| 2788 | /* Declarations for org.openbmc.EventLog */ |
| 2789 | |
| 2790 | #define TYPE_EVENT_LOG (event_log_get_type ()) |
| 2791 | #define EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG, EventLog)) |
| 2792 | #define IS_EVENT_LOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG)) |
| 2793 | #define EVENT_LOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_EVENT_LOG, EventLogIface)) |
| 2794 | |
| 2795 | struct _EventLog; |
| 2796 | typedef struct _EventLog EventLog; |
| 2797 | typedef struct _EventLogIface EventLogIface; |
| 2798 | |
| 2799 | struct _EventLogIface |
| 2800 | { |
| 2801 | GTypeInterface parent_iface; |
| 2802 | |
Norman James | 2d1ee89 | 2015-09-16 23:13:45 -0500 | [diff] [blame] | 2803 | |
| 2804 | gboolean (*handle_get_event_log) ( |
| 2805 | EventLog *object, |
| 2806 | GDBusMethodInvocation *invocation); |
| 2807 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2808 | void (*event_log) ( |
| 2809 | EventLog *object, |
Norman James | 8abb50c | 2015-09-16 10:58:16 -0500 | [diff] [blame] | 2810 | gint arg_priority, |
Norman James | 8887267 | 2015-09-21 16:51:35 -0500 | [diff] [blame] | 2811 | const gchar *arg_message, |
| 2812 | gint arg_rc); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2813 | |
| 2814 | }; |
| 2815 | |
| 2816 | GType event_log_get_type (void) G_GNUC_CONST; |
| 2817 | |
| 2818 | GDBusInterfaceInfo *event_log_interface_info (void); |
| 2819 | guint event_log_override_properties (GObjectClass *klass, guint property_id_begin); |
| 2820 | |
| 2821 | |
Norman James | 2d1ee89 | 2015-09-16 23:13:45 -0500 | [diff] [blame] | 2822 | /* D-Bus method call completion functions: */ |
| 2823 | void event_log_complete_get_event_log ( |
| 2824 | EventLog *object, |
| 2825 | GDBusMethodInvocation *invocation, |
| 2826 | GVariant *log); |
| 2827 | |
| 2828 | |
| 2829 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2830 | /* D-Bus signal emissions functions: */ |
| 2831 | void event_log_emit_event_log ( |
| 2832 | EventLog *object, |
Norman James | 8abb50c | 2015-09-16 10:58:16 -0500 | [diff] [blame] | 2833 | gint arg_priority, |
Norman James | 8887267 | 2015-09-21 16:51:35 -0500 | [diff] [blame] | 2834 | const gchar *arg_message, |
| 2835 | gint arg_rc); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2836 | |
| 2837 | |
| 2838 | |
Norman James | 2d1ee89 | 2015-09-16 23:13:45 -0500 | [diff] [blame] | 2839 | /* D-Bus method calls: */ |
| 2840 | void event_log_call_get_event_log ( |
| 2841 | EventLog *proxy, |
| 2842 | GCancellable *cancellable, |
| 2843 | GAsyncReadyCallback callback, |
| 2844 | gpointer user_data); |
| 2845 | |
| 2846 | gboolean event_log_call_get_event_log_finish ( |
| 2847 | EventLog *proxy, |
| 2848 | GVariant **out_log, |
| 2849 | GAsyncResult *res, |
| 2850 | GError **error); |
| 2851 | |
| 2852 | gboolean event_log_call_get_event_log_sync ( |
| 2853 | EventLog *proxy, |
| 2854 | GVariant **out_log, |
| 2855 | GCancellable *cancellable, |
| 2856 | GError **error); |
| 2857 | |
| 2858 | |
| 2859 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2860 | /* ---- */ |
| 2861 | |
| 2862 | #define TYPE_EVENT_LOG_PROXY (event_log_proxy_get_type ()) |
| 2863 | #define EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_PROXY, EventLogProxy)) |
| 2864 | #define EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) |
| 2865 | #define EVENT_LOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_PROXY, EventLogProxyClass)) |
| 2866 | #define IS_EVENT_LOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_PROXY)) |
| 2867 | #define IS_EVENT_LOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_PROXY)) |
| 2868 | |
| 2869 | typedef struct _EventLogProxy EventLogProxy; |
| 2870 | typedef struct _EventLogProxyClass EventLogProxyClass; |
| 2871 | typedef struct _EventLogProxyPrivate EventLogProxyPrivate; |
| 2872 | |
| 2873 | struct _EventLogProxy |
| 2874 | { |
| 2875 | /*< private >*/ |
| 2876 | GDBusProxy parent_instance; |
| 2877 | EventLogProxyPrivate *priv; |
| 2878 | }; |
| 2879 | |
| 2880 | struct _EventLogProxyClass |
| 2881 | { |
| 2882 | GDBusProxyClass parent_class; |
| 2883 | }; |
| 2884 | |
| 2885 | GType event_log_proxy_get_type (void) G_GNUC_CONST; |
| 2886 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 2887 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 2888 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (EventLogProxy, g_object_unref) |
| 2889 | #endif |
| 2890 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2891 | void event_log_proxy_new ( |
| 2892 | GDBusConnection *connection, |
| 2893 | GDBusProxyFlags flags, |
| 2894 | const gchar *name, |
| 2895 | const gchar *object_path, |
| 2896 | GCancellable *cancellable, |
| 2897 | GAsyncReadyCallback callback, |
| 2898 | gpointer user_data); |
| 2899 | EventLog *event_log_proxy_new_finish ( |
| 2900 | GAsyncResult *res, |
| 2901 | GError **error); |
| 2902 | EventLog *event_log_proxy_new_sync ( |
| 2903 | GDBusConnection *connection, |
| 2904 | GDBusProxyFlags flags, |
| 2905 | const gchar *name, |
| 2906 | const gchar *object_path, |
| 2907 | GCancellable *cancellable, |
| 2908 | GError **error); |
| 2909 | |
| 2910 | void event_log_proxy_new_for_bus ( |
| 2911 | GBusType bus_type, |
| 2912 | GDBusProxyFlags flags, |
| 2913 | const gchar *name, |
| 2914 | const gchar *object_path, |
| 2915 | GCancellable *cancellable, |
| 2916 | GAsyncReadyCallback callback, |
| 2917 | gpointer user_data); |
| 2918 | EventLog *event_log_proxy_new_for_bus_finish ( |
| 2919 | GAsyncResult *res, |
| 2920 | GError **error); |
| 2921 | EventLog *event_log_proxy_new_for_bus_sync ( |
| 2922 | GBusType bus_type, |
| 2923 | GDBusProxyFlags flags, |
| 2924 | const gchar *name, |
| 2925 | const gchar *object_path, |
| 2926 | GCancellable *cancellable, |
| 2927 | GError **error); |
| 2928 | |
| 2929 | |
| 2930 | /* ---- */ |
| 2931 | |
| 2932 | #define TYPE_EVENT_LOG_SKELETON (event_log_skeleton_get_type ()) |
| 2933 | #define EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeleton)) |
| 2934 | #define EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) |
| 2935 | #define EVENT_LOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_EVENT_LOG_SKELETON, EventLogSkeletonClass)) |
| 2936 | #define IS_EVENT_LOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_EVENT_LOG_SKELETON)) |
| 2937 | #define IS_EVENT_LOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_EVENT_LOG_SKELETON)) |
| 2938 | |
| 2939 | typedef struct _EventLogSkeleton EventLogSkeleton; |
| 2940 | typedef struct _EventLogSkeletonClass EventLogSkeletonClass; |
| 2941 | typedef struct _EventLogSkeletonPrivate EventLogSkeletonPrivate; |
| 2942 | |
| 2943 | struct _EventLogSkeleton |
| 2944 | { |
| 2945 | /*< private >*/ |
| 2946 | GDBusInterfaceSkeleton parent_instance; |
| 2947 | EventLogSkeletonPrivate *priv; |
| 2948 | }; |
| 2949 | |
| 2950 | struct _EventLogSkeletonClass |
| 2951 | { |
| 2952 | GDBusInterfaceSkeletonClass parent_class; |
| 2953 | }; |
| 2954 | |
| 2955 | GType event_log_skeleton_get_type (void) G_GNUC_CONST; |
| 2956 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 2957 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 2958 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (EventLogSkeleton, g_object_unref) |
| 2959 | #endif |
| 2960 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2961 | EventLog *event_log_skeleton_new (void); |
| 2962 | |
| 2963 | |
| 2964 | /* ------------------------------------------------------------------------ */ |
| 2965 | /* Declarations for org.openbmc.Flash */ |
| 2966 | |
| 2967 | #define TYPE_FLASH (flash_get_type ()) |
| 2968 | #define FLASH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH, Flash)) |
| 2969 | #define IS_FLASH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH)) |
| 2970 | #define FLASH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH, FlashIface)) |
| 2971 | |
| 2972 | struct _Flash; |
| 2973 | typedef struct _Flash Flash; |
| 2974 | typedef struct _FlashIface FlashIface; |
| 2975 | |
| 2976 | struct _FlashIface |
| 2977 | { |
| 2978 | GTypeInterface parent_iface; |
| 2979 | |
| 2980 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 2981 | |
Norman James | 166acf4 | 2015-10-22 07:11:51 -0500 | [diff] [blame] | 2982 | gboolean (*handle_done) ( |
| 2983 | Flash *object, |
| 2984 | GDBusMethodInvocation *invocation); |
| 2985 | |
| 2986 | gboolean (*handle_error) ( |
| 2987 | Flash *object, |
| 2988 | GDBusMethodInvocation *invocation, |
| 2989 | const gchar *arg_message); |
| 2990 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2991 | gboolean (*handle_init) ( |
| 2992 | Flash *object, |
| 2993 | GDBusMethodInvocation *invocation); |
| 2994 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 2995 | gboolean (*handle_update) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2996 | Flash *object, |
| 2997 | GDBusMethodInvocation *invocation, |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 2998 | const gchar *arg_filename); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 2999 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 3000 | gboolean (*handle_update_via_tftp) ( |
| 3001 | Flash *object, |
| 3002 | GDBusMethodInvocation *invocation, |
| 3003 | const gchar *arg_url, |
| 3004 | const gchar *arg_filename); |
| 3005 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 3006 | const gchar * (*get_filename) (Flash *object); |
| 3007 | |
| 3008 | const gchar * (*get_flasher_instance) (Flash *object); |
| 3009 | |
| 3010 | const gchar * (*get_flasher_name) (Flash *object); |
| 3011 | |
| 3012 | const gchar * (*get_flasher_path) (Flash *object); |
| 3013 | |
Norman James | 166acf4 | 2015-10-22 07:11:51 -0500 | [diff] [blame] | 3014 | const gchar * (*get_status) (Flash *object); |
| 3015 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 3016 | void (*download) ( |
| 3017 | Flash *object, |
| 3018 | const gchar *arg_url, |
| 3019 | const gchar *arg_filename); |
| 3020 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3021 | void (*updated) ( |
| 3022 | Flash *object); |
| 3023 | |
| 3024 | }; |
| 3025 | |
| 3026 | GType flash_get_type (void) G_GNUC_CONST; |
| 3027 | |
| 3028 | GDBusInterfaceInfo *flash_interface_info (void); |
| 3029 | guint flash_override_properties (GObjectClass *klass, guint property_id_begin); |
| 3030 | |
| 3031 | |
| 3032 | /* D-Bus method call completion functions: */ |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3033 | void flash_complete_update ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3034 | Flash *object, |
| 3035 | GDBusMethodInvocation *invocation); |
| 3036 | |
Norman James | 166acf4 | 2015-10-22 07:11:51 -0500 | [diff] [blame] | 3037 | void flash_complete_error ( |
| 3038 | Flash *object, |
| 3039 | GDBusMethodInvocation *invocation); |
| 3040 | |
| 3041 | void flash_complete_done ( |
| 3042 | Flash *object, |
| 3043 | GDBusMethodInvocation *invocation); |
| 3044 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 3045 | void flash_complete_update_via_tftp ( |
| 3046 | Flash *object, |
| 3047 | GDBusMethodInvocation *invocation); |
| 3048 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3049 | void flash_complete_init ( |
| 3050 | Flash *object, |
| 3051 | GDBusMethodInvocation *invocation); |
| 3052 | |
| 3053 | |
| 3054 | |
| 3055 | /* D-Bus signal emissions functions: */ |
| 3056 | void flash_emit_updated ( |
| 3057 | Flash *object); |
| 3058 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 3059 | void flash_emit_download ( |
| 3060 | Flash *object, |
| 3061 | const gchar *arg_url, |
| 3062 | const gchar *arg_filename); |
| 3063 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3064 | |
| 3065 | |
| 3066 | /* D-Bus method calls: */ |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3067 | void flash_call_update ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3068 | Flash *proxy, |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3069 | const gchar *arg_filename, |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3070 | GCancellable *cancellable, |
| 3071 | GAsyncReadyCallback callback, |
| 3072 | gpointer user_data); |
| 3073 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3074 | gboolean flash_call_update_finish ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3075 | Flash *proxy, |
| 3076 | GAsyncResult *res, |
| 3077 | GError **error); |
| 3078 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3079 | gboolean flash_call_update_sync ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3080 | Flash *proxy, |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3081 | const gchar *arg_filename, |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3082 | GCancellable *cancellable, |
| 3083 | GError **error); |
| 3084 | |
Norman James | 166acf4 | 2015-10-22 07:11:51 -0500 | [diff] [blame] | 3085 | void flash_call_error ( |
| 3086 | Flash *proxy, |
| 3087 | const gchar *arg_message, |
| 3088 | GCancellable *cancellable, |
| 3089 | GAsyncReadyCallback callback, |
| 3090 | gpointer user_data); |
| 3091 | |
| 3092 | gboolean flash_call_error_finish ( |
| 3093 | Flash *proxy, |
| 3094 | GAsyncResult *res, |
| 3095 | GError **error); |
| 3096 | |
| 3097 | gboolean flash_call_error_sync ( |
| 3098 | Flash *proxy, |
| 3099 | const gchar *arg_message, |
| 3100 | GCancellable *cancellable, |
| 3101 | GError **error); |
| 3102 | |
| 3103 | void flash_call_done ( |
| 3104 | Flash *proxy, |
| 3105 | GCancellable *cancellable, |
| 3106 | GAsyncReadyCallback callback, |
| 3107 | gpointer user_data); |
| 3108 | |
| 3109 | gboolean flash_call_done_finish ( |
| 3110 | Flash *proxy, |
| 3111 | GAsyncResult *res, |
| 3112 | GError **error); |
| 3113 | |
| 3114 | gboolean flash_call_done_sync ( |
| 3115 | Flash *proxy, |
| 3116 | GCancellable *cancellable, |
| 3117 | GError **error); |
| 3118 | |
Norman James | f066e87 | 2015-10-07 15:29:51 -0500 | [diff] [blame] | 3119 | void flash_call_update_via_tftp ( |
| 3120 | Flash *proxy, |
| 3121 | const gchar *arg_url, |
| 3122 | const gchar *arg_filename, |
| 3123 | GCancellable *cancellable, |
| 3124 | GAsyncReadyCallback callback, |
| 3125 | gpointer user_data); |
| 3126 | |
| 3127 | gboolean flash_call_update_via_tftp_finish ( |
| 3128 | Flash *proxy, |
| 3129 | GAsyncResult *res, |
| 3130 | GError **error); |
| 3131 | |
| 3132 | gboolean flash_call_update_via_tftp_sync ( |
| 3133 | Flash *proxy, |
| 3134 | const gchar *arg_url, |
| 3135 | const gchar *arg_filename, |
| 3136 | GCancellable *cancellable, |
| 3137 | GError **error); |
| 3138 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3139 | void flash_call_init ( |
| 3140 | Flash *proxy, |
| 3141 | GCancellable *cancellable, |
| 3142 | GAsyncReadyCallback callback, |
| 3143 | gpointer user_data); |
| 3144 | |
| 3145 | gboolean flash_call_init_finish ( |
| 3146 | Flash *proxy, |
| 3147 | GAsyncResult *res, |
| 3148 | GError **error); |
| 3149 | |
| 3150 | gboolean flash_call_init_sync ( |
| 3151 | Flash *proxy, |
| 3152 | GCancellable *cancellable, |
| 3153 | GError **error); |
| 3154 | |
| 3155 | |
| 3156 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 3157 | /* D-Bus property accessors: */ |
| 3158 | const gchar *flash_get_filename (Flash *object); |
| 3159 | gchar *flash_dup_filename (Flash *object); |
| 3160 | void flash_set_filename (Flash *object, const gchar *value); |
| 3161 | |
| 3162 | const gchar *flash_get_flasher_path (Flash *object); |
| 3163 | gchar *flash_dup_flasher_path (Flash *object); |
| 3164 | void flash_set_flasher_path (Flash *object, const gchar *value); |
| 3165 | |
| 3166 | const gchar *flash_get_flasher_name (Flash *object); |
| 3167 | gchar *flash_dup_flasher_name (Flash *object); |
| 3168 | void flash_set_flasher_name (Flash *object, const gchar *value); |
| 3169 | |
| 3170 | const gchar *flash_get_flasher_instance (Flash *object); |
| 3171 | gchar *flash_dup_flasher_instance (Flash *object); |
| 3172 | void flash_set_flasher_instance (Flash *object, const gchar *value); |
| 3173 | |
Norman James | 166acf4 | 2015-10-22 07:11:51 -0500 | [diff] [blame] | 3174 | const gchar *flash_get_status (Flash *object); |
| 3175 | gchar *flash_dup_status (Flash *object); |
| 3176 | void flash_set_status (Flash *object, const gchar *value); |
| 3177 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 3178 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3179 | /* ---- */ |
| 3180 | |
| 3181 | #define TYPE_FLASH_PROXY (flash_proxy_get_type ()) |
| 3182 | #define FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_PROXY, FlashProxy)) |
| 3183 | #define FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_PROXY, FlashProxyClass)) |
| 3184 | #define FLASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_PROXY, FlashProxyClass)) |
| 3185 | #define IS_FLASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_PROXY)) |
| 3186 | #define IS_FLASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_PROXY)) |
| 3187 | |
| 3188 | typedef struct _FlashProxy FlashProxy; |
| 3189 | typedef struct _FlashProxyClass FlashProxyClass; |
| 3190 | typedef struct _FlashProxyPrivate FlashProxyPrivate; |
| 3191 | |
| 3192 | struct _FlashProxy |
| 3193 | { |
| 3194 | /*< private >*/ |
| 3195 | GDBusProxy parent_instance; |
| 3196 | FlashProxyPrivate *priv; |
| 3197 | }; |
| 3198 | |
| 3199 | struct _FlashProxyClass |
| 3200 | { |
| 3201 | GDBusProxyClass parent_class; |
| 3202 | }; |
| 3203 | |
| 3204 | GType flash_proxy_get_type (void) G_GNUC_CONST; |
| 3205 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 3206 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 3207 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (FlashProxy, g_object_unref) |
| 3208 | #endif |
| 3209 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3210 | void flash_proxy_new ( |
| 3211 | GDBusConnection *connection, |
| 3212 | GDBusProxyFlags flags, |
| 3213 | const gchar *name, |
| 3214 | const gchar *object_path, |
| 3215 | GCancellable *cancellable, |
| 3216 | GAsyncReadyCallback callback, |
| 3217 | gpointer user_data); |
| 3218 | Flash *flash_proxy_new_finish ( |
| 3219 | GAsyncResult *res, |
| 3220 | GError **error); |
| 3221 | Flash *flash_proxy_new_sync ( |
| 3222 | GDBusConnection *connection, |
| 3223 | GDBusProxyFlags flags, |
| 3224 | const gchar *name, |
| 3225 | const gchar *object_path, |
| 3226 | GCancellable *cancellable, |
| 3227 | GError **error); |
| 3228 | |
| 3229 | void flash_proxy_new_for_bus ( |
| 3230 | GBusType bus_type, |
| 3231 | GDBusProxyFlags flags, |
| 3232 | const gchar *name, |
| 3233 | const gchar *object_path, |
| 3234 | GCancellable *cancellable, |
| 3235 | GAsyncReadyCallback callback, |
| 3236 | gpointer user_data); |
| 3237 | Flash *flash_proxy_new_for_bus_finish ( |
| 3238 | GAsyncResult *res, |
| 3239 | GError **error); |
| 3240 | Flash *flash_proxy_new_for_bus_sync ( |
| 3241 | GBusType bus_type, |
| 3242 | GDBusProxyFlags flags, |
| 3243 | const gchar *name, |
| 3244 | const gchar *object_path, |
| 3245 | GCancellable *cancellable, |
| 3246 | GError **error); |
| 3247 | |
| 3248 | |
| 3249 | /* ---- */ |
| 3250 | |
| 3251 | #define TYPE_FLASH_SKELETON (flash_skeleton_get_type ()) |
| 3252 | #define FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_SKELETON, FlashSkeleton)) |
| 3253 | #define FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_SKELETON, FlashSkeletonClass)) |
| 3254 | #define FLASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_SKELETON, FlashSkeletonClass)) |
| 3255 | #define IS_FLASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_SKELETON)) |
| 3256 | #define IS_FLASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_SKELETON)) |
| 3257 | |
| 3258 | typedef struct _FlashSkeleton FlashSkeleton; |
| 3259 | typedef struct _FlashSkeletonClass FlashSkeletonClass; |
| 3260 | typedef struct _FlashSkeletonPrivate FlashSkeletonPrivate; |
| 3261 | |
| 3262 | struct _FlashSkeleton |
| 3263 | { |
| 3264 | /*< private >*/ |
| 3265 | GDBusInterfaceSkeleton parent_instance; |
| 3266 | FlashSkeletonPrivate *priv; |
| 3267 | }; |
| 3268 | |
| 3269 | struct _FlashSkeletonClass |
| 3270 | { |
| 3271 | GDBusInterfaceSkeletonClass parent_class; |
| 3272 | }; |
| 3273 | |
| 3274 | GType flash_skeleton_get_type (void) G_GNUC_CONST; |
| 3275 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 3276 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 3277 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (FlashSkeleton, g_object_unref) |
| 3278 | #endif |
| 3279 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3280 | Flash *flash_skeleton_new (void); |
| 3281 | |
| 3282 | |
| 3283 | /* ------------------------------------------------------------------------ */ |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 3284 | /* Declarations for org.openbmc.FlashControl */ |
| 3285 | |
| 3286 | #define TYPE_FLASH_CONTROL (flash_control_get_type ()) |
| 3287 | #define FLASH_CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL, FlashControl)) |
| 3288 | #define IS_FLASH_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL)) |
| 3289 | #define FLASH_CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FLASH_CONTROL, FlashControlIface)) |
| 3290 | |
| 3291 | struct _FlashControl; |
| 3292 | typedef struct _FlashControl FlashControl; |
| 3293 | typedef struct _FlashControlIface FlashControlIface; |
| 3294 | |
| 3295 | struct _FlashControlIface |
| 3296 | { |
| 3297 | GTypeInterface parent_iface; |
| 3298 | |
| 3299 | |
| 3300 | |
| 3301 | gboolean (*handle_flash) ( |
| 3302 | FlashControl *object, |
| 3303 | GDBusMethodInvocation *invocation, |
| 3304 | const gchar *arg_type, |
| 3305 | const gchar *arg_filename); |
| 3306 | |
| 3307 | const gchar * (*get_filename) (FlashControl *object); |
| 3308 | |
| 3309 | const gchar * (*get_type_) (FlashControl *object); |
| 3310 | |
| 3311 | void (*done) ( |
| 3312 | FlashControl *object, |
| 3313 | const gchar *arg_filename); |
| 3314 | |
| 3315 | void (*error) ( |
| 3316 | FlashControl *object, |
| 3317 | const gchar *arg_filename); |
| 3318 | |
| 3319 | void (*progress) ( |
| 3320 | FlashControl *object, |
| 3321 | const gchar *arg_filename, |
| 3322 | guchar arg_progress); |
| 3323 | |
| 3324 | }; |
| 3325 | |
| 3326 | GType flash_control_get_type (void) G_GNUC_CONST; |
| 3327 | |
| 3328 | GDBusInterfaceInfo *flash_control_interface_info (void); |
| 3329 | guint flash_control_override_properties (GObjectClass *klass, guint property_id_begin); |
| 3330 | |
| 3331 | |
| 3332 | /* D-Bus method call completion functions: */ |
| 3333 | void flash_control_complete_flash ( |
| 3334 | FlashControl *object, |
| 3335 | GDBusMethodInvocation *invocation); |
| 3336 | |
| 3337 | |
| 3338 | |
| 3339 | /* D-Bus signal emissions functions: */ |
| 3340 | void flash_control_emit_done ( |
| 3341 | FlashControl *object, |
| 3342 | const gchar *arg_filename); |
| 3343 | |
| 3344 | void flash_control_emit_error ( |
| 3345 | FlashControl *object, |
| 3346 | const gchar *arg_filename); |
| 3347 | |
| 3348 | void flash_control_emit_progress ( |
| 3349 | FlashControl *object, |
| 3350 | const gchar *arg_filename, |
| 3351 | guchar arg_progress); |
| 3352 | |
| 3353 | |
| 3354 | |
| 3355 | /* D-Bus method calls: */ |
| 3356 | void flash_control_call_flash ( |
| 3357 | FlashControl *proxy, |
| 3358 | const gchar *arg_type, |
| 3359 | const gchar *arg_filename, |
| 3360 | GCancellable *cancellable, |
| 3361 | GAsyncReadyCallback callback, |
| 3362 | gpointer user_data); |
| 3363 | |
| 3364 | gboolean flash_control_call_flash_finish ( |
| 3365 | FlashControl *proxy, |
| 3366 | GAsyncResult *res, |
| 3367 | GError **error); |
| 3368 | |
| 3369 | gboolean flash_control_call_flash_sync ( |
| 3370 | FlashControl *proxy, |
| 3371 | const gchar *arg_type, |
| 3372 | const gchar *arg_filename, |
| 3373 | GCancellable *cancellable, |
| 3374 | GError **error); |
| 3375 | |
| 3376 | |
| 3377 | |
| 3378 | /* D-Bus property accessors: */ |
| 3379 | const gchar *flash_control_get_filename (FlashControl *object); |
| 3380 | gchar *flash_control_dup_filename (FlashControl *object); |
| 3381 | void flash_control_set_filename (FlashControl *object, const gchar *value); |
| 3382 | |
| 3383 | const gchar *flash_control_get_type_ (FlashControl *object); |
| 3384 | gchar *flash_control_dup_type_ (FlashControl *object); |
| 3385 | void flash_control_set_type_ (FlashControl *object, const gchar *value); |
| 3386 | |
| 3387 | |
| 3388 | /* ---- */ |
| 3389 | |
| 3390 | #define TYPE_FLASH_CONTROL_PROXY (flash_control_proxy_get_type ()) |
| 3391 | #define FLASH_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL_PROXY, FlashControlProxy)) |
| 3392 | #define FLASH_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_CONTROL_PROXY, FlashControlProxyClass)) |
| 3393 | #define FLASH_CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_CONTROL_PROXY, FlashControlProxyClass)) |
| 3394 | #define IS_FLASH_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL_PROXY)) |
| 3395 | #define IS_FLASH_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_CONTROL_PROXY)) |
| 3396 | |
| 3397 | typedef struct _FlashControlProxy FlashControlProxy; |
| 3398 | typedef struct _FlashControlProxyClass FlashControlProxyClass; |
| 3399 | typedef struct _FlashControlProxyPrivate FlashControlProxyPrivate; |
| 3400 | |
| 3401 | struct _FlashControlProxy |
| 3402 | { |
| 3403 | /*< private >*/ |
| 3404 | GDBusProxy parent_instance; |
| 3405 | FlashControlProxyPrivate *priv; |
| 3406 | }; |
| 3407 | |
| 3408 | struct _FlashControlProxyClass |
| 3409 | { |
| 3410 | GDBusProxyClass parent_class; |
| 3411 | }; |
| 3412 | |
| 3413 | GType flash_control_proxy_get_type (void) G_GNUC_CONST; |
| 3414 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 3415 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 3416 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (FlashControlProxy, g_object_unref) |
| 3417 | #endif |
| 3418 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 3419 | void flash_control_proxy_new ( |
| 3420 | GDBusConnection *connection, |
| 3421 | GDBusProxyFlags flags, |
| 3422 | const gchar *name, |
| 3423 | const gchar *object_path, |
| 3424 | GCancellable *cancellable, |
| 3425 | GAsyncReadyCallback callback, |
| 3426 | gpointer user_data); |
| 3427 | FlashControl *flash_control_proxy_new_finish ( |
| 3428 | GAsyncResult *res, |
| 3429 | GError **error); |
| 3430 | FlashControl *flash_control_proxy_new_sync ( |
| 3431 | GDBusConnection *connection, |
| 3432 | GDBusProxyFlags flags, |
| 3433 | const gchar *name, |
| 3434 | const gchar *object_path, |
| 3435 | GCancellable *cancellable, |
| 3436 | GError **error); |
| 3437 | |
| 3438 | void flash_control_proxy_new_for_bus ( |
| 3439 | GBusType bus_type, |
| 3440 | GDBusProxyFlags flags, |
| 3441 | const gchar *name, |
| 3442 | const gchar *object_path, |
| 3443 | GCancellable *cancellable, |
| 3444 | GAsyncReadyCallback callback, |
| 3445 | gpointer user_data); |
| 3446 | FlashControl *flash_control_proxy_new_for_bus_finish ( |
| 3447 | GAsyncResult *res, |
| 3448 | GError **error); |
| 3449 | FlashControl *flash_control_proxy_new_for_bus_sync ( |
| 3450 | GBusType bus_type, |
| 3451 | GDBusProxyFlags flags, |
| 3452 | const gchar *name, |
| 3453 | const gchar *object_path, |
| 3454 | GCancellable *cancellable, |
| 3455 | GError **error); |
| 3456 | |
| 3457 | |
| 3458 | /* ---- */ |
| 3459 | |
| 3460 | #define TYPE_FLASH_CONTROL_SKELETON (flash_control_skeleton_get_type ()) |
| 3461 | #define FLASH_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeleton)) |
| 3462 | #define FLASH_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeletonClass)) |
| 3463 | #define FLASH_CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FLASH_CONTROL_SKELETON, FlashControlSkeletonClass)) |
| 3464 | #define IS_FLASH_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FLASH_CONTROL_SKELETON)) |
| 3465 | #define IS_FLASH_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FLASH_CONTROL_SKELETON)) |
| 3466 | |
| 3467 | typedef struct _FlashControlSkeleton FlashControlSkeleton; |
| 3468 | typedef struct _FlashControlSkeletonClass FlashControlSkeletonClass; |
| 3469 | typedef struct _FlashControlSkeletonPrivate FlashControlSkeletonPrivate; |
| 3470 | |
| 3471 | struct _FlashControlSkeleton |
| 3472 | { |
| 3473 | /*< private >*/ |
| 3474 | GDBusInterfaceSkeleton parent_instance; |
| 3475 | FlashControlSkeletonPrivate *priv; |
| 3476 | }; |
| 3477 | |
| 3478 | struct _FlashControlSkeletonClass |
| 3479 | { |
| 3480 | GDBusInterfaceSkeletonClass parent_class; |
| 3481 | }; |
| 3482 | |
| 3483 | GType flash_control_skeleton_get_type (void) G_GNUC_CONST; |
| 3484 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 3485 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 3486 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (FlashControlSkeleton, g_object_unref) |
| 3487 | #endif |
| 3488 | |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 3489 | FlashControl *flash_control_skeleton_new (void); |
| 3490 | |
| 3491 | |
| 3492 | /* ------------------------------------------------------------------------ */ |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3493 | /* Declarations for org.openbmc.Button */ |
| 3494 | |
| 3495 | #define TYPE_BUTTON (button_get_type ()) |
| 3496 | #define BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON, Button)) |
| 3497 | #define IS_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON)) |
| 3498 | #define BUTTON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_BUTTON, ButtonIface)) |
| 3499 | |
| 3500 | struct _Button; |
| 3501 | typedef struct _Button Button; |
| 3502 | typedef struct _ButtonIface ButtonIface; |
| 3503 | |
| 3504 | struct _ButtonIface |
| 3505 | { |
| 3506 | GTypeInterface parent_iface; |
| 3507 | |
| 3508 | |
| 3509 | |
| 3510 | gboolean (*handle_is_on) ( |
| 3511 | Button *object, |
| 3512 | GDBusMethodInvocation *invocation); |
| 3513 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3514 | gboolean (*handle_sim_long_press) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3515 | Button *object, |
| 3516 | GDBusMethodInvocation *invocation); |
| 3517 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3518 | gboolean (*handle_sim_press) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3519 | Button *object, |
| 3520 | GDBusMethodInvocation *invocation); |
| 3521 | |
| 3522 | gboolean (*get_state) (Button *object); |
| 3523 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3524 | guint64 (*get_timer) (Button *object); |
| 3525 | |
| 3526 | void (*pressed) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3527 | Button *object); |
| 3528 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3529 | void (*pressed_long) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3530 | Button *object); |
| 3531 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3532 | void (*released) ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3533 | Button *object); |
| 3534 | |
| 3535 | }; |
| 3536 | |
| 3537 | GType button_get_type (void) G_GNUC_CONST; |
| 3538 | |
| 3539 | GDBusInterfaceInfo *button_interface_info (void); |
| 3540 | guint button_override_properties (GObjectClass *klass, guint property_id_begin); |
| 3541 | |
| 3542 | |
| 3543 | /* D-Bus method call completion functions: */ |
| 3544 | void button_complete_is_on ( |
| 3545 | Button *object, |
| 3546 | GDBusMethodInvocation *invocation, |
| 3547 | gboolean state); |
| 3548 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3549 | void button_complete_sim_press ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3550 | Button *object, |
| 3551 | GDBusMethodInvocation *invocation); |
| 3552 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3553 | void button_complete_sim_long_press ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3554 | Button *object, |
| 3555 | GDBusMethodInvocation *invocation); |
| 3556 | |
| 3557 | |
| 3558 | |
| 3559 | /* D-Bus signal emissions functions: */ |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3560 | void button_emit_released ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3561 | Button *object); |
| 3562 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3563 | void button_emit_pressed ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3564 | Button *object); |
| 3565 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3566 | void button_emit_pressed_long ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3567 | Button *object); |
| 3568 | |
| 3569 | |
| 3570 | |
| 3571 | /* D-Bus method calls: */ |
| 3572 | void button_call_is_on ( |
| 3573 | Button *proxy, |
| 3574 | GCancellable *cancellable, |
| 3575 | GAsyncReadyCallback callback, |
| 3576 | gpointer user_data); |
| 3577 | |
| 3578 | gboolean button_call_is_on_finish ( |
| 3579 | Button *proxy, |
| 3580 | gboolean *out_state, |
| 3581 | GAsyncResult *res, |
| 3582 | GError **error); |
| 3583 | |
| 3584 | gboolean button_call_is_on_sync ( |
| 3585 | Button *proxy, |
| 3586 | gboolean *out_state, |
| 3587 | GCancellable *cancellable, |
| 3588 | GError **error); |
| 3589 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3590 | void button_call_sim_press ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3591 | Button *proxy, |
| 3592 | GCancellable *cancellable, |
| 3593 | GAsyncReadyCallback callback, |
| 3594 | gpointer user_data); |
| 3595 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3596 | gboolean button_call_sim_press_finish ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3597 | Button *proxy, |
| 3598 | GAsyncResult *res, |
| 3599 | GError **error); |
| 3600 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3601 | gboolean button_call_sim_press_sync ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3602 | Button *proxy, |
| 3603 | GCancellable *cancellable, |
| 3604 | GError **error); |
| 3605 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3606 | void button_call_sim_long_press ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3607 | Button *proxy, |
| 3608 | GCancellable *cancellable, |
| 3609 | GAsyncReadyCallback callback, |
| 3610 | gpointer user_data); |
| 3611 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3612 | gboolean button_call_sim_long_press_finish ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3613 | Button *proxy, |
| 3614 | GAsyncResult *res, |
| 3615 | GError **error); |
| 3616 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3617 | gboolean button_call_sim_long_press_sync ( |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3618 | Button *proxy, |
| 3619 | GCancellable *cancellable, |
| 3620 | GError **error); |
| 3621 | |
| 3622 | |
| 3623 | |
| 3624 | /* D-Bus property accessors: */ |
| 3625 | gboolean button_get_state (Button *object); |
| 3626 | void button_set_state (Button *object, gboolean value); |
| 3627 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3628 | guint64 button_get_timer (Button *object); |
| 3629 | void button_set_timer (Button *object, guint64 value); |
| 3630 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3631 | |
| 3632 | /* ---- */ |
| 3633 | |
| 3634 | #define TYPE_BUTTON_PROXY (button_proxy_get_type ()) |
| 3635 | #define BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_PROXY, ButtonProxy)) |
| 3636 | #define BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_PROXY, ButtonProxyClass)) |
| 3637 | #define BUTTON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_PROXY, ButtonProxyClass)) |
| 3638 | #define IS_BUTTON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_PROXY)) |
| 3639 | #define IS_BUTTON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_PROXY)) |
| 3640 | |
| 3641 | typedef struct _ButtonProxy ButtonProxy; |
| 3642 | typedef struct _ButtonProxyClass ButtonProxyClass; |
| 3643 | typedef struct _ButtonProxyPrivate ButtonProxyPrivate; |
| 3644 | |
| 3645 | struct _ButtonProxy |
| 3646 | { |
| 3647 | /*< private >*/ |
| 3648 | GDBusProxy parent_instance; |
| 3649 | ButtonProxyPrivate *priv; |
| 3650 | }; |
| 3651 | |
| 3652 | struct _ButtonProxyClass |
| 3653 | { |
| 3654 | GDBusProxyClass parent_class; |
| 3655 | }; |
| 3656 | |
| 3657 | GType button_proxy_get_type (void) G_GNUC_CONST; |
| 3658 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 3659 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 3660 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ButtonProxy, g_object_unref) |
| 3661 | #endif |
| 3662 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3663 | void button_proxy_new ( |
| 3664 | GDBusConnection *connection, |
| 3665 | GDBusProxyFlags flags, |
| 3666 | const gchar *name, |
| 3667 | const gchar *object_path, |
| 3668 | GCancellable *cancellable, |
| 3669 | GAsyncReadyCallback callback, |
| 3670 | gpointer user_data); |
| 3671 | Button *button_proxy_new_finish ( |
| 3672 | GAsyncResult *res, |
| 3673 | GError **error); |
| 3674 | Button *button_proxy_new_sync ( |
| 3675 | GDBusConnection *connection, |
| 3676 | GDBusProxyFlags flags, |
| 3677 | const gchar *name, |
| 3678 | const gchar *object_path, |
| 3679 | GCancellable *cancellable, |
| 3680 | GError **error); |
| 3681 | |
| 3682 | void button_proxy_new_for_bus ( |
| 3683 | GBusType bus_type, |
| 3684 | GDBusProxyFlags flags, |
| 3685 | const gchar *name, |
| 3686 | const gchar *object_path, |
| 3687 | GCancellable *cancellable, |
| 3688 | GAsyncReadyCallback callback, |
| 3689 | gpointer user_data); |
| 3690 | Button *button_proxy_new_for_bus_finish ( |
| 3691 | GAsyncResult *res, |
| 3692 | GError **error); |
| 3693 | Button *button_proxy_new_for_bus_sync ( |
| 3694 | GBusType bus_type, |
| 3695 | GDBusProxyFlags flags, |
| 3696 | const gchar *name, |
| 3697 | const gchar *object_path, |
| 3698 | GCancellable *cancellable, |
| 3699 | GError **error); |
| 3700 | |
| 3701 | |
| 3702 | /* ---- */ |
| 3703 | |
| 3704 | #define TYPE_BUTTON_SKELETON (button_skeleton_get_type ()) |
| 3705 | #define BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_BUTTON_SKELETON, ButtonSkeleton)) |
| 3706 | #define BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) |
| 3707 | #define BUTTON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_BUTTON_SKELETON, ButtonSkeletonClass)) |
| 3708 | #define IS_BUTTON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_BUTTON_SKELETON)) |
| 3709 | #define IS_BUTTON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_BUTTON_SKELETON)) |
| 3710 | |
| 3711 | typedef struct _ButtonSkeleton ButtonSkeleton; |
| 3712 | typedef struct _ButtonSkeletonClass ButtonSkeletonClass; |
| 3713 | typedef struct _ButtonSkeletonPrivate ButtonSkeletonPrivate; |
| 3714 | |
| 3715 | struct _ButtonSkeleton |
| 3716 | { |
| 3717 | /*< private >*/ |
| 3718 | GDBusInterfaceSkeleton parent_instance; |
| 3719 | ButtonSkeletonPrivate *priv; |
| 3720 | }; |
| 3721 | |
| 3722 | struct _ButtonSkeletonClass |
| 3723 | { |
| 3724 | GDBusInterfaceSkeletonClass parent_class; |
| 3725 | }; |
| 3726 | |
| 3727 | GType button_skeleton_get_type (void) G_GNUC_CONST; |
| 3728 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 3729 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 3730 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ButtonSkeleton, g_object_unref) |
| 3731 | #endif |
| 3732 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3733 | Button *button_skeleton_new (void); |
| 3734 | |
| 3735 | |
| 3736 | /* ------------------------------------------------------------------------ */ |
| 3737 | /* Declarations for org.openbmc.Led */ |
| 3738 | |
| 3739 | #define TYPE_LED (led_get_type ()) |
| 3740 | #define LED(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED, Led)) |
| 3741 | #define IS_LED(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED)) |
| 3742 | #define LED_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_LED, LedIface)) |
| 3743 | |
| 3744 | struct _Led; |
| 3745 | typedef struct _Led Led; |
| 3746 | typedef struct _LedIface LedIface; |
| 3747 | |
| 3748 | struct _LedIface |
| 3749 | { |
| 3750 | GTypeInterface parent_iface; |
| 3751 | |
| 3752 | |
| 3753 | gboolean (*handle_set_blink_fast) ( |
| 3754 | Led *object, |
| 3755 | GDBusMethodInvocation *invocation); |
| 3756 | |
| 3757 | gboolean (*handle_set_blink_slow) ( |
| 3758 | Led *object, |
| 3759 | GDBusMethodInvocation *invocation); |
| 3760 | |
| 3761 | gboolean (*handle_set_off) ( |
| 3762 | Led *object, |
| 3763 | GDBusMethodInvocation *invocation); |
| 3764 | |
| 3765 | gboolean (*handle_set_on) ( |
| 3766 | Led *object, |
| 3767 | GDBusMethodInvocation *invocation); |
| 3768 | |
| 3769 | gint (*get_color) (Led *object); |
| 3770 | |
| 3771 | const gchar * (*get_function) (Led *object); |
| 3772 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3773 | const gchar * (*get_state) (Led *object); |
| 3774 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3775 | }; |
| 3776 | |
| 3777 | GType led_get_type (void) G_GNUC_CONST; |
| 3778 | |
| 3779 | GDBusInterfaceInfo *led_interface_info (void); |
| 3780 | guint led_override_properties (GObjectClass *klass, guint property_id_begin); |
| 3781 | |
| 3782 | |
| 3783 | /* D-Bus method call completion functions: */ |
| 3784 | void led_complete_set_on ( |
| 3785 | Led *object, |
| 3786 | GDBusMethodInvocation *invocation); |
| 3787 | |
| 3788 | void led_complete_set_off ( |
| 3789 | Led *object, |
| 3790 | GDBusMethodInvocation *invocation); |
| 3791 | |
| 3792 | void led_complete_set_blink_slow ( |
| 3793 | Led *object, |
| 3794 | GDBusMethodInvocation *invocation); |
| 3795 | |
| 3796 | void led_complete_set_blink_fast ( |
| 3797 | Led *object, |
| 3798 | GDBusMethodInvocation *invocation); |
| 3799 | |
| 3800 | |
| 3801 | |
| 3802 | /* D-Bus method calls: */ |
| 3803 | void led_call_set_on ( |
| 3804 | Led *proxy, |
| 3805 | GCancellable *cancellable, |
| 3806 | GAsyncReadyCallback callback, |
| 3807 | gpointer user_data); |
| 3808 | |
| 3809 | gboolean led_call_set_on_finish ( |
| 3810 | Led *proxy, |
| 3811 | GAsyncResult *res, |
| 3812 | GError **error); |
| 3813 | |
| 3814 | gboolean led_call_set_on_sync ( |
| 3815 | Led *proxy, |
| 3816 | GCancellable *cancellable, |
| 3817 | GError **error); |
| 3818 | |
| 3819 | void led_call_set_off ( |
| 3820 | Led *proxy, |
| 3821 | GCancellable *cancellable, |
| 3822 | GAsyncReadyCallback callback, |
| 3823 | gpointer user_data); |
| 3824 | |
| 3825 | gboolean led_call_set_off_finish ( |
| 3826 | Led *proxy, |
| 3827 | GAsyncResult *res, |
| 3828 | GError **error); |
| 3829 | |
| 3830 | gboolean led_call_set_off_sync ( |
| 3831 | Led *proxy, |
| 3832 | GCancellable *cancellable, |
| 3833 | GError **error); |
| 3834 | |
| 3835 | void led_call_set_blink_slow ( |
| 3836 | Led *proxy, |
| 3837 | GCancellable *cancellable, |
| 3838 | GAsyncReadyCallback callback, |
| 3839 | gpointer user_data); |
| 3840 | |
| 3841 | gboolean led_call_set_blink_slow_finish ( |
| 3842 | Led *proxy, |
| 3843 | GAsyncResult *res, |
| 3844 | GError **error); |
| 3845 | |
| 3846 | gboolean led_call_set_blink_slow_sync ( |
| 3847 | Led *proxy, |
| 3848 | GCancellable *cancellable, |
| 3849 | GError **error); |
| 3850 | |
| 3851 | void led_call_set_blink_fast ( |
| 3852 | Led *proxy, |
| 3853 | GCancellable *cancellable, |
| 3854 | GAsyncReadyCallback callback, |
| 3855 | gpointer user_data); |
| 3856 | |
| 3857 | gboolean led_call_set_blink_fast_finish ( |
| 3858 | Led *proxy, |
| 3859 | GAsyncResult *res, |
| 3860 | GError **error); |
| 3861 | |
| 3862 | gboolean led_call_set_blink_fast_sync ( |
| 3863 | Led *proxy, |
| 3864 | GCancellable *cancellable, |
| 3865 | GError **error); |
| 3866 | |
| 3867 | |
| 3868 | |
| 3869 | /* D-Bus property accessors: */ |
| 3870 | gint led_get_color (Led *object); |
| 3871 | void led_set_color (Led *object, gint value); |
| 3872 | |
| 3873 | const gchar *led_get_function (Led *object); |
| 3874 | gchar *led_dup_function (Led *object); |
| 3875 | void led_set_function (Led *object, const gchar *value); |
| 3876 | |
Norman James | 493996c | 2015-10-31 17:27:13 -0500 | [diff] [blame] | 3877 | const gchar *led_get_state (Led *object); |
| 3878 | gchar *led_dup_state (Led *object); |
| 3879 | void led_set_state (Led *object, const gchar *value); |
| 3880 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3881 | |
| 3882 | /* ---- */ |
| 3883 | |
| 3884 | #define TYPE_LED_PROXY (led_proxy_get_type ()) |
| 3885 | #define LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_PROXY, LedProxy)) |
| 3886 | #define LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_PROXY, LedProxyClass)) |
| 3887 | #define LED_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_PROXY, LedProxyClass)) |
| 3888 | #define IS_LED_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_PROXY)) |
| 3889 | #define IS_LED_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_PROXY)) |
| 3890 | |
| 3891 | typedef struct _LedProxy LedProxy; |
| 3892 | typedef struct _LedProxyClass LedProxyClass; |
| 3893 | typedef struct _LedProxyPrivate LedProxyPrivate; |
| 3894 | |
| 3895 | struct _LedProxy |
| 3896 | { |
| 3897 | /*< private >*/ |
| 3898 | GDBusProxy parent_instance; |
| 3899 | LedProxyPrivate *priv; |
| 3900 | }; |
| 3901 | |
| 3902 | struct _LedProxyClass |
| 3903 | { |
| 3904 | GDBusProxyClass parent_class; |
| 3905 | }; |
| 3906 | |
| 3907 | GType led_proxy_get_type (void) G_GNUC_CONST; |
| 3908 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 3909 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 3910 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (LedProxy, g_object_unref) |
| 3911 | #endif |
| 3912 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3913 | void led_proxy_new ( |
| 3914 | GDBusConnection *connection, |
| 3915 | GDBusProxyFlags flags, |
| 3916 | const gchar *name, |
| 3917 | const gchar *object_path, |
| 3918 | GCancellable *cancellable, |
| 3919 | GAsyncReadyCallback callback, |
| 3920 | gpointer user_data); |
| 3921 | Led *led_proxy_new_finish ( |
| 3922 | GAsyncResult *res, |
| 3923 | GError **error); |
| 3924 | Led *led_proxy_new_sync ( |
| 3925 | GDBusConnection *connection, |
| 3926 | GDBusProxyFlags flags, |
| 3927 | const gchar *name, |
| 3928 | const gchar *object_path, |
| 3929 | GCancellable *cancellable, |
| 3930 | GError **error); |
| 3931 | |
| 3932 | void led_proxy_new_for_bus ( |
| 3933 | GBusType bus_type, |
| 3934 | GDBusProxyFlags flags, |
| 3935 | const gchar *name, |
| 3936 | const gchar *object_path, |
| 3937 | GCancellable *cancellable, |
| 3938 | GAsyncReadyCallback callback, |
| 3939 | gpointer user_data); |
| 3940 | Led *led_proxy_new_for_bus_finish ( |
| 3941 | GAsyncResult *res, |
| 3942 | GError **error); |
| 3943 | Led *led_proxy_new_for_bus_sync ( |
| 3944 | GBusType bus_type, |
| 3945 | GDBusProxyFlags flags, |
| 3946 | const gchar *name, |
| 3947 | const gchar *object_path, |
| 3948 | GCancellable *cancellable, |
| 3949 | GError **error); |
| 3950 | |
| 3951 | |
| 3952 | /* ---- */ |
| 3953 | |
| 3954 | #define TYPE_LED_SKELETON (led_skeleton_get_type ()) |
| 3955 | #define LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LED_SKELETON, LedSkeleton)) |
| 3956 | #define LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LED_SKELETON, LedSkeletonClass)) |
| 3957 | #define LED_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LED_SKELETON, LedSkeletonClass)) |
| 3958 | #define IS_LED_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LED_SKELETON)) |
| 3959 | #define IS_LED_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LED_SKELETON)) |
| 3960 | |
| 3961 | typedef struct _LedSkeleton LedSkeleton; |
| 3962 | typedef struct _LedSkeletonClass LedSkeletonClass; |
| 3963 | typedef struct _LedSkeletonPrivate LedSkeletonPrivate; |
| 3964 | |
| 3965 | struct _LedSkeleton |
| 3966 | { |
| 3967 | /*< private >*/ |
| 3968 | GDBusInterfaceSkeleton parent_instance; |
| 3969 | LedSkeletonPrivate *priv; |
| 3970 | }; |
| 3971 | |
| 3972 | struct _LedSkeletonClass |
| 3973 | { |
| 3974 | GDBusInterfaceSkeletonClass parent_class; |
| 3975 | }; |
| 3976 | |
| 3977 | GType led_skeleton_get_type (void) G_GNUC_CONST; |
| 3978 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 3979 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 3980 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (LedSkeleton, g_object_unref) |
| 3981 | #endif |
| 3982 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 3983 | Led *led_skeleton_new (void); |
| 3984 | |
| 3985 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 3986 | /* ------------------------------------------------------------------------ */ |
| 3987 | /* Declarations for org.openbmc.HostIpmi */ |
| 3988 | |
| 3989 | #define TYPE_HOST_IPMI (host_ipmi_get_type ()) |
| 3990 | #define HOST_IPMI(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI, HostIpmi)) |
| 3991 | #define IS_HOST_IPMI(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI)) |
| 3992 | #define HOST_IPMI_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_HOST_IPMI, HostIpmiIface)) |
| 3993 | |
| 3994 | struct _HostIpmi; |
| 3995 | typedef struct _HostIpmi HostIpmi; |
| 3996 | typedef struct _HostIpmiIface HostIpmiIface; |
| 3997 | |
| 3998 | struct _HostIpmiIface |
| 3999 | { |
| 4000 | GTypeInterface parent_iface; |
| 4001 | |
| 4002 | |
| 4003 | gboolean (*handle_send_message) ( |
| 4004 | HostIpmi *object, |
| 4005 | GDBusMethodInvocation *invocation, |
| 4006 | guchar arg_seq, |
| 4007 | guchar arg_netfn, |
| 4008 | guchar arg_cmd, |
| 4009 | const gchar *arg_data); |
| 4010 | |
| 4011 | void (*received_message) ( |
| 4012 | HostIpmi *object, |
| 4013 | guchar arg_seq, |
| 4014 | guchar arg_netfn, |
| 4015 | guchar arg_cmd, |
| 4016 | const gchar *arg_data); |
| 4017 | |
| 4018 | }; |
| 4019 | |
| 4020 | GType host_ipmi_get_type (void) G_GNUC_CONST; |
| 4021 | |
| 4022 | GDBusInterfaceInfo *host_ipmi_interface_info (void); |
| 4023 | guint host_ipmi_override_properties (GObjectClass *klass, guint property_id_begin); |
| 4024 | |
| 4025 | |
| 4026 | /* D-Bus method call completion functions: */ |
| 4027 | void host_ipmi_complete_send_message ( |
| 4028 | HostIpmi *object, |
| 4029 | GDBusMethodInvocation *invocation, |
| 4030 | gint64 unnamed_arg4); |
| 4031 | |
| 4032 | |
| 4033 | |
| 4034 | /* D-Bus signal emissions functions: */ |
| 4035 | void host_ipmi_emit_received_message ( |
| 4036 | HostIpmi *object, |
| 4037 | guchar arg_seq, |
| 4038 | guchar arg_netfn, |
| 4039 | guchar arg_cmd, |
| 4040 | const gchar *arg_data); |
| 4041 | |
| 4042 | |
| 4043 | |
| 4044 | /* D-Bus method calls: */ |
| 4045 | void host_ipmi_call_send_message ( |
| 4046 | HostIpmi *proxy, |
| 4047 | guchar arg_seq, |
| 4048 | guchar arg_netfn, |
| 4049 | guchar arg_cmd, |
| 4050 | const gchar *arg_data, |
| 4051 | GCancellable *cancellable, |
| 4052 | GAsyncReadyCallback callback, |
| 4053 | gpointer user_data); |
| 4054 | |
| 4055 | gboolean host_ipmi_call_send_message_finish ( |
| 4056 | HostIpmi *proxy, |
| 4057 | gint64 *out_unnamed_arg4, |
| 4058 | GAsyncResult *res, |
| 4059 | GError **error); |
| 4060 | |
| 4061 | gboolean host_ipmi_call_send_message_sync ( |
| 4062 | HostIpmi *proxy, |
| 4063 | guchar arg_seq, |
| 4064 | guchar arg_netfn, |
| 4065 | guchar arg_cmd, |
| 4066 | const gchar *arg_data, |
| 4067 | gint64 *out_unnamed_arg4, |
| 4068 | GCancellable *cancellable, |
| 4069 | GError **error); |
| 4070 | |
| 4071 | |
| 4072 | |
| 4073 | /* ---- */ |
| 4074 | |
| 4075 | #define TYPE_HOST_IPMI_PROXY (host_ipmi_proxy_get_type ()) |
| 4076 | #define HOST_IPMI_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI_PROXY, HostIpmiProxy)) |
| 4077 | #define HOST_IPMI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_IPMI_PROXY, HostIpmiProxyClass)) |
| 4078 | #define HOST_IPMI_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_IPMI_PROXY, HostIpmiProxyClass)) |
| 4079 | #define IS_HOST_IPMI_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI_PROXY)) |
| 4080 | #define IS_HOST_IPMI_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_IPMI_PROXY)) |
| 4081 | |
| 4082 | typedef struct _HostIpmiProxy HostIpmiProxy; |
| 4083 | typedef struct _HostIpmiProxyClass HostIpmiProxyClass; |
| 4084 | typedef struct _HostIpmiProxyPrivate HostIpmiProxyPrivate; |
| 4085 | |
| 4086 | struct _HostIpmiProxy |
| 4087 | { |
| 4088 | /*< private >*/ |
| 4089 | GDBusProxy parent_instance; |
| 4090 | HostIpmiProxyPrivate *priv; |
| 4091 | }; |
| 4092 | |
| 4093 | struct _HostIpmiProxyClass |
| 4094 | { |
| 4095 | GDBusProxyClass parent_class; |
| 4096 | }; |
| 4097 | |
| 4098 | GType host_ipmi_proxy_get_type (void) G_GNUC_CONST; |
| 4099 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 4100 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 4101 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (HostIpmiProxy, g_object_unref) |
| 4102 | #endif |
| 4103 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 4104 | void host_ipmi_proxy_new ( |
| 4105 | GDBusConnection *connection, |
| 4106 | GDBusProxyFlags flags, |
| 4107 | const gchar *name, |
| 4108 | const gchar *object_path, |
| 4109 | GCancellable *cancellable, |
| 4110 | GAsyncReadyCallback callback, |
| 4111 | gpointer user_data); |
| 4112 | HostIpmi *host_ipmi_proxy_new_finish ( |
| 4113 | GAsyncResult *res, |
| 4114 | GError **error); |
| 4115 | HostIpmi *host_ipmi_proxy_new_sync ( |
| 4116 | GDBusConnection *connection, |
| 4117 | GDBusProxyFlags flags, |
| 4118 | const gchar *name, |
| 4119 | const gchar *object_path, |
| 4120 | GCancellable *cancellable, |
| 4121 | GError **error); |
| 4122 | |
| 4123 | void host_ipmi_proxy_new_for_bus ( |
| 4124 | GBusType bus_type, |
| 4125 | GDBusProxyFlags flags, |
| 4126 | const gchar *name, |
| 4127 | const gchar *object_path, |
| 4128 | GCancellable *cancellable, |
| 4129 | GAsyncReadyCallback callback, |
| 4130 | gpointer user_data); |
| 4131 | HostIpmi *host_ipmi_proxy_new_for_bus_finish ( |
| 4132 | GAsyncResult *res, |
| 4133 | GError **error); |
| 4134 | HostIpmi *host_ipmi_proxy_new_for_bus_sync ( |
| 4135 | GBusType bus_type, |
| 4136 | GDBusProxyFlags flags, |
| 4137 | const gchar *name, |
| 4138 | const gchar *object_path, |
| 4139 | GCancellable *cancellable, |
| 4140 | GError **error); |
| 4141 | |
| 4142 | |
| 4143 | /* ---- */ |
| 4144 | |
| 4145 | #define TYPE_HOST_IPMI_SKELETON (host_ipmi_skeleton_get_type ()) |
| 4146 | #define HOST_IPMI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeleton)) |
| 4147 | #define HOST_IPMI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeletonClass)) |
| 4148 | #define HOST_IPMI_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_HOST_IPMI_SKELETON, HostIpmiSkeletonClass)) |
| 4149 | #define IS_HOST_IPMI_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_HOST_IPMI_SKELETON)) |
| 4150 | #define IS_HOST_IPMI_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_HOST_IPMI_SKELETON)) |
| 4151 | |
| 4152 | typedef struct _HostIpmiSkeleton HostIpmiSkeleton; |
| 4153 | typedef struct _HostIpmiSkeletonClass HostIpmiSkeletonClass; |
| 4154 | typedef struct _HostIpmiSkeletonPrivate HostIpmiSkeletonPrivate; |
| 4155 | |
| 4156 | struct _HostIpmiSkeleton |
| 4157 | { |
| 4158 | /*< private >*/ |
| 4159 | GDBusInterfaceSkeleton parent_instance; |
| 4160 | HostIpmiSkeletonPrivate *priv; |
| 4161 | }; |
| 4162 | |
| 4163 | struct _HostIpmiSkeletonClass |
| 4164 | { |
| 4165 | GDBusInterfaceSkeletonClass parent_class; |
| 4166 | }; |
| 4167 | |
| 4168 | GType host_ipmi_skeleton_get_type (void) G_GNUC_CONST; |
| 4169 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 4170 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 4171 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (HostIpmiSkeleton, g_object_unref) |
| 4172 | #endif |
| 4173 | |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 4174 | HostIpmi *host_ipmi_skeleton_new (void); |
| 4175 | |
| 4176 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4177 | /* ---- */ |
| 4178 | |
| 4179 | #define TYPE_OBJECT (object_get_type ()) |
| 4180 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 4181 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 4182 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 4183 | |
| 4184 | struct _Object; |
| 4185 | typedef struct _Object Object; |
| 4186 | typedef struct _ObjectIface ObjectIface; |
| 4187 | |
| 4188 | struct _ObjectIface |
| 4189 | { |
| 4190 | GTypeInterface parent_iface; |
| 4191 | }; |
| 4192 | |
| 4193 | GType object_get_type (void) G_GNUC_CONST; |
| 4194 | |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 4195 | Hwmon *object_get_hwmon (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4196 | Fan *object_get_fan (Object *object); |
| 4197 | SensorValue *object_get_sensor_value (Object *object); |
| 4198 | SensorThreshold *object_get_sensor_threshold (Object *object); |
| 4199 | SensorI2c *object_get_sensor_i2c (Object *object); |
| 4200 | SensorMatch *object_get_sensor_match (Object *object); |
| 4201 | Process *object_get_process (Object *object); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4202 | SharedResource *object_get_shared_resource (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4203 | Control *object_get_control (Object *object); |
| 4204 | ControlBmc *object_get_control_bmc (Object *object); |
| 4205 | ControlHost *object_get_control_host (Object *object); |
| 4206 | ControlPower *object_get_control_power (Object *object); |
Adriana Kobylak | fd77882 | 2016-06-16 09:08:37 -0500 | [diff] [blame] | 4207 | ControlCheckstop *object_get_control_checkstop (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4208 | Watchdog *object_get_watchdog (Object *object); |
| 4209 | EventLog *object_get_event_log (Object *object); |
| 4210 | Flash *object_get_flash (Object *object); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4211 | FlashControl *object_get_flash_control (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4212 | Button *object_get_button (Object *object); |
| 4213 | Led *object_get_led (Object *object); |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 4214 | HostIpmi *object_get_host_ipmi (Object *object); |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 4215 | Hwmon *object_peek_hwmon (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4216 | Fan *object_peek_fan (Object *object); |
| 4217 | SensorValue *object_peek_sensor_value (Object *object); |
| 4218 | SensorThreshold *object_peek_sensor_threshold (Object *object); |
| 4219 | SensorI2c *object_peek_sensor_i2c (Object *object); |
| 4220 | SensorMatch *object_peek_sensor_match (Object *object); |
| 4221 | Process *object_peek_process (Object *object); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4222 | SharedResource *object_peek_shared_resource (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4223 | Control *object_peek_control (Object *object); |
| 4224 | ControlBmc *object_peek_control_bmc (Object *object); |
| 4225 | ControlHost *object_peek_control_host (Object *object); |
| 4226 | ControlPower *object_peek_control_power (Object *object); |
Adriana Kobylak | fd77882 | 2016-06-16 09:08:37 -0500 | [diff] [blame] | 4227 | ControlCheckstop *object_peek_control_checkstop (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4228 | Watchdog *object_peek_watchdog (Object *object); |
| 4229 | EventLog *object_peek_event_log (Object *object); |
| 4230 | Flash *object_peek_flash (Object *object); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4231 | FlashControl *object_peek_flash_control (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4232 | Button *object_peek_button (Object *object); |
| 4233 | Led *object_peek_led (Object *object); |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 4234 | HostIpmi *object_peek_host_ipmi (Object *object); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4235 | |
| 4236 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 4237 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 4238 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 4239 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 4240 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 4241 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 4242 | |
| 4243 | typedef struct _ObjectProxy ObjectProxy; |
| 4244 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 4245 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 4246 | |
| 4247 | struct _ObjectProxy |
| 4248 | { |
| 4249 | /*< private >*/ |
| 4250 | GDBusObjectProxy parent_instance; |
| 4251 | ObjectProxyPrivate *priv; |
| 4252 | }; |
| 4253 | |
| 4254 | struct _ObjectProxyClass |
| 4255 | { |
| 4256 | GDBusObjectProxyClass parent_class; |
| 4257 | }; |
| 4258 | |
| 4259 | GType object_proxy_get_type (void) G_GNUC_CONST; |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 4260 | |
| 4261 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 4262 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ObjectProxy, g_object_unref) |
| 4263 | #endif |
| 4264 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4265 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 4266 | |
| 4267 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 4268 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 4269 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 4270 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 4271 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 4272 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 4273 | |
| 4274 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 4275 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 4276 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 4277 | |
| 4278 | struct _ObjectSkeleton |
| 4279 | { |
| 4280 | /*< private >*/ |
| 4281 | GDBusObjectSkeleton parent_instance; |
| 4282 | ObjectSkeletonPrivate *priv; |
| 4283 | }; |
| 4284 | |
| 4285 | struct _ObjectSkeletonClass |
| 4286 | { |
| 4287 | GDBusObjectSkeletonClass parent_class; |
| 4288 | }; |
| 4289 | |
| 4290 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 4291 | |
| 4292 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 4293 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ObjectSkeleton, g_object_unref) |
| 4294 | #endif |
| 4295 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4296 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
Norman James | 5236a8f | 2015-11-05 20:39:31 -0600 | [diff] [blame] | 4297 | void object_skeleton_set_hwmon (ObjectSkeleton *object, Hwmon *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4298 | void object_skeleton_set_fan (ObjectSkeleton *object, Fan *interface_); |
| 4299 | void object_skeleton_set_sensor_value (ObjectSkeleton *object, SensorValue *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4300 | void object_skeleton_set_sensor_threshold (ObjectSkeleton *object, SensorThreshold *interface_); |
| 4301 | void object_skeleton_set_sensor_i2c (ObjectSkeleton *object, SensorI2c *interface_); |
| 4302 | void object_skeleton_set_sensor_match (ObjectSkeleton *object, SensorMatch *interface_); |
| 4303 | void object_skeleton_set_process (ObjectSkeleton *object, Process *interface_); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4304 | void object_skeleton_set_shared_resource (ObjectSkeleton *object, SharedResource *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4305 | void object_skeleton_set_control (ObjectSkeleton *object, Control *interface_); |
| 4306 | void object_skeleton_set_control_bmc (ObjectSkeleton *object, ControlBmc *interface_); |
| 4307 | void object_skeleton_set_control_host (ObjectSkeleton *object, ControlHost *interface_); |
| 4308 | void object_skeleton_set_control_power (ObjectSkeleton *object, ControlPower *interface_); |
Adriana Kobylak | fd77882 | 2016-06-16 09:08:37 -0500 | [diff] [blame] | 4309 | void object_skeleton_set_control_checkstop (ObjectSkeleton *object, ControlCheckstop *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4310 | void object_skeleton_set_watchdog (ObjectSkeleton *object, Watchdog *interface_); |
| 4311 | void object_skeleton_set_event_log (ObjectSkeleton *object, EventLog *interface_); |
| 4312 | void object_skeleton_set_flash (ObjectSkeleton *object, Flash *interface_); |
Norman James | 1899818 | 2015-10-11 21:54:53 -0500 | [diff] [blame] | 4313 | void object_skeleton_set_flash_control (ObjectSkeleton *object, FlashControl *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4314 | void object_skeleton_set_button (ObjectSkeleton *object, Button *interface_); |
| 4315 | void object_skeleton_set_led (ObjectSkeleton *object, Led *interface_); |
Norman James | dbcffbd | 2015-10-06 16:53:06 -0500 | [diff] [blame] | 4316 | void object_skeleton_set_host_ipmi (ObjectSkeleton *object, HostIpmi *interface_); |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4317 | |
| 4318 | /* ---- */ |
| 4319 | |
| 4320 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 4321 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 4322 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 4323 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 4324 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 4325 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 4326 | |
| 4327 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 4328 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 4329 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 4330 | |
| 4331 | struct _ObjectManagerClient |
| 4332 | { |
| 4333 | /*< private >*/ |
| 4334 | GDBusObjectManagerClient parent_instance; |
| 4335 | ObjectManagerClientPrivate *priv; |
| 4336 | }; |
| 4337 | |
| 4338 | struct _ObjectManagerClientClass |
| 4339 | { |
| 4340 | GDBusObjectManagerClientClass parent_class; |
| 4341 | }; |
| 4342 | |
Andrew Geissler | 5987cac | 2018-02-05 13:56:52 -0800 | [diff] [blame] | 4343 | #if GLIB_CHECK_VERSION(2, 44, 0) |
| 4344 | G_DEFINE_AUTOPTR_CLEANUP_FUNC (ObjectManagerClient, g_object_unref) |
| 4345 | #endif |
| 4346 | |
Norman James | 362a80f | 2015-09-14 14:04:39 -0500 | [diff] [blame] | 4347 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 4348 | |
| 4349 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 4350 | |
| 4351 | void object_manager_client_new ( |
| 4352 | GDBusConnection *connection, |
| 4353 | GDBusObjectManagerClientFlags flags, |
| 4354 | const gchar *name, |
| 4355 | const gchar *object_path, |
| 4356 | GCancellable *cancellable, |
| 4357 | GAsyncReadyCallback callback, |
| 4358 | gpointer user_data); |
| 4359 | GDBusObjectManager *object_manager_client_new_finish ( |
| 4360 | GAsyncResult *res, |
| 4361 | GError **error); |
| 4362 | GDBusObjectManager *object_manager_client_new_sync ( |
| 4363 | GDBusConnection *connection, |
| 4364 | GDBusObjectManagerClientFlags flags, |
| 4365 | const gchar *name, |
| 4366 | const gchar *object_path, |
| 4367 | GCancellable *cancellable, |
| 4368 | GError **error); |
| 4369 | |
| 4370 | void object_manager_client_new_for_bus ( |
| 4371 | GBusType bus_type, |
| 4372 | GDBusObjectManagerClientFlags flags, |
| 4373 | const gchar *name, |
| 4374 | const gchar *object_path, |
| 4375 | GCancellable *cancellable, |
| 4376 | GAsyncReadyCallback callback, |
| 4377 | gpointer user_data); |
| 4378 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 4379 | GAsyncResult *res, |
| 4380 | GError **error); |
| 4381 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 4382 | GBusType bus_type, |
| 4383 | GDBusObjectManagerClientFlags flags, |
| 4384 | const gchar *name, |
| 4385 | const gchar *object_path, |
| 4386 | GCancellable *cancellable, |
| 4387 | GError **error); |
| 4388 | |
| 4389 | |
| 4390 | G_END_DECLS |
| 4391 | |
Brad Bishop | 8a8b003 | 2016-06-27 12:08:08 -0400 | [diff] [blame] | 4392 | #endif /* __OPENBMC_INTF_H__ */ |