File: meta-dbus-input-capture.h

package info (click to toggle)
chromium 139.0.7258.127-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,122,156 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (612 lines) | stat: -rw-r--r-- 23,175 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
/*
 * This file is generated by gdbus-codegen, do not modify it.
 *
 * The license of this code is the same as for the D-Bus interface description
 * it was derived from. Note that it links to GLib, so must comply with the
 * LGPL linking clauses.
 */

#ifndef __META_DBUS_INPUT_CAPTURE_H__
#define __META_DBUS_INPUT_CAPTURE_H__

#include <gio/gio.h>

G_BEGIN_DECLS

/* ------------------------------------------------------------------------ */
/* Declarations for org.gnome.Mutter.InputCapture */

#define META_DBUS_TYPE_INPUT_CAPTURE (meta_dbus_input_capture_get_type())
#define META_DBUS_INPUT_CAPTURE(o)                               \
  (G_TYPE_CHECK_INSTANCE_CAST((o), META_DBUS_TYPE_INPUT_CAPTURE, \
                              MetaDBusInputCapture))
#define META_DBUS_IS_INPUT_CAPTURE(o) \
  (G_TYPE_CHECK_INSTANCE_TYPE((o), META_DBUS_TYPE_INPUT_CAPTURE))
#define META_DBUS_INPUT_CAPTURE_GET_IFACE(o)                        \
  (G_TYPE_INSTANCE_GET_INTERFACE((o), META_DBUS_TYPE_INPUT_CAPTURE, \
                                 MetaDBusInputCaptureIface))

struct _MetaDBusInputCapture;
typedef struct _MetaDBusInputCapture MetaDBusInputCapture;
typedef struct _MetaDBusInputCaptureIface MetaDBusInputCaptureIface;

struct _MetaDBusInputCaptureIface {
  GTypeInterface parent_iface;

  gboolean (*handle_create_session)(MetaDBusInputCapture* object,
                                    GDBusMethodInvocation* invocation,
                                    guint arg_capabilities);

  guint (*get_supported_capabilities)(MetaDBusInputCapture* object);
};

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(MetaDBusInputCapture, g_object_unref)
#endif

GType meta_dbus_input_capture_get_type(void) G_GNUC_CONST;

GDBusInterfaceInfo* meta_dbus_input_capture_interface_info(void);
guint meta_dbus_input_capture_override_properties(GObjectClass* klass,
                                                  guint property_id_begin);

/* D-Bus method call completion functions: */
void meta_dbus_input_capture_complete_create_session(
    MetaDBusInputCapture* object,
    GDBusMethodInvocation* invocation,
    const gchar* session_path);

/* D-Bus method calls: */
void meta_dbus_input_capture_call_create_session(MetaDBusInputCapture* proxy,
                                                 guint arg_capabilities,
                                                 GCancellable* cancellable,
                                                 GAsyncReadyCallback callback,
                                                 gpointer user_data);

gboolean meta_dbus_input_capture_call_create_session_finish(
    MetaDBusInputCapture* proxy,
    gchar** out_session_path,
    GAsyncResult* res,
    GError** error);

gboolean meta_dbus_input_capture_call_create_session_sync(
    MetaDBusInputCapture* proxy,
    guint arg_capabilities,
    gchar** out_session_path,
    GCancellable* cancellable,
    GError** error);

/* D-Bus property accessors: */
guint meta_dbus_input_capture_get_supported_capabilities(
    MetaDBusInputCapture* object);
void meta_dbus_input_capture_set_supported_capabilities(
    MetaDBusInputCapture* object,
    guint value);

/* ---- */

#define META_DBUS_TYPE_INPUT_CAPTURE_PROXY \
  (meta_dbus_input_capture_proxy_get_type())
#define META_DBUS_INPUT_CAPTURE_PROXY(o)                               \
  (G_TYPE_CHECK_INSTANCE_CAST((o), META_DBUS_TYPE_INPUT_CAPTURE_PROXY, \
                              MetaDBusInputCaptureProxy))
#define META_DBUS_INPUT_CAPTURE_PROXY_CLASS(k)                      \
  (G_TYPE_CHECK_CLASS_CAST((k), META_DBUS_TYPE_INPUT_CAPTURE_PROXY, \
                           MetaDBusInputCaptureProxyClass))
