1 /*
2  * This file is generated by gdbus-codegen, do not modify it.
3  *
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.
7  */
8 
9 #ifndef __TEMP_DBUS_GENERATED_H__
10 #define __TEMP_DBUS_GENERATED_H__
11 
12 #include <gio/gio.h>
13 
14 G_BEGIN_DECLS
15 
16 
17 /* ------------------------------------------------------------------------ */
18 /* Declarations for org.freedesktop.Secret.Service */
19 
20 #define SECRET_GEN_TYPE_SERVICE (_secret_gen_service_get_type ())
21 #define SECRET_GEN_SERVICE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_SERVICE, SecretGenService))
22 #define SECRET_GEN_IS_SERVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_SERVICE))
23 #define SECRET_GEN_SERVICE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), SECRET_GEN_TYPE_SERVICE, SecretGenServiceIface))
24 
25 struct _SecretGenService;
26 typedef struct _SecretGenService SecretGenService;
27 typedef struct _SecretGenServiceIface SecretGenServiceIface;
28 
29 struct _SecretGenServiceIface
30 {
31   GTypeInterface parent_iface;
32 
33 
34 
35   gboolean (*handle_create_collection) (
36     SecretGenService *object,
37     GDBusMethodInvocation *invocation,
38     GVariant *arg_properties,
39     const gchar *arg_alias);
40 
41   gboolean (*handle_get_secrets) (
42     SecretGenService *object,
43     GDBusMethodInvocation *invocation,
44     const gchar *const *arg_items,
45     const gchar *arg_session);
46 
47   gboolean (*handle_lock) (
48     SecretGenService *object,
49     GDBusMethodInvocation *invocation,
50     const gchar *const *arg_objects);
51 
52   gboolean (*handle_open_session) (
53     SecretGenService *object,
54     GDBusMethodInvocation *invocation,
55     const gchar *arg_algorithm,
56     GVariant *arg_input);
57 
58   gboolean (*handle_read_alias) (
59     SecretGenService *object,
60     GDBusMethodInvocation *invocation,
61     const gchar *arg_name);
62 
63   gboolean (*handle_search_items) (
64     SecretGenService *object,
65     GDBusMethodInvocation *invocation,
66     GVariant *arg_attributes);
67 
68   gboolean (*handle_set_alias) (
69     SecretGenService *object,
70     GDBusMethodInvocation *invocation,
71     const gchar *arg_name,
72     const gchar *arg_collection);
73 
74   gboolean (*handle_unlock) (
75     SecretGenService *object,
76     GDBusMethodInvocation *invocation,
77     const gchar *const *arg_objects);
78 
79   const gchar *const * (*get_collections) (SecretGenService *object);
80 
81   void (*collection_changed) (
82     SecretGenService *object,
83     const gchar *arg_collection);
84 
85   void (*collection_created) (
86     SecretGenService *object,
87     const gchar *arg_collection);
88 
89   void (*collection_deleted) (
90     SecretGenService *object,
91     const gchar *arg_collection);
92 
93 };
94 
95 GType _secret_gen_service_get_type (void) G_GNUC_CONST;
96 
97 GDBusInterfaceInfo *_secret_gen_service_interface_info (void);
98 guint _secret_gen_service_override_properties (GObjectClass *klass, guint property_id_begin);
99 
100 
101 /* D-Bus method call completion functions: */
102 void _secret_gen_service_complete_open_session (
103     SecretGenService *object,
104     GDBusMethodInvocation *invocation,
105     GVariant *output,
106     const gchar *result);
107 
108 void _secret_gen_service_complete_create_collection (
109     SecretGenService *object,
110     GDBusMethodInvocation *invocation,
111     const gchar *collection,
112     const gchar *prompt);
113 
114 void _secret_gen_service_complete_search_items (
115     SecretGenService *object,
116     GDBusMethodInvocation *invocation,
117     const gchar *const *unlocked,
118     const gchar *const *locked);
119 
120 void _secret_gen_service_complete_unlock (
121     SecretGenService *object,
122     GDBusMethodInvocation *invocation,
123     const gchar *const *unlocked,
124     const gchar *prompt);
125 
126 void _secret_gen_service_complete_lock (
127     SecretGenService *object,
128     GDBusMethodInvocation *invocation,
129     const gchar *const *locked,
130     const gchar *Prompt);
131 
132 void _secret_gen_service_complete_get_secrets (
133     SecretGenService *object,
134     GDBusMethodInvocation *invocation,
135     GVariant *secrets);
136 
137 void _secret_gen_service_complete_read_alias (
138     SecretGenService *object,
139     GDBusMethodInvocation *invocation,
140     const gchar *collection);
141 
142 void _secret_gen_service_complete_set_alias (
143     SecretGenService *object,
144     GDBusMethodInvocation *invocation);
145 
146 
147 
148 /* D-Bus signal emissions functions: */
149 void _secret_gen_service_emit_collection_created (
150     SecretGenService *object,
151     const gchar *arg_collection);
152 
153 void _secret_gen_service_emit_collection_deleted (
154     SecretGenService *object,
155     const gchar *arg_collection);
156 
157 void _secret_gen_service_emit_collection_changed (
158     SecretGenService *object,
159     const gchar *arg_collection);
160 
161 
162 
163 /* D-Bus method calls: */
164 void _secret_gen_service_call_open_session (
165     SecretGenService *proxy,
166     const gchar *arg_algorithm,
167     GVariant *arg_input,
168     GCancellable *cancellable,
169     GAsyncReadyCallback callback,
170     gpointer user_data);
171 
172 gboolean _secret_gen_service_call_open_session_finish (
173     SecretGenService *proxy,
174     GVariant **out_output,
175     gchar **out_result,
176     GAsyncResult *res,
177     GError **error);
178 
179 gboolean _secret_gen_service_call_open_session_sync (
180     SecretGenService *proxy,
181     const gchar *arg_algorithm,
182     GVariant *arg_input,
183     GVariant **out_output,
184     gchar **out_result,
185     GCancellable *cancellable,
186     GError **error);
187 
188 void _secret_gen_service_call_create_collection (
189     SecretGenService *proxy,
190     GVariant *arg_properties,
191     const gchar *arg_alias,
192     GCancellable *cancellable,
193     GAsyncReadyCallback callback,
194     gpointer user_data);
195 
196 gboolean _secret_gen_service_call_create_collection_finish (
197     SecretGenService *proxy,
198     gchar **out_collection,
199     gchar **out_prompt,
200     GAsyncResult *res,
201     GError **error);
202 
203 gboolean _secret_gen_service_call_create_collection_sync (
204     SecretGenService *proxy,
205     GVariant *arg_properties,
206     const gchar *arg_alias,
207     gchar **out_collection,
208     gchar **out_prompt,
209     GCancellable *cancellable,
210     GError **error);
211 
212 void _secret_gen_service_call_search_items (
213     SecretGenService *proxy,
214     GVariant *arg_attributes,
215     GCancellable *cancellable,
216     GAsyncReadyCallback callback,
217     gpointer user_data);
218 
219 gboolean _secret_gen_service_call_search_items_finish (
220     SecretGenService *proxy,
221     gchar ***out_unlocked,
222     gchar ***out_locked,
223     GAsyncResult *res,
224     GError **error);
225 
226 gboolean _secret_gen_service_call_search_items_sync (
227     SecretGenService *proxy,
228     GVariant *arg_attributes,
229     gchar ***out_unlocked,
230     gchar ***out_locked,
231     GCancellable *cancellable,
232     GError **error);
233 
234 void _secret_gen_service_call_unlock (
235     SecretGenService *proxy,
236     const gchar *const *arg_objects,
237     GCancellable *cancellable,
238     GAsyncReadyCallback callback,
239     gpointer user_data);
240 
241 gboolean _secret_gen_service_call_unlock_finish (
242     SecretGenService *proxy,
243     gchar ***out_unlocked,
244     gchar **out_prompt,
245     GAsyncResult *res,
246     GError **error);
247 
248 gboolean _secret_gen_service_call_unlock_sync (
249     SecretGenService *proxy,
250     const gchar *const *arg_objects,
251     gchar ***out_unlocked,
252     gchar **out_prompt,
253     GCancellable *cancellable,
254     GError **error);
255 
256 void _secret_gen_service_call_lock (
257     SecretGenService *proxy,
258     const gchar *const *arg_objects,
259     GCancellable *cancellable,
260     GAsyncReadyCallback callback,
261     gpointer user_data);
262 
263 gboolean _secret_gen_service_call_lock_finish (
264     SecretGenService *proxy,
265     gchar ***out_locked,
266     gchar **out_Prompt,
267     GAsyncResult *res,
268     GError **error);
269 
270 gboolean _secret_gen_service_call_lock_sync (
271     SecretGenService *proxy,
272     const gchar *const *arg_objects,
273     gchar ***out_locked,
274     gchar **out_Prompt,
275     GCancellable *cancellable,
276     GError **error);
277 
278 void _secret_gen_service_call_get_secrets (
279     SecretGenService *proxy,
280     const gchar *const *arg_items,
281     const gchar *arg_session,
282     GCancellable *cancellable,
283     GAsyncReadyCallback callback,
284     gpointer user_data);
285 
286 gboolean _secret_gen_service_call_get_secrets_finish (
287     SecretGenService *proxy,
288     GVariant **out_secrets,
289     GAsyncResult *res,
290     GError **error);
291 
292 gboolean _secret_gen_service_call_get_secrets_sync (
293     SecretGenService *proxy,
294     const gchar *const *arg_items,
295     const gchar *arg_session,
296     GVariant **out_secrets,
297     GCancellable *cancellable,
298     GError **error);
299 
300 void _secret_gen_service_call_read_alias (
301     SecretGenService *proxy,
302     const gchar *arg_name,
303     GCancellable *cancellable,
304     GAsyncReadyCallback callback,
305     gpointer user_data);
306 
307 gboolean _secret_gen_service_call_read_alias_finish (
308     SecretGenService *proxy,
309     gchar **out_collection,
310     GAsyncResult *res,
311     GError **error);
312 
313 gboolean _secret_gen_service_call_read_alias_sync (
314     SecretGenService *proxy,
315     const gchar *arg_name,
316     gchar **out_collection,
317     GCancellable *cancellable,
318     GError **error);
319 
320 void _secret_gen_service_call_set_alias (
321     SecretGenService *proxy,
322     const gchar *arg_name,
323     const gchar *arg_collection,
324     GCancellable *cancellable,
325     GAsyncReadyCallback callback,
326     gpointer user_data);
327 
328 gboolean _secret_gen_service_call_set_alias_finish (
329     SecretGenService *proxy,
330     GAsyncResult *res,
331     GError **error);
332 
333 gboolean _secret_gen_service_call_set_alias_sync (
334     SecretGenService *proxy,
335     const gchar *arg_name,
336     const gchar *arg_collection,
337     GCancellable *cancellable,
338     GError **error);
339 
340 
341 
342 /* D-Bus property accessors: */
343 const gchar *const *_secret_gen_service_get_collections (SecretGenService *object);
344 gchar **_secret_gen_service_dup_collections (SecretGenService *object);
345 void _secret_gen_service_set_collections (SecretGenService *object, const gchar *const *value);
346 
347 
348 /* ---- */
349 
350 #define SECRET_GEN_TYPE_SERVICE_PROXY (_secret_gen_service_proxy_get_type ())
351 #define SECRET_GEN_SERVICE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_SERVICE_PROXY, SecretGenServiceProxy))
352 #define SECRET_GEN_SERVICE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SECRET_GEN_TYPE_SERVICE_PROXY, SecretGenServiceProxyClass))
353 #define SECRET_GEN_SERVICE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SECRET_GEN_TYPE_SERVICE_PROXY, SecretGenServiceProxyClass))
354 #define SECRET_GEN_IS_SERVICE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_SERVICE_PROXY))
355 #define SECRET_GEN_IS_SERVICE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SECRET_GEN_TYPE_SERVICE_PROXY))
356 
357 typedef struct _SecretGenServiceProxy SecretGenServiceProxy;
358 typedef struct _SecretGenServiceProxyClass SecretGenServiceProxyClass;
359 typedef struct _SecretGenServiceProxyPrivate SecretGenServiceProxyPrivate;
360 
361 struct _SecretGenServiceProxy
362 {
363   /*< private >*/
364   GDBusProxy parent_instance;
365   SecretGenServiceProxyPrivate *priv;
366 };
367 
368 struct _SecretGenServiceProxyClass
369 {
370   GDBusProxyClass parent_class;
371 };
372 
373 GType _secret_gen_service_proxy_get_type (void) G_GNUC_CONST;
374 
375 #if GLIB_CHECK_VERSION(2, 44, 0)
376 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SecretGenServiceProxy, g_object_unref)
377 #endif
378 
379 void _secret_gen_service_proxy_new (
380     GDBusConnection     *connection,
381     GDBusProxyFlags      flags,
382     const gchar         *name,
383     const gchar         *object_path,
384     GCancellable        *cancellable,
385     GAsyncReadyCallback  callback,
386     gpointer             user_data);
387 SecretGenService *_secret_gen_service_proxy_new_finish (
388     GAsyncResult        *res,
389     GError             **error);
390 SecretGenService *_secret_gen_service_proxy_new_sync (
391     GDBusConnection     *connection,
392     GDBusProxyFlags      flags,
393     const gchar         *name,
394     const gchar         *object_path,
395     GCancellable        *cancellable,
396     GError             **error);
397 
398 void _secret_gen_service_proxy_new_for_bus (
399     GBusType             bus_type,
400     GDBusProxyFlags      flags,
401     const gchar         *name,
402     const gchar         *object_path,
403     GCancellable        *cancellable,
404     GAsyncReadyCallback  callback,
405     gpointer             user_data);
406 SecretGenService *_secret_gen_service_proxy_new_for_bus_finish (
407     GAsyncResult        *res,
408     GError             **error);
409 SecretGenService *_secret_gen_service_proxy_new_for_bus_sync (
410     GBusType             bus_type,
411     GDBusProxyFlags      flags,
412     const gchar         *name,
413     const gchar         *object_path,
414     GCancellable        *cancellable,
415     GError             **error);
416 
417 
418 /* ---- */
419 
420 #define SECRET_GEN_TYPE_SERVICE_SKELETON (_secret_gen_service_skeleton_get_type ())
421 #define SECRET_GEN_SERVICE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_SERVICE_SKELETON, SecretGenServiceSkeleton))
422 #define SECRET_GEN_SERVICE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SECRET_GEN_TYPE_SERVICE_SKELETON, SecretGenServiceSkeletonClass))
423 #define SECRET_GEN_SERVICE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SECRET_GEN_TYPE_SERVICE_SKELETON, SecretGenServiceSkeletonClass))
424 #define SECRET_GEN_IS_SERVICE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_SERVICE_SKELETON))
425 #define SECRET_GEN_IS_SERVICE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SECRET_GEN_TYPE_SERVICE_SKELETON))
426 
427 typedef struct _SecretGenServiceSkeleton SecretGenServiceSkeleton;
428 typedef struct _SecretGenServiceSkeletonClass SecretGenServiceSkeletonClass;
429 typedef struct _SecretGenServiceSkeletonPrivate SecretGenServiceSkeletonPrivate;
430 
431 struct _SecretGenServiceSkeleton
432 {
433   /*< private >*/
434   GDBusInterfaceSkeleton parent_instance;
435   SecretGenServiceSkeletonPrivate *priv;
436 };
437 
438 struct _SecretGenServiceSkeletonClass
439 {
440   GDBusInterfaceSkeletonClass parent_class;
441 };
442 
443 GType _secret_gen_service_skeleton_get_type (void) G_GNUC_CONST;
444 
445 #if GLIB_CHECK_VERSION(2, 44, 0)
446 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SecretGenServiceSkeleton, g_object_unref)
447 #endif
448 
449 SecretGenService *_secret_gen_service_skeleton_new (void);
450 
451 
452 /* ------------------------------------------------------------------------ */
453 /* Declarations for org.freedesktop.Secret.Collection */
454 
455 #define SECRET_GEN_TYPE_COLLECTION (_secret_gen_collection_get_type ())
456 #define SECRET_GEN_COLLECTION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_COLLECTION, SecretGenCollection))
457 #define SECRET_GEN_IS_COLLECTION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_COLLECTION))
458 #define SECRET_GEN_COLLECTION_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), SECRET_GEN_TYPE_COLLECTION, SecretGenCollectionIface))
459 
460 struct _SecretGenCollection;
461 typedef struct _SecretGenCollection SecretGenCollection;
462 typedef struct _SecretGenCollectionIface SecretGenCollectionIface;
463 
464 struct _SecretGenCollectionIface
465 {
466   GTypeInterface parent_iface;
467 
468 
469 
470   gboolean (*handle_create_item) (
471     SecretGenCollection *object,
472     GDBusMethodInvocation *invocation,
473     GVariant *arg_properties,
474     GVariant *arg_secret,
475     gboolean arg_replace);
476 
477   gboolean (*handle_delete) (
478     SecretGenCollection *object,
479     GDBusMethodInvocation *invocation);
480 
481   gboolean (*handle_search_items) (
482     SecretGenCollection *object,
483     GDBusMethodInvocation *invocation,
484     GVariant *arg_attributes);
485 
486   guint64  (*get_created) (SecretGenCollection *object);
487 
488   const gchar *const * (*get_items) (SecretGenCollection *object);
489 
490   const gchar * (*get_label) (SecretGenCollection *object);
491 
492   gboolean  (*get_locked) (SecretGenCollection *object);
493 
494   guint64  (*get_modified) (SecretGenCollection *object);
495 
496   void (*item_changed) (
497     SecretGenCollection *object,
498     const gchar *arg_item);
499 
500   void (*item_created) (
501     SecretGenCollection *object,
502     const gchar *arg_item);
503 
504   void (*item_deleted) (
505     SecretGenCollection *object,
506     const gchar *arg_item);
507 
508 };
509 
510 GType _secret_gen_collection_get_type (void) G_GNUC_CONST;
511 
512 GDBusInterfaceInfo *_secret_gen_collection_interface_info (void);
513 guint _secret_gen_collection_override_properties (GObjectClass *klass, guint property_id_begin);
514 
515 
516 /* D-Bus method call completion functions: */
517 void _secret_gen_collection_complete_delete (
518     SecretGenCollection *object,
519     GDBusMethodInvocation *invocation,
520     const gchar *prompt);
521 
522 void _secret_gen_collection_complete_search_items (
523     SecretGenCollection *object,
524     GDBusMethodInvocation *invocation,
525     const gchar *const *results);
526 
527 void _secret_gen_collection_complete_create_item (
528     SecretGenCollection *object,
529     GDBusMethodInvocation *invocation,
530     const gchar *item,
531     const gchar *prompt);
532 
533 
534 
535 /* D-Bus signal emissions functions: */
536 void _secret_gen_collection_emit_item_created (
537     SecretGenCollection *object,
538     const gchar *arg_item);
539 
540 void _secret_gen_collection_emit_item_deleted (
541     SecretGenCollection *object,
542     const gchar *arg_item);
543 
544 void _secret_gen_collection_emit_item_changed (
545     SecretGenCollection *object,
546     const gchar *arg_item);
547 
548 
549 
550 /* D-Bus method calls: */
551 void _secret_gen_collection_call_delete (
552     SecretGenCollection *proxy,
553     GCancellable *cancellable,
554     GAsyncReadyCallback callback,
555     gpointer user_data);
556 
557 gboolean _secret_gen_collection_call_delete_finish (
558     SecretGenCollection *proxy,
559     gchar **out_prompt,
560     GAsyncResult *res,
561     GError **error);
562 
563 gboolean _secret_gen_collection_call_delete_sync (
564     SecretGenCollection *proxy,
565     gchar **out_prompt,
566     GCancellable *cancellable,
567     GError **error);
568 
569 void _secret_gen_collection_call_search_items (
570     SecretGenCollection *proxy,
571     GVariant *arg_attributes,
572     GCancellable *cancellable,
573     GAsyncReadyCallback callback,
574     gpointer user_data);
575 
576 gboolean _secret_gen_collection_call_search_items_finish (
577     SecretGenCollection *proxy,
578     gchar ***out_results,
579     GAsyncResult *res,
580     GError **error);
581 
582 gboolean _secret_gen_collection_call_search_items_sync (
583     SecretGenCollection *proxy,
584     GVariant *arg_attributes,
585     gchar ***out_results,
586     GCancellable *cancellable,
587     GError **error);
588 
589 void _secret_gen_collection_call_create_item (
590     SecretGenCollection *proxy,
591     GVariant *arg_properties,
592     GVariant *arg_secret,
593     gboolean arg_replace,
594     GCancellable *cancellable,
595     GAsyncReadyCallback callback,
596     gpointer user_data);
597 
598 gboolean _secret_gen_collection_call_create_item_finish (
599     SecretGenCollection *proxy,
600     gchar **out_item,
601     gchar **out_prompt,
602     GAsyncResult *res,
603     GError **error);
604 
605 gboolean _secret_gen_collection_call_create_item_sync (
606     SecretGenCollection *proxy,
607     GVariant *arg_properties,
608     GVariant *arg_secret,
609     gboolean arg_replace,
610     gchar **out_item,
611     gchar **out_prompt,
612     GCancellable *cancellable,
613     GError **error);
614 
615 
616 
617 /* D-Bus property accessors: */
618 const gchar *const *_secret_gen_collection_get_items (SecretGenCollection *object);
619 gchar **_secret_gen_collection_dup_items (SecretGenCollection *object);
620 void _secret_gen_collection_set_items (SecretGenCollection *object, const gchar *const *value);
621 
622 const gchar *_secret_gen_collection_get_label (SecretGenCollection *object);
623 gchar *_secret_gen_collection_dup_label (SecretGenCollection *object);
624 void _secret_gen_collection_set_label (SecretGenCollection *object, const gchar *value);
625 
626 gboolean _secret_gen_collection_get_locked (SecretGenCollection *object);
627 void _secret_gen_collection_set_locked (SecretGenCollection *object, gboolean value);
628 
629 guint64 _secret_gen_collection_get_created (SecretGenCollection *object);
630 void _secret_gen_collection_set_created (SecretGenCollection *object, guint64 value);
631 
632 guint64 _secret_gen_collection_get_modified (SecretGenCollection *object);
633 void _secret_gen_collection_set_modified (SecretGenCollection *object, guint64 value);
634 
635 
636 /* ---- */
637 
638 #define SECRET_GEN_TYPE_COLLECTION_PROXY (_secret_gen_collection_proxy_get_type ())
639 #define SECRET_GEN_COLLECTION_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_COLLECTION_PROXY, SecretGenCollectionProxy))
640 #define SECRET_GEN_COLLECTION_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SECRET_GEN_TYPE_COLLECTION_PROXY, SecretGenCollectionProxyClass))
641 #define SECRET_GEN_COLLECTION_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SECRET_GEN_TYPE_COLLECTION_PROXY, SecretGenCollectionProxyClass))
642 #define SECRET_GEN_IS_COLLECTION_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_COLLECTION_PROXY))
643 #define SECRET_GEN_IS_COLLECTION_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SECRET_GEN_TYPE_COLLECTION_PROXY))
644 
645 typedef struct _SecretGenCollectionProxy SecretGenCollectionProxy;
646 typedef struct _SecretGenCollectionProxyClass SecretGenCollectionProxyClass;
647 typedef struct _SecretGenCollectionProxyPrivate SecretGenCollectionProxyPrivate;
648 
649 struct _SecretGenCollectionProxy
650 {
651   /*< private >*/
652   GDBusProxy parent_instance;
653   SecretGenCollectionProxyPrivate *priv;
654 };
655 
656 struct _SecretGenCollectionProxyClass
657 {
658   GDBusProxyClass parent_class;
659 };
660 
661 GType _secret_gen_collection_proxy_get_type (void) G_GNUC_CONST;
662 
663 #if GLIB_CHECK_VERSION(2, 44, 0)
664 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SecretGenCollectionProxy, g_object_unref)
665 #endif
666 
667 void _secret_gen_collection_proxy_new (
668     GDBusConnection     *connection,
669     GDBusProxyFlags      flags,
670     const gchar         *name,
671     const gchar         *object_path,
672     GCancellable        *cancellable,
673     GAsyncReadyCallback  callback,
674     gpointer             user_data);
675 SecretGenCollection *_secret_gen_collection_proxy_new_finish (
676     GAsyncResult        *res,
677     GError             **error);
678 SecretGenCollection *_secret_gen_collection_proxy_new_sync (
679     GDBusConnection     *connection,
680     GDBusProxyFlags      flags,
681     const gchar         *name,
682     const gchar         *object_path,
683     GCancellable        *cancellable,
684     GError             **error);
685 
686 void _secret_gen_collection_proxy_new_for_bus (
687     GBusType             bus_type,
688     GDBusProxyFlags      flags,
689     const gchar         *name,
690     const gchar         *object_path,
691     GCancellable        *cancellable,
692     GAsyncReadyCallback  callback,
693     gpointer             user_data);
694 SecretGenCollection *_secret_gen_collection_proxy_new_for_bus_finish (
695     GAsyncResult        *res,
696     GError             **error);
697 SecretGenCollection *_secret_gen_collection_proxy_new_for_bus_sync (
698     GBusType             bus_type,
699     GDBusProxyFlags      flags,
700     const gchar         *name,
701     const gchar         *object_path,
702     GCancellable        *cancellable,
703     GError             **error);
704 
705 
706 /* ---- */
707 
708 #define SECRET_GEN_TYPE_COLLECTION_SKELETON (_secret_gen_collection_skeleton_get_type ())
709 #define SECRET_GEN_COLLECTION_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_COLLECTION_SKELETON, SecretGenCollectionSkeleton))
710 #define SECRET_GEN_COLLECTION_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SECRET_GEN_TYPE_COLLECTION_SKELETON, SecretGenCollectionSkeletonClass))
711 #define SECRET_GEN_COLLECTION_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SECRET_GEN_TYPE_COLLECTION_SKELETON, SecretGenCollectionSkeletonClass))
712 #define SECRET_GEN_IS_COLLECTION_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_COLLECTION_SKELETON))
713 #define SECRET_GEN_IS_COLLECTION_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SECRET_GEN_TYPE_COLLECTION_SKELETON))
714 
715 typedef struct _SecretGenCollectionSkeleton SecretGenCollectionSkeleton;
716 typedef struct _SecretGenCollectionSkeletonClass SecretGenCollectionSkeletonClass;
717 typedef struct _SecretGenCollectionSkeletonPrivate SecretGenCollectionSkeletonPrivate;
718 
719 struct _SecretGenCollectionSkeleton
720 {
721   /*< private >*/
722   GDBusInterfaceSkeleton parent_instance;
723   SecretGenCollectionSkeletonPrivate *priv;
724 };
725 
726 struct _SecretGenCollectionSkeletonClass
727 {
728   GDBusInterfaceSkeletonClass parent_class;
729 };
730 
731 GType _secret_gen_collection_skeleton_get_type (void) G_GNUC_CONST;
732 
733 #if GLIB_CHECK_VERSION(2, 44, 0)
734 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SecretGenCollectionSkeleton, g_object_unref)
735 #endif
736 
737 SecretGenCollection *_secret_gen_collection_skeleton_new (void);
738 
739 
740 /* ------------------------------------------------------------------------ */
741 /* Declarations for org.freedesktop.Secret.Item */
742 
743 #define SECRET_GEN_TYPE_ITEM (_secret_gen_item_get_type ())
744 #define SECRET_GEN_ITEM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_ITEM, SecretGenItem))
745 #define SECRET_GEN_IS_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_ITEM))
746 #define SECRET_GEN_ITEM_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), SECRET_GEN_TYPE_ITEM, SecretGenItemIface))
747 
748 struct _SecretGenItem;
749 typedef struct _SecretGenItem SecretGenItem;
750 typedef struct _SecretGenItemIface SecretGenItemIface;
751 
752 struct _SecretGenItemIface
753 {
754   GTypeInterface parent_iface;
755 
756 
757   gboolean (*handle_delete) (
758     SecretGenItem *object,
759     GDBusMethodInvocation *invocation);
760 
761   gboolean (*handle_get_secret) (
762     SecretGenItem *object,
763     GDBusMethodInvocation *invocation,
764     const gchar *arg_session);
765 
766   gboolean (*handle_set_secret) (
767     SecretGenItem *object,
768     GDBusMethodInvocation *invocation,
769     GVariant *arg_secret);
770 
771   GVariant * (*get_attributes) (SecretGenItem *object);
772 
773   guint64  (*get_created) (SecretGenItem *object);
774 
775   const gchar * (*get_label) (SecretGenItem *object);
776 
777   gboolean  (*get_locked) (SecretGenItem *object);
778 
779   guint64  (*get_modified) (SecretGenItem *object);
780 
781 };
782 
783 GType _secret_gen_item_get_type (void) G_GNUC_CONST;
784 
785 GDBusInterfaceInfo *_secret_gen_item_interface_info (void);
786 guint _secret_gen_item_override_properties (GObjectClass *klass, guint property_id_begin);
787 
788 
789 /* D-Bus method call completion functions: */
790 void _secret_gen_item_complete_delete (
791     SecretGenItem *object,
792     GDBusMethodInvocation *invocation,
793     const gchar *Prompt);
794 
795 void _secret_gen_item_complete_get_secret (
796     SecretGenItem *object,
797     GDBusMethodInvocation *invocation,
798     GVariant *secret);
799 
800 void _secret_gen_item_complete_set_secret (
801     SecretGenItem *object,
802     GDBusMethodInvocation *invocation);
803 
804 
805 
806 /* D-Bus method calls: */
807 void _secret_gen_item_call_delete (
808     SecretGenItem *proxy,
809     GCancellable *cancellable,
810     GAsyncReadyCallback callback,
811     gpointer user_data);
812 
813 gboolean _secret_gen_item_call_delete_finish (
814     SecretGenItem *proxy,
815     gchar **out_Prompt,
816     GAsyncResult *res,
817     GError **error);
818 
819 gboolean _secret_gen_item_call_delete_sync (
820     SecretGenItem *proxy,
821     gchar **out_Prompt,
822     GCancellable *cancellable,
823     GError **error);
824 
825 void _secret_gen_item_call_get_secret (
826     SecretGenItem *proxy,
827     const gchar *arg_session,
828     GCancellable *cancellable,
829     GAsyncReadyCallback callback,
830     gpointer user_data);
831 
832 gboolean _secret_gen_item_call_get_secret_finish (
833     SecretGenItem *proxy,
834     GVariant **out_secret,
835     GAsyncResult *res,
836     GError **error);
837 
838 gboolean _secret_gen_item_call_get_secret_sync (
839     SecretGenItem *proxy,
840     const gchar *arg_session,
841     GVariant **out_secret,
842     GCancellable *cancellable,
843     GError **error);
844 
845 void _secret_gen_item_call_set_secret (
846     SecretGenItem *proxy,
847     GVariant *arg_secret,
848     GCancellable *cancellable,
849     GAsyncReadyCallback callback,
850     gpointer user_data);
851 
852 gboolean _secret_gen_item_call_set_secret_finish (
853     SecretGenItem *proxy,
854     GAsyncResult *res,
855     GError **error);
856 
857 gboolean _secret_gen_item_call_set_secret_sync (
858     SecretGenItem *proxy,
859     GVariant *arg_secret,
860     GCancellable *cancellable,
861     GError **error);
862 
863 
864 
865 /* D-Bus property accessors: */
866 gboolean _secret_gen_item_get_locked (SecretGenItem *object);
867 void _secret_gen_item_set_locked (SecretGenItem *object, gboolean value);
868 
869 GVariant *_secret_gen_item_get_attributes (SecretGenItem *object);
870 GVariant *_secret_gen_item_dup_attributes (SecretGenItem *object);
871 void _secret_gen_item_set_attributes (SecretGenItem *object, GVariant *value);
872 
873 const gchar *_secret_gen_item_get_label (SecretGenItem *object);
874 gchar *_secret_gen_item_dup_label (SecretGenItem *object);
875 void _secret_gen_item_set_label (SecretGenItem *object, const gchar *value);
876 
877 guint64 _secret_gen_item_get_created (SecretGenItem *object);
878 void _secret_gen_item_set_created (SecretGenItem *object, guint64 value);
879 
880 guint64 _secret_gen_item_get_modified (SecretGenItem *object);
881 void _secret_gen_item_set_modified (SecretGenItem *object, guint64 value);
882 
883 
884 /* ---- */
885 
886 #define SECRET_GEN_TYPE_ITEM_PROXY (_secret_gen_item_proxy_get_type ())
887 #define SECRET_GEN_ITEM_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_ITEM_PROXY, SecretGenItemProxy))
888 #define SECRET_GEN_ITEM_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SECRET_GEN_TYPE_ITEM_PROXY, SecretGenItemProxyClass))
889 #define SECRET_GEN_ITEM_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SECRET_GEN_TYPE_ITEM_PROXY, SecretGenItemProxyClass))
890 #define SECRET_GEN_IS_ITEM_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_ITEM_PROXY))
891 #define SECRET_GEN_IS_ITEM_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SECRET_GEN_TYPE_ITEM_PROXY))
892 
893 typedef struct _SecretGenItemProxy SecretGenItemProxy;
894 typedef struct _SecretGenItemProxyClass SecretGenItemProxyClass;
895 typedef struct _SecretGenItemProxyPrivate SecretGenItemProxyPrivate;
896 
897 struct _SecretGenItemProxy
898 {
899   /*< private >*/
900   GDBusProxy parent_instance;
901   SecretGenItemProxyPrivate *priv;
902 };
903 
904 struct _SecretGenItemProxyClass
905 {
906   GDBusProxyClass parent_class;
907 };
908 
909 GType _secret_gen_item_proxy_get_type (void) G_GNUC_CONST;
910 
911 #if GLIB_CHECK_VERSION(2, 44, 0)
912 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SecretGenItemProxy, g_object_unref)
913 #endif
914 
915 void _secret_gen_item_proxy_new (
916     GDBusConnection     *connection,
917     GDBusProxyFlags      flags,
918     const gchar         *name,
919     const gchar         *object_path,
920     GCancellable        *cancellable,
921     GAsyncReadyCallback  callback,
922     gpointer             user_data);
923 SecretGenItem *_secret_gen_item_proxy_new_finish (
924     GAsyncResult        *res,
925     GError             **error);
926 SecretGenItem *_secret_gen_item_proxy_new_sync (
927     GDBusConnection     *connection,
928     GDBusProxyFlags      flags,
929     const gchar         *name,
930     const gchar         *object_path,
931     GCancellable        *cancellable,
932     GError             **error);
933 
934 void _secret_gen_item_proxy_new_for_bus (
935     GBusType             bus_type,
936     GDBusProxyFlags      flags,
937     const gchar         *name,
938     const gchar         *object_path,
939     GCancellable        *cancellable,
940     GAsyncReadyCallback  callback,
941     gpointer             user_data);
942 SecretGenItem *_secret_gen_item_proxy_new_for_bus_finish (
943     GAsyncResult        *res,
944     GError             **error);
945 SecretGenItem *_secret_gen_item_proxy_new_for_bus_sync (
946     GBusType             bus_type,
947     GDBusProxyFlags      flags,
948     const gchar         *name,
949     const gchar         *object_path,
950     GCancellable        *cancellable,
951     GError             **error);
952 
953 
954 /* ---- */
955 
956 #define SECRET_GEN_TYPE_ITEM_SKELETON (_secret_gen_item_skeleton_get_type ())
957 #define SECRET_GEN_ITEM_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_ITEM_SKELETON, SecretGenItemSkeleton))
958 #define SECRET_GEN_ITEM_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SECRET_GEN_TYPE_ITEM_SKELETON, SecretGenItemSkeletonClass))
959 #define SECRET_GEN_ITEM_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SECRET_GEN_TYPE_ITEM_SKELETON, SecretGenItemSkeletonClass))
960 #define SECRET_GEN_IS_ITEM_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_ITEM_SKELETON))
961 #define SECRET_GEN_IS_ITEM_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SECRET_GEN_TYPE_ITEM_SKELETON))
962 
963 typedef struct _SecretGenItemSkeleton SecretGenItemSkeleton;
964 typedef struct _SecretGenItemSkeletonClass SecretGenItemSkeletonClass;
965 typedef struct _SecretGenItemSkeletonPrivate SecretGenItemSkeletonPrivate;
966 
967 struct _SecretGenItemSkeleton
968 {
969   /*< private >*/
970   GDBusInterfaceSkeleton parent_instance;
971   SecretGenItemSkeletonPrivate *priv;
972 };
973 
974 struct _SecretGenItemSkeletonClass
975 {
976   GDBusInterfaceSkeletonClass parent_class;
977 };
978 
979 GType _secret_gen_item_skeleton_get_type (void) G_GNUC_CONST;
980 
981 #if GLIB_CHECK_VERSION(2, 44, 0)
982 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SecretGenItemSkeleton, g_object_unref)
983 #endif
984 
985 SecretGenItem *_secret_gen_item_skeleton_new (void);
986 
987 
988 /* ------------------------------------------------------------------------ */
989 /* Declarations for org.freedesktop.Secret.Session */
990 
991 #define SECRET_GEN_TYPE_SESSION (_secret_gen_session_get_type ())
992 #define SECRET_GEN_SESSION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_SESSION, SecretGenSession))
993 #define SECRET_GEN_IS_SESSION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_SESSION))
994 #define SECRET_GEN_SESSION_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), SECRET_GEN_TYPE_SESSION, SecretGenSessionIface))
995 
996 struct _SecretGenSession;
997 typedef struct _SecretGenSession SecretGenSession;
998 typedef struct _SecretGenSessionIface SecretGenSessionIface;
999 
1000 struct _SecretGenSessionIface
1001 {
1002   GTypeInterface parent_iface;
1003 
1004   gboolean (*handle_close) (
1005     SecretGenSession *object,
1006     GDBusMethodInvocation *invocation);
1007 
1008 };
1009 
1010 GType _secret_gen_session_get_type (void) G_GNUC_CONST;
1011 
1012 GDBusInterfaceInfo *_secret_gen_session_interface_info (void);
1013 guint _secret_gen_session_override_properties (GObjectClass *klass, guint property_id_begin);
1014 
1015 
1016 /* D-Bus method call completion functions: */
1017 void _secret_gen_session_complete_close (
1018     SecretGenSession *object,
1019     GDBusMethodInvocation *invocation);
1020 
1021 
1022 
1023 /* D-Bus method calls: */
1024 void _secret_gen_session_call_close (
1025     SecretGenSession *proxy,
1026     GCancellable *cancellable,
1027     GAsyncReadyCallback callback,
1028     gpointer user_data);
1029 
1030 gboolean _secret_gen_session_call_close_finish (
1031     SecretGenSession *proxy,
1032     GAsyncResult *res,
1033     GError **error);
1034 
1035 gboolean _secret_gen_session_call_close_sync (
1036     SecretGenSession *proxy,
1037     GCancellable *cancellable,
1038     GError **error);
1039 
1040 
1041 
1042 /* ---- */
1043 
1044 #define SECRET_GEN_TYPE_SESSION_PROXY (_secret_gen_session_proxy_get_type ())
1045 #define SECRET_GEN_SESSION_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_SESSION_PROXY, SecretGenSessionProxy))
1046 #define SECRET_GEN_SESSION_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SECRET_GEN_TYPE_SESSION_PROXY, SecretGenSessionProxyClass))
1047 #define SECRET_GEN_SESSION_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SECRET_GEN_TYPE_SESSION_PROXY, SecretGenSessionProxyClass))
1048 #define SECRET_GEN_IS_SESSION_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_SESSION_PROXY))
1049 #define SECRET_GEN_IS_SESSION_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SECRET_GEN_TYPE_SESSION_PROXY))
1050 
1051 typedef struct _SecretGenSessionProxy SecretGenSessionProxy;
1052 typedef struct _SecretGenSessionProxyClass SecretGenSessionProxyClass;
1053 typedef struct _SecretGenSessionProxyPrivate SecretGenSessionProxyPrivate;
1054 
1055 struct _SecretGenSessionProxy
1056 {
1057   /*< private >*/
1058   GDBusProxy parent_instance;
1059   SecretGenSessionProxyPrivate *priv;
1060 };
1061 
1062 struct _SecretGenSessionProxyClass
1063 {
1064   GDBusProxyClass parent_class;
1065 };
1066 
1067 GType _secret_gen_session_proxy_get_type (void) G_GNUC_CONST;
1068 
1069 #if GLIB_CHECK_VERSION(2, 44, 0)
1070 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SecretGenSessionProxy, g_object_unref)
1071 #endif
1072 
1073 void _secret_gen_session_proxy_new (
1074     GDBusConnection     *connection,
1075     GDBusProxyFlags      flags,
1076     const gchar         *name,
1077     const gchar         *object_path,
1078     GCancellable        *cancellable,
1079     GAsyncReadyCallback  callback,
1080     gpointer             user_data);
1081 SecretGenSession *_secret_gen_session_proxy_new_finish (
1082     GAsyncResult        *res,
1083     GError             **error);
1084 SecretGenSession *_secret_gen_session_proxy_new_sync (
1085     GDBusConnection     *connection,
1086     GDBusProxyFlags      flags,
1087     const gchar         *name,
1088     const gchar         *object_path,
1089     GCancellable        *cancellable,
1090     GError             **error);
1091 
1092 void _secret_gen_session_proxy_new_for_bus (
1093     GBusType             bus_type,
1094     GDBusProxyFlags      flags,
1095     const gchar         *name,
1096     const gchar         *object_path,
1097     GCancellable        *cancellable,
1098     GAsyncReadyCallback  callback,
1099     gpointer             user_data);
1100 SecretGenSession *_secret_gen_session_proxy_new_for_bus_finish (
1101     GAsyncResult        *res,
1102     GError             **error);
1103 SecretGenSession *_secret_gen_session_proxy_new_for_bus_sync (
1104     GBusType             bus_type,
1105     GDBusProxyFlags      flags,
1106     const gchar         *name,
1107     const gchar         *object_path,
1108     GCancellable        *cancellable,
1109     GError             **error);
1110 
1111 
1112 /* ---- */
1113 
1114 #define SECRET_GEN_TYPE_SESSION_SKELETON (_secret_gen_session_skeleton_get_type ())
1115 #define SECRET_GEN_SESSION_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_SESSION_SKELETON, SecretGenSessionSkeleton))
1116 #define SECRET_GEN_SESSION_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SECRET_GEN_TYPE_SESSION_SKELETON, SecretGenSessionSkeletonClass))
1117 #define SECRET_GEN_SESSION_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SECRET_GEN_TYPE_SESSION_SKELETON, SecretGenSessionSkeletonClass))
1118 #define SECRET_GEN_IS_SESSION_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_SESSION_SKELETON))
1119 #define SECRET_GEN_IS_SESSION_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SECRET_GEN_TYPE_SESSION_SKELETON))
1120 
1121 typedef struct _SecretGenSessionSkeleton SecretGenSessionSkeleton;
1122 typedef struct _SecretGenSessionSkeletonClass SecretGenSessionSkeletonClass;
1123 typedef struct _SecretGenSessionSkeletonPrivate SecretGenSessionSkeletonPrivate;
1124 
1125 struct _SecretGenSessionSkeleton
1126 {
1127   /*< private >*/
1128   GDBusInterfaceSkeleton parent_instance;
1129   SecretGenSessionSkeletonPrivate *priv;
1130 };
1131 
1132 struct _SecretGenSessionSkeletonClass
1133 {
1134   GDBusInterfaceSkeletonClass parent_class;
1135 };
1136 
1137 GType _secret_gen_session_skeleton_get_type (void) G_GNUC_CONST;
1138 
1139 #if GLIB_CHECK_VERSION(2, 44, 0)
1140 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SecretGenSessionSkeleton, g_object_unref)
1141 #endif
1142 
1143 SecretGenSession *_secret_gen_session_skeleton_new (void);
1144 
1145 
1146 /* ------------------------------------------------------------------------ */
1147 /* Declarations for org.freedesktop.Secret.Prompt */
1148 
1149 #define SECRET_GEN_TYPE_PROMPT (_secret_gen_prompt_get_type ())
1150 #define SECRET_GEN_PROMPT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_PROMPT, SecretGenPrompt))
1151 #define SECRET_GEN_IS_PROMPT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_PROMPT))
1152 #define SECRET_GEN_PROMPT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), SECRET_GEN_TYPE_PROMPT, SecretGenPromptIface))
1153 
1154 struct _SecretGenPrompt;
1155 typedef struct _SecretGenPrompt SecretGenPrompt;
1156 typedef struct _SecretGenPromptIface SecretGenPromptIface;
1157 
1158 struct _SecretGenPromptIface
1159 {
1160   GTypeInterface parent_iface;
1161 
1162 
1163   gboolean (*handle_dismiss) (
1164     SecretGenPrompt *object,
1165     GDBusMethodInvocation *invocation);
1166 
1167   gboolean (*handle_prompt) (
1168     SecretGenPrompt *object,
1169     GDBusMethodInvocation *invocation,
1170     const gchar *arg_window_id);
1171 
1172   void (*completed) (
1173     SecretGenPrompt *object,
1174     gboolean arg_dismissed,
1175     GVariant *arg_result);
1176 
1177 };
1178 
1179 GType _secret_gen_prompt_get_type (void) G_GNUC_CONST;
1180 
1181 GDBusInterfaceInfo *_secret_gen_prompt_interface_info (void);
1182 guint _secret_gen_prompt_override_properties (GObjectClass *klass, guint property_id_begin);
1183 
1184 
1185 /* D-Bus method call completion functions: */
1186 void _secret_gen_prompt_complete_prompt (
1187     SecretGenPrompt *object,
1188     GDBusMethodInvocation *invocation);
1189 
1190 void _secret_gen_prompt_complete_dismiss (
1191     SecretGenPrompt *object,
1192     GDBusMethodInvocation *invocation);
1193 
1194 
1195 
1196 /* D-Bus signal emissions functions: */
1197 void _secret_gen_prompt_emit_completed (
1198     SecretGenPrompt *object,
1199     gboolean arg_dismissed,
1200     GVariant *arg_result);
1201 
1202 
1203 
1204 /* D-Bus method calls: */
1205 void _secret_gen_prompt_call_prompt (
1206     SecretGenPrompt *proxy,
1207     const gchar *arg_window_id,
1208     GCancellable *cancellable,
1209     GAsyncReadyCallback callback,
1210     gpointer user_data);
1211 
1212 gboolean _secret_gen_prompt_call_prompt_finish (
1213     SecretGenPrompt *proxy,
1214     GAsyncResult *res,
1215     GError **error);
1216 
1217 gboolean _secret_gen_prompt_call_prompt_sync (
1218     SecretGenPrompt *proxy,
1219     const gchar *arg_window_id,
1220     GCancellable *cancellable,
1221     GError **error);
1222 
1223 void _secret_gen_prompt_call_dismiss (
1224     SecretGenPrompt *proxy,
1225     GCancellable *cancellable,
1226     GAsyncReadyCallback callback,
1227     gpointer user_data);
1228 
1229 gboolean _secret_gen_prompt_call_dismiss_finish (
1230     SecretGenPrompt *proxy,
1231     GAsyncResult *res,
1232     GError **error);
1233 
1234 gboolean _secret_gen_prompt_call_dismiss_sync (
1235     SecretGenPrompt *proxy,
1236     GCancellable *cancellable,
1237     GError **error);
1238 
1239 
1240 
1241 /* ---- */
1242 
1243 #define SECRET_GEN_TYPE_PROMPT_PROXY (_secret_gen_prompt_proxy_get_type ())
1244 #define SECRET_GEN_PROMPT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_PROMPT_PROXY, SecretGenPromptProxy))
1245 #define SECRET_GEN_PROMPT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SECRET_GEN_TYPE_PROMPT_PROXY, SecretGenPromptProxyClass))
1246 #define SECRET_GEN_PROMPT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SECRET_GEN_TYPE_PROMPT_PROXY, SecretGenPromptProxyClass))
1247 #define SECRET_GEN_IS_PROMPT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_PROMPT_PROXY))
1248 #define SECRET_GEN_IS_PROMPT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SECRET_GEN_TYPE_PROMPT_PROXY))
1249 
1250 typedef struct _SecretGenPromptProxy SecretGenPromptProxy;
1251 typedef struct _SecretGenPromptProxyClass SecretGenPromptProxyClass;
1252 typedef struct _SecretGenPromptProxyPrivate SecretGenPromptProxyPrivate;
1253 
1254 struct _SecretGenPromptProxy
1255 {
1256   /*< private >*/
1257   GDBusProxy parent_instance;
1258   SecretGenPromptProxyPrivate *priv;
1259 };
1260 
1261 struct _SecretGenPromptProxyClass
1262 {
1263   GDBusProxyClass parent_class;
1264 };
1265 
1266 GType _secret_gen_prompt_proxy_get_type (void) G_GNUC_CONST;
1267 
1268 #if GLIB_CHECK_VERSION(2, 44, 0)
1269 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SecretGenPromptProxy, g_object_unref)
1270 #endif
1271 
1272 void _secret_gen_prompt_proxy_new (
1273     GDBusConnection     *connection,
1274     GDBusProxyFlags      flags,
1275     const gchar         *name,
1276     const gchar         *object_path,
1277     GCancellable        *cancellable,
1278     GAsyncReadyCallback  callback,
1279     gpointer             user_data);
1280 SecretGenPrompt *_secret_gen_prompt_proxy_new_finish (
1281     GAsyncResult        *res,
1282     GError             **error);
1283 SecretGenPrompt *_secret_gen_prompt_proxy_new_sync (
1284     GDBusConnection     *connection,
1285     GDBusProxyFlags      flags,
1286     const gchar         *name,
1287     const gchar         *object_path,
1288     GCancellable        *cancellable,
1289     GError             **error);
1290 
1291 void _secret_gen_prompt_proxy_new_for_bus (
1292     GBusType             bus_type,
1293     GDBusProxyFlags      flags,
1294     const gchar         *name,
1295     const gchar         *object_path,
1296     GCancellable        *cancellable,
1297     GAsyncReadyCallback  callback,
1298     gpointer             user_data);
1299 SecretGenPrompt *_secret_gen_prompt_proxy_new_for_bus_finish (
1300     GAsyncResult        *res,
1301     GError             **error);
1302 SecretGenPrompt *_secret_gen_prompt_proxy_new_for_bus_sync (
1303     GBusType             bus_type,
1304     GDBusProxyFlags      flags,
1305     const gchar         *name,
1306     const gchar         *object_path,
1307     GCancellable        *cancellable,
1308     GError             **error);
1309 
1310 
1311 /* ---- */
1312 
1313 #define SECRET_GEN_TYPE_PROMPT_SKELETON (_secret_gen_prompt_skeleton_get_type ())
1314 #define SECRET_GEN_PROMPT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SECRET_GEN_TYPE_PROMPT_SKELETON, SecretGenPromptSkeleton))
1315 #define SECRET_GEN_PROMPT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SECRET_GEN_TYPE_PROMPT_SKELETON, SecretGenPromptSkeletonClass))
1316 #define SECRET_GEN_PROMPT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SECRET_GEN_TYPE_PROMPT_SKELETON, SecretGenPromptSkeletonClass))
1317 #define SECRET_GEN_IS_PROMPT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SECRET_GEN_TYPE_PROMPT_SKELETON))
1318 #define SECRET_GEN_IS_PROMPT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SECRET_GEN_TYPE_PROMPT_SKELETON))
1319 
1320 typedef struct _SecretGenPromptSkeleton SecretGenPromptSkeleton;
1321 typedef struct _SecretGenPromptSkeletonClass SecretGenPromptSkeletonClass;
1322 typedef struct _SecretGenPromptSkeletonPrivate SecretGenPromptSkeletonPrivate;
1323 
1324 struct _SecretGenPromptSkeleton
1325 {
1326   /*< private >*/
1327   GDBusInterfaceSkeleton parent_instance;
1328   SecretGenPromptSkeletonPrivate *priv;
1329 };
1330 
1331 struct _SecretGenPromptSkeletonClass
1332 {
1333   GDBusInterfaceSkeletonClass parent_class;
1334 };
1335 
1336 GType _secret_gen_prompt_skeleton_get_type (void) G_GNUC_CONST;
1337 
1338 #if GLIB_CHECK_VERSION(2, 44, 0)
1339 G_DEFINE_AUTOPTR_CLEANUP_FUNC (SecretGenPromptSkeleton, g_object_unref)
1340 #endif
1341 
1342 SecretGenPrompt *_secret_gen_prompt_skeleton_new (void);
1343 
1344 
1345 G_END_DECLS
1346 
1347 #endif /* __TEMP_DBUS_GENERATED_H__ */
1348