Norman James | 9e6acf9 | 2015-09-08 07:00:04 -0500 | [diff] [blame^] | 1 | /* |
| 2 | * Generated by gdbus-codegen 2.40.2. DO NOT EDIT. |
| 3 | * |
| 4 | * The license of this code is the same as for the source it was derived from. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __INTERFACES_WATCHDOG_H__ |
| 8 | #define __INTERFACES_WATCHDOG_H__ |
| 9 | |
| 10 | #include <gio/gio.h> |
| 11 | |
| 12 | G_BEGIN_DECLS |
| 13 | |
| 14 | |
| 15 | /* ------------------------------------------------------------------------ */ |
| 16 | /* Declarations for org.openbmc.Watchdog */ |
| 17 | |
| 18 | #define TYPE_WATCHDOG (watchdog_get_type ()) |
| 19 | #define WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG, Watchdog)) |
| 20 | #define IS_WATCHDOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG)) |
| 21 | #define WATCHDOG_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_WATCHDOG, WatchdogIface)) |
| 22 | |
| 23 | struct _Watchdog; |
| 24 | typedef struct _Watchdog Watchdog; |
| 25 | typedef struct _WatchdogIface WatchdogIface; |
| 26 | |
| 27 | struct _WatchdogIface |
| 28 | { |
| 29 | GTypeInterface parent_iface; |
| 30 | |
| 31 | |
| 32 | |
| 33 | gboolean (*handle_poke) ( |
| 34 | Watchdog *object, |
| 35 | GDBusMethodInvocation *invocation); |
| 36 | |
| 37 | gboolean (*handle_start) ( |
| 38 | Watchdog *object, |
| 39 | GDBusMethodInvocation *invocation); |
| 40 | |
| 41 | gboolean (*handle_stop) ( |
| 42 | Watchdog *object, |
| 43 | GDBusMethodInvocation *invocation); |
| 44 | |
| 45 | gint (*get_poll_interval) (Watchdog *object); |
| 46 | |
| 47 | gint (*get_watchdog) (Watchdog *object); |
| 48 | |
| 49 | void (*watchdog_error) ( |
| 50 | Watchdog *object); |
| 51 | |
| 52 | }; |
| 53 | |
| 54 | GType watchdog_get_type (void) G_GNUC_CONST; |
| 55 | |
| 56 | GDBusInterfaceInfo *watchdog_interface_info (void); |
| 57 | guint watchdog_override_properties (GObjectClass *klass, guint property_id_begin); |
| 58 | |
| 59 | |
| 60 | /* D-Bus method call completion functions: */ |
| 61 | void watchdog_complete_start ( |
| 62 | Watchdog *object, |
| 63 | GDBusMethodInvocation *invocation); |
| 64 | |
| 65 | void watchdog_complete_poke ( |
| 66 | Watchdog *object, |
| 67 | GDBusMethodInvocation *invocation); |
| 68 | |
| 69 | void watchdog_complete_stop ( |
| 70 | Watchdog *object, |
| 71 | GDBusMethodInvocation *invocation); |
| 72 | |
| 73 | |
| 74 | |
| 75 | /* D-Bus signal emissions functions: */ |
| 76 | void watchdog_emit_watchdog_error ( |
| 77 | Watchdog *object); |
| 78 | |
| 79 | |
| 80 | |
| 81 | /* D-Bus method calls: */ |
| 82 | void watchdog_call_start ( |
| 83 | Watchdog *proxy, |
| 84 | GCancellable *cancellable, |
| 85 | GAsyncReadyCallback callback, |
| 86 | gpointer user_data); |
| 87 | |
| 88 | gboolean watchdog_call_start_finish ( |
| 89 | Watchdog *proxy, |
| 90 | GAsyncResult *res, |
| 91 | GError **error); |
| 92 | |
| 93 | gboolean watchdog_call_start_sync ( |
| 94 | Watchdog *proxy, |
| 95 | GCancellable *cancellable, |
| 96 | GError **error); |
| 97 | |
| 98 | void watchdog_call_poke ( |
| 99 | Watchdog *proxy, |
| 100 | GCancellable *cancellable, |
| 101 | GAsyncReadyCallback callback, |
| 102 | gpointer user_data); |
| 103 | |
| 104 | gboolean watchdog_call_poke_finish ( |
| 105 | Watchdog *proxy, |
| 106 | GAsyncResult *res, |
| 107 | GError **error); |
| 108 | |
| 109 | gboolean watchdog_call_poke_sync ( |
| 110 | Watchdog *proxy, |
| 111 | GCancellable *cancellable, |
| 112 | GError **error); |
| 113 | |
| 114 | void watchdog_call_stop ( |
| 115 | Watchdog *proxy, |
| 116 | GCancellable *cancellable, |
| 117 | GAsyncReadyCallback callback, |
| 118 | gpointer user_data); |
| 119 | |
| 120 | gboolean watchdog_call_stop_finish ( |
| 121 | Watchdog *proxy, |
| 122 | GAsyncResult *res, |
| 123 | GError **error); |
| 124 | |
| 125 | gboolean watchdog_call_stop_sync ( |
| 126 | Watchdog *proxy, |
| 127 | GCancellable *cancellable, |
| 128 | GError **error); |
| 129 | |
| 130 | |
| 131 | |
| 132 | /* D-Bus property accessors: */ |
| 133 | gint watchdog_get_watchdog (Watchdog *object); |
| 134 | void watchdog_set_watchdog (Watchdog *object, gint value); |
| 135 | |
| 136 | gint watchdog_get_poll_interval (Watchdog *object); |
| 137 | void watchdog_set_poll_interval (Watchdog *object, gint value); |
| 138 | |
| 139 | |
| 140 | /* ---- */ |
| 141 | |
| 142 | #define TYPE_WATCHDOG_PROXY (watchdog_proxy_get_type ()) |
| 143 | #define WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_PROXY, WatchdogProxy)) |
| 144 | #define WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_PROXY, WatchdogProxyClass)) |
| 145 | #define WATCHDOG_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_PROXY, WatchdogProxyClass)) |
| 146 | #define IS_WATCHDOG_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_PROXY)) |
| 147 | #define IS_WATCHDOG_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_PROXY)) |
| 148 | |
| 149 | typedef struct _WatchdogProxy WatchdogProxy; |
| 150 | typedef struct _WatchdogProxyClass WatchdogProxyClass; |
| 151 | typedef struct _WatchdogProxyPrivate WatchdogProxyPrivate; |
| 152 | |
| 153 | struct _WatchdogProxy |
| 154 | { |
| 155 | /*< private >*/ |
| 156 | GDBusProxy parent_instance; |
| 157 | WatchdogProxyPrivate *priv; |
| 158 | }; |
| 159 | |
| 160 | struct _WatchdogProxyClass |
| 161 | { |
| 162 | GDBusProxyClass parent_class; |
| 163 | }; |
| 164 | |
| 165 | GType watchdog_proxy_get_type (void) G_GNUC_CONST; |
| 166 | |
| 167 | void watchdog_proxy_new ( |
| 168 | GDBusConnection *connection, |
| 169 | GDBusProxyFlags flags, |
| 170 | const gchar *name, |
| 171 | const gchar *object_path, |
| 172 | GCancellable *cancellable, |
| 173 | GAsyncReadyCallback callback, |
| 174 | gpointer user_data); |
| 175 | Watchdog *watchdog_proxy_new_finish ( |
| 176 | GAsyncResult *res, |
| 177 | GError **error); |
| 178 | Watchdog *watchdog_proxy_new_sync ( |
| 179 | GDBusConnection *connection, |
| 180 | GDBusProxyFlags flags, |
| 181 | const gchar *name, |
| 182 | const gchar *object_path, |
| 183 | GCancellable *cancellable, |
| 184 | GError **error); |
| 185 | |
| 186 | void watchdog_proxy_new_for_bus ( |
| 187 | GBusType bus_type, |
| 188 | GDBusProxyFlags flags, |
| 189 | const gchar *name, |
| 190 | const gchar *object_path, |
| 191 | GCancellable *cancellable, |
| 192 | GAsyncReadyCallback callback, |
| 193 | gpointer user_data); |
| 194 | Watchdog *watchdog_proxy_new_for_bus_finish ( |
| 195 | GAsyncResult *res, |
| 196 | GError **error); |
| 197 | Watchdog *watchdog_proxy_new_for_bus_sync ( |
| 198 | GBusType bus_type, |
| 199 | GDBusProxyFlags flags, |
| 200 | const gchar *name, |
| 201 | const gchar *object_path, |
| 202 | GCancellable *cancellable, |
| 203 | GError **error); |
| 204 | |
| 205 | |
| 206 | /* ---- */ |
| 207 | |
| 208 | #define TYPE_WATCHDOG_SKELETON (watchdog_skeleton_get_type ()) |
| 209 | #define WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeleton)) |
| 210 | #define WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass)) |
| 211 | #define WATCHDOG_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_WATCHDOG_SKELETON, WatchdogSkeletonClass)) |
| 212 | #define IS_WATCHDOG_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_WATCHDOG_SKELETON)) |
| 213 | #define IS_WATCHDOG_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_WATCHDOG_SKELETON)) |
| 214 | |
| 215 | typedef struct _WatchdogSkeleton WatchdogSkeleton; |
| 216 | typedef struct _WatchdogSkeletonClass WatchdogSkeletonClass; |
| 217 | typedef struct _WatchdogSkeletonPrivate WatchdogSkeletonPrivate; |
| 218 | |
| 219 | struct _WatchdogSkeleton |
| 220 | { |
| 221 | /*< private >*/ |
| 222 | GDBusInterfaceSkeleton parent_instance; |
| 223 | WatchdogSkeletonPrivate *priv; |
| 224 | }; |
| 225 | |
| 226 | struct _WatchdogSkeletonClass |
| 227 | { |
| 228 | GDBusInterfaceSkeletonClass parent_class; |
| 229 | }; |
| 230 | |
| 231 | GType watchdog_skeleton_get_type (void) G_GNUC_CONST; |
| 232 | |
| 233 | Watchdog *watchdog_skeleton_new (void); |
| 234 | |
| 235 | |
| 236 | /* ---- */ |
| 237 | |
| 238 | #define TYPE_OBJECT (object_get_type ()) |
| 239 | #define OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT, Object)) |
| 240 | #define IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT)) |
| 241 | #define OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_OBJECT, Object)) |
| 242 | |
| 243 | struct _Object; |
| 244 | typedef struct _Object Object; |
| 245 | typedef struct _ObjectIface ObjectIface; |
| 246 | |
| 247 | struct _ObjectIface |
| 248 | { |
| 249 | GTypeInterface parent_iface; |
| 250 | }; |
| 251 | |
| 252 | GType object_get_type (void) G_GNUC_CONST; |
| 253 | |
| 254 | Watchdog *object_get_watchdog (Object *object); |
| 255 | Watchdog *object_peek_watchdog (Object *object); |
| 256 | |
| 257 | #define TYPE_OBJECT_PROXY (object_proxy_get_type ()) |
| 258 | #define OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_PROXY, ObjectProxy)) |
| 259 | #define OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 260 | #define OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_PROXY, ObjectProxyClass)) |
| 261 | #define IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_PROXY)) |
| 262 | #define IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_PROXY)) |
| 263 | |
| 264 | typedef struct _ObjectProxy ObjectProxy; |
| 265 | typedef struct _ObjectProxyClass ObjectProxyClass; |
| 266 | typedef struct _ObjectProxyPrivate ObjectProxyPrivate; |
| 267 | |
| 268 | struct _ObjectProxy |
| 269 | { |
| 270 | /*< private >*/ |
| 271 | GDBusObjectProxy parent_instance; |
| 272 | ObjectProxyPrivate *priv; |
| 273 | }; |
| 274 | |
| 275 | struct _ObjectProxyClass |
| 276 | { |
| 277 | GDBusObjectProxyClass parent_class; |
| 278 | }; |
| 279 | |
| 280 | GType object_proxy_get_type (void) G_GNUC_CONST; |
| 281 | ObjectProxy *object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 282 | |
| 283 | #define TYPE_OBJECT_SKELETON (object_skeleton_get_type ()) |
| 284 | #define OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_SKELETON, ObjectSkeleton)) |
| 285 | #define OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 286 | #define OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_SKELETON, ObjectSkeletonClass)) |
| 287 | #define IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_SKELETON)) |
| 288 | #define IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_SKELETON)) |
| 289 | |
| 290 | typedef struct _ObjectSkeleton ObjectSkeleton; |
| 291 | typedef struct _ObjectSkeletonClass ObjectSkeletonClass; |
| 292 | typedef struct _ObjectSkeletonPrivate ObjectSkeletonPrivate; |
| 293 | |
| 294 | struct _ObjectSkeleton |
| 295 | { |
| 296 | /*< private >*/ |
| 297 | GDBusObjectSkeleton parent_instance; |
| 298 | ObjectSkeletonPrivate *priv; |
| 299 | }; |
| 300 | |
| 301 | struct _ObjectSkeletonClass |
| 302 | { |
| 303 | GDBusObjectSkeletonClass parent_class; |
| 304 | }; |
| 305 | |
| 306 | GType object_skeleton_get_type (void) G_GNUC_CONST; |
| 307 | ObjectSkeleton *object_skeleton_new (const gchar *object_path); |
| 308 | void object_skeleton_set_watchdog (ObjectSkeleton *object, Watchdog *interface_); |
| 309 | |
| 310 | /* ---- */ |
| 311 | |
| 312 | #define TYPE_OBJECT_MANAGER_CLIENT (object_manager_client_get_type ()) |
| 313 | #define OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClient)) |
| 314 | #define OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 315 | #define OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_OBJECT_MANAGER_CLIENT, ObjectManagerClientClass)) |
| 316 | #define IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_OBJECT_MANAGER_CLIENT)) |
| 317 | #define IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_OBJECT_MANAGER_CLIENT)) |
| 318 | |
| 319 | typedef struct _ObjectManagerClient ObjectManagerClient; |
| 320 | typedef struct _ObjectManagerClientClass ObjectManagerClientClass; |
| 321 | typedef struct _ObjectManagerClientPrivate ObjectManagerClientPrivate; |
| 322 | |
| 323 | struct _ObjectManagerClient |
| 324 | { |
| 325 | /*< private >*/ |
| 326 | GDBusObjectManagerClient parent_instance; |
| 327 | ObjectManagerClientPrivate *priv; |
| 328 | }; |
| 329 | |
| 330 | struct _ObjectManagerClientClass |
| 331 | { |
| 332 | GDBusObjectManagerClientClass parent_class; |
| 333 | }; |
| 334 | |
| 335 | GType object_manager_client_get_type (void) G_GNUC_CONST; |
| 336 | |
| 337 | GType object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 338 | |
| 339 | void object_manager_client_new ( |
| 340 | GDBusConnection *connection, |
| 341 | GDBusObjectManagerClientFlags flags, |
| 342 | const gchar *name, |
| 343 | const gchar *object_path, |
| 344 | GCancellable *cancellable, |
| 345 | GAsyncReadyCallback callback, |
| 346 | gpointer user_data); |
| 347 | GDBusObjectManager *object_manager_client_new_finish ( |
| 348 | GAsyncResult *res, |
| 349 | GError **error); |
| 350 | GDBusObjectManager *object_manager_client_new_sync ( |
| 351 | GDBusConnection *connection, |
| 352 | GDBusObjectManagerClientFlags flags, |
| 353 | const gchar *name, |
| 354 | const gchar *object_path, |
| 355 | GCancellable *cancellable, |
| 356 | GError **error); |
| 357 | |
| 358 | void object_manager_client_new_for_bus ( |
| 359 | GBusType bus_type, |
| 360 | GDBusObjectManagerClientFlags flags, |
| 361 | const gchar *name, |
| 362 | const gchar *object_path, |
| 363 | GCancellable *cancellable, |
| 364 | GAsyncReadyCallback callback, |
| 365 | gpointer user_data); |
| 366 | GDBusObjectManager *object_manager_client_new_for_bus_finish ( |
| 367 | GAsyncResult *res, |
| 368 | GError **error); |
| 369 | GDBusObjectManager *object_manager_client_new_for_bus_sync ( |
| 370 | GBusType bus_type, |
| 371 | GDBusObjectManagerClientFlags flags, |
| 372 | const gchar *name, |
| 373 | const gchar *object_path, |
| 374 | GCancellable *cancellable, |
| 375 | GError **error); |
| 376 | |
| 377 | |
| 378 | G_END_DECLS |
| 379 | |
| 380 | #endif /* __INTERFACES_WATCHDOG_H__ */ |