| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#ifndef __GENERATED_GPIODBUS_H__ |
| 10 |
#define __GENERATED_GPIODBUS_H__ |
| 11 |
|
| 12 |
#include <gio/gio.h> |
| 13 |
|
| 14 |
G_BEGIN_DECLS |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#define GPIODBUS_TYPE_CHIP (gpiodbus_chip_get_type ()) |
| 21 |
#define GPIODBUS_CHIP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_CHIP, GpiodbusChip)) |
| 22 |
#define GPIODBUS_IS_CHIP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_CHIP)) |
| 23 |
#define GPIODBUS_CHIP_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GPIODBUS_TYPE_CHIP, GpiodbusChipIface)) |
| 24 |
|
| 25 |
struct _GpiodbusChip; |
| 26 |
typedef struct _GpiodbusChip GpiodbusChip; |
| 27 |
typedef struct _GpiodbusChipIface GpiodbusChipIface; |
| 28 |
|
| 29 |
struct _GpiodbusChipIface |
| 30 |
{ |
| 31 |
GTypeInterface parent_iface; |
| 32 |
|
| 33 |
|
| 34 |
gboolean (*handle_request_lines) ( |
| 35 |
GpiodbusChip *object, |
| 36 |
GDBusMethodInvocation *invocation, |
| 37 |
GVariant *arg_line_config, |
| 38 |
GVariant *arg_request_config); |
| 39 |
|
| 40 |
const gchar * (*get_label) (GpiodbusChip *object); |
| 41 |
|
| 42 |
const gchar * (*get_name) (GpiodbusChip *object); |
| 43 |
|
| 44 |
guint (*get_num_lines) (GpiodbusChip *object); |
| 45 |
|
| 46 |
const gchar * (*get_path) (GpiodbusChip *object); |
| 47 |
|
| 48 |
}; |
| 49 |
|
| 50 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 51 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusChip, g_object_unref) |
| 52 |
#endif |
| 53 |
|
| 54 |
GType gpiodbus_chip_get_type (void) G_GNUC_CONST; |
| 55 |
|
| 56 |
GDBusInterfaceInfo *gpiodbus_chip_interface_info (void); |
| 57 |
guint gpiodbus_chip_override_properties (GObjectClass *klass, guint property_id_begin); |
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
void gpiodbus_chip_complete_request_lines ( |
| 62 |
GpiodbusChip *object, |
| 63 |
GDBusMethodInvocation *invocation, |
| 64 |
const gchar *request_path); |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
void gpiodbus_chip_call_request_lines ( |
| 70 |
GpiodbusChip *proxy, |
| 71 |
GVariant *arg_line_config, |
| 72 |
GVariant *arg_request_config, |
| 73 |
GDBusCallFlags call_flags, |
| 74 |
gint timeout_msec, |
| 75 |
GCancellable *cancellable, |
| 76 |
GAsyncReadyCallback callback, |
| 77 |
gpointer user_data); |
| 78 |
|
| 79 |
gboolean gpiodbus_chip_call_request_lines_finish ( |
| 80 |
GpiodbusChip *proxy, |
| 81 |
gchar **out_request_path, |
| 82 |
GAsyncResult *res, |
| 83 |
GError **error); |
| 84 |
|
| 85 |
gboolean gpiodbus_chip_call_request_lines_sync ( |
| 86 |
GpiodbusChip *proxy, |
| 87 |
GVariant *arg_line_config, |
| 88 |
GVariant *arg_request_config, |
| 89 |
GDBusCallFlags call_flags, |
| 90 |
gint timeout_msec, |
| 91 |
gchar **out_request_path, |
| 92 |
GCancellable *cancellable, |
| 93 |
GError **error); |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
const gchar *gpiodbus_chip_get_name (GpiodbusChip *object); |
| 99 |
gchar *gpiodbus_chip_dup_name (GpiodbusChip *object); |
| 100 |
void gpiodbus_chip_set_name (GpiodbusChip *object, const gchar *value); |
| 101 |
|
| 102 |
const gchar *gpiodbus_chip_get_label (GpiodbusChip *object); |
| 103 |
gchar *gpiodbus_chip_dup_label (GpiodbusChip *object); |
| 104 |
void gpiodbus_chip_set_label (GpiodbusChip *object, const gchar *value); |
| 105 |
|
| 106 |
guint gpiodbus_chip_get_num_lines (GpiodbusChip *object); |
| 107 |
void gpiodbus_chip_set_num_lines (GpiodbusChip *object, guint value); |
| 108 |
|
| 109 |
const gchar *gpiodbus_chip_get_path (GpiodbusChip *object); |
| 110 |
gchar *gpiodbus_chip_dup_path (GpiodbusChip *object); |
| 111 |
void gpiodbus_chip_set_path (GpiodbusChip *object, const gchar *value); |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
#define GPIODBUS_TYPE_CHIP_PROXY (gpiodbus_chip_proxy_get_type ()) |
| 117 |
#define GPIODBUS_CHIP_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_CHIP_PROXY, GpiodbusChipProxy)) |
| 118 |
#define GPIODBUS_CHIP_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GPIODBUS_TYPE_CHIP_PROXY, GpiodbusChipProxyClass)) |
| 119 |
#define GPIODBUS_CHIP_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GPIODBUS_TYPE_CHIP_PROXY, GpiodbusChipProxyClass)) |
| 120 |
#define GPIODBUS_IS_CHIP_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_CHIP_PROXY)) |
| 121 |
#define GPIODBUS_IS_CHIP_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GPIODBUS_TYPE_CHIP_PROXY)) |
| 122 |
|
| 123 |
typedef struct _GpiodbusChipProxy GpiodbusChipProxy; |
| 124 |
typedef struct _GpiodbusChipProxyClass GpiodbusChipProxyClass; |
| 125 |
typedef struct _GpiodbusChipProxyPrivate GpiodbusChipProxyPrivate; |
| 126 |
|
| 127 |
struct _GpiodbusChipProxy |
| 128 |
{ |
| 129 |
|
| 130 |
GDBusProxy parent_instance; |
| 131 |
GpiodbusChipProxyPrivate *priv; |
| 132 |
}; |
| 133 |
|
| 134 |
struct _GpiodbusChipProxyClass |
| 135 |
{ |
| 136 |
GDBusProxyClass parent_class; |
| 137 |
}; |
| 138 |
|
| 139 |
GType gpiodbus_chip_proxy_get_type (void) G_GNUC_CONST; |
| 140 |
|
| 141 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 142 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusChipProxy, g_object_unref) |
| 143 |
#endif |
| 144 |
|
| 145 |
void gpiodbus_chip_proxy_new ( |
| 146 |
GDBusConnection *connection, |
| 147 |
GDBusProxyFlags flags, |
| 148 |
const gchar *name, |
| 149 |
const gchar *object_path, |
| 150 |
GCancellable *cancellable, |
| 151 |
GAsyncReadyCallback callback, |
| 152 |
gpointer user_data); |
| 153 |
GpiodbusChip *gpiodbus_chip_proxy_new_finish ( |
| 154 |
GAsyncResult *res, |
| 155 |
GError **error); |
| 156 |
GpiodbusChip *gpiodbus_chip_proxy_new_sync ( |
| 157 |
GDBusConnection *connection, |
| 158 |
GDBusProxyFlags flags, |
| 159 |
const gchar *name, |
| 160 |
const gchar *object_path, |
| 161 |
GCancellable *cancellable, |
| 162 |
GError **error); |
| 163 |
|
| 164 |
void gpiodbus_chip_proxy_new_for_bus ( |
| 165 |
GBusType bus_type, |
| 166 |
GDBusProxyFlags flags, |
| 167 |
const gchar *name, |
| 168 |
const gchar *object_path, |
| 169 |
GCancellable *cancellable, |
| 170 |
GAsyncReadyCallback callback, |
| 171 |
gpointer user_data); |
| 172 |
GpiodbusChip *gpiodbus_chip_proxy_new_for_bus_finish ( |
| 173 |
GAsyncResult *res, |
| 174 |
GError **error); |
| 175 |
GpiodbusChip *gpiodbus_chip_proxy_new_for_bus_sync ( |
| 176 |
GBusType bus_type, |
| 177 |
GDBusProxyFlags flags, |
| 178 |
const gchar *name, |
| 179 |
const gchar *object_path, |
| 180 |
GCancellable *cancellable, |
| 181 |
GError **error); |
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
#define GPIODBUS_TYPE_CHIP_SKELETON (gpiodbus_chip_skeleton_get_type ()) |
| 187 |
#define GPIODBUS_CHIP_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_CHIP_SKELETON, GpiodbusChipSkeleton)) |
| 188 |
#define GPIODBUS_CHIP_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GPIODBUS_TYPE_CHIP_SKELETON, GpiodbusChipSkeletonClass)) |
| 189 |
#define GPIODBUS_CHIP_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GPIODBUS_TYPE_CHIP_SKELETON, GpiodbusChipSkeletonClass)) |
| 190 |
#define GPIODBUS_IS_CHIP_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_CHIP_SKELETON)) |
| 191 |
#define GPIODBUS_IS_CHIP_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GPIODBUS_TYPE_CHIP_SKELETON)) |
| 192 |
|
| 193 |
typedef struct _GpiodbusChipSkeleton GpiodbusChipSkeleton; |
| 194 |
typedef struct _GpiodbusChipSkeletonClass GpiodbusChipSkeletonClass; |
| 195 |
typedef struct _GpiodbusChipSkeletonPrivate GpiodbusChipSkeletonPrivate; |
| 196 |
|
| 197 |
struct _GpiodbusChipSkeleton |
| 198 |
{ |
| 199 |
|
| 200 |
GDBusInterfaceSkeleton parent_instance; |
| 201 |
GpiodbusChipSkeletonPrivate *priv; |
| 202 |
}; |
| 203 |
|
| 204 |
struct _GpiodbusChipSkeletonClass |
| 205 |
{ |
| 206 |
GDBusInterfaceSkeletonClass parent_class; |
| 207 |
}; |
| 208 |
|
| 209 |
GType gpiodbus_chip_skeleton_get_type (void) G_GNUC_CONST; |
| 210 |
|
| 211 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 212 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusChipSkeleton, g_object_unref) |
| 213 |
#endif |
| 214 |
|
| 215 |
GpiodbusChip *gpiodbus_chip_skeleton_new (void); |
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
#define GPIODBUS_TYPE_LINE (gpiodbus_line_get_type ()) |
| 222 |
#define GPIODBUS_LINE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_LINE, GpiodbusLine)) |
| 223 |
#define GPIODBUS_IS_LINE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_LINE)) |
| 224 |
#define GPIODBUS_LINE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GPIODBUS_TYPE_LINE, GpiodbusLineIface)) |
| 225 |
|
| 226 |
struct _GpiodbusLine; |
| 227 |
typedef struct _GpiodbusLine GpiodbusLine; |
| 228 |
typedef struct _GpiodbusLineIface GpiodbusLineIface; |
| 229 |
|
| 230 |
struct _GpiodbusLineIface |
| 231 |
{ |
| 232 |
GTypeInterface parent_iface; |
| 233 |
|
| 234 |
|
| 235 |
gboolean (*get_active_low) (GpiodbusLine *object); |
| 236 |
|
| 237 |
const gchar * (*get_bias) (GpiodbusLine *object); |
| 238 |
|
| 239 |
const gchar * (*get_consumer) (GpiodbusLine *object); |
| 240 |
|
| 241 |
guint64 (*get_debounce_period_us) (GpiodbusLine *object); |
| 242 |
|
| 243 |
gboolean (*get_debounced) (GpiodbusLine *object); |
| 244 |
|
| 245 |
const gchar * (*get_direction) (GpiodbusLine *object); |
| 246 |
|
| 247 |
const gchar * (*get_drive) (GpiodbusLine *object); |
| 248 |
|
| 249 |
const gchar * (*get_edge_detection) (GpiodbusLine *object); |
| 250 |
|
| 251 |
const gchar * (*get_event_clock) (GpiodbusLine *object); |
| 252 |
|
| 253 |
gboolean (*get_managed) (GpiodbusLine *object); |
| 254 |
|
| 255 |
const gchar * (*get_name) (GpiodbusLine *object); |
| 256 |
|
| 257 |
guint (*get_offset) (GpiodbusLine *object); |
| 258 |
|
| 259 |
const gchar * (*get_request_path) (GpiodbusLine *object); |
| 260 |
|
| 261 |
gboolean (*get_used) (GpiodbusLine *object); |
| 262 |
|
| 263 |
void (*edge_event) ( |
| 264 |
GpiodbusLine *object, |
| 265 |
GVariant *arg_event_data); |
| 266 |
|
| 267 |
}; |
| 268 |
|
| 269 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 270 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusLine, g_object_unref) |
| 271 |
#endif |
| 272 |
|
| 273 |
GType gpiodbus_line_get_type (void) G_GNUC_CONST; |
| 274 |
|
| 275 |
GDBusInterfaceInfo *gpiodbus_line_interface_info (void); |
| 276 |
guint gpiodbus_line_override_properties (GObjectClass *klass, guint property_id_begin); |
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
void gpiodbus_line_emit_edge_event ( |
| 281 |
GpiodbusLine *object, |
| 282 |
GVariant *arg_event_data); |
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
guint gpiodbus_line_get_offset (GpiodbusLine *object); |
| 288 |
void gpiodbus_line_set_offset (GpiodbusLine *object, guint value); |
| 289 |
|
| 290 |
const gchar *gpiodbus_line_get_name (GpiodbusLine *object); |
| 291 |
gchar *gpiodbus_line_dup_name (GpiodbusLine *object); |
| 292 |
void gpiodbus_line_set_name (GpiodbusLine *object, const gchar *value); |
| 293 |
|
| 294 |
gboolean gpiodbus_line_get_used (GpiodbusLine *object); |
| 295 |
void gpiodbus_line_set_used (GpiodbusLine *object, gboolean value); |
| 296 |
|
| 297 |
const gchar *gpiodbus_line_get_consumer (GpiodbusLine *object); |
| 298 |
gchar *gpiodbus_line_dup_consumer (GpiodbusLine *object); |
| 299 |
void gpiodbus_line_set_consumer (GpiodbusLine *object, const gchar *value); |
| 300 |
|
| 301 |
const gchar *gpiodbus_line_get_direction (GpiodbusLine *object); |
| 302 |
gchar *gpiodbus_line_dup_direction (GpiodbusLine *object); |
| 303 |
void gpiodbus_line_set_direction (GpiodbusLine *object, const gchar *value); |
| 304 |
|
| 305 |
const gchar *gpiodbus_line_get_edge_detection (GpiodbusLine *object); |
| 306 |
gchar *gpiodbus_line_dup_edge_detection (GpiodbusLine *object); |
| 307 |
void gpiodbus_line_set_edge_detection (GpiodbusLine *object, const gchar *value); |
| 308 |
|
| 309 |
const gchar *gpiodbus_line_get_bias (GpiodbusLine *object); |
| 310 |
gchar *gpiodbus_line_dup_bias (GpiodbusLine *object); |
| 311 |
void gpiodbus_line_set_bias (GpiodbusLine *object, const gchar *value); |
| 312 |
|
| 313 |
const gchar *gpiodbus_line_get_drive (GpiodbusLine *object); |
| 314 |
gchar *gpiodbus_line_dup_drive (GpiodbusLine *object); |
| 315 |
void gpiodbus_line_set_drive (GpiodbusLine *object, const gchar *value); |
| 316 |
|
| 317 |
gboolean gpiodbus_line_get_active_low (GpiodbusLine *object); |
| 318 |
void gpiodbus_line_set_active_low (GpiodbusLine *object, gboolean value); |
| 319 |
|
| 320 |
gboolean gpiodbus_line_get_debounced (GpiodbusLine *object); |
| 321 |
void gpiodbus_line_set_debounced (GpiodbusLine *object, gboolean value); |
| 322 |
|
| 323 |
guint64 gpiodbus_line_get_debounce_period_us (GpiodbusLine *object); |
| 324 |
void gpiodbus_line_set_debounce_period_us (GpiodbusLine *object, guint64 value); |
| 325 |
|
| 326 |
const gchar *gpiodbus_line_get_event_clock (GpiodbusLine *object); |
| 327 |
gchar *gpiodbus_line_dup_event_clock (GpiodbusLine *object); |
| 328 |
void gpiodbus_line_set_event_clock (GpiodbusLine *object, const gchar *value); |
| 329 |
|
| 330 |
gboolean gpiodbus_line_get_managed (GpiodbusLine *object); |
| 331 |
void gpiodbus_line_set_managed (GpiodbusLine *object, gboolean value); |
| 332 |
|
| 333 |
const gchar *gpiodbus_line_get_request_path (GpiodbusLine *object); |
| 334 |
gchar *gpiodbus_line_dup_request_path (GpiodbusLine *object); |
| 335 |
void gpiodbus_line_set_request_path (GpiodbusLine *object, const gchar *value); |
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
#define GPIODBUS_TYPE_LINE_PROXY (gpiodbus_line_proxy_get_type ()) |
| 341 |
#define GPIODBUS_LINE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_LINE_PROXY, GpiodbusLineProxy)) |
| 342 |
#define GPIODBUS_LINE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GPIODBUS_TYPE_LINE_PROXY, GpiodbusLineProxyClass)) |
| 343 |
#define GPIODBUS_LINE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GPIODBUS_TYPE_LINE_PROXY, GpiodbusLineProxyClass)) |
| 344 |
#define GPIODBUS_IS_LINE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_LINE_PROXY)) |
| 345 |
#define GPIODBUS_IS_LINE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GPIODBUS_TYPE_LINE_PROXY)) |
| 346 |
|
| 347 |
typedef struct _GpiodbusLineProxy GpiodbusLineProxy; |
| 348 |
typedef struct _GpiodbusLineProxyClass GpiodbusLineProxyClass; |
| 349 |
typedef struct _GpiodbusLineProxyPrivate GpiodbusLineProxyPrivate; |
| 350 |
|
| 351 |
struct _GpiodbusLineProxy |
| 352 |
{ |
| 353 |
|
| 354 |
GDBusProxy parent_instance; |
| 355 |
GpiodbusLineProxyPrivate *priv; |
| 356 |
}; |
| 357 |
|
| 358 |
struct _GpiodbusLineProxyClass |
| 359 |
{ |
| 360 |
GDBusProxyClass parent_class; |
| 361 |
}; |
| 362 |
|
| 363 |
GType gpiodbus_line_proxy_get_type (void) G_GNUC_CONST; |
| 364 |
|
| 365 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 366 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusLineProxy, g_object_unref) |
| 367 |
#endif |
| 368 |
|
| 369 |
void gpiodbus_line_proxy_new ( |
| 370 |
GDBusConnection *connection, |
| 371 |
GDBusProxyFlags flags, |
| 372 |
const gchar *name, |
| 373 |
const gchar *object_path, |
| 374 |
GCancellable *cancellable, |
| 375 |
GAsyncReadyCallback callback, |
| 376 |
gpointer user_data); |
| 377 |
GpiodbusLine *gpiodbus_line_proxy_new_finish ( |
| 378 |
GAsyncResult *res, |
| 379 |
GError **error); |
| 380 |
GpiodbusLine *gpiodbus_line_proxy_new_sync ( |
| 381 |
GDBusConnection *connection, |
| 382 |
GDBusProxyFlags flags, |
| 383 |
const gchar *name, |
| 384 |
const gchar *object_path, |
| 385 |
GCancellable *cancellable, |
| 386 |
GError **error); |
| 387 |
|
| 388 |
void gpiodbus_line_proxy_new_for_bus ( |
| 389 |
GBusType bus_type, |
| 390 |
GDBusProxyFlags flags, |
| 391 |
const gchar *name, |
| 392 |
const gchar *object_path, |
| 393 |
GCancellable *cancellable, |
| 394 |
GAsyncReadyCallback callback, |
| 395 |
gpointer user_data); |
| 396 |
GpiodbusLine *gpiodbus_line_proxy_new_for_bus_finish ( |
| 397 |
GAsyncResult *res, |
| 398 |
GError **error); |
| 399 |
GpiodbusLine *gpiodbus_line_proxy_new_for_bus_sync ( |
| 400 |
GBusType bus_type, |
| 401 |
GDBusProxyFlags flags, |
| 402 |
const gchar *name, |
| 403 |
const gchar *object_path, |
| 404 |
GCancellable *cancellable, |
| 405 |
GError **error); |
| 406 |
|
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
#define GPIODBUS_TYPE_LINE_SKELETON (gpiodbus_line_skeleton_get_type ()) |
| 411 |
#define GPIODBUS_LINE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_LINE_SKELETON, GpiodbusLineSkeleton)) |
| 412 |
#define GPIODBUS_LINE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GPIODBUS_TYPE_LINE_SKELETON, GpiodbusLineSkeletonClass)) |
| 413 |
#define GPIODBUS_LINE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GPIODBUS_TYPE_LINE_SKELETON, GpiodbusLineSkeletonClass)) |
| 414 |
#define GPIODBUS_IS_LINE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_LINE_SKELETON)) |
| 415 |
#define GPIODBUS_IS_LINE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GPIODBUS_TYPE_LINE_SKELETON)) |
| 416 |
|
| 417 |
typedef struct _GpiodbusLineSkeleton GpiodbusLineSkeleton; |
| 418 |
typedef struct _GpiodbusLineSkeletonClass GpiodbusLineSkeletonClass; |
| 419 |
typedef struct _GpiodbusLineSkeletonPrivate GpiodbusLineSkeletonPrivate; |
| 420 |
|
| 421 |
struct _GpiodbusLineSkeleton |
| 422 |
{ |
| 423 |
|
| 424 |
GDBusInterfaceSkeleton parent_instance; |
| 425 |
GpiodbusLineSkeletonPrivate *priv; |
| 426 |
}; |
| 427 |
|
| 428 |
struct _GpiodbusLineSkeletonClass |
| 429 |
{ |
| 430 |
GDBusInterfaceSkeletonClass parent_class; |
| 431 |
}; |
| 432 |
|
| 433 |
GType gpiodbus_line_skeleton_get_type (void) G_GNUC_CONST; |
| 434 |
|
| 435 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 436 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusLineSkeleton, g_object_unref) |
| 437 |
#endif |
| 438 |
|
| 439 |
GpiodbusLine *gpiodbus_line_skeleton_new (void); |
| 440 |
|
| 441 |
|
| 442 |
|
| 443 |
|
| 444 |
|
| 445 |
#define GPIODBUS_TYPE_REQUEST (gpiodbus_request_get_type ()) |
| 446 |
#define GPIODBUS_REQUEST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_REQUEST, GpiodbusRequest)) |
| 447 |
#define GPIODBUS_IS_REQUEST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_REQUEST)) |
| 448 |
#define GPIODBUS_REQUEST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GPIODBUS_TYPE_REQUEST, GpiodbusRequestIface)) |
| 449 |
|
| 450 |
struct _GpiodbusRequest; |
| 451 |
typedef struct _GpiodbusRequest GpiodbusRequest; |
| 452 |
typedef struct _GpiodbusRequestIface GpiodbusRequestIface; |
| 453 |
|
| 454 |
struct _GpiodbusRequestIface |
| 455 |
{ |
| 456 |
GTypeInterface parent_iface; |
| 457 |
|
| 458 |
|
| 459 |
gboolean (*handle_get_values) ( |
| 460 |
GpiodbusRequest *object, |
| 461 |
GDBusMethodInvocation *invocation, |
| 462 |
GVariant *arg_offsets); |
| 463 |
|
| 464 |
gboolean (*handle_reconfigure_lines) ( |
| 465 |
GpiodbusRequest *object, |
| 466 |
GDBusMethodInvocation *invocation, |
| 467 |
GVariant *arg_line_config); |
| 468 |
|
| 469 |
gboolean (*handle_release) ( |
| 470 |
GpiodbusRequest *object, |
| 471 |
GDBusMethodInvocation *invocation); |
| 472 |
|
| 473 |
gboolean (*handle_set_values) ( |
| 474 |
GpiodbusRequest *object, |
| 475 |
GDBusMethodInvocation *invocation, |
| 476 |
GVariant *arg_values); |
| 477 |
|
| 478 |
const gchar * (*get_chip_path) (GpiodbusRequest *object); |
| 479 |
|
| 480 |
const gchar *const * (*get_line_paths) (GpiodbusRequest *object); |
| 481 |
|
| 482 |
}; |
| 483 |
|
| 484 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 485 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusRequest, g_object_unref) |
| 486 |
#endif |
| 487 |
|
| 488 |
GType gpiodbus_request_get_type (void) G_GNUC_CONST; |
| 489 |
|
| 490 |
GDBusInterfaceInfo *gpiodbus_request_interface_info (void); |
| 491 |
guint gpiodbus_request_override_properties (GObjectClass *klass, guint property_id_begin); |
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
void gpiodbus_request_complete_release ( |
| 496 |
GpiodbusRequest *object, |
| 497 |
GDBusMethodInvocation *invocation); |
| 498 |
|
| 499 |
void gpiodbus_request_complete_reconfigure_lines ( |
| 500 |
GpiodbusRequest *object, |
| 501 |
GDBusMethodInvocation *invocation); |
| 502 |
|
| 503 |
void gpiodbus_request_complete_get_values ( |
| 504 |
GpiodbusRequest *object, |
| 505 |
GDBusMethodInvocation *invocation, |
| 506 |
GVariant *values); |
| 507 |
|
| 508 |
void gpiodbus_request_complete_set_values ( |
| 509 |
GpiodbusRequest *object, |
| 510 |
GDBusMethodInvocation *invocation); |
| 511 |
|
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
void gpiodbus_request_call_release ( |
| 516 |
GpiodbusRequest *proxy, |
| 517 |
GDBusCallFlags call_flags, |
| 518 |
gint timeout_msec, |
| 519 |
GCancellable *cancellable, |
| 520 |
GAsyncReadyCallback callback, |
| 521 |
gpointer user_data); |
| 522 |
|
| 523 |
gboolean gpiodbus_request_call_release_finish ( |
| 524 |
GpiodbusRequest *proxy, |
| 525 |
GAsyncResult *res, |
| 526 |
GError **error); |
| 527 |
|
| 528 |
gboolean gpiodbus_request_call_release_sync ( |
| 529 |
GpiodbusRequest *proxy, |
| 530 |
GDBusCallFlags call_flags, |
| 531 |
gint timeout_msec, |
| 532 |
GCancellable *cancellable, |
| 533 |
GError **error); |
| 534 |
|
| 535 |
void gpiodbus_request_call_reconfigure_lines ( |
| 536 |
GpiodbusRequest *proxy, |
| 537 |
GVariant *arg_line_config, |
| 538 |
GDBusCallFlags call_flags, |
| 539 |
gint timeout_msec, |
| 540 |
GCancellable *cancellable, |
| 541 |
GAsyncReadyCallback callback, |
| 542 |
gpointer user_data); |
| 543 |
|
| 544 |
gboolean gpiodbus_request_call_reconfigure_lines_finish ( |
| 545 |
GpiodbusRequest *proxy, |
| 546 |
GAsyncResult *res, |
| 547 |
GError **error); |
| 548 |
|
| 549 |
gboolean gpiodbus_request_call_reconfigure_lines_sync ( |
| 550 |
GpiodbusRequest *proxy, |
| 551 |
GVariant *arg_line_config, |
| 552 |
GDBusCallFlags call_flags, |
| 553 |
gint timeout_msec, |
| 554 |
GCancellable *cancellable, |
| 555 |
GError **error); |
| 556 |
|
| 557 |
void gpiodbus_request_call_get_values ( |
| 558 |
GpiodbusRequest *proxy, |
| 559 |
GVariant *arg_offsets, |
| 560 |
GDBusCallFlags call_flags, |
| 561 |
gint timeout_msec, |
| 562 |
GCancellable *cancellable, |
| 563 |
GAsyncReadyCallback callback, |
| 564 |
gpointer user_data); |
| 565 |
|
| 566 |
gboolean gpiodbus_request_call_get_values_finish ( |
| 567 |
GpiodbusRequest *proxy, |
| 568 |
GVariant **out_values, |
| 569 |
GAsyncResult *res, |
| 570 |
GError **error); |
| 571 |
|
| 572 |
gboolean gpiodbus_request_call_get_values_sync ( |
| 573 |
GpiodbusRequest *proxy, |
| 574 |
GVariant *arg_offsets, |
| 575 |
GDBusCallFlags call_flags, |
| 576 |
gint timeout_msec, |
| 577 |
GVariant **out_values, |
| 578 |
GCancellable *cancellable, |
| 579 |
GError **error); |
| 580 |
|
| 581 |
void gpiodbus_request_call_set_values ( |
| 582 |
GpiodbusRequest *proxy, |
| 583 |
GVariant *arg_values, |
| 584 |
GDBusCallFlags call_flags, |
| 585 |
gint timeout_msec, |
| 586 |
GCancellable *cancellable, |
| 587 |
GAsyncReadyCallback callback, |
| 588 |
gpointer user_data); |
| 589 |
|
| 590 |
gboolean gpiodbus_request_call_set_values_finish ( |
| 591 |
GpiodbusRequest *proxy, |
| 592 |
GAsyncResult *res, |
| 593 |
GError **error); |
| 594 |
|
| 595 |
gboolean gpiodbus_request_call_set_values_sync ( |
| 596 |
GpiodbusRequest *proxy, |
| 597 |
GVariant *arg_values, |
| 598 |
GDBusCallFlags call_flags, |
| 599 |
gint timeout_msec, |
| 600 |
GCancellable *cancellable, |
| 601 |
GError **error); |
| 602 |
|
| 603 |
|
| 604 |
|
| 605 |
|
| 606 |
const gchar *gpiodbus_request_get_chip_path (GpiodbusRequest *object); |
| 607 |
gchar *gpiodbus_request_dup_chip_path (GpiodbusRequest *object); |
| 608 |
void gpiodbus_request_set_chip_path (GpiodbusRequest *object, const gchar *value); |
| 609 |
|
| 610 |
const gchar *const *gpiodbus_request_get_line_paths (GpiodbusRequest *object); |
| 611 |
gchar **gpiodbus_request_dup_line_paths (GpiodbusRequest *object); |
| 612 |
void gpiodbus_request_set_line_paths (GpiodbusRequest *object, const gchar *const *value); |
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
#define GPIODBUS_TYPE_REQUEST_PROXY (gpiodbus_request_proxy_get_type ()) |
| 618 |
#define GPIODBUS_REQUEST_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_REQUEST_PROXY, GpiodbusRequestProxy)) |
| 619 |
#define GPIODBUS_REQUEST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GPIODBUS_TYPE_REQUEST_PROXY, GpiodbusRequestProxyClass)) |
| 620 |
#define GPIODBUS_REQUEST_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GPIODBUS_TYPE_REQUEST_PROXY, GpiodbusRequestProxyClass)) |
| 621 |
#define GPIODBUS_IS_REQUEST_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_REQUEST_PROXY)) |
| 622 |
#define GPIODBUS_IS_REQUEST_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GPIODBUS_TYPE_REQUEST_PROXY)) |
| 623 |
|
| 624 |
typedef struct _GpiodbusRequestProxy GpiodbusRequestProxy; |
| 625 |
typedef struct _GpiodbusRequestProxyClass GpiodbusRequestProxyClass; |
| 626 |
typedef struct _GpiodbusRequestProxyPrivate GpiodbusRequestProxyPrivate; |
| 627 |
|
| 628 |
struct _GpiodbusRequestProxy |
| 629 |
{ |
| 630 |
|
| 631 |
GDBusProxy parent_instance; |
| 632 |
GpiodbusRequestProxyPrivate *priv; |
| 633 |
}; |
| 634 |
|
| 635 |
struct _GpiodbusRequestProxyClass |
| 636 |
{ |
| 637 |
GDBusProxyClass parent_class; |
| 638 |
}; |
| 639 |
|
| 640 |
GType gpiodbus_request_proxy_get_type (void) G_GNUC_CONST; |
| 641 |
|
| 642 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 643 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusRequestProxy, g_object_unref) |
| 644 |
#endif |
| 645 |
|
| 646 |
void gpiodbus_request_proxy_new ( |
| 647 |
GDBusConnection *connection, |
| 648 |
GDBusProxyFlags flags, |
| 649 |
const gchar *name, |
| 650 |
const gchar *object_path, |
| 651 |
GCancellable *cancellable, |
| 652 |
GAsyncReadyCallback callback, |
| 653 |
gpointer user_data); |
| 654 |
GpiodbusRequest *gpiodbus_request_proxy_new_finish ( |
| 655 |
GAsyncResult *res, |
| 656 |
GError **error); |
| 657 |
GpiodbusRequest *gpiodbus_request_proxy_new_sync ( |
| 658 |
GDBusConnection *connection, |
| 659 |
GDBusProxyFlags flags, |
| 660 |
const gchar *name, |
| 661 |
const gchar *object_path, |
| 662 |
GCancellable *cancellable, |
| 663 |
GError **error); |
| 664 |
|
| 665 |
void gpiodbus_request_proxy_new_for_bus ( |
| 666 |
GBusType bus_type, |
| 667 |
GDBusProxyFlags flags, |
| 668 |
const gchar *name, |
| 669 |
const gchar *object_path, |
| 670 |
GCancellable *cancellable, |
| 671 |
GAsyncReadyCallback callback, |
| 672 |
gpointer user_data); |
| 673 |
GpiodbusRequest *gpiodbus_request_proxy_new_for_bus_finish ( |
| 674 |
GAsyncResult *res, |
| 675 |
GError **error); |
| 676 |
GpiodbusRequest *gpiodbus_request_proxy_new_for_bus_sync ( |
| 677 |
GBusType bus_type, |
| 678 |
GDBusProxyFlags flags, |
| 679 |
const gchar *name, |
| 680 |
const gchar *object_path, |
| 681 |
GCancellable *cancellable, |
| 682 |
GError **error); |
| 683 |
|
| 684 |
|
| 685 |
|
| 686 |
|
| 687 |
#define GPIODBUS_TYPE_REQUEST_SKELETON (gpiodbus_request_skeleton_get_type ()) |
| 688 |
#define GPIODBUS_REQUEST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_REQUEST_SKELETON, GpiodbusRequestSkeleton)) |
| 689 |
#define GPIODBUS_REQUEST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GPIODBUS_TYPE_REQUEST_SKELETON, GpiodbusRequestSkeletonClass)) |
| 690 |
#define GPIODBUS_REQUEST_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GPIODBUS_TYPE_REQUEST_SKELETON, GpiodbusRequestSkeletonClass)) |
| 691 |
#define GPIODBUS_IS_REQUEST_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_REQUEST_SKELETON)) |
| 692 |
#define GPIODBUS_IS_REQUEST_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GPIODBUS_TYPE_REQUEST_SKELETON)) |
| 693 |
|
| 694 |
typedef struct _GpiodbusRequestSkeleton GpiodbusRequestSkeleton; |
| 695 |
typedef struct _GpiodbusRequestSkeletonClass GpiodbusRequestSkeletonClass; |
| 696 |
typedef struct _GpiodbusRequestSkeletonPrivate GpiodbusRequestSkeletonPrivate; |
| 697 |
|
| 698 |
struct _GpiodbusRequestSkeleton |
| 699 |
{ |
| 700 |
|
| 701 |
GDBusInterfaceSkeleton parent_instance; |
| 702 |
GpiodbusRequestSkeletonPrivate *priv; |
| 703 |
}; |
| 704 |
|
| 705 |
struct _GpiodbusRequestSkeletonClass |
| 706 |
{ |
| 707 |
GDBusInterfaceSkeletonClass parent_class; |
| 708 |
}; |
| 709 |
|
| 710 |
GType gpiodbus_request_skeleton_get_type (void) G_GNUC_CONST; |
| 711 |
|
| 712 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 713 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusRequestSkeleton, g_object_unref) |
| 714 |
#endif |
| 715 |
|
| 716 |
GpiodbusRequest *gpiodbus_request_skeleton_new (void); |
| 717 |
|
| 718 |
|
| 719 |
|
| 720 |
|
| 721 |
#define GPIODBUS_TYPE_OBJECT (gpiodbus_object_get_type ()) |
| 722 |
#define GPIODBUS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_OBJECT, GpiodbusObject)) |
| 723 |
#define GPIODBUS_IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_OBJECT)) |
| 724 |
#define GPIODBUS_OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GPIODBUS_TYPE_OBJECT, GpiodbusObject)) |
| 725 |
|
| 726 |
struct _GpiodbusObject; |
| 727 |
typedef struct _GpiodbusObject GpiodbusObject; |
| 728 |
typedef struct _GpiodbusObjectIface GpiodbusObjectIface; |
| 729 |
|
| 730 |
struct _GpiodbusObjectIface |
| 731 |
{ |
| 732 |
GTypeInterface parent_iface; |
| 733 |
}; |
| 734 |
|
| 735 |
GType gpiodbus_object_get_type (void) G_GNUC_CONST; |
| 736 |
|
| 737 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 738 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusObject, g_object_unref) |
| 739 |
#endif |
| 740 |
|
| 741 |
GpiodbusChip *gpiodbus_object_get_chip (GpiodbusObject *object); |
| 742 |
GpiodbusLine *gpiodbus_object_get_line (GpiodbusObject *object); |
| 743 |
GpiodbusRequest *gpiodbus_object_get_request (GpiodbusObject *object); |
| 744 |
GpiodbusChip *gpiodbus_object_peek_chip (GpiodbusObject *object); |
| 745 |
GpiodbusLine *gpiodbus_object_peek_line (GpiodbusObject *object); |
| 746 |
GpiodbusRequest *gpiodbus_object_peek_request (GpiodbusObject *object); |
| 747 |
|
| 748 |
#define GPIODBUS_TYPE_OBJECT_PROXY (gpiodbus_object_proxy_get_type ()) |
| 749 |
#define GPIODBUS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_OBJECT_PROXY, GpiodbusObjectProxy)) |
| 750 |
#define GPIODBUS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GPIODBUS_TYPE_OBJECT_PROXY, GpiodbusObjectProxyClass)) |
| 751 |
#define GPIODBUS_OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GPIODBUS_TYPE_OBJECT_PROXY, GpiodbusObjectProxyClass)) |
| 752 |
#define GPIODBUS_IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_OBJECT_PROXY)) |
| 753 |
#define GPIODBUS_IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GPIODBUS_TYPE_OBJECT_PROXY)) |
| 754 |
|
| 755 |
typedef struct _GpiodbusObjectProxy GpiodbusObjectProxy; |
| 756 |
typedef struct _GpiodbusObjectProxyClass GpiodbusObjectProxyClass; |
| 757 |
typedef struct _GpiodbusObjectProxyPrivate GpiodbusObjectProxyPrivate; |
| 758 |
|
| 759 |
struct _GpiodbusObjectProxy |
| 760 |
{ |
| 761 |
|
| 762 |
GDBusObjectProxy parent_instance; |
| 763 |
GpiodbusObjectProxyPrivate *priv; |
| 764 |
}; |
| 765 |
|
| 766 |
struct _GpiodbusObjectProxyClass |
| 767 |
{ |
| 768 |
GDBusObjectProxyClass parent_class; |
| 769 |
}; |
| 770 |
|
| 771 |
GType gpiodbus_object_proxy_get_type (void) G_GNUC_CONST; |
| 772 |
|
| 773 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 774 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusObjectProxy, g_object_unref) |
| 775 |
#endif |
| 776 |
|
| 777 |
GpiodbusObjectProxy *gpiodbus_object_proxy_new (GDBusConnection *connection, const gchar *object_path); |
| 778 |
|
| 779 |
#define GPIODBUS_TYPE_OBJECT_SKELETON (gpiodbus_object_skeleton_get_type ()) |
| 780 |
#define GPIODBUS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_OBJECT_SKELETON, GpiodbusObjectSkeleton)) |
| 781 |
#define GPIODBUS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GPIODBUS_TYPE_OBJECT_SKELETON, GpiodbusObjectSkeletonClass)) |
| 782 |
#define GPIODBUS_OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GPIODBUS_TYPE_OBJECT_SKELETON, GpiodbusObjectSkeletonClass)) |
| 783 |
#define GPIODBUS_IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_OBJECT_SKELETON)) |
| 784 |
#define GPIODBUS_IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GPIODBUS_TYPE_OBJECT_SKELETON)) |
| 785 |
|
| 786 |
typedef struct _GpiodbusObjectSkeleton GpiodbusObjectSkeleton; |
| 787 |
typedef struct _GpiodbusObjectSkeletonClass GpiodbusObjectSkeletonClass; |
| 788 |
typedef struct _GpiodbusObjectSkeletonPrivate GpiodbusObjectSkeletonPrivate; |
| 789 |
|
| 790 |
struct _GpiodbusObjectSkeleton |
| 791 |
{ |
| 792 |
|
| 793 |
GDBusObjectSkeleton parent_instance; |
| 794 |
GpiodbusObjectSkeletonPrivate *priv; |
| 795 |
}; |
| 796 |
|
| 797 |
struct _GpiodbusObjectSkeletonClass |
| 798 |
{ |
| 799 |
GDBusObjectSkeletonClass parent_class; |
| 800 |
}; |
| 801 |
|
| 802 |
GType gpiodbus_object_skeleton_get_type (void) G_GNUC_CONST; |
| 803 |
|
| 804 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 805 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusObjectSkeleton, g_object_unref) |
| 806 |
#endif |
| 807 |
|
| 808 |
GpiodbusObjectSkeleton *gpiodbus_object_skeleton_new (const gchar *object_path); |
| 809 |
void gpiodbus_object_skeleton_set_chip (GpiodbusObjectSkeleton *object, GpiodbusChip *interface_); |
| 810 |
void gpiodbus_object_skeleton_set_line (GpiodbusObjectSkeleton *object, GpiodbusLine *interface_); |
| 811 |
void gpiodbus_object_skeleton_set_request (GpiodbusObjectSkeleton *object, GpiodbusRequest *interface_); |
| 812 |
|
| 813 |
|
| 814 |
|
| 815 |
#define GPIODBUS_TYPE_OBJECT_MANAGER_CLIENT (gpiodbus_object_manager_client_get_type ()) |
| 816 |
#define GPIODBUS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GPIODBUS_TYPE_OBJECT_MANAGER_CLIENT, GpiodbusObjectManagerClient)) |
| 817 |
#define GPIODBUS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GPIODBUS_TYPE_OBJECT_MANAGER_CLIENT, GpiodbusObjectManagerClientClass)) |
| 818 |
#define GPIODBUS_OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GPIODBUS_TYPE_OBJECT_MANAGER_CLIENT, GpiodbusObjectManagerClientClass)) |
| 819 |
#define GPIODBUS_IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GPIODBUS_TYPE_OBJECT_MANAGER_CLIENT)) |
| 820 |
#define GPIODBUS_IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GPIODBUS_TYPE_OBJECT_MANAGER_CLIENT)) |
| 821 |
|
| 822 |
typedef struct _GpiodbusObjectManagerClient GpiodbusObjectManagerClient; |
| 823 |
typedef struct _GpiodbusObjectManagerClientClass GpiodbusObjectManagerClientClass; |
| 824 |
typedef struct _GpiodbusObjectManagerClientPrivate GpiodbusObjectManagerClientPrivate; |
| 825 |
|
| 826 |
struct _GpiodbusObjectManagerClient |
| 827 |
{ |
| 828 |
|
| 829 |
GDBusObjectManagerClient parent_instance; |
| 830 |
GpiodbusObjectManagerClientPrivate *priv; |
| 831 |
}; |
| 832 |
|
| 833 |
struct _GpiodbusObjectManagerClientClass |
| 834 |
{ |
| 835 |
GDBusObjectManagerClientClass parent_class; |
| 836 |
}; |
| 837 |
|
| 838 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 839 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpiodbusObjectManagerClient, g_object_unref) |
| 840 |
#endif |
| 841 |
|
| 842 |
GType gpiodbus_object_manager_client_get_type (void) G_GNUC_CONST; |
| 843 |
|
| 844 |
GType gpiodbus_object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); |
| 845 |
|
| 846 |
void gpiodbus_object_manager_client_new ( |
| 847 |
GDBusConnection *connection, |
| 848 |
GDBusObjectManagerClientFlags flags, |
| 849 |
const gchar *name, |
| 850 |
const gchar *object_path, |
| 851 |
GCancellable *cancellable, |
| 852 |
GAsyncReadyCallback callback, |
| 853 |
gpointer user_data); |
| 854 |
GDBusObjectManager *gpiodbus_object_manager_client_new_finish ( |
| 855 |
GAsyncResult *res, |
| 856 |
GError **error); |
| 857 |
GDBusObjectManager *gpiodbus_object_manager_client_new_sync ( |
| 858 |
GDBusConnection *connection, |
| 859 |
GDBusObjectManagerClientFlags flags, |
| 860 |
const gchar *name, |
| 861 |
const gchar *object_path, |
| 862 |
GCancellable *cancellable, |
| 863 |
GError **error); |
| 864 |
|
| 865 |
void gpiodbus_object_manager_client_new_for_bus ( |
| 866 |
GBusType bus_type, |
| 867 |
GDBusObjectManagerClientFlags flags, |
| 868 |
const gchar *name, |
| 869 |
const gchar *object_path, |
| 870 |
GCancellable *cancellable, |
| 871 |
GAsyncReadyCallback callback, |
| 872 |
gpointer user_data); |
| 873 |
GDBusObjectManager *gpiodbus_object_manager_client_new_for_bus_finish ( |
| 874 |
GAsyncResult *res, |
| 875 |
GError **error); |
| 876 |
GDBusObjectManager *gpiodbus_object_manager_client_new_for_bus_sync ( |
| 877 |
GBusType bus_type, |
| 878 |
GDBusObjectManagerClientFlags flags, |
| 879 |
const gchar *name, |
| 880 |
const gchar *object_path, |
| 881 |
GCancellable *cancellable, |
| 882 |
GError **error); |
| 883 |
|
| 884 |
|
| 885 |
G_END_DECLS |
| 886 |
|
| 887 |
#endif |