#define META_DBUS_INPUT_CAPTURE_PROXY_GET_CLASS(o)                    \
  (G_TYPE_INSTANCE_GET_CLASS((o), META_DBUS_TYPE_INPUT_CAPTURE_PROXY, \
                             MetaDBusInputCaptureProxyClass))
#define META_DBUS_IS_INPUT_CAPTURE_PROXY(o) \
  (G_TYPE_CHECK_INSTANCE_TYPE((o), META_DBUS_TYPE_INPUT_CAPTURE_PROXY))
#define META_DBUS_IS_INPUT_CAPTURE_PROXY_CLASS(k) \
  (G_TYPE_CHECK_CLASS_TYPE((k), META_DBUS_TYPE_INPUT_CAPTURE_PROXY))

typedef struct _MetaDBusInputCaptureProxy MetaDBusInputCaptureProxy;
typedef struct _MetaDBusInputCaptureProxyClass MetaDBusInputCaptureProxyClass;
typedef struct _MetaDBusInputCaptureProxyPrivate
    MetaDBusInputCaptureProxyPrivate;

struct _MetaDBusInputCaptureProxy {
  /*< private >*/
  GDBusProxy parent_instance;
  MetaDBusInputCaptureProxyPrivate* priv;
};

struct _MetaDBusInputCaptureProxyClass {
  GDBusProxyClass parent_class;
};

GType meta_dbus_input_capture_proxy_get_type(void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(MetaDBusInputCaptureProxy, g_object_unref)
#endif

void meta_dbus_input_capture_proxy_new(GDBusConnection* connection,
                                       GDBusProxyFlags flags,
                                       const gchar* name,
                                       const gchar* object_path,
                                       GCancellable* cancellable,
                                       GAsyncReadyCallback callback,
                                       gpointer user_data);
MetaDBusInputCapture* meta_dbus_input_capture_proxy_new_finish(
    GAsyncResult* res,
    GError** error);
MetaDBusInputCapture* meta_dbus_input_capture_proxy_new_sync(
    GDBusConnection* connection,
    GDBusProxyFlags flags,
    const gchar* name,
    const gchar* object_path,
    GCancellable* cancellable,
    GError** error);

void meta_dbus_input_capture_proxy_new_for_bus(GBusType bus_type,
                                               GDBusProxyFlags flags,
                                               const gchar* name,
                                               const gchar* object_path,
                                               GCancellable* cancellable,
                                               GAsyncReadyCallback callback,
                                               gpointer user_data);
MetaDBusInputCapture* meta_dbus_input_capture_proxy_new_for_bus_finish(
    GAsyncResult* res,
    GError** error);
MetaDBusInputCapture* meta_dbus_input_capture_proxy_new_for_bus_sync(
    GBusType bus_type,
    GDBusProxyFlags flags,
    const gchar* name,
    const gchar* object_path,
    GCancellable* cancellable,
    GError** error);

/* ---- */

#define META_DBUS_TYPE_INPUT_CAPTURE_SKELETON \
  (meta_dbus_input_capture_skeleton_get_type())
#define META_DBUS_INPUT_CAPTURE_SKELETON(o)                               \
  (G_TYPE_CHECK_INSTANCE_CAST((o), META_DBUS_TYPE_INPUT_CAPTURE_SKELETON, \
                              MetaDBusInputCaptureSkeleton))
#define META_DBUS_INPUT_CAPTURE_SKELETON_CLASS(k)                      \
  (G_TYPE_CHECK_CLASS_CAST((k), META_DBUS_TYPE_INPUT_CAPTURE_SKELETON, \
                           MetaDBusInputCaptureSkeletonClass))
#define META_DBUS_INPUT_CAPTURE_SKELETON_GET_CLASS(o)                    \
  (G_TYPE_INSTANCE_GET_CLASS((o), META_DBUS_TYPE_INPUT_CAPTURE_SKELETON, \
                             MetaDBusInputCaptureSkeletonClass))
#define META_DBUS_IS_INPUT_CAPTURE_SKELETON(o) \
  (G_TYPE_CHECK_INSTANCE_TYPE((o), META_DBUS_TYPE_INPUT_CAPTURE_SKELETON))
#define META_DBUS_IS_INPUT_CAPTURE_SKELETON_CLASS(k) \
  (G_TYPE_CHECK_CLASS_TYPE((k), META_DBUS_TYPE_INPUT_CAPTURE_SKELETON))

typedef struct _MetaDBusInputCaptureSkeleton MetaDBusInputCaptureSkeleton;
typedef struct _MetaDBusInputCaptureSkeletonClass
    MetaDBusInputCaptureSkeletonClass;
typedef struct _MetaDBusInputCaptureSkeletonPrivate
    MetaDBusInputCaptureSkeletonPrivate;

struct _MetaDBusInputCaptureSkeleton {
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  MetaDBusInputCaptureSkeletonPrivate* priv;
};

struct _MetaDBusInputCaptureSkeletonClass {
  GDBusInterfaceSkeletonClass parent_class;
};

GType meta_dbus_input_capture_skeleton_get_type(void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(MetaDBusInputCaptureSkeleton, g_object_unref)
#endif

MetaDBusInputCapture* meta_dbus_input_capture_skeleton_new(void);

/* ------------------------------------------------------------------------ */
/* Declarations for org.gnome.Mutter.InputCapture.Session */

#define META_DBUS_TYPE_INPUT_CAPTURE_SESSION \
  (meta_dbus_input_capture_session_get_type())
#define META_DBUS_INPUT_CAPTURE_SESSION(o)                               \
  (G_TYPE_CHECK_INSTANCE_CAST((o), META_DBUS_TYPE_INPUT_CAPTURE_SESSION, \
                              MetaDBusInputCaptureSession))
#define META_DBUS_IS_INPUT_CAPTURE_SESSION(o) \
  (G_TYPE_CHECK_INSTANCE_TYPE((o), META_DBUS_TYPE_INPUT_CAPTURE_SESSION))
#define META_DBUS_INPUT_CAPTURE_SESSION_GET_IFACE(o)                        \
  (G_TYPE_INSTANCE_GET_INTERFACE((o), META_DBUS_TYPE_INPUT_CAPTURE_SESSION, \
                                 MetaDBusInputCaptureSessionIface))

struct _MetaDBusInputCaptureSession;
typedef struct _MetaDBusInputCaptureSession MetaDBusInputCaptureSession;
typedef struct _MetaDBusInputCaptureSessionIface
    MetaDBusInputCaptureSessionIface;

struct _MetaDBusInputCaptureSessionIface {
  GTypeInterface parent_iface;

  gboolean (*handle_add_barrier)(MetaDBusInputCaptureSession* object,
                                 GDBusMethodInvocation* invocation,
                                 guint arg_serial,
                                 GVariant* arg_position);

  gboolean (*handle_clear_barriers)(MetaDBusInputCaptureSession* object,
                                    GDBusMethodInvocation* invocation);

  gboolean (*handle_close)(MetaDBusInputCaptureSession* object,
                           GDBusMethodInvocation* invocation);

  gboolean (*handle_connect_to_eis)(MetaDBusInputCaptureSession* object,
                                    GDBusMethodInvocation* invocation,
                                    GUnixFDList* fd_list);

  gboolean (*handle_disable)(MetaDBusInputCaptureSession* object,
                             GDBusMethodInvocation* invocation);

  gboolean (*handle_enable)(MetaDBusInputCaptureSession* object,
                            GDBusMethodInvocation* invocation);

  gboolean (*handle_get_zones)(MetaDBusInputCaptureSession* object,
                               GDBusMethodInvocation* invocation);

  gboolean (*handle_release)(MetaDBusInputCaptureSession* object,
                             GDBusMethodInvocation* invocation,
                             GVariant* arg_options);

  void (*activated)(MetaDBusInputCaptureSession* object,
                    guint arg_barrier_id,
                    guint arg_activation_id,
                    GVariant* arg_cursor_position);

  void (*closed)(MetaDBusInputCaptureSession* object);

  void (*deactivated)(MetaDBusInputCaptureSession* object,
                      guint arg_activation_id);

  void (*disabled)(MetaDBusInputCaptureSession* object);

  void (*zones_changed)(MetaDBusInputCaptureSession* object);
};

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(MetaDBusInputCaptureSession, g_object_unref)
#endif

GType meta_dbus_input_capture_session_get_type(void) G_GNUC_CONST;

GDBusInterfaceInfo* meta_dbus_input_capture_session_interface_info(void);
guint meta_dbus_input_capture_session_override_properties(
    GObjectClass* klass,
    guint property_id_begin);

/* D-Bus method call completion functions: */
void meta_dbus_input_capture_session_complete_get_zones(
    MetaDBusInputCaptureSession* object,
    GDBusMethodInvocation* invocation,
    guint serial,
    GVariant* zones);

void meta_dbus_input_capture_session_complete_add_barrier(
    MetaDBusInputCaptureSession* object,
    GDBusMethodInvocation* invocation,
    guint id);

void meta_dbus_input_capture_session_complete_clear_barriers(
    MetaDBusInputCaptureSession* object,
    GDBusMethodInvocation* invocation);

void meta_dbus_input_capture_session_complete_enable(
    MetaDBusInputCaptureSession* object,
    GDBusMethodInvocation* invocation);

void meta_dbus_input_capture_session_complete_disable(
    MetaDBusInputCaptureSession* object,
    GDBusMethodInvocation* invocation);

void meta_dbus_input_capture_session_complete_connect_to_eis(
    MetaDBusInputCaptureSession* object,
    GDBusMethodInvocation* invocation,
    GUnixFDList* fd_list,
    GVariant* fd);

void meta_dbus_input_capture_session_complete_release(
    MetaDBusInputCaptureSession* object,
    GDBusMethodInvocation* invocation);

void meta_dbus_input_capture_session_complete_close(
    MetaDBusInputCaptureSession* object,
    GDBusMethodInvocation* invocation);

/* D-Bus signal emissions functions: */
void meta_dbus_input_capture_session_emit_activated(
    MetaDBusInputCaptureSession* object,
    guint arg_barrier_id,
    guint arg_activation_id,
    GVariant* arg_cursor_position);

void meta_dbus_input_capture_session_emit_deactivated(
    MetaDBusInputCaptureSession* object,
    guint arg_activation_id);

void meta_dbus_input_capture_session_emit_zones_changed(
    MetaDBusInputCaptureSession* object);

void meta_dbus_input_capture_session_emit_disabled(
    MetaDBusInputCaptureSession* object);

void meta_dbus_input_capture_session_emit_closed(
    MetaDBusInputCaptureSession* object);

/* D-Bus method calls: */
void meta_dbus_input_capture_session_call_get_zones(
    MetaDBusInputCaptureSession* proxy,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_input_capture_session_call_get_zones_finish(
    MetaDBusInputCaptureSession* proxy,
    guint* out_serial,
    GVariant** out_zones,
    GAsyncResult* res,
    GError** error);

gboolean meta_dbus_input_capture_session_call_get_zones_sync(
    MetaDBusInputCaptureSession* proxy,
    guint* out_serial,
    GVariant** out_zones,
    GCancellable* cancellable,
    GError** error);

void meta_dbus_input_capture_session_call_add_barrier(
    MetaDBusInputCaptureSession* proxy,
    guint arg_serial,
    GVariant* arg_position,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_input_capture_session_call_add_barrier_finish(
    MetaDBusInputCaptureSession* proxy,
    guint* out_id,
    GAsyncResult* res,
    GError** error);

gboolean meta_dbus_input_capture_session_call_add_barrier_sync(
    MetaDBusInputCaptureSession* proxy,
    guint arg_serial,
    GVariant* arg_position,
    guint* out_id,
    GCancellable* cancellable,
    GError** error);

void meta_dbus_input_capture_session_call_clear_barriers(
    MetaDBusInputCaptureSession* proxy,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_input_capture_session_call_clear_barriers_finish(
    MetaDBusInputCaptureSession* proxy,
    GAsyncResult* res,
    GError** error);

gboolean meta_dbus_input_capture_session_call_clear_barriers_sync(
    MetaDBusInputCaptureSession* proxy,
    GCancellable* cancellable,
    GError** error);

void meta_dbus_input_capture_session_call_enable(
    MetaDBusInputCaptureSession* proxy,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_input_capture_session_call_enable_finish(
    MetaDBusInputCaptureSession* proxy,
    GAsyncResult* res,
    GError** error);

gboolean meta_dbus_input_capture_session_call_enable_sync(
    MetaDBusInputCaptureSession* proxy,
    GCancellable* cancellable,
    GError** error);

void meta_dbus_input_capture_session_call_disable(
    MetaDBusInputCaptureSession* proxy,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_input_capture_session_call_disable_finish(
    MetaDBusInputCaptureSession* proxy,
    GAsyncResult* res,
    GError** error);

gboolean meta_dbus_input_capture_session_call_disable_sync(
    MetaDBusInputCaptureSession* proxy,
    GCancellable* cancellable,
    GError** error);

void meta_dbus_input_capture_session_call_connect_to_eis(
    MetaDBusInputCaptureSession* proxy,
    GUnixFDList* fd_list,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_input_capture_session_call_connect_to_eis_finish(
    MetaDBusInputCaptureSession* proxy,
    GVariant** out_fd,
    GUnixFDList** out_fd_list,
    GAsyncResult* res,
    GError** error);

gboolean meta_dbus_input_capture_session_call_connect_to_eis_sync(
    MetaDBusInputCaptureSession* proxy,
    GUnixFDList* fd_list,
    GVariant** out_fd,
    GUnixFDList** out_fd_list,
    GCancellable* cancellable,
    GError** error);

void meta_dbus_input_capture_session_call_release(
    MetaDBusInputCaptureSession* proxy,
    GVariant* arg_options,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_input_capture_session_call_release_finish(
    MetaDBusInputCaptureSession* proxy,
    GAsyncResult* res,
    GError** error);

gboolean meta_dbus_input_capture_session_call_release_sync(
    MetaDBusInputCaptureSession* proxy,
    GVariant* arg_options,
    GCancellable* cancellable,
    GError** error);

void meta_dbus_input_capture_session_call_close(
    MetaDBusInputCaptureSession* proxy,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_input_capture_session_call_close_finish(
    MetaDBusInputCaptureSession* proxy,
    GAsyncResult* res,
    GError** error);

gboolean meta_dbus_input_capture_session_call_close_sync(
    MetaDBusInputCaptureSession* proxy,
    GCancellable* cancellable,
    GError** error);

/* ---- */

#define META_DBUS_TYPE_INPUT_CAPTURE_SESSION_PROXY \
  (meta_dbus_input_capture_session_proxy_get_type())
#define META_DBUS_INPUT_CAPTURE_SESSION_PROXY(o)                               \
  (G_TYPE_CHECK_INSTANCE_CAST((o), META_DBUS_TYPE_INPUT_CAPTURE_SESSION_PROXY, \
                              MetaDBusInputCaptureSessionProxy))
#define META_DBUS_INPUT_CAPTURE_SESSION_PROXY_CLASS(k)                      \
  (G_TYPE_CHECK_CLASS_CAST((k), META_DBUS_TYPE_INPUT_CAPTURE_SESSION_PROXY, \
                           MetaDBusInputCaptureSessionProxyClass))
#define META_DBUS_INPUT_CAPTURE_SESSION_PROXY_GET_CLASS(o)                    \
  (G_TYPE_INSTANCE_GET_CLASS((o), META_DBUS_TYPE_INPUT_CAPTURE_SESSION_PROXY, \
                             MetaDBusInputCaptureSessionProxyClass))
#define META_DBUS_IS_INPUT_CAPTURE_SESSION_PROXY(o) \
  (G_TYPE_CHECK_INSTANCE_TYPE((o), META_DBUS_TYPE_INPUT_CAPTURE_SESSION_PROXY))
#define META_DBUS_IS_INPUT_CAPTURE_SESSION_PROXY_CLASS(k) \
  (G_TYPE_CHECK_CLASS_TYPE((k), META_DBUS_TYPE_INPUT_CAPTURE_SESSION_PROXY))

typedef struct _MetaDBusInputCaptureSessionProxy
    MetaDBusInputCaptureSessionProxy;
typedef struct _MetaDBusInputCaptureSessionProxyClass
    MetaDBusInputCaptureSessionProxyClass;
typedef struct _MetaDBusInputCaptureSessionProxyPrivate
    MetaDBusInputCaptureSessionProxyPrivate;

struct _MetaDBusInputCaptureSessionProxy {
  /*< private >*/
  GDBusProxy parent_instance;
  MetaDBusInputCaptureSessionProxyPrivate* priv;
};

struct _MetaDBusInputCaptureSessionProxyClass {
  GDBusProxyClass parent_class;
};

GType meta_dbus_input_capture_session_proxy_get_type(void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(MetaDBusInputCaptureSessionProxy, g_object_unref)
#endif

void meta_dbus_input_capture_session_proxy_new(GDBusConnection* connection,
                                               GDBusProxyFlags flags,
                                               const gchar* name,
                                               const gchar* object_path,
                                               GCancellable* cancellable,
                                               GAsyncReadyCallback callback,
                                               gpointer user_data);
MetaDBusInputCaptureSession* meta_dbus_input_capture_session_proxy_new_finish(
    GAsyncResult* res,
    GError** error);
MetaDBusInputCaptureSession* meta_dbus_input_capture_session_proxy_new_sync(
    GDBusConnection* connection,
    GDBusProxyFlags flags,
    const gchar* name,
    const gchar* object_path,
    GCancellable* cancellable,
    GError** error);

void meta_dbus_input_capture_session_proxy_new_for_bus(
    GBusType bus_type,
    GDBusProxyFlags flags,
    const gchar* name,
    const gchar* object_path,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);
MetaDBusInputCaptureSession*
meta_dbus_input_capture_session_proxy_new_for_bus_finish(GAsyncResult* res,
                                                         GError** error);
MetaDBusInputCaptureSession*
meta_dbus_input_capture_session_proxy_new_for_bus_sync(
    GBusType bus_type,
    GDBusProxyFlags flags,
    const gchar* name,
    const gchar* object_path,
    GCancellable* cancellable,
    GError** error);

/* ---- */

#define META_DBUS_TYPE_INPUT_CAPTURE_SESSION_SKELETON \
  (meta_dbus_input_capture_session_skeleton_get_type())
#define META_DBUS_INPUT_CAPTURE_SESSION_SKELETON(o)                          \
  (G_TYPE_CHECK_INSTANCE_CAST((o),                                           \
                              META_DBUS_TYPE_INPUT_CAPTURE_SESSION_SKELETON, \
                              MetaDBusInputCaptureSessionSkeleton))
#define META_DBUS_INPUT_CAPTURE_SESSION_SKELETON_CLASS(k)                      \
  (G_TYPE_CHECK_CLASS_CAST((k), META_DBUS_TYPE_INPUT_CAPTURE_SESSION_SKELETON, \
                           MetaDBusInputCaptureSessionSkeletonClass))
#define META_DBUS_INPUT_CAPTURE_SESSION_SKELETON_GET_CLASS(o)               \
  (G_TYPE_INSTANCE_GET_CLASS((o),                                           \
                             META_DBUS_TYPE_INPUT_CAPTURE_SESSION_SKELETON, \
                             MetaDBusInputCaptureSessionSkeletonClass))
#define META_DBUS_IS_INPUT_CAPTURE_SESSION_SKELETON(o) \
  (G_TYPE_CHECK_INSTANCE_TYPE((o),                     \
                              META_DBUS_TYPE_INPUT_CAPTURE_SESSION_SKELETON))
#define META_DBUS_IS_INPUT_CAPTURE_SESSION_SKELETON_CLASS(k) \
  (G_TYPE_CHECK_CLASS_TYPE((k), META_DBUS_TYPE_INPUT_CAPTURE_SESSION_SKELETON))

typedef struct _MetaDBusInputCaptureSessionSkeleton
    MetaDBusInputCaptureSessionSkeleton;
typedef struct _MetaDBusInputCaptureSessionSkeletonClass
    MetaDBusInputCaptureSessionSkeletonClass;
typedef struct _MetaDBusInputCaptureSessionSkeletonPrivate
    MetaDBusInputCaptureSessionSkeletonPrivate;

struct _MetaDBusInputCaptureSessionSkeleton {
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  MetaDBusInputCaptureSessionSkeletonPrivate* priv;
};

struct _MetaDBusInputCaptureSessionSkeletonClass {
  GDBusInterfaceSkeletonClass parent_class;
};

GType meta_dbus_input_capture_session_skeleton_get_type(void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(MetaDBusInputCaptureSessionSkeleton,
                              g_object_unref)
#endif

MetaDBusInputCaptureSession* meta_dbus_input_capture_session_skeleton_new(void);

G_END_DECLS

#endif /* __META_DBUS_INPUT_CAPTURE_H__ */