1 /*
2  * Generated by gdbus-codegen 2.46.2. DO NOT EDIT.
3  *
4  * The license of this code is the same as for the source it was derived from.
5  */
6 
7 #ifdef HAVE_CONFIG_H
8 #  include "config.h"
9 #endif
10 
11 #include "cph-iface-mechanism.h"
12 
13 #include <string.h>
14 #ifdef G_OS_UNIX
15 #  include <gio/gunixfdlist.h>
16 #endif
17 
18 typedef struct
19 {
20   GDBusArgInfo parent_struct;
21   gboolean use_gvariant;
22 } _ExtendedGDBusArgInfo;
23 
24 typedef struct
25 {
26   GDBusMethodInfo parent_struct;
27   const gchar *signal_name;
28   gboolean pass_fdlist;
29 } _ExtendedGDBusMethodInfo;
30 
31 typedef struct
32 {
33   GDBusSignalInfo parent_struct;
34   const gchar *signal_name;
35 } _ExtendedGDBusSignalInfo;
36 
37 typedef struct
38 {
39   GDBusPropertyInfo parent_struct;
40   const gchar *hyphen_name;
41   gboolean use_gvariant;
42 } _ExtendedGDBusPropertyInfo;
43 
44 typedef struct
45 {
46   GDBusInterfaceInfo parent_struct;
47   const gchar *hyphen_name;
48 } _ExtendedGDBusInterfaceInfo;
49 
50 typedef struct
51 {
52   const _ExtendedGDBusPropertyInfo *info;
53   guint prop_id;
54   GValue orig_value; /* the value before the change */
55 } ChangedProperty;
56 
57 static void
_changed_property_free(ChangedProperty * data)58 _changed_property_free (ChangedProperty *data)
59 {
60   g_value_unset (&data->orig_value);
61   g_free (data);
62 }
63 
64 static gboolean
_g_strv_equal0(gchar ** a,gchar ** b)65 _g_strv_equal0 (gchar **a, gchar **b)
66 {
67   gboolean ret = FALSE;
68   guint n;
69   if (a == NULL && b == NULL)
70     {
71       ret = TRUE;
72       goto out;
73     }
74   if (a == NULL || b == NULL)
75     goto out;
76   if (g_strv_length (a) != g_strv_length (b))
77     goto out;
78   for (n = 0; a[n] != NULL; n++)
79     if (g_strcmp0 (a[n], b[n]) != 0)
80       goto out;
81   ret = TRUE;
82 out:
83   return ret;
84 }
85 
86 static gboolean
_g_variant_equal0(GVariant * a,GVariant * b)87 _g_variant_equal0 (GVariant *a, GVariant *b)
88 {
89   gboolean ret = FALSE;
90   if (a == NULL && b == NULL)
91     {
92       ret = TRUE;
93       goto out;
94     }
95   if (a == NULL || b == NULL)
96     goto out;
97   ret = g_variant_equal (a, b);
98 out:
99   return ret;
100 }
101 
102 G_GNUC_UNUSED static gboolean
_g_value_equal(const GValue * a,const GValue * b)103 _g_value_equal (const GValue *a, const GValue *b)
104 {
105   gboolean ret = FALSE;
106   g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
107   switch (G_VALUE_TYPE (a))
108     {
109       case G_TYPE_BOOLEAN:
110         ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
111         break;
112       case G_TYPE_UCHAR:
113         ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
114         break;
115       case G_TYPE_INT:
116         ret = (g_value_get_int (a) == g_value_get_int (b));
117         break;
118       case G_TYPE_UINT:
119         ret = (g_value_get_uint (a) == g_value_get_uint (b));
120         break;
121       case G_TYPE_INT64:
122         ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
123         break;
124       case G_TYPE_UINT64:
125         ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
126         break;
127       case G_TYPE_DOUBLE:
128         {
129           /* Avoid -Wfloat-equal warnings by doing a direct bit compare */
130           gdouble da = g_value_get_double (a);
131           gdouble db = g_value_get_double (b);
132           ret = memcmp (&da, &db, sizeof (gdouble)) == 0;
133         }
134         break;
135       case G_TYPE_STRING:
136         ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
137         break;
138       case G_TYPE_VARIANT:
139         ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
140         break;
141       default:
142         if (G_VALUE_TYPE (a) == G_TYPE_STRV)
143           ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
144         else
145           g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
146         break;
147     }
148   return ret;
149 }
150 
151 /* ------------------------------------------------------------------------
152  * Code for interface org.opensuse.CupsPkHelper.Mechanism
153  * ------------------------------------------------------------------------
154  */
155 
156 /**
157  * SECTION:CphIfaceMechanism
158  * @title: CphIfaceMechanism
159  * @short_description: Generated C code for the org.opensuse.CupsPkHelper.Mechanism D-Bus interface
160  *
161  * This section contains code for working with the <link linkend="gdbus-interface-org-opensuse-CupsPkHelper-Mechanism.top_of_page">org.opensuse.CupsPkHelper.Mechanism</link> D-Bus interface in C.
162  */
163 
164 /* ---- Introspection data for org.opensuse.CupsPkHelper.Mechanism ---- */
165 
166 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_file_get_IN_ARG_resource =
167 {
168   {
169     -1,
170     (gchar *) "resource",
171     (gchar *) "s",
172     NULL
173   },
174   FALSE
175 };
176 
177 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_file_get_IN_ARG_filename =
178 {
179   {
180     -1,
181     (gchar *) "filename",
182     (gchar *) "s",
183     NULL
184   },
185   FALSE
186 };
187 
188 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_file_get_IN_ARG_pointers[] =
189 {
190   &_cph_iface_mechanism_method_info_file_get_IN_ARG_resource,
191   &_cph_iface_mechanism_method_info_file_get_IN_ARG_filename,
192   NULL
193 };
194 
195 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_file_get_OUT_ARG_error =
196 {
197   {
198     -1,
199     (gchar *) "error",
200     (gchar *) "s",
201     NULL
202   },
203   FALSE
204 };
205 
206 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_file_get_OUT_ARG_pointers[] =
207 {
208   &_cph_iface_mechanism_method_info_file_get_OUT_ARG_error,
209   NULL
210 };
211 
212 static const GDBusAnnotationInfo _cph_iface_mechanism_method_file_get_annotation_info_0 =
213 {
214   -1,
215   (gchar *) "org.freedesktop.DBus.GLib.Async",
216   (gchar *) "",
217   NULL
218 };
219 
220 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_file_get_annotation_info_pointers[] =
221 {
222   &_cph_iface_mechanism_method_file_get_annotation_info_0,
223   NULL
224 };
225 
226 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_file_get =
227 {
228   {
229     -1,
230     (gchar *) "FileGet",
231     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_file_get_IN_ARG_pointers,
232     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_file_get_OUT_ARG_pointers,
233     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_file_get_annotation_info_pointers
234   },
235   "handle-file-get",
236   FALSE
237 };
238 
239 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_file_put_IN_ARG_resource =
240 {
241   {
242     -1,
243     (gchar *) "resource",
244     (gchar *) "s",
245     NULL
246   },
247   FALSE
248 };
249 
250 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_file_put_IN_ARG_filename =
251 {
252   {
253     -1,
254     (gchar *) "filename",
255     (gchar *) "s",
256     NULL
257   },
258   FALSE
259 };
260 
261 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_file_put_IN_ARG_pointers[] =
262 {
263   &_cph_iface_mechanism_method_info_file_put_IN_ARG_resource,
264   &_cph_iface_mechanism_method_info_file_put_IN_ARG_filename,
265   NULL
266 };
267 
268 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_file_put_OUT_ARG_error =
269 {
270   {
271     -1,
272     (gchar *) "error",
273     (gchar *) "s",
274     NULL
275   },
276   FALSE
277 };
278 
279 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_file_put_OUT_ARG_pointers[] =
280 {
281   &_cph_iface_mechanism_method_info_file_put_OUT_ARG_error,
282   NULL
283 };
284 
285 static const GDBusAnnotationInfo _cph_iface_mechanism_method_file_put_annotation_info_0 =
286 {
287   -1,
288   (gchar *) "org.freedesktop.DBus.GLib.Async",
289   (gchar *) "",
290   NULL
291 };
292 
293 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_file_put_annotation_info_pointers[] =
294 {
295   &_cph_iface_mechanism_method_file_put_annotation_info_0,
296   NULL
297 };
298 
299 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_file_put =
300 {
301   {
302     -1,
303     (gchar *) "FilePut",
304     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_file_put_IN_ARG_pointers,
305     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_file_put_OUT_ARG_pointers,
306     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_file_put_annotation_info_pointers
307   },
308   "handle-file-put",
309   FALSE
310 };
311 
312 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_server_get_settings_OUT_ARG_error =
313 {
314   {
315     -1,
316     (gchar *) "error",
317     (gchar *) "s",
318     NULL
319   },
320   FALSE
321 };
322 
323 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_server_get_settings_OUT_ARG_settings =
324 {
325   {
326     -1,
327     (gchar *) "settings",
328     (gchar *) "a{ss}",
329     NULL
330   },
331   FALSE
332 };
333 
334 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_server_get_settings_OUT_ARG_pointers[] =
335 {
336   &_cph_iface_mechanism_method_info_server_get_settings_OUT_ARG_error,
337   &_cph_iface_mechanism_method_info_server_get_settings_OUT_ARG_settings,
338   NULL
339 };
340 
341 static const GDBusAnnotationInfo _cph_iface_mechanism_method_server_get_settings_annotation_info_0 =
342 {
343   -1,
344   (gchar *) "org.freedesktop.DBus.GLib.Async",
345   (gchar *) "",
346   NULL
347 };
348 
349 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_server_get_settings_annotation_info_pointers[] =
350 {
351   &_cph_iface_mechanism_method_server_get_settings_annotation_info_0,
352   NULL
353 };
354 
355 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_server_get_settings =
356 {
357   {
358     -1,
359     (gchar *) "ServerGetSettings",
360     NULL,
361     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_server_get_settings_OUT_ARG_pointers,
362     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_server_get_settings_annotation_info_pointers
363   },
364   "handle-server-get-settings",
365   FALSE
366 };
367 
368 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_server_set_settings_IN_ARG_settings =
369 {
370   {
371     -1,
372     (gchar *) "settings",
373     (gchar *) "a{ss}",
374     NULL
375   },
376   FALSE
377 };
378 
379 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_server_set_settings_IN_ARG_pointers[] =
380 {
381   &_cph_iface_mechanism_method_info_server_set_settings_IN_ARG_settings,
382   NULL
383 };
384 
385 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_server_set_settings_OUT_ARG_error =
386 {
387   {
388     -1,
389     (gchar *) "error",
390     (gchar *) "s",
391     NULL
392   },
393   FALSE
394 };
395 
396 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_server_set_settings_OUT_ARG_pointers[] =
397 {
398   &_cph_iface_mechanism_method_info_server_set_settings_OUT_ARG_error,
399   NULL
400 };
401 
402 static const GDBusAnnotationInfo _cph_iface_mechanism_method_server_set_settings_annotation_info_0 =
403 {
404   -1,
405   (gchar *) "org.freedesktop.DBus.GLib.Async",
406   (gchar *) "",
407   NULL
408 };
409 
410 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_server_set_settings_annotation_info_pointers[] =
411 {
412   &_cph_iface_mechanism_method_server_set_settings_annotation_info_0,
413   NULL
414 };
415 
416 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_server_set_settings =
417 {
418   {
419     -1,
420     (gchar *) "ServerSetSettings",
421     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_server_set_settings_IN_ARG_pointers,
422     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_server_set_settings_OUT_ARG_pointers,
423     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_server_set_settings_annotation_info_pointers
424   },
425   "handle-server-set-settings",
426   FALSE
427 };
428 
429 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_devices_get_IN_ARG_timeout =
430 {
431   {
432     -1,
433     (gchar *) "timeout",
434     (gchar *) "i",
435     NULL
436   },
437   FALSE
438 };
439 
440 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_devices_get_IN_ARG_limit =
441 {
442   {
443     -1,
444     (gchar *) "limit",
445     (gchar *) "i",
446     NULL
447   },
448   FALSE
449 };
450 
451 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_devices_get_IN_ARG_include_schemes =
452 {
453   {
454     -1,
455     (gchar *) "include_schemes",
456     (gchar *) "as",
457     NULL
458   },
459   FALSE
460 };
461 
462 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_devices_get_IN_ARG_exclude_schemes =
463 {
464   {
465     -1,
466     (gchar *) "exclude_schemes",
467     (gchar *) "as",
468     NULL
469   },
470   FALSE
471 };
472 
473 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_devices_get_IN_ARG_pointers[] =
474 {
475   &_cph_iface_mechanism_method_info_devices_get_IN_ARG_timeout,
476   &_cph_iface_mechanism_method_info_devices_get_IN_ARG_limit,
477   &_cph_iface_mechanism_method_info_devices_get_IN_ARG_include_schemes,
478   &_cph_iface_mechanism_method_info_devices_get_IN_ARG_exclude_schemes,
479   NULL
480 };
481 
482 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_devices_get_OUT_ARG_error =
483 {
484   {
485     -1,
486     (gchar *) "error",
487     (gchar *) "s",
488     NULL
489   },
490   FALSE
491 };
492 
493 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_devices_get_OUT_ARG_devices =
494 {
495   {
496     -1,
497     (gchar *) "devices",
498     (gchar *) "a{ss}",
499     NULL
500   },
501   FALSE
502 };
503 
504 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_devices_get_OUT_ARG_pointers[] =
505 {
506   &_cph_iface_mechanism_method_info_devices_get_OUT_ARG_error,
507   &_cph_iface_mechanism_method_info_devices_get_OUT_ARG_devices,
508   NULL
509 };
510 
511 static const GDBusAnnotationInfo _cph_iface_mechanism_method_devices_get_annotation_info_0 =
512 {
513   -1,
514   (gchar *) "org.freedesktop.DBus.GLib.Async",
515   (gchar *) "",
516   NULL
517 };
518 
519 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_devices_get_annotation_info_pointers[] =
520 {
521   &_cph_iface_mechanism_method_devices_get_annotation_info_0,
522   NULL
523 };
524 
525 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_devices_get =
526 {
527   {
528     -1,
529     (gchar *) "DevicesGet",
530     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_devices_get_IN_ARG_pointers,
531     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_devices_get_OUT_ARG_pointers,
532     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_devices_get_annotation_info_pointers
533   },
534   "handle-devices-get",
535   FALSE
536 };
537 
538 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_IN_ARG_name =
539 {
540   {
541     -1,
542     (gchar *) "name",
543     (gchar *) "s",
544     NULL
545   },
546   FALSE
547 };
548 
549 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_IN_ARG_uri =
550 {
551   {
552     -1,
553     (gchar *) "uri",
554     (gchar *) "s",
555     NULL
556   },
557   FALSE
558 };
559 
560 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_IN_ARG_ppd =
561 {
562   {
563     -1,
564     (gchar *) "ppd",
565     (gchar *) "s",
566     NULL
567   },
568   FALSE
569 };
570 
571 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_IN_ARG_info =
572 {
573   {
574     -1,
575     (gchar *) "info",
576     (gchar *) "s",
577     NULL
578   },
579   FALSE
580 };
581 
582 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_IN_ARG_location =
583 {
584   {
585     -1,
586     (gchar *) "location",
587     (gchar *) "s",
588     NULL
589   },
590   FALSE
591 };
592 
593 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_add_IN_ARG_pointers[] =
594 {
595   &_cph_iface_mechanism_method_info_printer_add_IN_ARG_name,
596   &_cph_iface_mechanism_method_info_printer_add_IN_ARG_uri,
597   &_cph_iface_mechanism_method_info_printer_add_IN_ARG_ppd,
598   &_cph_iface_mechanism_method_info_printer_add_IN_ARG_info,
599   &_cph_iface_mechanism_method_info_printer_add_IN_ARG_location,
600   NULL
601 };
602 
603 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_OUT_ARG_error =
604 {
605   {
606     -1,
607     (gchar *) "error",
608     (gchar *) "s",
609     NULL
610   },
611   FALSE
612 };
613 
614 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_add_OUT_ARG_pointers[] =
615 {
616   &_cph_iface_mechanism_method_info_printer_add_OUT_ARG_error,
617   NULL
618 };
619 
620 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_add_annotation_info_0 =
621 {
622   -1,
623   (gchar *) "org.freedesktop.DBus.GLib.Async",
624   (gchar *) "",
625   NULL
626 };
627 
628 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_add_annotation_info_pointers[] =
629 {
630   &_cph_iface_mechanism_method_printer_add_annotation_info_0,
631   NULL
632 };
633 
634 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_add =
635 {
636   {
637     -1,
638     (gchar *) "PrinterAdd",
639     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_add_IN_ARG_pointers,
640     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_add_OUT_ARG_pointers,
641     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_add_annotation_info_pointers
642   },
643   "handle-printer-add",
644   FALSE
645 };
646 
647 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_name =
648 {
649   {
650     -1,
651     (gchar *) "name",
652     (gchar *) "s",
653     NULL
654   },
655   FALSE
656 };
657 
658 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_uri =
659 {
660   {
661     -1,
662     (gchar *) "uri",
663     (gchar *) "s",
664     NULL
665   },
666   FALSE
667 };
668 
669 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_ppd =
670 {
671   {
672     -1,
673     (gchar *) "ppd",
674     (gchar *) "s",
675     NULL
676   },
677   FALSE
678 };
679 
680 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_info =
681 {
682   {
683     -1,
684     (gchar *) "info",
685     (gchar *) "s",
686     NULL
687   },
688   FALSE
689 };
690 
691 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_location =
692 {
693   {
694     -1,
695     (gchar *) "location",
696     (gchar *) "s",
697     NULL
698   },
699   FALSE
700 };
701 
702 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_pointers[] =
703 {
704   &_cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_name,
705   &_cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_uri,
706   &_cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_ppd,
707   &_cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_info,
708   &_cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_location,
709   NULL
710 };
711 
712 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_with_ppd_file_OUT_ARG_error =
713 {
714   {
715     -1,
716     (gchar *) "error",
717     (gchar *) "s",
718     NULL
719   },
720   FALSE
721 };
722 
723 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_add_with_ppd_file_OUT_ARG_pointers[] =
724 {
725   &_cph_iface_mechanism_method_info_printer_add_with_ppd_file_OUT_ARG_error,
726   NULL
727 };
728 
729 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_add_with_ppd_file_annotation_info_0 =
730 {
731   -1,
732   (gchar *) "org.freedesktop.DBus.GLib.Async",
733   (gchar *) "",
734   NULL
735 };
736 
737 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_add_with_ppd_file_annotation_info_pointers[] =
738 {
739   &_cph_iface_mechanism_method_printer_add_with_ppd_file_annotation_info_0,
740   NULL
741 };
742 
743 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_add_with_ppd_file =
744 {
745   {
746     -1,
747     (gchar *) "PrinterAddWithPpdFile",
748     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_add_with_ppd_file_IN_ARG_pointers,
749     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_add_with_ppd_file_OUT_ARG_pointers,
750     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_add_with_ppd_file_annotation_info_pointers
751   },
752   "handle-printer-add-with-ppd-file",
753   FALSE
754 };
755 
756 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_device_IN_ARG_name =
757 {
758   {
759     -1,
760     (gchar *) "name",
761     (gchar *) "s",
762     NULL
763   },
764   FALSE
765 };
766 
767 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_device_IN_ARG_device =
768 {
769   {
770     -1,
771     (gchar *) "device",
772     (gchar *) "s",
773     NULL
774   },
775   FALSE
776 };
777 
778 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_device_IN_ARG_pointers[] =
779 {
780   &_cph_iface_mechanism_method_info_printer_set_device_IN_ARG_name,
781   &_cph_iface_mechanism_method_info_printer_set_device_IN_ARG_device,
782   NULL
783 };
784 
785 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_device_OUT_ARG_error =
786 {
787   {
788     -1,
789     (gchar *) "error",
790     (gchar *) "s",
791     NULL
792   },
793   FALSE
794 };
795 
796 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_device_OUT_ARG_pointers[] =
797 {
798   &_cph_iface_mechanism_method_info_printer_set_device_OUT_ARG_error,
799   NULL
800 };
801 
802 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_device_annotation_info_0 =
803 {
804   -1,
805   (gchar *) "org.freedesktop.DBus.GLib.Async",
806   (gchar *) "",
807   NULL
808 };
809 
810 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_device_annotation_info_pointers[] =
811 {
812   &_cph_iface_mechanism_method_printer_set_device_annotation_info_0,
813   NULL
814 };
815 
816 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_device =
817 {
818   {
819     -1,
820     (gchar *) "PrinterSetDevice",
821     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_device_IN_ARG_pointers,
822     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_device_OUT_ARG_pointers,
823     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_device_annotation_info_pointers
824   },
825   "handle-printer-set-device",
826   FALSE
827 };
828 
829 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_default_IN_ARG_name =
830 {
831   {
832     -1,
833     (gchar *) "name",
834     (gchar *) "s",
835     NULL
836   },
837   FALSE
838 };
839 
840 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_default_IN_ARG_pointers[] =
841 {
842   &_cph_iface_mechanism_method_info_printer_set_default_IN_ARG_name,
843   NULL
844 };
845 
846 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_default_OUT_ARG_error =
847 {
848   {
849     -1,
850     (gchar *) "error",
851     (gchar *) "s",
852     NULL
853   },
854   FALSE
855 };
856 
857 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_default_OUT_ARG_pointers[] =
858 {
859   &_cph_iface_mechanism_method_info_printer_set_default_OUT_ARG_error,
860   NULL
861 };
862 
863 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_default_annotation_info_0 =
864 {
865   -1,
866   (gchar *) "org.freedesktop.DBus.GLib.Async",
867   (gchar *) "",
868   NULL
869 };
870 
871 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_default_annotation_info_pointers[] =
872 {
873   &_cph_iface_mechanism_method_printer_set_default_annotation_info_0,
874   NULL
875 };
876 
877 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_default =
878 {
879   {
880     -1,
881     (gchar *) "PrinterSetDefault",
882     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_default_IN_ARG_pointers,
883     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_default_OUT_ARG_pointers,
884     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_default_annotation_info_pointers
885   },
886   "handle-printer-set-default",
887   FALSE
888 };
889 
890 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_enabled_IN_ARG_name =
891 {
892   {
893     -1,
894     (gchar *) "name",
895     (gchar *) "s",
896     NULL
897   },
898   FALSE
899 };
900 
901 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_enabled_IN_ARG_enabled =
902 {
903   {
904     -1,
905     (gchar *) "enabled",
906     (gchar *) "b",
907     NULL
908   },
909   FALSE
910 };
911 
912 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_enabled_IN_ARG_pointers[] =
913 {
914   &_cph_iface_mechanism_method_info_printer_set_enabled_IN_ARG_name,
915   &_cph_iface_mechanism_method_info_printer_set_enabled_IN_ARG_enabled,
916   NULL
917 };
918 
919 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_enabled_OUT_ARG_error =
920 {
921   {
922     -1,
923     (gchar *) "error",
924     (gchar *) "s",
925     NULL
926   },
927   FALSE
928 };
929 
930 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_enabled_OUT_ARG_pointers[] =
931 {
932   &_cph_iface_mechanism_method_info_printer_set_enabled_OUT_ARG_error,
933   NULL
934 };
935 
936 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_enabled_annotation_info_0 =
937 {
938   -1,
939   (gchar *) "org.freedesktop.DBus.GLib.Async",
940   (gchar *) "",
941   NULL
942 };
943 
944 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_enabled_annotation_info_pointers[] =
945 {
946   &_cph_iface_mechanism_method_printer_set_enabled_annotation_info_0,
947   NULL
948 };
949 
950 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_enabled =
951 {
952   {
953     -1,
954     (gchar *) "PrinterSetEnabled",
955     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_enabled_IN_ARG_pointers,
956     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_enabled_OUT_ARG_pointers,
957     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_enabled_annotation_info_pointers
958   },
959   "handle-printer-set-enabled",
960   FALSE
961 };
962 
963 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_accept_jobs_IN_ARG_name =
964 {
965   {
966     -1,
967     (gchar *) "name",
968     (gchar *) "s",
969     NULL
970   },
971   FALSE
972 };
973 
974 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_accept_jobs_IN_ARG_enabled =
975 {
976   {
977     -1,
978     (gchar *) "enabled",
979     (gchar *) "b",
980     NULL
981   },
982   FALSE
983 };
984 
985 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_accept_jobs_IN_ARG_reason =
986 {
987   {
988     -1,
989     (gchar *) "reason",
990     (gchar *) "s",
991     NULL
992   },
993   FALSE
994 };
995 
996 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_accept_jobs_IN_ARG_pointers[] =
997 {
998   &_cph_iface_mechanism_method_info_printer_set_accept_jobs_IN_ARG_name,
999   &_cph_iface_mechanism_method_info_printer_set_accept_jobs_IN_ARG_enabled,
1000   &_cph_iface_mechanism_method_info_printer_set_accept_jobs_IN_ARG_reason,
1001   NULL
1002 };
1003 
1004 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_accept_jobs_OUT_ARG_error =
1005 {
1006   {
1007     -1,
1008     (gchar *) "error",
1009     (gchar *) "s",
1010     NULL
1011   },
1012   FALSE
1013 };
1014 
1015 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_accept_jobs_OUT_ARG_pointers[] =
1016 {
1017   &_cph_iface_mechanism_method_info_printer_set_accept_jobs_OUT_ARG_error,
1018   NULL
1019 };
1020 
1021 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_accept_jobs_annotation_info_0 =
1022 {
1023   -1,
1024   (gchar *) "org.freedesktop.DBus.GLib.Async",
1025   (gchar *) "",
1026   NULL
1027 };
1028 
1029 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_accept_jobs_annotation_info_pointers[] =
1030 {
1031   &_cph_iface_mechanism_method_printer_set_accept_jobs_annotation_info_0,
1032   NULL
1033 };
1034 
1035 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_accept_jobs =
1036 {
1037   {
1038     -1,
1039     (gchar *) "PrinterSetAcceptJobs",
1040     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_accept_jobs_IN_ARG_pointers,
1041     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_accept_jobs_OUT_ARG_pointers,
1042     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_accept_jobs_annotation_info_pointers
1043   },
1044   "handle-printer-set-accept-jobs",
1045   FALSE
1046 };
1047 
1048 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_rename_IN_ARG_old_name =
1049 {
1050   {
1051     -1,
1052     (gchar *) "old_name",
1053     (gchar *) "s",
1054     NULL
1055   },
1056   FALSE
1057 };
1058 
1059 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_rename_IN_ARG_new_name =
1060 {
1061   {
1062     -1,
1063     (gchar *) "new_name",
1064     (gchar *) "s",
1065     NULL
1066   },
1067   FALSE
1068 };
1069 
1070 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_rename_IN_ARG_pointers[] =
1071 {
1072   &_cph_iface_mechanism_method_info_printer_rename_IN_ARG_old_name,
1073   &_cph_iface_mechanism_method_info_printer_rename_IN_ARG_new_name,
1074   NULL
1075 };
1076 
1077 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_rename_OUT_ARG_error =
1078 {
1079   {
1080     -1,
1081     (gchar *) "error",
1082     (gchar *) "s",
1083     NULL
1084   },
1085   FALSE
1086 };
1087 
1088 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_rename_OUT_ARG_pointers[] =
1089 {
1090   &_cph_iface_mechanism_method_info_printer_rename_OUT_ARG_error,
1091   NULL
1092 };
1093 
1094 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_rename_annotation_info_0 =
1095 {
1096   -1,
1097   (gchar *) "org.freedesktop.DBus.GLib.Async",
1098   (gchar *) "",
1099   NULL
1100 };
1101 
1102 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_rename_annotation_info_pointers[] =
1103 {
1104   &_cph_iface_mechanism_method_printer_rename_annotation_info_0,
1105   NULL
1106 };
1107 
1108 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_rename =
1109 {
1110   {
1111     -1,
1112     (gchar *) "PrinterRename",
1113     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_rename_IN_ARG_pointers,
1114     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_rename_OUT_ARG_pointers,
1115     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_rename_annotation_info_pointers
1116   },
1117   "handle-printer-rename",
1118   FALSE
1119 };
1120 
1121 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_delete_IN_ARG_name =
1122 {
1123   {
1124     -1,
1125     (gchar *) "name",
1126     (gchar *) "s",
1127     NULL
1128   },
1129   FALSE
1130 };
1131 
1132 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_delete_IN_ARG_pointers[] =
1133 {
1134   &_cph_iface_mechanism_method_info_printer_delete_IN_ARG_name,
1135   NULL
1136 };
1137 
1138 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_delete_OUT_ARG_error =
1139 {
1140   {
1141     -1,
1142     (gchar *) "error",
1143     (gchar *) "s",
1144     NULL
1145   },
1146   FALSE
1147 };
1148 
1149 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_delete_OUT_ARG_pointers[] =
1150 {
1151   &_cph_iface_mechanism_method_info_printer_delete_OUT_ARG_error,
1152   NULL
1153 };
1154 
1155 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_delete_annotation_info_0 =
1156 {
1157   -1,
1158   (gchar *) "org.freedesktop.DBus.GLib.Async",
1159   (gchar *) "",
1160   NULL
1161 };
1162 
1163 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_delete_annotation_info_pointers[] =
1164 {
1165   &_cph_iface_mechanism_method_printer_delete_annotation_info_0,
1166   NULL
1167 };
1168 
1169 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_delete =
1170 {
1171   {
1172     -1,
1173     (gchar *) "PrinterDelete",
1174     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_delete_IN_ARG_pointers,
1175     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_delete_OUT_ARG_pointers,
1176     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_delete_annotation_info_pointers
1177   },
1178   "handle-printer-delete",
1179   FALSE
1180 };
1181 
1182 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_class_add_printer_IN_ARG_name =
1183 {
1184   {
1185     -1,
1186     (gchar *) "name",
1187     (gchar *) "s",
1188     NULL
1189   },
1190   FALSE
1191 };
1192 
1193 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_class_add_printer_IN_ARG_printer =
1194 {
1195   {
1196     -1,
1197     (gchar *) "printer",
1198     (gchar *) "s",
1199     NULL
1200   },
1201   FALSE
1202 };
1203 
1204 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_class_add_printer_IN_ARG_pointers[] =
1205 {
1206   &_cph_iface_mechanism_method_info_class_add_printer_IN_ARG_name,
1207   &_cph_iface_mechanism_method_info_class_add_printer_IN_ARG_printer,
1208   NULL
1209 };
1210 
1211 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_class_add_printer_OUT_ARG_error =
1212 {
1213   {
1214     -1,
1215     (gchar *) "error",
1216     (gchar *) "s",
1217     NULL
1218   },
1219   FALSE
1220 };
1221 
1222 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_class_add_printer_OUT_ARG_pointers[] =
1223 {
1224   &_cph_iface_mechanism_method_info_class_add_printer_OUT_ARG_error,
1225   NULL
1226 };
1227 
1228 static const GDBusAnnotationInfo _cph_iface_mechanism_method_class_add_printer_annotation_info_0 =
1229 {
1230   -1,
1231   (gchar *) "org.freedesktop.DBus.GLib.Async",
1232   (gchar *) "",
1233   NULL
1234 };
1235 
1236 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_class_add_printer_annotation_info_pointers[] =
1237 {
1238   &_cph_iface_mechanism_method_class_add_printer_annotation_info_0,
1239   NULL
1240 };
1241 
1242 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_class_add_printer =
1243 {
1244   {
1245     -1,
1246     (gchar *) "ClassAddPrinter",
1247     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_class_add_printer_IN_ARG_pointers,
1248     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_class_add_printer_OUT_ARG_pointers,
1249     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_class_add_printer_annotation_info_pointers
1250   },
1251   "handle-class-add-printer",
1252   FALSE
1253 };
1254 
1255 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_class_delete_printer_IN_ARG_name =
1256 {
1257   {
1258     -1,
1259     (gchar *) "name",
1260     (gchar *) "s",
1261     NULL
1262   },
1263   FALSE
1264 };
1265 
1266 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_class_delete_printer_IN_ARG_printer =
1267 {
1268   {
1269     -1,
1270     (gchar *) "printer",
1271     (gchar *) "s",
1272     NULL
1273   },
1274   FALSE
1275 };
1276 
1277 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_class_delete_printer_IN_ARG_pointers[] =
1278 {
1279   &_cph_iface_mechanism_method_info_class_delete_printer_IN_ARG_name,
1280   &_cph_iface_mechanism_method_info_class_delete_printer_IN_ARG_printer,
1281   NULL
1282 };
1283 
1284 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_class_delete_printer_OUT_ARG_error =
1285 {
1286   {
1287     -1,
1288     (gchar *) "error",
1289     (gchar *) "s",
1290     NULL
1291   },
1292   FALSE
1293 };
1294 
1295 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_class_delete_printer_OUT_ARG_pointers[] =
1296 {
1297   &_cph_iface_mechanism_method_info_class_delete_printer_OUT_ARG_error,
1298   NULL
1299 };
1300 
1301 static const GDBusAnnotationInfo _cph_iface_mechanism_method_class_delete_printer_annotation_info_0 =
1302 {
1303   -1,
1304   (gchar *) "org.freedesktop.DBus.GLib.Async",
1305   (gchar *) "",
1306   NULL
1307 };
1308 
1309 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_class_delete_printer_annotation_info_pointers[] =
1310 {
1311   &_cph_iface_mechanism_method_class_delete_printer_annotation_info_0,
1312   NULL
1313 };
1314 
1315 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_class_delete_printer =
1316 {
1317   {
1318     -1,
1319     (gchar *) "ClassDeletePrinter",
1320     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_class_delete_printer_IN_ARG_pointers,
1321     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_class_delete_printer_OUT_ARG_pointers,
1322     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_class_delete_printer_annotation_info_pointers
1323   },
1324   "handle-class-delete-printer",
1325   FALSE
1326 };
1327 
1328 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_class_delete_IN_ARG_name =
1329 {
1330   {
1331     -1,
1332     (gchar *) "name",
1333     (gchar *) "s",
1334     NULL
1335   },
1336   FALSE
1337 };
1338 
1339 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_class_delete_IN_ARG_pointers[] =
1340 {
1341   &_cph_iface_mechanism_method_info_class_delete_IN_ARG_name,
1342   NULL
1343 };
1344 
1345 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_class_delete_OUT_ARG_error =
1346 {
1347   {
1348     -1,
1349     (gchar *) "error",
1350     (gchar *) "s",
1351     NULL
1352   },
1353   FALSE
1354 };
1355 
1356 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_class_delete_OUT_ARG_pointers[] =
1357 {
1358   &_cph_iface_mechanism_method_info_class_delete_OUT_ARG_error,
1359   NULL
1360 };
1361 
1362 static const GDBusAnnotationInfo _cph_iface_mechanism_method_class_delete_annotation_info_0 =
1363 {
1364   -1,
1365   (gchar *) "org.freedesktop.DBus.GLib.Async",
1366   (gchar *) "",
1367   NULL
1368 };
1369 
1370 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_class_delete_annotation_info_pointers[] =
1371 {
1372   &_cph_iface_mechanism_method_class_delete_annotation_info_0,
1373   NULL
1374 };
1375 
1376 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_class_delete =
1377 {
1378   {
1379     -1,
1380     (gchar *) "ClassDelete",
1381     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_class_delete_IN_ARG_pointers,
1382     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_class_delete_OUT_ARG_pointers,
1383     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_class_delete_annotation_info_pointers
1384   },
1385   "handle-class-delete",
1386   FALSE
1387 };
1388 
1389 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_info_IN_ARG_name =
1390 {
1391   {
1392     -1,
1393     (gchar *) "name",
1394     (gchar *) "s",
1395     NULL
1396   },
1397   FALSE
1398 };
1399 
1400 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_info_IN_ARG_info =
1401 {
1402   {
1403     -1,
1404     (gchar *) "info",
1405     (gchar *) "s",
1406     NULL
1407   },
1408   FALSE
1409 };
1410 
1411 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_info_IN_ARG_pointers[] =
1412 {
1413   &_cph_iface_mechanism_method_info_printer_set_info_IN_ARG_name,
1414   &_cph_iface_mechanism_method_info_printer_set_info_IN_ARG_info,
1415   NULL
1416 };
1417 
1418 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_info_OUT_ARG_error =
1419 {
1420   {
1421     -1,
1422     (gchar *) "error",
1423     (gchar *) "s",
1424     NULL
1425   },
1426   FALSE
1427 };
1428 
1429 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_info_OUT_ARG_pointers[] =
1430 {
1431   &_cph_iface_mechanism_method_info_printer_set_info_OUT_ARG_error,
1432   NULL
1433 };
1434 
1435 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_info_annotation_info_0 =
1436 {
1437   -1,
1438   (gchar *) "org.freedesktop.DBus.GLib.Async",
1439   (gchar *) "",
1440   NULL
1441 };
1442 
1443 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_info_annotation_info_pointers[] =
1444 {
1445   &_cph_iface_mechanism_method_printer_set_info_annotation_info_0,
1446   NULL
1447 };
1448 
1449 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_info =
1450 {
1451   {
1452     -1,
1453     (gchar *) "PrinterSetInfo",
1454     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_info_IN_ARG_pointers,
1455     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_info_OUT_ARG_pointers,
1456     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_info_annotation_info_pointers
1457   },
1458   "handle-printer-set-info",
1459   FALSE
1460 };
1461 
1462 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_location_IN_ARG_name =
1463 {
1464   {
1465     -1,
1466     (gchar *) "name",
1467     (gchar *) "s",
1468     NULL
1469   },
1470   FALSE
1471 };
1472 
1473 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_location_IN_ARG_location =
1474 {
1475   {
1476     -1,
1477     (gchar *) "location",
1478     (gchar *) "s",
1479     NULL
1480   },
1481   FALSE
1482 };
1483 
1484 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_location_IN_ARG_pointers[] =
1485 {
1486   &_cph_iface_mechanism_method_info_printer_set_location_IN_ARG_name,
1487   &_cph_iface_mechanism_method_info_printer_set_location_IN_ARG_location,
1488   NULL
1489 };
1490 
1491 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_location_OUT_ARG_error =
1492 {
1493   {
1494     -1,
1495     (gchar *) "error",
1496     (gchar *) "s",
1497     NULL
1498   },
1499   FALSE
1500 };
1501 
1502 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_location_OUT_ARG_pointers[] =
1503 {
1504   &_cph_iface_mechanism_method_info_printer_set_location_OUT_ARG_error,
1505   NULL
1506 };
1507 
1508 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_location_annotation_info_0 =
1509 {
1510   -1,
1511   (gchar *) "org.freedesktop.DBus.GLib.Async",
1512   (gchar *) "",
1513   NULL
1514 };
1515 
1516 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_location_annotation_info_pointers[] =
1517 {
1518   &_cph_iface_mechanism_method_printer_set_location_annotation_info_0,
1519   NULL
1520 };
1521 
1522 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_location =
1523 {
1524   {
1525     -1,
1526     (gchar *) "PrinterSetLocation",
1527     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_location_IN_ARG_pointers,
1528     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_location_OUT_ARG_pointers,
1529     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_location_annotation_info_pointers
1530   },
1531   "handle-printer-set-location",
1532   FALSE
1533 };
1534 
1535 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_shared_IN_ARG_name =
1536 {
1537   {
1538     -1,
1539     (gchar *) "name",
1540     (gchar *) "s",
1541     NULL
1542   },
1543   FALSE
1544 };
1545 
1546 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_shared_IN_ARG_shared =
1547 {
1548   {
1549     -1,
1550     (gchar *) "shared",
1551     (gchar *) "b",
1552     NULL
1553   },
1554   FALSE
1555 };
1556 
1557 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_shared_IN_ARG_pointers[] =
1558 {
1559   &_cph_iface_mechanism_method_info_printer_set_shared_IN_ARG_name,
1560   &_cph_iface_mechanism_method_info_printer_set_shared_IN_ARG_shared,
1561   NULL
1562 };
1563 
1564 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_shared_OUT_ARG_error =
1565 {
1566   {
1567     -1,
1568     (gchar *) "error",
1569     (gchar *) "s",
1570     NULL
1571   },
1572   FALSE
1573 };
1574 
1575 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_shared_OUT_ARG_pointers[] =
1576 {
1577   &_cph_iface_mechanism_method_info_printer_set_shared_OUT_ARG_error,
1578   NULL
1579 };
1580 
1581 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_shared_annotation_info_0 =
1582 {
1583   -1,
1584   (gchar *) "org.freedesktop.DBus.GLib.Async",
1585   (gchar *) "",
1586   NULL
1587 };
1588 
1589 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_shared_annotation_info_pointers[] =
1590 {
1591   &_cph_iface_mechanism_method_printer_set_shared_annotation_info_0,
1592   NULL
1593 };
1594 
1595 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_shared =
1596 {
1597   {
1598     -1,
1599     (gchar *) "PrinterSetShared",
1600     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_shared_IN_ARG_pointers,
1601     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_shared_OUT_ARG_pointers,
1602     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_shared_annotation_info_pointers
1603   },
1604   "handle-printer-set-shared",
1605   FALSE
1606 };
1607 
1608 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_job_sheets_IN_ARG_name =
1609 {
1610   {
1611     -1,
1612     (gchar *) "name",
1613     (gchar *) "s",
1614     NULL
1615   },
1616   FALSE
1617 };
1618 
1619 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_job_sheets_IN_ARG_start =
1620 {
1621   {
1622     -1,
1623     (gchar *) "start",
1624     (gchar *) "s",
1625     NULL
1626   },
1627   FALSE
1628 };
1629 
1630 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_job_sheets_IN_ARG_end =
1631 {
1632   {
1633     -1,
1634     (gchar *) "end",
1635     (gchar *) "s",
1636     NULL
1637   },
1638   FALSE
1639 };
1640 
1641 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_job_sheets_IN_ARG_pointers[] =
1642 {
1643   &_cph_iface_mechanism_method_info_printer_set_job_sheets_IN_ARG_name,
1644   &_cph_iface_mechanism_method_info_printer_set_job_sheets_IN_ARG_start,
1645   &_cph_iface_mechanism_method_info_printer_set_job_sheets_IN_ARG_end,
1646   NULL
1647 };
1648 
1649 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_job_sheets_OUT_ARG_error =
1650 {
1651   {
1652     -1,
1653     (gchar *) "error",
1654     (gchar *) "s",
1655     NULL
1656   },
1657   FALSE
1658 };
1659 
1660 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_job_sheets_OUT_ARG_pointers[] =
1661 {
1662   &_cph_iface_mechanism_method_info_printer_set_job_sheets_OUT_ARG_error,
1663   NULL
1664 };
1665 
1666 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_job_sheets_annotation_info_0 =
1667 {
1668   -1,
1669   (gchar *) "org.freedesktop.DBus.GLib.Async",
1670   (gchar *) "",
1671   NULL
1672 };
1673 
1674 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_job_sheets_annotation_info_pointers[] =
1675 {
1676   &_cph_iface_mechanism_method_printer_set_job_sheets_annotation_info_0,
1677   NULL
1678 };
1679 
1680 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_job_sheets =
1681 {
1682   {
1683     -1,
1684     (gchar *) "PrinterSetJobSheets",
1685     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_job_sheets_IN_ARG_pointers,
1686     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_job_sheets_OUT_ARG_pointers,
1687     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_job_sheets_annotation_info_pointers
1688   },
1689   "handle-printer-set-job-sheets",
1690   FALSE
1691 };
1692 
1693 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_error_policy_IN_ARG_name =
1694 {
1695   {
1696     -1,
1697     (gchar *) "name",
1698     (gchar *) "s",
1699     NULL
1700   },
1701   FALSE
1702 };
1703 
1704 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_error_policy_IN_ARG_policy =
1705 {
1706   {
1707     -1,
1708     (gchar *) "policy",
1709     (gchar *) "s",
1710     NULL
1711   },
1712   FALSE
1713 };
1714 
1715 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_error_policy_IN_ARG_pointers[] =
1716 {
1717   &_cph_iface_mechanism_method_info_printer_set_error_policy_IN_ARG_name,
1718   &_cph_iface_mechanism_method_info_printer_set_error_policy_IN_ARG_policy,
1719   NULL
1720 };
1721 
1722 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_error_policy_OUT_ARG_error =
1723 {
1724   {
1725     -1,
1726     (gchar *) "error",
1727     (gchar *) "s",
1728     NULL
1729   },
1730   FALSE
1731 };
1732 
1733 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_error_policy_OUT_ARG_pointers[] =
1734 {
1735   &_cph_iface_mechanism_method_info_printer_set_error_policy_OUT_ARG_error,
1736   NULL
1737 };
1738 
1739 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_error_policy_annotation_info_0 =
1740 {
1741   -1,
1742   (gchar *) "org.freedesktop.DBus.GLib.Async",
1743   (gchar *) "",
1744   NULL
1745 };
1746 
1747 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_error_policy_annotation_info_pointers[] =
1748 {
1749   &_cph_iface_mechanism_method_printer_set_error_policy_annotation_info_0,
1750   NULL
1751 };
1752 
1753 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_error_policy =
1754 {
1755   {
1756     -1,
1757     (gchar *) "PrinterSetErrorPolicy",
1758     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_error_policy_IN_ARG_pointers,
1759     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_error_policy_OUT_ARG_pointers,
1760     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_error_policy_annotation_info_pointers
1761   },
1762   "handle-printer-set-error-policy",
1763   FALSE
1764 };
1765 
1766 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_op_policy_IN_ARG_name =
1767 {
1768   {
1769     -1,
1770     (gchar *) "name",
1771     (gchar *) "s",
1772     NULL
1773   },
1774   FALSE
1775 };
1776 
1777 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_op_policy_IN_ARG_policy =
1778 {
1779   {
1780     -1,
1781     (gchar *) "policy",
1782     (gchar *) "s",
1783     NULL
1784   },
1785   FALSE
1786 };
1787 
1788 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_op_policy_IN_ARG_pointers[] =
1789 {
1790   &_cph_iface_mechanism_method_info_printer_set_op_policy_IN_ARG_name,
1791   &_cph_iface_mechanism_method_info_printer_set_op_policy_IN_ARG_policy,
1792   NULL
1793 };
1794 
1795 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_op_policy_OUT_ARG_error =
1796 {
1797   {
1798     -1,
1799     (gchar *) "error",
1800     (gchar *) "s",
1801     NULL
1802   },
1803   FALSE
1804 };
1805 
1806 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_op_policy_OUT_ARG_pointers[] =
1807 {
1808   &_cph_iface_mechanism_method_info_printer_set_op_policy_OUT_ARG_error,
1809   NULL
1810 };
1811 
1812 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_op_policy_annotation_info_0 =
1813 {
1814   -1,
1815   (gchar *) "org.freedesktop.DBus.GLib.Async",
1816   (gchar *) "",
1817   NULL
1818 };
1819 
1820 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_op_policy_annotation_info_pointers[] =
1821 {
1822   &_cph_iface_mechanism_method_printer_set_op_policy_annotation_info_0,
1823   NULL
1824 };
1825 
1826 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_op_policy =
1827 {
1828   {
1829     -1,
1830     (gchar *) "PrinterSetOpPolicy",
1831     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_op_policy_IN_ARG_pointers,
1832     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_op_policy_OUT_ARG_pointers,
1833     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_op_policy_annotation_info_pointers
1834   },
1835   "handle-printer-set-op-policy",
1836   FALSE
1837 };
1838 
1839 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_users_allowed_IN_ARG_name =
1840 {
1841   {
1842     -1,
1843     (gchar *) "name",
1844     (gchar *) "s",
1845     NULL
1846   },
1847   FALSE
1848 };
1849 
1850 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_users_allowed_IN_ARG_users =
1851 {
1852   {
1853     -1,
1854     (gchar *) "users",
1855     (gchar *) "as",
1856     NULL
1857   },
1858   FALSE
1859 };
1860 
1861 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_users_allowed_IN_ARG_pointers[] =
1862 {
1863   &_cph_iface_mechanism_method_info_printer_set_users_allowed_IN_ARG_name,
1864   &_cph_iface_mechanism_method_info_printer_set_users_allowed_IN_ARG_users,
1865   NULL
1866 };
1867 
1868 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_users_allowed_OUT_ARG_error =
1869 {
1870   {
1871     -1,
1872     (gchar *) "error",
1873     (gchar *) "s",
1874     NULL
1875   },
1876   FALSE
1877 };
1878 
1879 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_users_allowed_OUT_ARG_pointers[] =
1880 {
1881   &_cph_iface_mechanism_method_info_printer_set_users_allowed_OUT_ARG_error,
1882   NULL
1883 };
1884 
1885 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_users_allowed_annotation_info_0 =
1886 {
1887   -1,
1888   (gchar *) "org.freedesktop.DBus.GLib.Async",
1889   (gchar *) "",
1890   NULL
1891 };
1892 
1893 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_users_allowed_annotation_info_pointers[] =
1894 {
1895   &_cph_iface_mechanism_method_printer_set_users_allowed_annotation_info_0,
1896   NULL
1897 };
1898 
1899 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_users_allowed =
1900 {
1901   {
1902     -1,
1903     (gchar *) "PrinterSetUsersAllowed",
1904     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_users_allowed_IN_ARG_pointers,
1905     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_users_allowed_OUT_ARG_pointers,
1906     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_users_allowed_annotation_info_pointers
1907   },
1908   "handle-printer-set-users-allowed",
1909   FALSE
1910 };
1911 
1912 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_users_denied_IN_ARG_name =
1913 {
1914   {
1915     -1,
1916     (gchar *) "name",
1917     (gchar *) "s",
1918     NULL
1919   },
1920   FALSE
1921 };
1922 
1923 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_users_denied_IN_ARG_users =
1924 {
1925   {
1926     -1,
1927     (gchar *) "users",
1928     (gchar *) "as",
1929     NULL
1930   },
1931   FALSE
1932 };
1933 
1934 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_users_denied_IN_ARG_pointers[] =
1935 {
1936   &_cph_iface_mechanism_method_info_printer_set_users_denied_IN_ARG_name,
1937   &_cph_iface_mechanism_method_info_printer_set_users_denied_IN_ARG_users,
1938   NULL
1939 };
1940 
1941 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_set_users_denied_OUT_ARG_error =
1942 {
1943   {
1944     -1,
1945     (gchar *) "error",
1946     (gchar *) "s",
1947     NULL
1948   },
1949   FALSE
1950 };
1951 
1952 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_set_users_denied_OUT_ARG_pointers[] =
1953 {
1954   &_cph_iface_mechanism_method_info_printer_set_users_denied_OUT_ARG_error,
1955   NULL
1956 };
1957 
1958 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_set_users_denied_annotation_info_0 =
1959 {
1960   -1,
1961   (gchar *) "org.freedesktop.DBus.GLib.Async",
1962   (gchar *) "",
1963   NULL
1964 };
1965 
1966 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_set_users_denied_annotation_info_pointers[] =
1967 {
1968   &_cph_iface_mechanism_method_printer_set_users_denied_annotation_info_0,
1969   NULL
1970 };
1971 
1972 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_set_users_denied =
1973 {
1974   {
1975     -1,
1976     (gchar *) "PrinterSetUsersDenied",
1977     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_users_denied_IN_ARG_pointers,
1978     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_set_users_denied_OUT_ARG_pointers,
1979     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_set_users_denied_annotation_info_pointers
1980   },
1981   "handle-printer-set-users-denied",
1982   FALSE
1983 };
1984 
1985 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_option_default_IN_ARG_name =
1986 {
1987   {
1988     -1,
1989     (gchar *) "name",
1990     (gchar *) "s",
1991     NULL
1992   },
1993   FALSE
1994 };
1995 
1996 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_option_default_IN_ARG_option =
1997 {
1998   {
1999     -1,
2000     (gchar *) "option",
2001     (gchar *) "s",
2002     NULL
2003   },
2004   FALSE
2005 };
2006 
2007 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_option_default_IN_ARG_values =
2008 {
2009   {
2010     -1,
2011     (gchar *) "values",
2012     (gchar *) "as",
2013     NULL
2014   },
2015   FALSE
2016 };
2017 
2018 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_add_option_default_IN_ARG_pointers[] =
2019 {
2020   &_cph_iface_mechanism_method_info_printer_add_option_default_IN_ARG_name,
2021   &_cph_iface_mechanism_method_info_printer_add_option_default_IN_ARG_option,
2022   &_cph_iface_mechanism_method_info_printer_add_option_default_IN_ARG_values,
2023   NULL
2024 };
2025 
2026 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_option_default_OUT_ARG_error =
2027 {
2028   {
2029     -1,
2030     (gchar *) "error",
2031     (gchar *) "s",
2032     NULL
2033   },
2034   FALSE
2035 };
2036 
2037 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_add_option_default_OUT_ARG_pointers[] =
2038 {
2039   &_cph_iface_mechanism_method_info_printer_add_option_default_OUT_ARG_error,
2040   NULL
2041 };
2042 
2043 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_add_option_default_annotation_info_0 =
2044 {
2045   -1,
2046   (gchar *) "org.freedesktop.DBus.GLib.Async",
2047   (gchar *) "",
2048   NULL
2049 };
2050 
2051 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_add_option_default_annotation_info_pointers[] =
2052 {
2053   &_cph_iface_mechanism_method_printer_add_option_default_annotation_info_0,
2054   NULL
2055 };
2056 
2057 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_add_option_default =
2058 {
2059   {
2060     -1,
2061     (gchar *) "PrinterAddOptionDefault",
2062     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_add_option_default_IN_ARG_pointers,
2063     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_add_option_default_OUT_ARG_pointers,
2064     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_add_option_default_annotation_info_pointers
2065   },
2066   "handle-printer-add-option-default",
2067   FALSE
2068 };
2069 
2070 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_delete_option_default_IN_ARG_name =
2071 {
2072   {
2073     -1,
2074     (gchar *) "name",
2075     (gchar *) "s",
2076     NULL
2077   },
2078   FALSE
2079 };
2080 
2081 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_delete_option_default_IN_ARG_option =
2082 {
2083   {
2084     -1,
2085     (gchar *) "option",
2086     (gchar *) "s",
2087     NULL
2088   },
2089   FALSE
2090 };
2091 
2092 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_delete_option_default_IN_ARG_pointers[] =
2093 {
2094   &_cph_iface_mechanism_method_info_printer_delete_option_default_IN_ARG_name,
2095   &_cph_iface_mechanism_method_info_printer_delete_option_default_IN_ARG_option,
2096   NULL
2097 };
2098 
2099 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_delete_option_default_OUT_ARG_error =
2100 {
2101   {
2102     -1,
2103     (gchar *) "error",
2104     (gchar *) "s",
2105     NULL
2106   },
2107   FALSE
2108 };
2109 
2110 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_delete_option_default_OUT_ARG_pointers[] =
2111 {
2112   &_cph_iface_mechanism_method_info_printer_delete_option_default_OUT_ARG_error,
2113   NULL
2114 };
2115 
2116 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_delete_option_default_annotation_info_0 =
2117 {
2118   -1,
2119   (gchar *) "org.freedesktop.DBus.GLib.Async",
2120   (gchar *) "",
2121   NULL
2122 };
2123 
2124 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_delete_option_default_annotation_info_pointers[] =
2125 {
2126   &_cph_iface_mechanism_method_printer_delete_option_default_annotation_info_0,
2127   NULL
2128 };
2129 
2130 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_delete_option_default =
2131 {
2132   {
2133     -1,
2134     (gchar *) "PrinterDeleteOptionDefault",
2135     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_delete_option_default_IN_ARG_pointers,
2136     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_delete_option_default_OUT_ARG_pointers,
2137     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_delete_option_default_annotation_info_pointers
2138   },
2139   "handle-printer-delete-option-default",
2140   FALSE
2141 };
2142 
2143 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_option_IN_ARG_name =
2144 {
2145   {
2146     -1,
2147     (gchar *) "name",
2148     (gchar *) "s",
2149     NULL
2150   },
2151   FALSE
2152 };
2153 
2154 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_option_IN_ARG_option =
2155 {
2156   {
2157     -1,
2158     (gchar *) "option",
2159     (gchar *) "s",
2160     NULL
2161   },
2162   FALSE
2163 };
2164 
2165 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_option_IN_ARG_values =
2166 {
2167   {
2168     -1,
2169     (gchar *) "values",
2170     (gchar *) "as",
2171     NULL
2172   },
2173   FALSE
2174 };
2175 
2176 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_add_option_IN_ARG_pointers[] =
2177 {
2178   &_cph_iface_mechanism_method_info_printer_add_option_IN_ARG_name,
2179   &_cph_iface_mechanism_method_info_printer_add_option_IN_ARG_option,
2180   &_cph_iface_mechanism_method_info_printer_add_option_IN_ARG_values,
2181   NULL
2182 };
2183 
2184 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_printer_add_option_OUT_ARG_error =
2185 {
2186   {
2187     -1,
2188     (gchar *) "error",
2189     (gchar *) "s",
2190     NULL
2191   },
2192   FALSE
2193 };
2194 
2195 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_printer_add_option_OUT_ARG_pointers[] =
2196 {
2197   &_cph_iface_mechanism_method_info_printer_add_option_OUT_ARG_error,
2198   NULL
2199 };
2200 
2201 static const GDBusAnnotationInfo _cph_iface_mechanism_method_printer_add_option_annotation_info_0 =
2202 {
2203   -1,
2204   (gchar *) "org.freedesktop.DBus.GLib.Async",
2205   (gchar *) "",
2206   NULL
2207 };
2208 
2209 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_printer_add_option_annotation_info_pointers[] =
2210 {
2211   &_cph_iface_mechanism_method_printer_add_option_annotation_info_0,
2212   NULL
2213 };
2214 
2215 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_printer_add_option =
2216 {
2217   {
2218     -1,
2219     (gchar *) "PrinterAddOption",
2220     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_add_option_IN_ARG_pointers,
2221     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_printer_add_option_OUT_ARG_pointers,
2222     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_printer_add_option_annotation_info_pointers
2223   },
2224   "handle-printer-add-option",
2225   FALSE
2226 };
2227 
2228 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_job_cancel_IN_ARG_jobid =
2229 {
2230   {
2231     -1,
2232     (gchar *) "jobid",
2233     (gchar *) "i",
2234     NULL
2235   },
2236   FALSE
2237 };
2238 
2239 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_job_cancel_IN_ARG_pointers[] =
2240 {
2241   &_cph_iface_mechanism_method_info_job_cancel_IN_ARG_jobid,
2242   NULL
2243 };
2244 
2245 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_job_cancel_OUT_ARG_error =
2246 {
2247   {
2248     -1,
2249     (gchar *) "error",
2250     (gchar *) "s",
2251     NULL
2252   },
2253   FALSE
2254 };
2255 
2256 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_job_cancel_OUT_ARG_pointers[] =
2257 {
2258   &_cph_iface_mechanism_method_info_job_cancel_OUT_ARG_error,
2259   NULL
2260 };
2261 
2262 static const GDBusAnnotationInfo _cph_iface_mechanism_method_job_cancel_annotation_info_0 =
2263 {
2264   -1,
2265   (gchar *) "org.freedesktop.DBus.GLib.Async",
2266   (gchar *) "",
2267   NULL
2268 };
2269 
2270 static const GDBusAnnotationInfo _cph_iface_mechanism_method_job_cancel_annotation_info_1 =
2271 {
2272   -1,
2273   (gchar *) "org.freedesktop.DBus.Deprecated",
2274   (gchar *) "true",
2275   NULL
2276 };
2277 
2278 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_job_cancel_annotation_info_pointers[] =
2279 {
2280   &_cph_iface_mechanism_method_job_cancel_annotation_info_0,
2281   &_cph_iface_mechanism_method_job_cancel_annotation_info_1,
2282   NULL
2283 };
2284 
2285 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_job_cancel =
2286 {
2287   {
2288     -1,
2289     (gchar *) "JobCancel",
2290     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_job_cancel_IN_ARG_pointers,
2291     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_job_cancel_OUT_ARG_pointers,
2292     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_job_cancel_annotation_info_pointers
2293   },
2294   "handle-job-cancel",
2295   FALSE
2296 };
2297 
2298 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_job_cancel_purge_IN_ARG_jobid =
2299 {
2300   {
2301     -1,
2302     (gchar *) "jobid",
2303     (gchar *) "i",
2304     NULL
2305   },
2306   FALSE
2307 };
2308 
2309 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_job_cancel_purge_IN_ARG_purge =
2310 {
2311   {
2312     -1,
2313     (gchar *) "purge",
2314     (gchar *) "b",
2315     NULL
2316   },
2317   FALSE
2318 };
2319 
2320 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_job_cancel_purge_IN_ARG_pointers[] =
2321 {
2322   &_cph_iface_mechanism_method_info_job_cancel_purge_IN_ARG_jobid,
2323   &_cph_iface_mechanism_method_info_job_cancel_purge_IN_ARG_purge,
2324   NULL
2325 };
2326 
2327 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_job_cancel_purge_OUT_ARG_error =
2328 {
2329   {
2330     -1,
2331     (gchar *) "error",
2332     (gchar *) "s",
2333     NULL
2334   },
2335   FALSE
2336 };
2337 
2338 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_job_cancel_purge_OUT_ARG_pointers[] =
2339 {
2340   &_cph_iface_mechanism_method_info_job_cancel_purge_OUT_ARG_error,
2341   NULL
2342 };
2343 
2344 static const GDBusAnnotationInfo _cph_iface_mechanism_method_job_cancel_purge_annotation_info_0 =
2345 {
2346   -1,
2347   (gchar *) "org.freedesktop.DBus.GLib.Async",
2348   (gchar *) "",
2349   NULL
2350 };
2351 
2352 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_job_cancel_purge_annotation_info_pointers[] =
2353 {
2354   &_cph_iface_mechanism_method_job_cancel_purge_annotation_info_0,
2355   NULL
2356 };
2357 
2358 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_job_cancel_purge =
2359 {
2360   {
2361     -1,
2362     (gchar *) "JobCancelPurge",
2363     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_job_cancel_purge_IN_ARG_pointers,
2364     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_job_cancel_purge_OUT_ARG_pointers,
2365     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_job_cancel_purge_annotation_info_pointers
2366   },
2367   "handle-job-cancel-purge",
2368   FALSE
2369 };
2370 
2371 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_job_restart_IN_ARG_jobid =
2372 {
2373   {
2374     -1,
2375     (gchar *) "jobid",
2376     (gchar *) "i",
2377     NULL
2378   },
2379   FALSE
2380 };
2381 
2382 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_job_restart_IN_ARG_pointers[] =
2383 {
2384   &_cph_iface_mechanism_method_info_job_restart_IN_ARG_jobid,
2385   NULL
2386 };
2387 
2388 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_job_restart_OUT_ARG_error =
2389 {
2390   {
2391     -1,
2392     (gchar *) "error",
2393     (gchar *) "s",
2394     NULL
2395   },
2396   FALSE
2397 };
2398 
2399 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_job_restart_OUT_ARG_pointers[] =
2400 {
2401   &_cph_iface_mechanism_method_info_job_restart_OUT_ARG_error,
2402   NULL
2403 };
2404 
2405 static const GDBusAnnotationInfo _cph_iface_mechanism_method_job_restart_annotation_info_0 =
2406 {
2407   -1,
2408   (gchar *) "org.freedesktop.DBus.GLib.Async",
2409   (gchar *) "",
2410   NULL
2411 };
2412 
2413 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_job_restart_annotation_info_pointers[] =
2414 {
2415   &_cph_iface_mechanism_method_job_restart_annotation_info_0,
2416   NULL
2417 };
2418 
2419 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_job_restart =
2420 {
2421   {
2422     -1,
2423     (gchar *) "JobRestart",
2424     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_job_restart_IN_ARG_pointers,
2425     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_job_restart_OUT_ARG_pointers,
2426     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_job_restart_annotation_info_pointers
2427   },
2428   "handle-job-restart",
2429   FALSE
2430 };
2431 
2432 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_job_set_hold_until_IN_ARG_jobid =
2433 {
2434   {
2435     -1,
2436     (gchar *) "jobid",
2437     (gchar *) "i",
2438     NULL
2439   },
2440   FALSE
2441 };
2442 
2443 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_job_set_hold_until_IN_ARG_job_hold_until =
2444 {
2445   {
2446     -1,
2447     (gchar *) "job_hold_until",
2448     (gchar *) "s",
2449     NULL
2450   },
2451   FALSE
2452 };
2453 
2454 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_job_set_hold_until_IN_ARG_pointers[] =
2455 {
2456   &_cph_iface_mechanism_method_info_job_set_hold_until_IN_ARG_jobid,
2457   &_cph_iface_mechanism_method_info_job_set_hold_until_IN_ARG_job_hold_until,
2458   NULL
2459 };
2460 
2461 static const _ExtendedGDBusArgInfo _cph_iface_mechanism_method_info_job_set_hold_until_OUT_ARG_error =
2462 {
2463   {
2464     -1,
2465     (gchar *) "error",
2466     (gchar *) "s",
2467     NULL
2468   },
2469   FALSE
2470 };
2471 
2472 static const _ExtendedGDBusArgInfo * const _cph_iface_mechanism_method_info_job_set_hold_until_OUT_ARG_pointers[] =
2473 {
2474   &_cph_iface_mechanism_method_info_job_set_hold_until_OUT_ARG_error,
2475   NULL
2476 };
2477 
2478 static const GDBusAnnotationInfo _cph_iface_mechanism_method_job_set_hold_until_annotation_info_0 =
2479 {
2480   -1,
2481   (gchar *) "org.freedesktop.DBus.GLib.Async",
2482   (gchar *) "",
2483   NULL
2484 };
2485 
2486 static const GDBusAnnotationInfo * const _cph_iface_mechanism_method_job_set_hold_until_annotation_info_pointers[] =
2487 {
2488   &_cph_iface_mechanism_method_job_set_hold_until_annotation_info_0,
2489   NULL
2490 };
2491 
2492 static const _ExtendedGDBusMethodInfo _cph_iface_mechanism_method_info_job_set_hold_until =
2493 {
2494   {
2495     -1,
2496     (gchar *) "JobSetHoldUntil",
2497     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_job_set_hold_until_IN_ARG_pointers,
2498     (GDBusArgInfo **) &_cph_iface_mechanism_method_info_job_set_hold_until_OUT_ARG_pointers,
2499     (GDBusAnnotationInfo **) &_cph_iface_mechanism_method_job_set_hold_until_annotation_info_pointers
2500   },
2501   "handle-job-set-hold-until",
2502   FALSE
2503 };
2504 
2505 static const _ExtendedGDBusMethodInfo * const _cph_iface_mechanism_method_info_pointers[] =
2506 {
2507   &_cph_iface_mechanism_method_info_file_get,
2508   &_cph_iface_mechanism_method_info_file_put,
2509   &_cph_iface_mechanism_method_info_server_get_settings,
2510   &_cph_iface_mechanism_method_info_server_set_settings,
2511   &_cph_iface_mechanism_method_info_devices_get,
2512   &_cph_iface_mechanism_method_info_printer_add,
2513   &_cph_iface_mechanism_method_info_printer_add_with_ppd_file,
2514   &_cph_iface_mechanism_method_info_printer_set_device,
2515   &_cph_iface_mechanism_method_info_printer_set_default,
2516   &_cph_iface_mechanism_method_info_printer_set_enabled,
2517   &_cph_iface_mechanism_method_info_printer_set_accept_jobs,
2518   &_cph_iface_mechanism_method_info_printer_rename,
2519   &_cph_iface_mechanism_method_info_printer_delete,
2520   &_cph_iface_mechanism_method_info_class_add_printer,
2521   &_cph_iface_mechanism_method_info_class_delete_printer,
2522   &_cph_iface_mechanism_method_info_class_delete,
2523   &_cph_iface_mechanism_method_info_printer_set_info,
2524   &_cph_iface_mechanism_method_info_printer_set_location,
2525   &_cph_iface_mechanism_method_info_printer_set_shared,
2526   &_cph_iface_mechanism_method_info_printer_set_job_sheets,
2527   &_cph_iface_mechanism_method_info_printer_set_error_policy,
2528   &_cph_iface_mechanism_method_info_printer_set_op_policy,
2529   &_cph_iface_mechanism_method_info_printer_set_users_allowed,
2530   &_cph_iface_mechanism_method_info_printer_set_users_denied,
2531   &_cph_iface_mechanism_method_info_printer_add_option_default,
2532   &_cph_iface_mechanism_method_info_printer_delete_option_default,
2533   &_cph_iface_mechanism_method_info_printer_add_option,
2534   &_cph_iface_mechanism_method_info_job_cancel,
2535   &_cph_iface_mechanism_method_info_job_cancel_purge,
2536   &_cph_iface_mechanism_method_info_job_restart,
2537   &_cph_iface_mechanism_method_info_job_set_hold_until,
2538   NULL
2539 };
2540 
2541 static const _ExtendedGDBusInterfaceInfo _cph_iface_mechanism_interface_info =
2542 {
2543   {
2544     -1,
2545     (gchar *) "org.opensuse.CupsPkHelper.Mechanism",
2546     (GDBusMethodInfo **) &_cph_iface_mechanism_method_info_pointers,
2547     NULL,
2548     NULL,
2549     NULL
2550   },
2551   "mechanism",
2552 };
2553 
2554 
2555 /**
2556  * cph_iface_mechanism_interface_info:
2557  *
2558  * Gets a machine-readable description of the <link linkend="gdbus-interface-org-opensuse-CupsPkHelper-Mechanism.top_of_page">org.opensuse.CupsPkHelper.Mechanism</link> D-Bus interface.
2559  *
2560  * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
2561  */
2562 GDBusInterfaceInfo *
cph_iface_mechanism_interface_info(void)2563 cph_iface_mechanism_interface_info (void)
2564 {
2565   return (GDBusInterfaceInfo *) &_cph_iface_mechanism_interface_info.parent_struct;
2566 }
2567 
2568 /**
2569  * cph_iface_mechanism_override_properties:
2570  * @klass: The class structure for a #GObject<!-- -->-derived class.
2571  * @property_id_begin: The property id to assign to the first overridden property.
2572  *
2573  * Overrides all #GObject properties in the #CphIfaceMechanism interface for a concrete class.
2574  * The properties are overridden in the order they are defined.
2575  *
2576  * Returns: The last property id.
2577  */
2578 guint
cph_iface_mechanism_override_properties(GObjectClass * klass,guint property_id_begin)2579 cph_iface_mechanism_override_properties (GObjectClass *klass, guint property_id_begin)
2580 {
2581   return property_id_begin - 1;
2582 }
2583 
2584 
2585 
2586 /**
2587  * CphIfaceMechanism:
2588  *
2589  * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-opensuse-CupsPkHelper-Mechanism.top_of_page">org.opensuse.CupsPkHelper.Mechanism</link>.
2590  */
2591 
2592 /**
2593  * CphIfaceMechanismIface:
2594  * @parent_iface: The parent interface.
2595  * @handle_class_add_printer: Handler for the #CphIfaceMechanism::handle-class-add-printer signal.
2596  * @handle_class_delete: Handler for the #CphIfaceMechanism::handle-class-delete signal.
2597  * @handle_class_delete_printer: Handler for the #CphIfaceMechanism::handle-class-delete-printer signal.
2598  * @handle_devices_get: Handler for the #CphIfaceMechanism::handle-devices-get signal.
2599  * @handle_file_get: Handler for the #CphIfaceMechanism::handle-file-get signal.
2600  * @handle_file_put: Handler for the #CphIfaceMechanism::handle-file-put signal.
2601  * @handle_job_cancel: Handler for the #CphIfaceMechanism::handle-job-cancel signal.
2602  * @handle_job_cancel_purge: Handler for the #CphIfaceMechanism::handle-job-cancel-purge signal.
2603  * @handle_job_restart: Handler for the #CphIfaceMechanism::handle-job-restart signal.
2604  * @handle_job_set_hold_until: Handler for the #CphIfaceMechanism::handle-job-set-hold-until signal.
2605  * @handle_printer_add: Handler for the #CphIfaceMechanism::handle-printer-add signal.
2606  * @handle_printer_add_option: Handler for the #CphIfaceMechanism::handle-printer-add-option signal.
2607  * @handle_printer_add_option_default: Handler for the #CphIfaceMechanism::handle-printer-add-option-default signal.
2608  * @handle_printer_add_with_ppd_file: Handler for the #CphIfaceMechanism::handle-printer-add-with-ppd-file signal.
2609  * @handle_printer_delete: Handler for the #CphIfaceMechanism::handle-printer-delete signal.
2610  * @handle_printer_delete_option_default: Handler for the #CphIfaceMechanism::handle-printer-delete-option-default signal.
2611  * @handle_printer_rename: Handler for the #CphIfaceMechanism::handle-printer-rename signal.
2612  * @handle_printer_set_accept_jobs: Handler for the #CphIfaceMechanism::handle-printer-set-accept-jobs signal.
2613  * @handle_printer_set_default: Handler for the #CphIfaceMechanism::handle-printer-set-default signal.
2614  * @handle_printer_set_device: Handler for the #CphIfaceMechanism::handle-printer-set-device signal.
2615  * @handle_printer_set_enabled: Handler for the #CphIfaceMechanism::handle-printer-set-enabled signal.
2616  * @handle_printer_set_error_policy: Handler for the #CphIfaceMechanism::handle-printer-set-error-policy signal.
2617  * @handle_printer_set_info: Handler for the #CphIfaceMechanism::handle-printer-set-info signal.
2618  * @handle_printer_set_job_sheets: Handler for the #CphIfaceMechanism::handle-printer-set-job-sheets signal.
2619  * @handle_printer_set_location: Handler for the #CphIfaceMechanism::handle-printer-set-location signal.
2620  * @handle_printer_set_op_policy: Handler for the #CphIfaceMechanism::handle-printer-set-op-policy signal.
2621  * @handle_printer_set_shared: Handler for the #CphIfaceMechanism::handle-printer-set-shared signal.
2622  * @handle_printer_set_users_allowed: Handler for the #CphIfaceMechanism::handle-printer-set-users-allowed signal.
2623  * @handle_printer_set_users_denied: Handler for the #CphIfaceMechanism::handle-printer-set-users-denied signal.
2624  * @handle_server_get_settings: Handler for the #CphIfaceMechanism::handle-server-get-settings signal.
2625  * @handle_server_set_settings: Handler for the #CphIfaceMechanism::handle-server-set-settings signal.
2626  *
2627  * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-opensuse-CupsPkHelper-Mechanism.top_of_page">org.opensuse.CupsPkHelper.Mechanism</link>.
2628  */
2629 
2630 typedef CphIfaceMechanismIface CphIfaceMechanismInterface;
2631 G_DEFINE_INTERFACE (CphIfaceMechanism, cph_iface_mechanism, G_TYPE_OBJECT);
2632 
2633 static void
cph_iface_mechanism_default_init(CphIfaceMechanismIface * iface)2634 cph_iface_mechanism_default_init (CphIfaceMechanismIface *iface)
2635 {
2636   /* GObject signals for incoming D-Bus method calls: */
2637   /**
2638    * CphIfaceMechanism::handle-file-get:
2639    * @object: A #CphIfaceMechanism.
2640    * @invocation: A #GDBusMethodInvocation.
2641    * @arg_resource: Argument passed by remote caller.
2642    * @arg_filename: Argument passed by remote caller.
2643    *
2644    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.FileGet">FileGet()</link> D-Bus method.
2645    *
2646    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_file_get() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2647    *
2648    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2649    */
2650   g_signal_new ("handle-file-get",
2651     G_TYPE_FROM_INTERFACE (iface),
2652     G_SIGNAL_RUN_LAST,
2653     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_file_get),
2654     g_signal_accumulator_true_handled,
2655     NULL,
2656     g_cclosure_marshal_generic,
2657     G_TYPE_BOOLEAN,
2658     3,
2659     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
2660 
2661   /**
2662    * CphIfaceMechanism::handle-file-put:
2663    * @object: A #CphIfaceMechanism.
2664    * @invocation: A #GDBusMethodInvocation.
2665    * @arg_resource: Argument passed by remote caller.
2666    * @arg_filename: Argument passed by remote caller.
2667    *
2668    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.FilePut">FilePut()</link> D-Bus method.
2669    *
2670    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_file_put() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2671    *
2672    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2673    */
2674   g_signal_new ("handle-file-put",
2675     G_TYPE_FROM_INTERFACE (iface),
2676     G_SIGNAL_RUN_LAST,
2677     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_file_put),
2678     g_signal_accumulator_true_handled,
2679     NULL,
2680     g_cclosure_marshal_generic,
2681     G_TYPE_BOOLEAN,
2682     3,
2683     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
2684 
2685   /**
2686    * CphIfaceMechanism::handle-server-get-settings:
2687    * @object: A #CphIfaceMechanism.
2688    * @invocation: A #GDBusMethodInvocation.
2689    *
2690    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ServerGetSettings">ServerGetSettings()</link> D-Bus method.
2691    *
2692    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_server_get_settings() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2693    *
2694    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2695    */
2696   g_signal_new ("handle-server-get-settings",
2697     G_TYPE_FROM_INTERFACE (iface),
2698     G_SIGNAL_RUN_LAST,
2699     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_server_get_settings),
2700     g_signal_accumulator_true_handled,
2701     NULL,
2702     g_cclosure_marshal_generic,
2703     G_TYPE_BOOLEAN,
2704     1,
2705     G_TYPE_DBUS_METHOD_INVOCATION);
2706 
2707   /**
2708    * CphIfaceMechanism::handle-server-set-settings:
2709    * @object: A #CphIfaceMechanism.
2710    * @invocation: A #GDBusMethodInvocation.
2711    * @arg_settings: Argument passed by remote caller.
2712    *
2713    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ServerSetSettings">ServerSetSettings()</link> D-Bus method.
2714    *
2715    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_server_set_settings() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2716    *
2717    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2718    */
2719   g_signal_new ("handle-server-set-settings",
2720     G_TYPE_FROM_INTERFACE (iface),
2721     G_SIGNAL_RUN_LAST,
2722     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_server_set_settings),
2723     g_signal_accumulator_true_handled,
2724     NULL,
2725     g_cclosure_marshal_generic,
2726     G_TYPE_BOOLEAN,
2727     2,
2728     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
2729 
2730   /**
2731    * CphIfaceMechanism::handle-devices-get:
2732    * @object: A #CphIfaceMechanism.
2733    * @invocation: A #GDBusMethodInvocation.
2734    * @arg_timeout: Argument passed by remote caller.
2735    * @arg_limit: Argument passed by remote caller.
2736    * @arg_include_schemes: Argument passed by remote caller.
2737    * @arg_exclude_schemes: Argument passed by remote caller.
2738    *
2739    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.DevicesGet">DevicesGet()</link> D-Bus method.
2740    *
2741    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_devices_get() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2742    *
2743    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2744    */
2745   g_signal_new ("handle-devices-get",
2746     G_TYPE_FROM_INTERFACE (iface),
2747     G_SIGNAL_RUN_LAST,
2748     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_devices_get),
2749     g_signal_accumulator_true_handled,
2750     NULL,
2751     g_cclosure_marshal_generic,
2752     G_TYPE_BOOLEAN,
2753     5,
2754     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRV, G_TYPE_STRV);
2755 
2756   /**
2757    * CphIfaceMechanism::handle-printer-add:
2758    * @object: A #CphIfaceMechanism.
2759    * @invocation: A #GDBusMethodInvocation.
2760    * @arg_name: Argument passed by remote caller.
2761    * @arg_uri: Argument passed by remote caller.
2762    * @arg_ppd: Argument passed by remote caller.
2763    * @arg_info: Argument passed by remote caller.
2764    * @arg_location: Argument passed by remote caller.
2765    *
2766    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAdd">PrinterAdd()</link> D-Bus method.
2767    *
2768    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_add() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2769    *
2770    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2771    */
2772   g_signal_new ("handle-printer-add",
2773     G_TYPE_FROM_INTERFACE (iface),
2774     G_SIGNAL_RUN_LAST,
2775     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_add),
2776     g_signal_accumulator_true_handled,
2777     NULL,
2778     g_cclosure_marshal_generic,
2779     G_TYPE_BOOLEAN,
2780     6,
2781     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
2782 
2783   /**
2784    * CphIfaceMechanism::handle-printer-add-with-ppd-file:
2785    * @object: A #CphIfaceMechanism.
2786    * @invocation: A #GDBusMethodInvocation.
2787    * @arg_name: Argument passed by remote caller.
2788    * @arg_uri: Argument passed by remote caller.
2789    * @arg_ppd: Argument passed by remote caller.
2790    * @arg_info: Argument passed by remote caller.
2791    * @arg_location: Argument passed by remote caller.
2792    *
2793    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddWithPpdFile">PrinterAddWithPpdFile()</link> D-Bus method.
2794    *
2795    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_add_with_ppd_file() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2796    *
2797    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2798    */
2799   g_signal_new ("handle-printer-add-with-ppd-file",
2800     G_TYPE_FROM_INTERFACE (iface),
2801     G_SIGNAL_RUN_LAST,
2802     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_add_with_ppd_file),
2803     g_signal_accumulator_true_handled,
2804     NULL,
2805     g_cclosure_marshal_generic,
2806     G_TYPE_BOOLEAN,
2807     6,
2808     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
2809 
2810   /**
2811    * CphIfaceMechanism::handle-printer-set-device:
2812    * @object: A #CphIfaceMechanism.
2813    * @invocation: A #GDBusMethodInvocation.
2814    * @arg_name: Argument passed by remote caller.
2815    * @arg_device: Argument passed by remote caller.
2816    *
2817    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetDevice">PrinterSetDevice()</link> D-Bus method.
2818    *
2819    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_device() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2820    *
2821    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2822    */
2823   g_signal_new ("handle-printer-set-device",
2824     G_TYPE_FROM_INTERFACE (iface),
2825     G_SIGNAL_RUN_LAST,
2826     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_device),
2827     g_signal_accumulator_true_handled,
2828     NULL,
2829     g_cclosure_marshal_generic,
2830     G_TYPE_BOOLEAN,
2831     3,
2832     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
2833 
2834   /**
2835    * CphIfaceMechanism::handle-printer-set-default:
2836    * @object: A #CphIfaceMechanism.
2837    * @invocation: A #GDBusMethodInvocation.
2838    * @arg_name: Argument passed by remote caller.
2839    *
2840    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetDefault">PrinterSetDefault()</link> D-Bus method.
2841    *
2842    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_default() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2843    *
2844    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2845    */
2846   g_signal_new ("handle-printer-set-default",
2847     G_TYPE_FROM_INTERFACE (iface),
2848     G_SIGNAL_RUN_LAST,
2849     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_default),
2850     g_signal_accumulator_true_handled,
2851     NULL,
2852     g_cclosure_marshal_generic,
2853     G_TYPE_BOOLEAN,
2854     2,
2855     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
2856 
2857   /**
2858    * CphIfaceMechanism::handle-printer-set-enabled:
2859    * @object: A #CphIfaceMechanism.
2860    * @invocation: A #GDBusMethodInvocation.
2861    * @arg_name: Argument passed by remote caller.
2862    * @arg_enabled: Argument passed by remote caller.
2863    *
2864    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetEnabled">PrinterSetEnabled()</link> D-Bus method.
2865    *
2866    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_enabled() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2867    *
2868    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2869    */
2870   g_signal_new ("handle-printer-set-enabled",
2871     G_TYPE_FROM_INTERFACE (iface),
2872     G_SIGNAL_RUN_LAST,
2873     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_enabled),
2874     g_signal_accumulator_true_handled,
2875     NULL,
2876     g_cclosure_marshal_generic,
2877     G_TYPE_BOOLEAN,
2878     3,
2879     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_BOOLEAN);
2880 
2881   /**
2882    * CphIfaceMechanism::handle-printer-set-accept-jobs:
2883    * @object: A #CphIfaceMechanism.
2884    * @invocation: A #GDBusMethodInvocation.
2885    * @arg_name: Argument passed by remote caller.
2886    * @arg_enabled: Argument passed by remote caller.
2887    * @arg_reason: Argument passed by remote caller.
2888    *
2889    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetAcceptJobs">PrinterSetAcceptJobs()</link> D-Bus method.
2890    *
2891    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_accept_jobs() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2892    *
2893    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2894    */
2895   g_signal_new ("handle-printer-set-accept-jobs",
2896     G_TYPE_FROM_INTERFACE (iface),
2897     G_SIGNAL_RUN_LAST,
2898     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_accept_jobs),
2899     g_signal_accumulator_true_handled,
2900     NULL,
2901     g_cclosure_marshal_generic,
2902     G_TYPE_BOOLEAN,
2903     4,
2904     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_STRING);
2905 
2906   /**
2907    * CphIfaceMechanism::handle-printer-rename:
2908    * @object: A #CphIfaceMechanism.
2909    * @invocation: A #GDBusMethodInvocation.
2910    * @arg_old_name: Argument passed by remote caller.
2911    * @arg_new_name: Argument passed by remote caller.
2912    *
2913    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterRename">PrinterRename()</link> D-Bus method.
2914    *
2915    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_rename() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2916    *
2917    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2918    */
2919   g_signal_new ("handle-printer-rename",
2920     G_TYPE_FROM_INTERFACE (iface),
2921     G_SIGNAL_RUN_LAST,
2922     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_rename),
2923     g_signal_accumulator_true_handled,
2924     NULL,
2925     g_cclosure_marshal_generic,
2926     G_TYPE_BOOLEAN,
2927     3,
2928     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
2929 
2930   /**
2931    * CphIfaceMechanism::handle-printer-delete:
2932    * @object: A #CphIfaceMechanism.
2933    * @invocation: A #GDBusMethodInvocation.
2934    * @arg_name: Argument passed by remote caller.
2935    *
2936    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterDelete">PrinterDelete()</link> D-Bus method.
2937    *
2938    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_delete() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2939    *
2940    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2941    */
2942   g_signal_new ("handle-printer-delete",
2943     G_TYPE_FROM_INTERFACE (iface),
2944     G_SIGNAL_RUN_LAST,
2945     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_delete),
2946     g_signal_accumulator_true_handled,
2947     NULL,
2948     g_cclosure_marshal_generic,
2949     G_TYPE_BOOLEAN,
2950     2,
2951     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
2952 
2953   /**
2954    * CphIfaceMechanism::handle-class-add-printer:
2955    * @object: A #CphIfaceMechanism.
2956    * @invocation: A #GDBusMethodInvocation.
2957    * @arg_name: Argument passed by remote caller.
2958    * @arg_printer: Argument passed by remote caller.
2959    *
2960    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassAddPrinter">ClassAddPrinter()</link> D-Bus method.
2961    *
2962    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_class_add_printer() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2963    *
2964    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2965    */
2966   g_signal_new ("handle-class-add-printer",
2967     G_TYPE_FROM_INTERFACE (iface),
2968     G_SIGNAL_RUN_LAST,
2969     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_class_add_printer),
2970     g_signal_accumulator_true_handled,
2971     NULL,
2972     g_cclosure_marshal_generic,
2973     G_TYPE_BOOLEAN,
2974     3,
2975     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
2976 
2977   /**
2978    * CphIfaceMechanism::handle-class-delete-printer:
2979    * @object: A #CphIfaceMechanism.
2980    * @invocation: A #GDBusMethodInvocation.
2981    * @arg_name: Argument passed by remote caller.
2982    * @arg_printer: Argument passed by remote caller.
2983    *
2984    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassDeletePrinter">ClassDeletePrinter()</link> D-Bus method.
2985    *
2986    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_class_delete_printer() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2987    *
2988    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2989    */
2990   g_signal_new ("handle-class-delete-printer",
2991     G_TYPE_FROM_INTERFACE (iface),
2992     G_SIGNAL_RUN_LAST,
2993     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_class_delete_printer),
2994     g_signal_accumulator_true_handled,
2995     NULL,
2996     g_cclosure_marshal_generic,
2997     G_TYPE_BOOLEAN,
2998     3,
2999     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
3000 
3001   /**
3002    * CphIfaceMechanism::handle-class-delete:
3003    * @object: A #CphIfaceMechanism.
3004    * @invocation: A #GDBusMethodInvocation.
3005    * @arg_name: Argument passed by remote caller.
3006    *
3007    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassDelete">ClassDelete()</link> D-Bus method.
3008    *
3009    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_class_delete() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3010    *
3011    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3012    */
3013   g_signal_new ("handle-class-delete",
3014     G_TYPE_FROM_INTERFACE (iface),
3015     G_SIGNAL_RUN_LAST,
3016     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_class_delete),
3017     g_signal_accumulator_true_handled,
3018     NULL,
3019     g_cclosure_marshal_generic,
3020     G_TYPE_BOOLEAN,
3021     2,
3022     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
3023 
3024   /**
3025    * CphIfaceMechanism::handle-printer-set-info:
3026    * @object: A #CphIfaceMechanism.
3027    * @invocation: A #GDBusMethodInvocation.
3028    * @arg_name: Argument passed by remote caller.
3029    * @arg_info: Argument passed by remote caller.
3030    *
3031    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetInfo">PrinterSetInfo()</link> D-Bus method.
3032    *
3033    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_info() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3034    *
3035    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3036    */
3037   g_signal_new ("handle-printer-set-info",
3038     G_TYPE_FROM_INTERFACE (iface),
3039     G_SIGNAL_RUN_LAST,
3040     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_info),
3041     g_signal_accumulator_true_handled,
3042     NULL,
3043     g_cclosure_marshal_generic,
3044     G_TYPE_BOOLEAN,
3045     3,
3046     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
3047 
3048   /**
3049    * CphIfaceMechanism::handle-printer-set-location:
3050    * @object: A #CphIfaceMechanism.
3051    * @invocation: A #GDBusMethodInvocation.
3052    * @arg_name: Argument passed by remote caller.
3053    * @arg_location: Argument passed by remote caller.
3054    *
3055    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetLocation">PrinterSetLocation()</link> D-Bus method.
3056    *
3057    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_location() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3058    *
3059    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3060    */
3061   g_signal_new ("handle-printer-set-location",
3062     G_TYPE_FROM_INTERFACE (iface),
3063     G_SIGNAL_RUN_LAST,
3064     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_location),
3065     g_signal_accumulator_true_handled,
3066     NULL,
3067     g_cclosure_marshal_generic,
3068     G_TYPE_BOOLEAN,
3069     3,
3070     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
3071 
3072   /**
3073    * CphIfaceMechanism::handle-printer-set-shared:
3074    * @object: A #CphIfaceMechanism.
3075    * @invocation: A #GDBusMethodInvocation.
3076    * @arg_name: Argument passed by remote caller.
3077    * @arg_shared: Argument passed by remote caller.
3078    *
3079    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetShared">PrinterSetShared()</link> D-Bus method.
3080    *
3081    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_shared() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3082    *
3083    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3084    */
3085   g_signal_new ("handle-printer-set-shared",
3086     G_TYPE_FROM_INTERFACE (iface),
3087     G_SIGNAL_RUN_LAST,
3088     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_shared),
3089     g_signal_accumulator_true_handled,
3090     NULL,
3091     g_cclosure_marshal_generic,
3092     G_TYPE_BOOLEAN,
3093     3,
3094     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_BOOLEAN);
3095 
3096   /**
3097    * CphIfaceMechanism::handle-printer-set-job-sheets:
3098    * @object: A #CphIfaceMechanism.
3099    * @invocation: A #GDBusMethodInvocation.
3100    * @arg_name: Argument passed by remote caller.
3101    * @arg_start: Argument passed by remote caller.
3102    * @arg_end: Argument passed by remote caller.
3103    *
3104    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetJobSheets">PrinterSetJobSheets()</link> D-Bus method.
3105    *
3106    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_job_sheets() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3107    *
3108    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3109    */
3110   g_signal_new ("handle-printer-set-job-sheets",
3111     G_TYPE_FROM_INTERFACE (iface),
3112     G_SIGNAL_RUN_LAST,
3113     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_job_sheets),
3114     g_signal_accumulator_true_handled,
3115     NULL,
3116     g_cclosure_marshal_generic,
3117     G_TYPE_BOOLEAN,
3118     4,
3119     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
3120 
3121   /**
3122    * CphIfaceMechanism::handle-printer-set-error-policy:
3123    * @object: A #CphIfaceMechanism.
3124    * @invocation: A #GDBusMethodInvocation.
3125    * @arg_name: Argument passed by remote caller.
3126    * @arg_policy: Argument passed by remote caller.
3127    *
3128    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetErrorPolicy">PrinterSetErrorPolicy()</link> D-Bus method.
3129    *
3130    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_error_policy() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3131    *
3132    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3133    */
3134   g_signal_new ("handle-printer-set-error-policy",
3135     G_TYPE_FROM_INTERFACE (iface),
3136     G_SIGNAL_RUN_LAST,
3137     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_error_policy),
3138     g_signal_accumulator_true_handled,
3139     NULL,
3140     g_cclosure_marshal_generic,
3141     G_TYPE_BOOLEAN,
3142     3,
3143     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
3144 
3145   /**
3146    * CphIfaceMechanism::handle-printer-set-op-policy:
3147    * @object: A #CphIfaceMechanism.
3148    * @invocation: A #GDBusMethodInvocation.
3149    * @arg_name: Argument passed by remote caller.
3150    * @arg_policy: Argument passed by remote caller.
3151    *
3152    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetOpPolicy">PrinterSetOpPolicy()</link> D-Bus method.
3153    *
3154    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_op_policy() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3155    *
3156    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3157    */
3158   g_signal_new ("handle-printer-set-op-policy",
3159     G_TYPE_FROM_INTERFACE (iface),
3160     G_SIGNAL_RUN_LAST,
3161     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_op_policy),
3162     g_signal_accumulator_true_handled,
3163     NULL,
3164     g_cclosure_marshal_generic,
3165     G_TYPE_BOOLEAN,
3166     3,
3167     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
3168 
3169   /**
3170    * CphIfaceMechanism::handle-printer-set-users-allowed:
3171    * @object: A #CphIfaceMechanism.
3172    * @invocation: A #GDBusMethodInvocation.
3173    * @arg_name: Argument passed by remote caller.
3174    * @arg_users: Argument passed by remote caller.
3175    *
3176    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetUsersAllowed">PrinterSetUsersAllowed()</link> D-Bus method.
3177    *
3178    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_users_allowed() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3179    *
3180    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3181    */
3182   g_signal_new ("handle-printer-set-users-allowed",
3183     G_TYPE_FROM_INTERFACE (iface),
3184     G_SIGNAL_RUN_LAST,
3185     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_users_allowed),
3186     g_signal_accumulator_true_handled,
3187     NULL,
3188     g_cclosure_marshal_generic,
3189     G_TYPE_BOOLEAN,
3190     3,
3191     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV);
3192 
3193   /**
3194    * CphIfaceMechanism::handle-printer-set-users-denied:
3195    * @object: A #CphIfaceMechanism.
3196    * @invocation: A #GDBusMethodInvocation.
3197    * @arg_name: Argument passed by remote caller.
3198    * @arg_users: Argument passed by remote caller.
3199    *
3200    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetUsersDenied">PrinterSetUsersDenied()</link> D-Bus method.
3201    *
3202    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_set_users_denied() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3203    *
3204    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3205    */
3206   g_signal_new ("handle-printer-set-users-denied",
3207     G_TYPE_FROM_INTERFACE (iface),
3208     G_SIGNAL_RUN_LAST,
3209     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_set_users_denied),
3210     g_signal_accumulator_true_handled,
3211     NULL,
3212     g_cclosure_marshal_generic,
3213     G_TYPE_BOOLEAN,
3214     3,
3215     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV);
3216 
3217   /**
3218    * CphIfaceMechanism::handle-printer-add-option-default:
3219    * @object: A #CphIfaceMechanism.
3220    * @invocation: A #GDBusMethodInvocation.
3221    * @arg_name: Argument passed by remote caller.
3222    * @arg_option: Argument passed by remote caller.
3223    * @arg_values: Argument passed by remote caller.
3224    *
3225    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddOptionDefault">PrinterAddOptionDefault()</link> D-Bus method.
3226    *
3227    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_add_option_default() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3228    *
3229    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3230    */
3231   g_signal_new ("handle-printer-add-option-default",
3232     G_TYPE_FROM_INTERFACE (iface),
3233     G_SIGNAL_RUN_LAST,
3234     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_add_option_default),
3235     g_signal_accumulator_true_handled,
3236     NULL,
3237     g_cclosure_marshal_generic,
3238     G_TYPE_BOOLEAN,
3239     4,
3240     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV);
3241 
3242   /**
3243    * CphIfaceMechanism::handle-printer-delete-option-default:
3244    * @object: A #CphIfaceMechanism.
3245    * @invocation: A #GDBusMethodInvocation.
3246    * @arg_name: Argument passed by remote caller.
3247    * @arg_option: Argument passed by remote caller.
3248    *
3249    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterDeleteOptionDefault">PrinterDeleteOptionDefault()</link> D-Bus method.
3250    *
3251    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_delete_option_default() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3252    *
3253    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3254    */
3255   g_signal_new ("handle-printer-delete-option-default",
3256     G_TYPE_FROM_INTERFACE (iface),
3257     G_SIGNAL_RUN_LAST,
3258     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_delete_option_default),
3259     g_signal_accumulator_true_handled,
3260     NULL,
3261     g_cclosure_marshal_generic,
3262     G_TYPE_BOOLEAN,
3263     3,
3264     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
3265 
3266   /**
3267    * CphIfaceMechanism::handle-printer-add-option:
3268    * @object: A #CphIfaceMechanism.
3269    * @invocation: A #GDBusMethodInvocation.
3270    * @arg_name: Argument passed by remote caller.
3271    * @arg_option: Argument passed by remote caller.
3272    * @arg_values: Argument passed by remote caller.
3273    *
3274    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddOption">PrinterAddOption()</link> D-Bus method.
3275    *
3276    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_printer_add_option() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3277    *
3278    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3279    */
3280   g_signal_new ("handle-printer-add-option",
3281     G_TYPE_FROM_INTERFACE (iface),
3282     G_SIGNAL_RUN_LAST,
3283     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_printer_add_option),
3284     g_signal_accumulator_true_handled,
3285     NULL,
3286     g_cclosure_marshal_generic,
3287     G_TYPE_BOOLEAN,
3288     4,
3289     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV);
3290 
3291   /**
3292    * CphIfaceMechanism::handle-job-cancel:
3293    * @object: A #CphIfaceMechanism.
3294    * @invocation: A #GDBusMethodInvocation.
3295    * @arg_jobid: Argument passed by remote caller.
3296    *
3297    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobCancel">JobCancel()</link> D-Bus method.
3298    *
3299    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_job_cancel() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3300    *
3301    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3302    *
3303    * Deprecated: The D-Bus method has been deprecated.
3304    */
3305   g_signal_new ("handle-job-cancel",
3306     G_TYPE_FROM_INTERFACE (iface),
3307     G_SIGNAL_RUN_LAST,
3308     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_job_cancel),
3309     g_signal_accumulator_true_handled,
3310     NULL,
3311     g_cclosure_marshal_generic,
3312     G_TYPE_BOOLEAN,
3313     2,
3314     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT);
3315 
3316   /**
3317    * CphIfaceMechanism::handle-job-cancel-purge:
3318    * @object: A #CphIfaceMechanism.
3319    * @invocation: A #GDBusMethodInvocation.
3320    * @arg_jobid: Argument passed by remote caller.
3321    * @arg_purge: Argument passed by remote caller.
3322    *
3323    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobCancelPurge">JobCancelPurge()</link> D-Bus method.
3324    *
3325    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_job_cancel_purge() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3326    *
3327    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3328    */
3329   g_signal_new ("handle-job-cancel-purge",
3330     G_TYPE_FROM_INTERFACE (iface),
3331     G_SIGNAL_RUN_LAST,
3332     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_job_cancel_purge),
3333     g_signal_accumulator_true_handled,
3334     NULL,
3335     g_cclosure_marshal_generic,
3336     G_TYPE_BOOLEAN,
3337     3,
3338     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT, G_TYPE_BOOLEAN);
3339 
3340   /**
3341    * CphIfaceMechanism::handle-job-restart:
3342    * @object: A #CphIfaceMechanism.
3343    * @invocation: A #GDBusMethodInvocation.
3344    * @arg_jobid: Argument passed by remote caller.
3345    *
3346    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobRestart">JobRestart()</link> D-Bus method.
3347    *
3348    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_job_restart() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3349    *
3350    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3351    */
3352   g_signal_new ("handle-job-restart",
3353     G_TYPE_FROM_INTERFACE (iface),
3354     G_SIGNAL_RUN_LAST,
3355     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_job_restart),
3356     g_signal_accumulator_true_handled,
3357     NULL,
3358     g_cclosure_marshal_generic,
3359     G_TYPE_BOOLEAN,
3360     2,
3361     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT);
3362 
3363   /**
3364    * CphIfaceMechanism::handle-job-set-hold-until:
3365    * @object: A #CphIfaceMechanism.
3366    * @invocation: A #GDBusMethodInvocation.
3367    * @arg_jobid: Argument passed by remote caller.
3368    * @arg_job_hold_until: Argument passed by remote caller.
3369    *
3370    * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobSetHoldUntil">JobSetHoldUntil()</link> D-Bus method.
3371    *
3372    * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call cph_iface_mechanism_complete_job_set_hold_until() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3373    *
3374    * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3375    */
3376   g_signal_new ("handle-job-set-hold-until",
3377     G_TYPE_FROM_INTERFACE (iface),
3378     G_SIGNAL_RUN_LAST,
3379     G_STRUCT_OFFSET (CphIfaceMechanismIface, handle_job_set_hold_until),
3380     g_signal_accumulator_true_handled,
3381     NULL,
3382     g_cclosure_marshal_generic,
3383     G_TYPE_BOOLEAN,
3384     3,
3385     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT, G_TYPE_STRING);
3386 
3387 }
3388 
3389 /**
3390  * cph_iface_mechanism_call_file_get:
3391  * @proxy: A #CphIfaceMechanismProxy.
3392  * @arg_resource: Argument to pass with the method invocation.
3393  * @arg_filename: Argument to pass with the method invocation.
3394  * @cancellable: (allow-none): A #GCancellable or %NULL.
3395  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3396  * @user_data: User data to pass to @callback.
3397  *
3398  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.FileGet">FileGet()</link> D-Bus method on @proxy.
3399  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
3400  * You can then call cph_iface_mechanism_call_file_get_finish() to get the result of the operation.
3401  *
3402  * See cph_iface_mechanism_call_file_get_sync() for the synchronous, blocking version of this method.
3403  */
3404 void
cph_iface_mechanism_call_file_get(CphIfaceMechanism * proxy,const gchar * arg_resource,const gchar * arg_filename,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)3405 cph_iface_mechanism_call_file_get (
3406     CphIfaceMechanism *proxy,
3407     const gchar *arg_resource,
3408     const gchar *arg_filename,
3409     GCancellable *cancellable,
3410     GAsyncReadyCallback callback,
3411     gpointer user_data)
3412 {
3413   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3414     "FileGet",
3415     g_variant_new ("(ss)",
3416                    arg_resource,
3417                    arg_filename),
3418     G_DBUS_CALL_FLAGS_NONE,
3419     -1,
3420     cancellable,
3421     callback,
3422     user_data);
3423 }
3424 
3425 /**
3426  * cph_iface_mechanism_call_file_get_finish:
3427  * @proxy: A #CphIfaceMechanismProxy.
3428  * @out_error: (out): Return location for return parameter or %NULL to ignore.
3429  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_file_get().
3430  * @error: Return location for error or %NULL.
3431  *
3432  * Finishes an operation started with cph_iface_mechanism_call_file_get().
3433  *
3434  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3435  */
3436 gboolean
cph_iface_mechanism_call_file_get_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)3437 cph_iface_mechanism_call_file_get_finish (
3438     CphIfaceMechanism *proxy,
3439     gchar **out_error,
3440     GAsyncResult *res,
3441     GError **error)
3442 {
3443   GVariant *_ret;
3444   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3445   if (_ret == NULL)
3446     goto _out;
3447   g_variant_get (_ret,
3448                  "(s)",
3449                  out_error);
3450   g_variant_unref (_ret);
3451 _out:
3452   return _ret != NULL;
3453 }
3454 
3455 /**
3456  * cph_iface_mechanism_call_file_get_sync:
3457  * @proxy: A #CphIfaceMechanismProxy.
3458  * @arg_resource: Argument to pass with the method invocation.
3459  * @arg_filename: Argument to pass with the method invocation.
3460  * @out_error: (out): Return location for return parameter or %NULL to ignore.
3461  * @cancellable: (allow-none): A #GCancellable or %NULL.
3462  * @error: Return location for error or %NULL.
3463  *
3464  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.FileGet">FileGet()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3465  *
3466  * See cph_iface_mechanism_call_file_get() for the asynchronous version of this method.
3467  *
3468  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3469  */
3470 gboolean
cph_iface_mechanism_call_file_get_sync(CphIfaceMechanism * proxy,const gchar * arg_resource,const gchar * arg_filename,gchar ** out_error,GCancellable * cancellable,GError ** error)3471 cph_iface_mechanism_call_file_get_sync (
3472     CphIfaceMechanism *proxy,
3473     const gchar *arg_resource,
3474     const gchar *arg_filename,
3475     gchar **out_error,
3476     GCancellable *cancellable,
3477     GError **error)
3478 {
3479   GVariant *_ret;
3480   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3481     "FileGet",
3482     g_variant_new ("(ss)",
3483                    arg_resource,
3484                    arg_filename),
3485     G_DBUS_CALL_FLAGS_NONE,
3486     -1,
3487     cancellable,
3488     error);
3489   if (_ret == NULL)
3490     goto _out;
3491   g_variant_get (_ret,
3492                  "(s)",
3493                  out_error);
3494   g_variant_unref (_ret);
3495 _out:
3496   return _ret != NULL;
3497 }
3498 
3499 /**
3500  * cph_iface_mechanism_call_file_put:
3501  * @proxy: A #CphIfaceMechanismProxy.
3502  * @arg_resource: Argument to pass with the method invocation.
3503  * @arg_filename: Argument to pass with the method invocation.
3504  * @cancellable: (allow-none): A #GCancellable or %NULL.
3505  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3506  * @user_data: User data to pass to @callback.
3507  *
3508  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.FilePut">FilePut()</link> D-Bus method on @proxy.
3509  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
3510  * You can then call cph_iface_mechanism_call_file_put_finish() to get the result of the operation.
3511  *
3512  * See cph_iface_mechanism_call_file_put_sync() for the synchronous, blocking version of this method.
3513  */
3514 void
cph_iface_mechanism_call_file_put(CphIfaceMechanism * proxy,const gchar * arg_resource,const gchar * arg_filename,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)3515 cph_iface_mechanism_call_file_put (
3516     CphIfaceMechanism *proxy,
3517     const gchar *arg_resource,
3518     const gchar *arg_filename,
3519     GCancellable *cancellable,
3520     GAsyncReadyCallback callback,
3521     gpointer user_data)
3522 {
3523   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3524     "FilePut",
3525     g_variant_new ("(ss)",
3526                    arg_resource,
3527                    arg_filename),
3528     G_DBUS_CALL_FLAGS_NONE,
3529     -1,
3530     cancellable,
3531     callback,
3532     user_data);
3533 }
3534 
3535 /**
3536  * cph_iface_mechanism_call_file_put_finish:
3537  * @proxy: A #CphIfaceMechanismProxy.
3538  * @out_error: (out): Return location for return parameter or %NULL to ignore.
3539  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_file_put().
3540  * @error: Return location for error or %NULL.
3541  *
3542  * Finishes an operation started with cph_iface_mechanism_call_file_put().
3543  *
3544  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3545  */
3546 gboolean
cph_iface_mechanism_call_file_put_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)3547 cph_iface_mechanism_call_file_put_finish (
3548     CphIfaceMechanism *proxy,
3549     gchar **out_error,
3550     GAsyncResult *res,
3551     GError **error)
3552 {
3553   GVariant *_ret;
3554   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3555   if (_ret == NULL)
3556     goto _out;
3557   g_variant_get (_ret,
3558                  "(s)",
3559                  out_error);
3560   g_variant_unref (_ret);
3561 _out:
3562   return _ret != NULL;
3563 }
3564 
3565 /**
3566  * cph_iface_mechanism_call_file_put_sync:
3567  * @proxy: A #CphIfaceMechanismProxy.
3568  * @arg_resource: Argument to pass with the method invocation.
3569  * @arg_filename: Argument to pass with the method invocation.
3570  * @out_error: (out): Return location for return parameter or %NULL to ignore.
3571  * @cancellable: (allow-none): A #GCancellable or %NULL.
3572  * @error: Return location for error or %NULL.
3573  *
3574  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.FilePut">FilePut()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3575  *
3576  * See cph_iface_mechanism_call_file_put() for the asynchronous version of this method.
3577  *
3578  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3579  */
3580 gboolean
cph_iface_mechanism_call_file_put_sync(CphIfaceMechanism * proxy,const gchar * arg_resource,const gchar * arg_filename,gchar ** out_error,GCancellable * cancellable,GError ** error)3581 cph_iface_mechanism_call_file_put_sync (
3582     CphIfaceMechanism *proxy,
3583     const gchar *arg_resource,
3584     const gchar *arg_filename,
3585     gchar **out_error,
3586     GCancellable *cancellable,
3587     GError **error)
3588 {
3589   GVariant *_ret;
3590   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3591     "FilePut",
3592     g_variant_new ("(ss)",
3593                    arg_resource,
3594                    arg_filename),
3595     G_DBUS_CALL_FLAGS_NONE,
3596     -1,
3597     cancellable,
3598     error);
3599   if (_ret == NULL)
3600     goto _out;
3601   g_variant_get (_ret,
3602                  "(s)",
3603                  out_error);
3604   g_variant_unref (_ret);
3605 _out:
3606   return _ret != NULL;
3607 }
3608 
3609 /**
3610  * cph_iface_mechanism_call_server_get_settings:
3611  * @proxy: A #CphIfaceMechanismProxy.
3612  * @cancellable: (allow-none): A #GCancellable or %NULL.
3613  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3614  * @user_data: User data to pass to @callback.
3615  *
3616  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ServerGetSettings">ServerGetSettings()</link> D-Bus method on @proxy.
3617  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
3618  * You can then call cph_iface_mechanism_call_server_get_settings_finish() to get the result of the operation.
3619  *
3620  * See cph_iface_mechanism_call_server_get_settings_sync() for the synchronous, blocking version of this method.
3621  */
3622 void
cph_iface_mechanism_call_server_get_settings(CphIfaceMechanism * proxy,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)3623 cph_iface_mechanism_call_server_get_settings (
3624     CphIfaceMechanism *proxy,
3625     GCancellable *cancellable,
3626     GAsyncReadyCallback callback,
3627     gpointer user_data)
3628 {
3629   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3630     "ServerGetSettings",
3631     g_variant_new ("()"),
3632     G_DBUS_CALL_FLAGS_NONE,
3633     -1,
3634     cancellable,
3635     callback,
3636     user_data);
3637 }
3638 
3639 /**
3640  * cph_iface_mechanism_call_server_get_settings_finish:
3641  * @proxy: A #CphIfaceMechanismProxy.
3642  * @out_error: (out): Return location for return parameter or %NULL to ignore.
3643  * @out_settings: (out): Return location for return parameter or %NULL to ignore.
3644  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_server_get_settings().
3645  * @error: Return location for error or %NULL.
3646  *
3647  * Finishes an operation started with cph_iface_mechanism_call_server_get_settings().
3648  *
3649  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3650  */
3651 gboolean
cph_iface_mechanism_call_server_get_settings_finish(CphIfaceMechanism * proxy,gchar ** out_error,GVariant ** out_settings,GAsyncResult * res,GError ** error)3652 cph_iface_mechanism_call_server_get_settings_finish (
3653     CphIfaceMechanism *proxy,
3654     gchar **out_error,
3655     GVariant **out_settings,
3656     GAsyncResult *res,
3657     GError **error)
3658 {
3659   GVariant *_ret;
3660   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3661   if (_ret == NULL)
3662     goto _out;
3663   g_variant_get (_ret,
3664                  "(s@a{ss})",
3665                  out_error,
3666                  out_settings);
3667   g_variant_unref (_ret);
3668 _out:
3669   return _ret != NULL;
3670 }
3671 
3672 /**
3673  * cph_iface_mechanism_call_server_get_settings_sync:
3674  * @proxy: A #CphIfaceMechanismProxy.
3675  * @out_error: (out): Return location for return parameter or %NULL to ignore.
3676  * @out_settings: (out): Return location for return parameter or %NULL to ignore.
3677  * @cancellable: (allow-none): A #GCancellable or %NULL.
3678  * @error: Return location for error or %NULL.
3679  *
3680  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ServerGetSettings">ServerGetSettings()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3681  *
3682  * See cph_iface_mechanism_call_server_get_settings() for the asynchronous version of this method.
3683  *
3684  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3685  */
3686 gboolean
cph_iface_mechanism_call_server_get_settings_sync(CphIfaceMechanism * proxy,gchar ** out_error,GVariant ** out_settings,GCancellable * cancellable,GError ** error)3687 cph_iface_mechanism_call_server_get_settings_sync (
3688     CphIfaceMechanism *proxy,
3689     gchar **out_error,
3690     GVariant **out_settings,
3691     GCancellable *cancellable,
3692     GError **error)
3693 {
3694   GVariant *_ret;
3695   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3696     "ServerGetSettings",
3697     g_variant_new ("()"),
3698     G_DBUS_CALL_FLAGS_NONE,
3699     -1,
3700     cancellable,
3701     error);
3702   if (_ret == NULL)
3703     goto _out;
3704   g_variant_get (_ret,
3705                  "(s@a{ss})",
3706                  out_error,
3707                  out_settings);
3708   g_variant_unref (_ret);
3709 _out:
3710   return _ret != NULL;
3711 }
3712 
3713 /**
3714  * cph_iface_mechanism_call_server_set_settings:
3715  * @proxy: A #CphIfaceMechanismProxy.
3716  * @arg_settings: Argument to pass with the method invocation.
3717  * @cancellable: (allow-none): A #GCancellable or %NULL.
3718  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3719  * @user_data: User data to pass to @callback.
3720  *
3721  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ServerSetSettings">ServerSetSettings()</link> D-Bus method on @proxy.
3722  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
3723  * You can then call cph_iface_mechanism_call_server_set_settings_finish() to get the result of the operation.
3724  *
3725  * See cph_iface_mechanism_call_server_set_settings_sync() for the synchronous, blocking version of this method.
3726  */
3727 void
cph_iface_mechanism_call_server_set_settings(CphIfaceMechanism * proxy,GVariant * arg_settings,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)3728 cph_iface_mechanism_call_server_set_settings (
3729     CphIfaceMechanism *proxy,
3730     GVariant *arg_settings,
3731     GCancellable *cancellable,
3732     GAsyncReadyCallback callback,
3733     gpointer user_data)
3734 {
3735   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3736     "ServerSetSettings",
3737     g_variant_new ("(@a{ss})",
3738                    arg_settings),
3739     G_DBUS_CALL_FLAGS_NONE,
3740     -1,
3741     cancellable,
3742     callback,
3743     user_data);
3744 }
3745 
3746 /**
3747  * cph_iface_mechanism_call_server_set_settings_finish:
3748  * @proxy: A #CphIfaceMechanismProxy.
3749  * @out_error: (out): Return location for return parameter or %NULL to ignore.
3750  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_server_set_settings().
3751  * @error: Return location for error or %NULL.
3752  *
3753  * Finishes an operation started with cph_iface_mechanism_call_server_set_settings().
3754  *
3755  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3756  */
3757 gboolean
cph_iface_mechanism_call_server_set_settings_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)3758 cph_iface_mechanism_call_server_set_settings_finish (
3759     CphIfaceMechanism *proxy,
3760     gchar **out_error,
3761     GAsyncResult *res,
3762     GError **error)
3763 {
3764   GVariant *_ret;
3765   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3766   if (_ret == NULL)
3767     goto _out;
3768   g_variant_get (_ret,
3769                  "(s)",
3770                  out_error);
3771   g_variant_unref (_ret);
3772 _out:
3773   return _ret != NULL;
3774 }
3775 
3776 /**
3777  * cph_iface_mechanism_call_server_set_settings_sync:
3778  * @proxy: A #CphIfaceMechanismProxy.
3779  * @arg_settings: Argument to pass with the method invocation.
3780  * @out_error: (out): Return location for return parameter or %NULL to ignore.
3781  * @cancellable: (allow-none): A #GCancellable or %NULL.
3782  * @error: Return location for error or %NULL.
3783  *
3784  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ServerSetSettings">ServerSetSettings()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3785  *
3786  * See cph_iface_mechanism_call_server_set_settings() for the asynchronous version of this method.
3787  *
3788  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3789  */
3790 gboolean
cph_iface_mechanism_call_server_set_settings_sync(CphIfaceMechanism * proxy,GVariant * arg_settings,gchar ** out_error,GCancellable * cancellable,GError ** error)3791 cph_iface_mechanism_call_server_set_settings_sync (
3792     CphIfaceMechanism *proxy,
3793     GVariant *arg_settings,
3794     gchar **out_error,
3795     GCancellable *cancellable,
3796     GError **error)
3797 {
3798   GVariant *_ret;
3799   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3800     "ServerSetSettings",
3801     g_variant_new ("(@a{ss})",
3802                    arg_settings),
3803     G_DBUS_CALL_FLAGS_NONE,
3804     -1,
3805     cancellable,
3806     error);
3807   if (_ret == NULL)
3808     goto _out;
3809   g_variant_get (_ret,
3810                  "(s)",
3811                  out_error);
3812   g_variant_unref (_ret);
3813 _out:
3814   return _ret != NULL;
3815 }
3816 
3817 /**
3818  * cph_iface_mechanism_call_devices_get:
3819  * @proxy: A #CphIfaceMechanismProxy.
3820  * @arg_timeout: Argument to pass with the method invocation.
3821  * @arg_limit: Argument to pass with the method invocation.
3822  * @arg_include_schemes: Argument to pass with the method invocation.
3823  * @arg_exclude_schemes: Argument to pass with the method invocation.
3824  * @cancellable: (allow-none): A #GCancellable or %NULL.
3825  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3826  * @user_data: User data to pass to @callback.
3827  *
3828  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.DevicesGet">DevicesGet()</link> D-Bus method on @proxy.
3829  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
3830  * You can then call cph_iface_mechanism_call_devices_get_finish() to get the result of the operation.
3831  *
3832  * See cph_iface_mechanism_call_devices_get_sync() for the synchronous, blocking version of this method.
3833  */
3834 void
cph_iface_mechanism_call_devices_get(CphIfaceMechanism * proxy,gint arg_timeout,gint arg_limit,const gchar * const * arg_include_schemes,const gchar * const * arg_exclude_schemes,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)3835 cph_iface_mechanism_call_devices_get (
3836     CphIfaceMechanism *proxy,
3837     gint arg_timeout,
3838     gint arg_limit,
3839     const gchar *const *arg_include_schemes,
3840     const gchar *const *arg_exclude_schemes,
3841     GCancellable *cancellable,
3842     GAsyncReadyCallback callback,
3843     gpointer user_data)
3844 {
3845   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3846     "DevicesGet",
3847     g_variant_new ("(ii^as^as)",
3848                    arg_timeout,
3849                    arg_limit,
3850                    arg_include_schemes,
3851                    arg_exclude_schemes),
3852     G_DBUS_CALL_FLAGS_NONE,
3853     -1,
3854     cancellable,
3855     callback,
3856     user_data);
3857 }
3858 
3859 /**
3860  * cph_iface_mechanism_call_devices_get_finish:
3861  * @proxy: A #CphIfaceMechanismProxy.
3862  * @out_error: (out): Return location for return parameter or %NULL to ignore.
3863  * @out_devices: (out): Return location for return parameter or %NULL to ignore.
3864  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_devices_get().
3865  * @error: Return location for error or %NULL.
3866  *
3867  * Finishes an operation started with cph_iface_mechanism_call_devices_get().
3868  *
3869  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3870  */
3871 gboolean
cph_iface_mechanism_call_devices_get_finish(CphIfaceMechanism * proxy,gchar ** out_error,GVariant ** out_devices,GAsyncResult * res,GError ** error)3872 cph_iface_mechanism_call_devices_get_finish (
3873     CphIfaceMechanism *proxy,
3874     gchar **out_error,
3875     GVariant **out_devices,
3876     GAsyncResult *res,
3877     GError **error)
3878 {
3879   GVariant *_ret;
3880   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
3881   if (_ret == NULL)
3882     goto _out;
3883   g_variant_get (_ret,
3884                  "(s@a{ss})",
3885                  out_error,
3886                  out_devices);
3887   g_variant_unref (_ret);
3888 _out:
3889   return _ret != NULL;
3890 }
3891 
3892 /**
3893  * cph_iface_mechanism_call_devices_get_sync:
3894  * @proxy: A #CphIfaceMechanismProxy.
3895  * @arg_timeout: Argument to pass with the method invocation.
3896  * @arg_limit: Argument to pass with the method invocation.
3897  * @arg_include_schemes: Argument to pass with the method invocation.
3898  * @arg_exclude_schemes: Argument to pass with the method invocation.
3899  * @out_error: (out): Return location for return parameter or %NULL to ignore.
3900  * @out_devices: (out): Return location for return parameter or %NULL to ignore.
3901  * @cancellable: (allow-none): A #GCancellable or %NULL.
3902  * @error: Return location for error or %NULL.
3903  *
3904  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.DevicesGet">DevicesGet()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
3905  *
3906  * See cph_iface_mechanism_call_devices_get() for the asynchronous version of this method.
3907  *
3908  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
3909  */
3910 gboolean
cph_iface_mechanism_call_devices_get_sync(CphIfaceMechanism * proxy,gint arg_timeout,gint arg_limit,const gchar * const * arg_include_schemes,const gchar * const * arg_exclude_schemes,gchar ** out_error,GVariant ** out_devices,GCancellable * cancellable,GError ** error)3911 cph_iface_mechanism_call_devices_get_sync (
3912     CphIfaceMechanism *proxy,
3913     gint arg_timeout,
3914     gint arg_limit,
3915     const gchar *const *arg_include_schemes,
3916     const gchar *const *arg_exclude_schemes,
3917     gchar **out_error,
3918     GVariant **out_devices,
3919     GCancellable *cancellable,
3920     GError **error)
3921 {
3922   GVariant *_ret;
3923   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
3924     "DevicesGet",
3925     g_variant_new ("(ii^as^as)",
3926                    arg_timeout,
3927                    arg_limit,
3928                    arg_include_schemes,
3929                    arg_exclude_schemes),
3930     G_DBUS_CALL_FLAGS_NONE,
3931     -1,
3932     cancellable,
3933     error);
3934   if (_ret == NULL)
3935     goto _out;
3936   g_variant_get (_ret,
3937                  "(s@a{ss})",
3938                  out_error,
3939                  out_devices);
3940   g_variant_unref (_ret);
3941 _out:
3942   return _ret != NULL;
3943 }
3944 
3945 /**
3946  * cph_iface_mechanism_call_printer_add:
3947  * @proxy: A #CphIfaceMechanismProxy.
3948  * @arg_name: Argument to pass with the method invocation.
3949  * @arg_uri: Argument to pass with the method invocation.
3950  * @arg_ppd: Argument to pass with the method invocation.
3951  * @arg_info: Argument to pass with the method invocation.
3952  * @arg_location: Argument to pass with the method invocation.
3953  * @cancellable: (allow-none): A #GCancellable or %NULL.
3954  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
3955  * @user_data: User data to pass to @callback.
3956  *
3957  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAdd">PrinterAdd()</link> D-Bus method on @proxy.
3958  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
3959  * You can then call cph_iface_mechanism_call_printer_add_finish() to get the result of the operation.
3960  *
3961  * See cph_iface_mechanism_call_printer_add_sync() for the synchronous, blocking version of this method.
3962  */
3963 void
cph_iface_mechanism_call_printer_add(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_uri,const gchar * arg_ppd,const gchar * arg_info,const gchar * arg_location,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)3964 cph_iface_mechanism_call_printer_add (
3965     CphIfaceMechanism *proxy,
3966     const gchar *arg_name,
3967     const gchar *arg_uri,
3968     const gchar *arg_ppd,
3969     const gchar *arg_info,
3970     const gchar *arg_location,
3971     GCancellable *cancellable,
3972     GAsyncReadyCallback callback,
3973     gpointer user_data)
3974 {
3975   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
3976     "PrinterAdd",
3977     g_variant_new ("(sssss)",
3978                    arg_name,
3979                    arg_uri,
3980                    arg_ppd,
3981                    arg_info,
3982                    arg_location),
3983     G_DBUS_CALL_FLAGS_NONE,
3984     -1,
3985     cancellable,
3986     callback,
3987     user_data);
3988 }
3989 
3990 /**
3991  * cph_iface_mechanism_call_printer_add_finish:
3992  * @proxy: A #CphIfaceMechanismProxy.
3993  * @out_error: (out): Return location for return parameter or %NULL to ignore.
3994  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_add().
3995  * @error: Return location for error or %NULL.
3996  *
3997  * Finishes an operation started with cph_iface_mechanism_call_printer_add().
3998  *
3999  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4000  */
4001 gboolean
cph_iface_mechanism_call_printer_add_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)4002 cph_iface_mechanism_call_printer_add_finish (
4003     CphIfaceMechanism *proxy,
4004     gchar **out_error,
4005     GAsyncResult *res,
4006     GError **error)
4007 {
4008   GVariant *_ret;
4009   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4010   if (_ret == NULL)
4011     goto _out;
4012   g_variant_get (_ret,
4013                  "(s)",
4014                  out_error);
4015   g_variant_unref (_ret);
4016 _out:
4017   return _ret != NULL;
4018 }
4019 
4020 /**
4021  * cph_iface_mechanism_call_printer_add_sync:
4022  * @proxy: A #CphIfaceMechanismProxy.
4023  * @arg_name: Argument to pass with the method invocation.
4024  * @arg_uri: Argument to pass with the method invocation.
4025  * @arg_ppd: Argument to pass with the method invocation.
4026  * @arg_info: Argument to pass with the method invocation.
4027  * @arg_location: Argument to pass with the method invocation.
4028  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4029  * @cancellable: (allow-none): A #GCancellable or %NULL.
4030  * @error: Return location for error or %NULL.
4031  *
4032  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAdd">PrinterAdd()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4033  *
4034  * See cph_iface_mechanism_call_printer_add() for the asynchronous version of this method.
4035  *
4036  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4037  */
4038 gboolean
cph_iface_mechanism_call_printer_add_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_uri,const gchar * arg_ppd,const gchar * arg_info,const gchar * arg_location,gchar ** out_error,GCancellable * cancellable,GError ** error)4039 cph_iface_mechanism_call_printer_add_sync (
4040     CphIfaceMechanism *proxy,
4041     const gchar *arg_name,
4042     const gchar *arg_uri,
4043     const gchar *arg_ppd,
4044     const gchar *arg_info,
4045     const gchar *arg_location,
4046     gchar **out_error,
4047     GCancellable *cancellable,
4048     GError **error)
4049 {
4050   GVariant *_ret;
4051   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4052     "PrinterAdd",
4053     g_variant_new ("(sssss)",
4054                    arg_name,
4055                    arg_uri,
4056                    arg_ppd,
4057                    arg_info,
4058                    arg_location),
4059     G_DBUS_CALL_FLAGS_NONE,
4060     -1,
4061     cancellable,
4062     error);
4063   if (_ret == NULL)
4064     goto _out;
4065   g_variant_get (_ret,
4066                  "(s)",
4067                  out_error);
4068   g_variant_unref (_ret);
4069 _out:
4070   return _ret != NULL;
4071 }
4072 
4073 /**
4074  * cph_iface_mechanism_call_printer_add_with_ppd_file:
4075  * @proxy: A #CphIfaceMechanismProxy.
4076  * @arg_name: Argument to pass with the method invocation.
4077  * @arg_uri: Argument to pass with the method invocation.
4078  * @arg_ppd: Argument to pass with the method invocation.
4079  * @arg_info: Argument to pass with the method invocation.
4080  * @arg_location: Argument to pass with the method invocation.
4081  * @cancellable: (allow-none): A #GCancellable or %NULL.
4082  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4083  * @user_data: User data to pass to @callback.
4084  *
4085  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddWithPpdFile">PrinterAddWithPpdFile()</link> D-Bus method on @proxy.
4086  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
4087  * You can then call cph_iface_mechanism_call_printer_add_with_ppd_file_finish() to get the result of the operation.
4088  *
4089  * See cph_iface_mechanism_call_printer_add_with_ppd_file_sync() for the synchronous, blocking version of this method.
4090  */
4091 void
cph_iface_mechanism_call_printer_add_with_ppd_file(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_uri,const gchar * arg_ppd,const gchar * arg_info,const gchar * arg_location,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)4092 cph_iface_mechanism_call_printer_add_with_ppd_file (
4093     CphIfaceMechanism *proxy,
4094     const gchar *arg_name,
4095     const gchar *arg_uri,
4096     const gchar *arg_ppd,
4097     const gchar *arg_info,
4098     const gchar *arg_location,
4099     GCancellable *cancellable,
4100     GAsyncReadyCallback callback,
4101     gpointer user_data)
4102 {
4103   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4104     "PrinterAddWithPpdFile",
4105     g_variant_new ("(sssss)",
4106                    arg_name,
4107                    arg_uri,
4108                    arg_ppd,
4109                    arg_info,
4110                    arg_location),
4111     G_DBUS_CALL_FLAGS_NONE,
4112     -1,
4113     cancellable,
4114     callback,
4115     user_data);
4116 }
4117 
4118 /**
4119  * cph_iface_mechanism_call_printer_add_with_ppd_file_finish:
4120  * @proxy: A #CphIfaceMechanismProxy.
4121  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4122  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_add_with_ppd_file().
4123  * @error: Return location for error or %NULL.
4124  *
4125  * Finishes an operation started with cph_iface_mechanism_call_printer_add_with_ppd_file().
4126  *
4127  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4128  */
4129 gboolean
cph_iface_mechanism_call_printer_add_with_ppd_file_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)4130 cph_iface_mechanism_call_printer_add_with_ppd_file_finish (
4131     CphIfaceMechanism *proxy,
4132     gchar **out_error,
4133     GAsyncResult *res,
4134     GError **error)
4135 {
4136   GVariant *_ret;
4137   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4138   if (_ret == NULL)
4139     goto _out;
4140   g_variant_get (_ret,
4141                  "(s)",
4142                  out_error);
4143   g_variant_unref (_ret);
4144 _out:
4145   return _ret != NULL;
4146 }
4147 
4148 /**
4149  * cph_iface_mechanism_call_printer_add_with_ppd_file_sync:
4150  * @proxy: A #CphIfaceMechanismProxy.
4151  * @arg_name: Argument to pass with the method invocation.
4152  * @arg_uri: Argument to pass with the method invocation.
4153  * @arg_ppd: Argument to pass with the method invocation.
4154  * @arg_info: Argument to pass with the method invocation.
4155  * @arg_location: Argument to pass with the method invocation.
4156  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4157  * @cancellable: (allow-none): A #GCancellable or %NULL.
4158  * @error: Return location for error or %NULL.
4159  *
4160  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddWithPpdFile">PrinterAddWithPpdFile()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4161  *
4162  * See cph_iface_mechanism_call_printer_add_with_ppd_file() for the asynchronous version of this method.
4163  *
4164  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4165  */
4166 gboolean
cph_iface_mechanism_call_printer_add_with_ppd_file_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_uri,const gchar * arg_ppd,const gchar * arg_info,const gchar * arg_location,gchar ** out_error,GCancellable * cancellable,GError ** error)4167 cph_iface_mechanism_call_printer_add_with_ppd_file_sync (
4168     CphIfaceMechanism *proxy,
4169     const gchar *arg_name,
4170     const gchar *arg_uri,
4171     const gchar *arg_ppd,
4172     const gchar *arg_info,
4173     const gchar *arg_location,
4174     gchar **out_error,
4175     GCancellable *cancellable,
4176     GError **error)
4177 {
4178   GVariant *_ret;
4179   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4180     "PrinterAddWithPpdFile",
4181     g_variant_new ("(sssss)",
4182                    arg_name,
4183                    arg_uri,
4184                    arg_ppd,
4185                    arg_info,
4186                    arg_location),
4187     G_DBUS_CALL_FLAGS_NONE,
4188     -1,
4189     cancellable,
4190     error);
4191   if (_ret == NULL)
4192     goto _out;
4193   g_variant_get (_ret,
4194                  "(s)",
4195                  out_error);
4196   g_variant_unref (_ret);
4197 _out:
4198   return _ret != NULL;
4199 }
4200 
4201 /**
4202  * cph_iface_mechanism_call_printer_set_device:
4203  * @proxy: A #CphIfaceMechanismProxy.
4204  * @arg_name: Argument to pass with the method invocation.
4205  * @arg_device: Argument to pass with the method invocation.
4206  * @cancellable: (allow-none): A #GCancellable or %NULL.
4207  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4208  * @user_data: User data to pass to @callback.
4209  *
4210  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetDevice">PrinterSetDevice()</link> D-Bus method on @proxy.
4211  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
4212  * You can then call cph_iface_mechanism_call_printer_set_device_finish() to get the result of the operation.
4213  *
4214  * See cph_iface_mechanism_call_printer_set_device_sync() for the synchronous, blocking version of this method.
4215  */
4216 void
cph_iface_mechanism_call_printer_set_device(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_device,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)4217 cph_iface_mechanism_call_printer_set_device (
4218     CphIfaceMechanism *proxy,
4219     const gchar *arg_name,
4220     const gchar *arg_device,
4221     GCancellable *cancellable,
4222     GAsyncReadyCallback callback,
4223     gpointer user_data)
4224 {
4225   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4226     "PrinterSetDevice",
4227     g_variant_new ("(ss)",
4228                    arg_name,
4229                    arg_device),
4230     G_DBUS_CALL_FLAGS_NONE,
4231     -1,
4232     cancellable,
4233     callback,
4234     user_data);
4235 }
4236 
4237 /**
4238  * cph_iface_mechanism_call_printer_set_device_finish:
4239  * @proxy: A #CphIfaceMechanismProxy.
4240  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4241  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_device().
4242  * @error: Return location for error or %NULL.
4243  *
4244  * Finishes an operation started with cph_iface_mechanism_call_printer_set_device().
4245  *
4246  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4247  */
4248 gboolean
cph_iface_mechanism_call_printer_set_device_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)4249 cph_iface_mechanism_call_printer_set_device_finish (
4250     CphIfaceMechanism *proxy,
4251     gchar **out_error,
4252     GAsyncResult *res,
4253     GError **error)
4254 {
4255   GVariant *_ret;
4256   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4257   if (_ret == NULL)
4258     goto _out;
4259   g_variant_get (_ret,
4260                  "(s)",
4261                  out_error);
4262   g_variant_unref (_ret);
4263 _out:
4264   return _ret != NULL;
4265 }
4266 
4267 /**
4268  * cph_iface_mechanism_call_printer_set_device_sync:
4269  * @proxy: A #CphIfaceMechanismProxy.
4270  * @arg_name: Argument to pass with the method invocation.
4271  * @arg_device: Argument to pass with the method invocation.
4272  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4273  * @cancellable: (allow-none): A #GCancellable or %NULL.
4274  * @error: Return location for error or %NULL.
4275  *
4276  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetDevice">PrinterSetDevice()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4277  *
4278  * See cph_iface_mechanism_call_printer_set_device() for the asynchronous version of this method.
4279  *
4280  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4281  */
4282 gboolean
cph_iface_mechanism_call_printer_set_device_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_device,gchar ** out_error,GCancellable * cancellable,GError ** error)4283 cph_iface_mechanism_call_printer_set_device_sync (
4284     CphIfaceMechanism *proxy,
4285     const gchar *arg_name,
4286     const gchar *arg_device,
4287     gchar **out_error,
4288     GCancellable *cancellable,
4289     GError **error)
4290 {
4291   GVariant *_ret;
4292   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4293     "PrinterSetDevice",
4294     g_variant_new ("(ss)",
4295                    arg_name,
4296                    arg_device),
4297     G_DBUS_CALL_FLAGS_NONE,
4298     -1,
4299     cancellable,
4300     error);
4301   if (_ret == NULL)
4302     goto _out;
4303   g_variant_get (_ret,
4304                  "(s)",
4305                  out_error);
4306   g_variant_unref (_ret);
4307 _out:
4308   return _ret != NULL;
4309 }
4310 
4311 /**
4312  * cph_iface_mechanism_call_printer_set_default:
4313  * @proxy: A #CphIfaceMechanismProxy.
4314  * @arg_name: Argument to pass with the method invocation.
4315  * @cancellable: (allow-none): A #GCancellable or %NULL.
4316  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4317  * @user_data: User data to pass to @callback.
4318  *
4319  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetDefault">PrinterSetDefault()</link> D-Bus method on @proxy.
4320  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
4321  * You can then call cph_iface_mechanism_call_printer_set_default_finish() to get the result of the operation.
4322  *
4323  * See cph_iface_mechanism_call_printer_set_default_sync() for the synchronous, blocking version of this method.
4324  */
4325 void
cph_iface_mechanism_call_printer_set_default(CphIfaceMechanism * proxy,const gchar * arg_name,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)4326 cph_iface_mechanism_call_printer_set_default (
4327     CphIfaceMechanism *proxy,
4328     const gchar *arg_name,
4329     GCancellable *cancellable,
4330     GAsyncReadyCallback callback,
4331     gpointer user_data)
4332 {
4333   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4334     "PrinterSetDefault",
4335     g_variant_new ("(s)",
4336                    arg_name),
4337     G_DBUS_CALL_FLAGS_NONE,
4338     -1,
4339     cancellable,
4340     callback,
4341     user_data);
4342 }
4343 
4344 /**
4345  * cph_iface_mechanism_call_printer_set_default_finish:
4346  * @proxy: A #CphIfaceMechanismProxy.
4347  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4348  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_default().
4349  * @error: Return location for error or %NULL.
4350  *
4351  * Finishes an operation started with cph_iface_mechanism_call_printer_set_default().
4352  *
4353  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4354  */
4355 gboolean
cph_iface_mechanism_call_printer_set_default_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)4356 cph_iface_mechanism_call_printer_set_default_finish (
4357     CphIfaceMechanism *proxy,
4358     gchar **out_error,
4359     GAsyncResult *res,
4360     GError **error)
4361 {
4362   GVariant *_ret;
4363   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4364   if (_ret == NULL)
4365     goto _out;
4366   g_variant_get (_ret,
4367                  "(s)",
4368                  out_error);
4369   g_variant_unref (_ret);
4370 _out:
4371   return _ret != NULL;
4372 }
4373 
4374 /**
4375  * cph_iface_mechanism_call_printer_set_default_sync:
4376  * @proxy: A #CphIfaceMechanismProxy.
4377  * @arg_name: Argument to pass with the method invocation.
4378  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4379  * @cancellable: (allow-none): A #GCancellable or %NULL.
4380  * @error: Return location for error or %NULL.
4381  *
4382  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetDefault">PrinterSetDefault()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4383  *
4384  * See cph_iface_mechanism_call_printer_set_default() for the asynchronous version of this method.
4385  *
4386  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4387  */
4388 gboolean
cph_iface_mechanism_call_printer_set_default_sync(CphIfaceMechanism * proxy,const gchar * arg_name,gchar ** out_error,GCancellable * cancellable,GError ** error)4389 cph_iface_mechanism_call_printer_set_default_sync (
4390     CphIfaceMechanism *proxy,
4391     const gchar *arg_name,
4392     gchar **out_error,
4393     GCancellable *cancellable,
4394     GError **error)
4395 {
4396   GVariant *_ret;
4397   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4398     "PrinterSetDefault",
4399     g_variant_new ("(s)",
4400                    arg_name),
4401     G_DBUS_CALL_FLAGS_NONE,
4402     -1,
4403     cancellable,
4404     error);
4405   if (_ret == NULL)
4406     goto _out;
4407   g_variant_get (_ret,
4408                  "(s)",
4409                  out_error);
4410   g_variant_unref (_ret);
4411 _out:
4412   return _ret != NULL;
4413 }
4414 
4415 /**
4416  * cph_iface_mechanism_call_printer_set_enabled:
4417  * @proxy: A #CphIfaceMechanismProxy.
4418  * @arg_name: Argument to pass with the method invocation.
4419  * @arg_enabled: Argument to pass with the method invocation.
4420  * @cancellable: (allow-none): A #GCancellable or %NULL.
4421  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4422  * @user_data: User data to pass to @callback.
4423  *
4424  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetEnabled">PrinterSetEnabled()</link> D-Bus method on @proxy.
4425  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
4426  * You can then call cph_iface_mechanism_call_printer_set_enabled_finish() to get the result of the operation.
4427  *
4428  * See cph_iface_mechanism_call_printer_set_enabled_sync() for the synchronous, blocking version of this method.
4429  */
4430 void
cph_iface_mechanism_call_printer_set_enabled(CphIfaceMechanism * proxy,const gchar * arg_name,gboolean arg_enabled,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)4431 cph_iface_mechanism_call_printer_set_enabled (
4432     CphIfaceMechanism *proxy,
4433     const gchar *arg_name,
4434     gboolean arg_enabled,
4435     GCancellable *cancellable,
4436     GAsyncReadyCallback callback,
4437     gpointer user_data)
4438 {
4439   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4440     "PrinterSetEnabled",
4441     g_variant_new ("(sb)",
4442                    arg_name,
4443                    arg_enabled),
4444     G_DBUS_CALL_FLAGS_NONE,
4445     -1,
4446     cancellable,
4447     callback,
4448     user_data);
4449 }
4450 
4451 /**
4452  * cph_iface_mechanism_call_printer_set_enabled_finish:
4453  * @proxy: A #CphIfaceMechanismProxy.
4454  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4455  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_enabled().
4456  * @error: Return location for error or %NULL.
4457  *
4458  * Finishes an operation started with cph_iface_mechanism_call_printer_set_enabled().
4459  *
4460  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4461  */
4462 gboolean
cph_iface_mechanism_call_printer_set_enabled_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)4463 cph_iface_mechanism_call_printer_set_enabled_finish (
4464     CphIfaceMechanism *proxy,
4465     gchar **out_error,
4466     GAsyncResult *res,
4467     GError **error)
4468 {
4469   GVariant *_ret;
4470   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4471   if (_ret == NULL)
4472     goto _out;
4473   g_variant_get (_ret,
4474                  "(s)",
4475                  out_error);
4476   g_variant_unref (_ret);
4477 _out:
4478   return _ret != NULL;
4479 }
4480 
4481 /**
4482  * cph_iface_mechanism_call_printer_set_enabled_sync:
4483  * @proxy: A #CphIfaceMechanismProxy.
4484  * @arg_name: Argument to pass with the method invocation.
4485  * @arg_enabled: Argument to pass with the method invocation.
4486  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4487  * @cancellable: (allow-none): A #GCancellable or %NULL.
4488  * @error: Return location for error or %NULL.
4489  *
4490  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetEnabled">PrinterSetEnabled()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4491  *
4492  * See cph_iface_mechanism_call_printer_set_enabled() for the asynchronous version of this method.
4493  *
4494  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4495  */
4496 gboolean
cph_iface_mechanism_call_printer_set_enabled_sync(CphIfaceMechanism * proxy,const gchar * arg_name,gboolean arg_enabled,gchar ** out_error,GCancellable * cancellable,GError ** error)4497 cph_iface_mechanism_call_printer_set_enabled_sync (
4498     CphIfaceMechanism *proxy,
4499     const gchar *arg_name,
4500     gboolean arg_enabled,
4501     gchar **out_error,
4502     GCancellable *cancellable,
4503     GError **error)
4504 {
4505   GVariant *_ret;
4506   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4507     "PrinterSetEnabled",
4508     g_variant_new ("(sb)",
4509                    arg_name,
4510                    arg_enabled),
4511     G_DBUS_CALL_FLAGS_NONE,
4512     -1,
4513     cancellable,
4514     error);
4515   if (_ret == NULL)
4516     goto _out;
4517   g_variant_get (_ret,
4518                  "(s)",
4519                  out_error);
4520   g_variant_unref (_ret);
4521 _out:
4522   return _ret != NULL;
4523 }
4524 
4525 /**
4526  * cph_iface_mechanism_call_printer_set_accept_jobs:
4527  * @proxy: A #CphIfaceMechanismProxy.
4528  * @arg_name: Argument to pass with the method invocation.
4529  * @arg_enabled: Argument to pass with the method invocation.
4530  * @arg_reason: Argument to pass with the method invocation.
4531  * @cancellable: (allow-none): A #GCancellable or %NULL.
4532  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4533  * @user_data: User data to pass to @callback.
4534  *
4535  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetAcceptJobs">PrinterSetAcceptJobs()</link> D-Bus method on @proxy.
4536  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
4537  * You can then call cph_iface_mechanism_call_printer_set_accept_jobs_finish() to get the result of the operation.
4538  *
4539  * See cph_iface_mechanism_call_printer_set_accept_jobs_sync() for the synchronous, blocking version of this method.
4540  */
4541 void
cph_iface_mechanism_call_printer_set_accept_jobs(CphIfaceMechanism * proxy,const gchar * arg_name,gboolean arg_enabled,const gchar * arg_reason,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)4542 cph_iface_mechanism_call_printer_set_accept_jobs (
4543     CphIfaceMechanism *proxy,
4544     const gchar *arg_name,
4545     gboolean arg_enabled,
4546     const gchar *arg_reason,
4547     GCancellable *cancellable,
4548     GAsyncReadyCallback callback,
4549     gpointer user_data)
4550 {
4551   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4552     "PrinterSetAcceptJobs",
4553     g_variant_new ("(sbs)",
4554                    arg_name,
4555                    arg_enabled,
4556                    arg_reason),
4557     G_DBUS_CALL_FLAGS_NONE,
4558     -1,
4559     cancellable,
4560     callback,
4561     user_data);
4562 }
4563 
4564 /**
4565  * cph_iface_mechanism_call_printer_set_accept_jobs_finish:
4566  * @proxy: A #CphIfaceMechanismProxy.
4567  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4568  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_accept_jobs().
4569  * @error: Return location for error or %NULL.
4570  *
4571  * Finishes an operation started with cph_iface_mechanism_call_printer_set_accept_jobs().
4572  *
4573  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4574  */
4575 gboolean
cph_iface_mechanism_call_printer_set_accept_jobs_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)4576 cph_iface_mechanism_call_printer_set_accept_jobs_finish (
4577     CphIfaceMechanism *proxy,
4578     gchar **out_error,
4579     GAsyncResult *res,
4580     GError **error)
4581 {
4582   GVariant *_ret;
4583   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4584   if (_ret == NULL)
4585     goto _out;
4586   g_variant_get (_ret,
4587                  "(s)",
4588                  out_error);
4589   g_variant_unref (_ret);
4590 _out:
4591   return _ret != NULL;
4592 }
4593 
4594 /**
4595  * cph_iface_mechanism_call_printer_set_accept_jobs_sync:
4596  * @proxy: A #CphIfaceMechanismProxy.
4597  * @arg_name: Argument to pass with the method invocation.
4598  * @arg_enabled: Argument to pass with the method invocation.
4599  * @arg_reason: Argument to pass with the method invocation.
4600  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4601  * @cancellable: (allow-none): A #GCancellable or %NULL.
4602  * @error: Return location for error or %NULL.
4603  *
4604  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetAcceptJobs">PrinterSetAcceptJobs()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4605  *
4606  * See cph_iface_mechanism_call_printer_set_accept_jobs() for the asynchronous version of this method.
4607  *
4608  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4609  */
4610 gboolean
cph_iface_mechanism_call_printer_set_accept_jobs_sync(CphIfaceMechanism * proxy,const gchar * arg_name,gboolean arg_enabled,const gchar * arg_reason,gchar ** out_error,GCancellable * cancellable,GError ** error)4611 cph_iface_mechanism_call_printer_set_accept_jobs_sync (
4612     CphIfaceMechanism *proxy,
4613     const gchar *arg_name,
4614     gboolean arg_enabled,
4615     const gchar *arg_reason,
4616     gchar **out_error,
4617     GCancellable *cancellable,
4618     GError **error)
4619 {
4620   GVariant *_ret;
4621   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4622     "PrinterSetAcceptJobs",
4623     g_variant_new ("(sbs)",
4624                    arg_name,
4625                    arg_enabled,
4626                    arg_reason),
4627     G_DBUS_CALL_FLAGS_NONE,
4628     -1,
4629     cancellable,
4630     error);
4631   if (_ret == NULL)
4632     goto _out;
4633   g_variant_get (_ret,
4634                  "(s)",
4635                  out_error);
4636   g_variant_unref (_ret);
4637 _out:
4638   return _ret != NULL;
4639 }
4640 
4641 /**
4642  * cph_iface_mechanism_call_printer_rename:
4643  * @proxy: A #CphIfaceMechanismProxy.
4644  * @arg_old_name: Argument to pass with the method invocation.
4645  * @arg_new_name: Argument to pass with the method invocation.
4646  * @cancellable: (allow-none): A #GCancellable or %NULL.
4647  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4648  * @user_data: User data to pass to @callback.
4649  *
4650  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterRename">PrinterRename()</link> D-Bus method on @proxy.
4651  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
4652  * You can then call cph_iface_mechanism_call_printer_rename_finish() to get the result of the operation.
4653  *
4654  * See cph_iface_mechanism_call_printer_rename_sync() for the synchronous, blocking version of this method.
4655  */
4656 void
cph_iface_mechanism_call_printer_rename(CphIfaceMechanism * proxy,const gchar * arg_old_name,const gchar * arg_new_name,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)4657 cph_iface_mechanism_call_printer_rename (
4658     CphIfaceMechanism *proxy,
4659     const gchar *arg_old_name,
4660     const gchar *arg_new_name,
4661     GCancellable *cancellable,
4662     GAsyncReadyCallback callback,
4663     gpointer user_data)
4664 {
4665   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4666     "PrinterRename",
4667     g_variant_new ("(ss)",
4668                    arg_old_name,
4669                    arg_new_name),
4670     G_DBUS_CALL_FLAGS_NONE,
4671     -1,
4672     cancellable,
4673     callback,
4674     user_data);
4675 }
4676 
4677 /**
4678  * cph_iface_mechanism_call_printer_rename_finish:
4679  * @proxy: A #CphIfaceMechanismProxy.
4680  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4681  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_rename().
4682  * @error: Return location for error or %NULL.
4683  *
4684  * Finishes an operation started with cph_iface_mechanism_call_printer_rename().
4685  *
4686  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4687  */
4688 gboolean
cph_iface_mechanism_call_printer_rename_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)4689 cph_iface_mechanism_call_printer_rename_finish (
4690     CphIfaceMechanism *proxy,
4691     gchar **out_error,
4692     GAsyncResult *res,
4693     GError **error)
4694 {
4695   GVariant *_ret;
4696   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4697   if (_ret == NULL)
4698     goto _out;
4699   g_variant_get (_ret,
4700                  "(s)",
4701                  out_error);
4702   g_variant_unref (_ret);
4703 _out:
4704   return _ret != NULL;
4705 }
4706 
4707 /**
4708  * cph_iface_mechanism_call_printer_rename_sync:
4709  * @proxy: A #CphIfaceMechanismProxy.
4710  * @arg_old_name: Argument to pass with the method invocation.
4711  * @arg_new_name: Argument to pass with the method invocation.
4712  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4713  * @cancellable: (allow-none): A #GCancellable or %NULL.
4714  * @error: Return location for error or %NULL.
4715  *
4716  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterRename">PrinterRename()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4717  *
4718  * See cph_iface_mechanism_call_printer_rename() for the asynchronous version of this method.
4719  *
4720  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4721  */
4722 gboolean
cph_iface_mechanism_call_printer_rename_sync(CphIfaceMechanism * proxy,const gchar * arg_old_name,const gchar * arg_new_name,gchar ** out_error,GCancellable * cancellable,GError ** error)4723 cph_iface_mechanism_call_printer_rename_sync (
4724     CphIfaceMechanism *proxy,
4725     const gchar *arg_old_name,
4726     const gchar *arg_new_name,
4727     gchar **out_error,
4728     GCancellable *cancellable,
4729     GError **error)
4730 {
4731   GVariant *_ret;
4732   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4733     "PrinterRename",
4734     g_variant_new ("(ss)",
4735                    arg_old_name,
4736                    arg_new_name),
4737     G_DBUS_CALL_FLAGS_NONE,
4738     -1,
4739     cancellable,
4740     error);
4741   if (_ret == NULL)
4742     goto _out;
4743   g_variant_get (_ret,
4744                  "(s)",
4745                  out_error);
4746   g_variant_unref (_ret);
4747 _out:
4748   return _ret != NULL;
4749 }
4750 
4751 /**
4752  * cph_iface_mechanism_call_printer_delete:
4753  * @proxy: A #CphIfaceMechanismProxy.
4754  * @arg_name: Argument to pass with the method invocation.
4755  * @cancellable: (allow-none): A #GCancellable or %NULL.
4756  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4757  * @user_data: User data to pass to @callback.
4758  *
4759  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterDelete">PrinterDelete()</link> D-Bus method on @proxy.
4760  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
4761  * You can then call cph_iface_mechanism_call_printer_delete_finish() to get the result of the operation.
4762  *
4763  * See cph_iface_mechanism_call_printer_delete_sync() for the synchronous, blocking version of this method.
4764  */
4765 void
cph_iface_mechanism_call_printer_delete(CphIfaceMechanism * proxy,const gchar * arg_name,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)4766 cph_iface_mechanism_call_printer_delete (
4767     CphIfaceMechanism *proxy,
4768     const gchar *arg_name,
4769     GCancellable *cancellable,
4770     GAsyncReadyCallback callback,
4771     gpointer user_data)
4772 {
4773   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4774     "PrinterDelete",
4775     g_variant_new ("(s)",
4776                    arg_name),
4777     G_DBUS_CALL_FLAGS_NONE,
4778     -1,
4779     cancellable,
4780     callback,
4781     user_data);
4782 }
4783 
4784 /**
4785  * cph_iface_mechanism_call_printer_delete_finish:
4786  * @proxy: A #CphIfaceMechanismProxy.
4787  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4788  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_delete().
4789  * @error: Return location for error or %NULL.
4790  *
4791  * Finishes an operation started with cph_iface_mechanism_call_printer_delete().
4792  *
4793  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4794  */
4795 gboolean
cph_iface_mechanism_call_printer_delete_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)4796 cph_iface_mechanism_call_printer_delete_finish (
4797     CphIfaceMechanism *proxy,
4798     gchar **out_error,
4799     GAsyncResult *res,
4800     GError **error)
4801 {
4802   GVariant *_ret;
4803   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4804   if (_ret == NULL)
4805     goto _out;
4806   g_variant_get (_ret,
4807                  "(s)",
4808                  out_error);
4809   g_variant_unref (_ret);
4810 _out:
4811   return _ret != NULL;
4812 }
4813 
4814 /**
4815  * cph_iface_mechanism_call_printer_delete_sync:
4816  * @proxy: A #CphIfaceMechanismProxy.
4817  * @arg_name: Argument to pass with the method invocation.
4818  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4819  * @cancellable: (allow-none): A #GCancellable or %NULL.
4820  * @error: Return location for error or %NULL.
4821  *
4822  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterDelete">PrinterDelete()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4823  *
4824  * See cph_iface_mechanism_call_printer_delete() for the asynchronous version of this method.
4825  *
4826  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4827  */
4828 gboolean
cph_iface_mechanism_call_printer_delete_sync(CphIfaceMechanism * proxy,const gchar * arg_name,gchar ** out_error,GCancellable * cancellable,GError ** error)4829 cph_iface_mechanism_call_printer_delete_sync (
4830     CphIfaceMechanism *proxy,
4831     const gchar *arg_name,
4832     gchar **out_error,
4833     GCancellable *cancellable,
4834     GError **error)
4835 {
4836   GVariant *_ret;
4837   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4838     "PrinterDelete",
4839     g_variant_new ("(s)",
4840                    arg_name),
4841     G_DBUS_CALL_FLAGS_NONE,
4842     -1,
4843     cancellable,
4844     error);
4845   if (_ret == NULL)
4846     goto _out;
4847   g_variant_get (_ret,
4848                  "(s)",
4849                  out_error);
4850   g_variant_unref (_ret);
4851 _out:
4852   return _ret != NULL;
4853 }
4854 
4855 /**
4856  * cph_iface_mechanism_call_class_add_printer:
4857  * @proxy: A #CphIfaceMechanismProxy.
4858  * @arg_name: Argument to pass with the method invocation.
4859  * @arg_printer: Argument to pass with the method invocation.
4860  * @cancellable: (allow-none): A #GCancellable or %NULL.
4861  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4862  * @user_data: User data to pass to @callback.
4863  *
4864  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassAddPrinter">ClassAddPrinter()</link> D-Bus method on @proxy.
4865  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
4866  * You can then call cph_iface_mechanism_call_class_add_printer_finish() to get the result of the operation.
4867  *
4868  * See cph_iface_mechanism_call_class_add_printer_sync() for the synchronous, blocking version of this method.
4869  */
4870 void
cph_iface_mechanism_call_class_add_printer(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_printer,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)4871 cph_iface_mechanism_call_class_add_printer (
4872     CphIfaceMechanism *proxy,
4873     const gchar *arg_name,
4874     const gchar *arg_printer,
4875     GCancellable *cancellable,
4876     GAsyncReadyCallback callback,
4877     gpointer user_data)
4878 {
4879   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4880     "ClassAddPrinter",
4881     g_variant_new ("(ss)",
4882                    arg_name,
4883                    arg_printer),
4884     G_DBUS_CALL_FLAGS_NONE,
4885     -1,
4886     cancellable,
4887     callback,
4888     user_data);
4889 }
4890 
4891 /**
4892  * cph_iface_mechanism_call_class_add_printer_finish:
4893  * @proxy: A #CphIfaceMechanismProxy.
4894  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4895  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_class_add_printer().
4896  * @error: Return location for error or %NULL.
4897  *
4898  * Finishes an operation started with cph_iface_mechanism_call_class_add_printer().
4899  *
4900  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4901  */
4902 gboolean
cph_iface_mechanism_call_class_add_printer_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)4903 cph_iface_mechanism_call_class_add_printer_finish (
4904     CphIfaceMechanism *proxy,
4905     gchar **out_error,
4906     GAsyncResult *res,
4907     GError **error)
4908 {
4909   GVariant *_ret;
4910   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4911   if (_ret == NULL)
4912     goto _out;
4913   g_variant_get (_ret,
4914                  "(s)",
4915                  out_error);
4916   g_variant_unref (_ret);
4917 _out:
4918   return _ret != NULL;
4919 }
4920 
4921 /**
4922  * cph_iface_mechanism_call_class_add_printer_sync:
4923  * @proxy: A #CphIfaceMechanismProxy.
4924  * @arg_name: Argument to pass with the method invocation.
4925  * @arg_printer: Argument to pass with the method invocation.
4926  * @out_error: (out): Return location for return parameter or %NULL to ignore.
4927  * @cancellable: (allow-none): A #GCancellable or %NULL.
4928  * @error: Return location for error or %NULL.
4929  *
4930  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassAddPrinter">ClassAddPrinter()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4931  *
4932  * See cph_iface_mechanism_call_class_add_printer() for the asynchronous version of this method.
4933  *
4934  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4935  */
4936 gboolean
cph_iface_mechanism_call_class_add_printer_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_printer,gchar ** out_error,GCancellable * cancellable,GError ** error)4937 cph_iface_mechanism_call_class_add_printer_sync (
4938     CphIfaceMechanism *proxy,
4939     const gchar *arg_name,
4940     const gchar *arg_printer,
4941     gchar **out_error,
4942     GCancellable *cancellable,
4943     GError **error)
4944 {
4945   GVariant *_ret;
4946   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4947     "ClassAddPrinter",
4948     g_variant_new ("(ss)",
4949                    arg_name,
4950                    arg_printer),
4951     G_DBUS_CALL_FLAGS_NONE,
4952     -1,
4953     cancellable,
4954     error);
4955   if (_ret == NULL)
4956     goto _out;
4957   g_variant_get (_ret,
4958                  "(s)",
4959                  out_error);
4960   g_variant_unref (_ret);
4961 _out:
4962   return _ret != NULL;
4963 }
4964 
4965 /**
4966  * cph_iface_mechanism_call_class_delete_printer:
4967  * @proxy: A #CphIfaceMechanismProxy.
4968  * @arg_name: Argument to pass with the method invocation.
4969  * @arg_printer: Argument to pass with the method invocation.
4970  * @cancellable: (allow-none): A #GCancellable or %NULL.
4971  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4972  * @user_data: User data to pass to @callback.
4973  *
4974  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassDeletePrinter">ClassDeletePrinter()</link> D-Bus method on @proxy.
4975  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
4976  * You can then call cph_iface_mechanism_call_class_delete_printer_finish() to get the result of the operation.
4977  *
4978  * See cph_iface_mechanism_call_class_delete_printer_sync() for the synchronous, blocking version of this method.
4979  */
4980 void
cph_iface_mechanism_call_class_delete_printer(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_printer,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)4981 cph_iface_mechanism_call_class_delete_printer (
4982     CphIfaceMechanism *proxy,
4983     const gchar *arg_name,
4984     const gchar *arg_printer,
4985     GCancellable *cancellable,
4986     GAsyncReadyCallback callback,
4987     gpointer user_data)
4988 {
4989   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4990     "ClassDeletePrinter",
4991     g_variant_new ("(ss)",
4992                    arg_name,
4993                    arg_printer),
4994     G_DBUS_CALL_FLAGS_NONE,
4995     -1,
4996     cancellable,
4997     callback,
4998     user_data);
4999 }
5000 
5001 /**
5002  * cph_iface_mechanism_call_class_delete_printer_finish:
5003  * @proxy: A #CphIfaceMechanismProxy.
5004  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5005  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_class_delete_printer().
5006  * @error: Return location for error or %NULL.
5007  *
5008  * Finishes an operation started with cph_iface_mechanism_call_class_delete_printer().
5009  *
5010  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5011  */
5012 gboolean
cph_iface_mechanism_call_class_delete_printer_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)5013 cph_iface_mechanism_call_class_delete_printer_finish (
5014     CphIfaceMechanism *proxy,
5015     gchar **out_error,
5016     GAsyncResult *res,
5017     GError **error)
5018 {
5019   GVariant *_ret;
5020   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5021   if (_ret == NULL)
5022     goto _out;
5023   g_variant_get (_ret,
5024                  "(s)",
5025                  out_error);
5026   g_variant_unref (_ret);
5027 _out:
5028   return _ret != NULL;
5029 }
5030 
5031 /**
5032  * cph_iface_mechanism_call_class_delete_printer_sync:
5033  * @proxy: A #CphIfaceMechanismProxy.
5034  * @arg_name: Argument to pass with the method invocation.
5035  * @arg_printer: Argument to pass with the method invocation.
5036  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5037  * @cancellable: (allow-none): A #GCancellable or %NULL.
5038  * @error: Return location for error or %NULL.
5039  *
5040  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassDeletePrinter">ClassDeletePrinter()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5041  *
5042  * See cph_iface_mechanism_call_class_delete_printer() for the asynchronous version of this method.
5043  *
5044  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5045  */
5046 gboolean
cph_iface_mechanism_call_class_delete_printer_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_printer,gchar ** out_error,GCancellable * cancellable,GError ** error)5047 cph_iface_mechanism_call_class_delete_printer_sync (
5048     CphIfaceMechanism *proxy,
5049     const gchar *arg_name,
5050     const gchar *arg_printer,
5051     gchar **out_error,
5052     GCancellable *cancellable,
5053     GError **error)
5054 {
5055   GVariant *_ret;
5056   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5057     "ClassDeletePrinter",
5058     g_variant_new ("(ss)",
5059                    arg_name,
5060                    arg_printer),
5061     G_DBUS_CALL_FLAGS_NONE,
5062     -1,
5063     cancellable,
5064     error);
5065   if (_ret == NULL)
5066     goto _out;
5067   g_variant_get (_ret,
5068                  "(s)",
5069                  out_error);
5070   g_variant_unref (_ret);
5071 _out:
5072   return _ret != NULL;
5073 }
5074 
5075 /**
5076  * cph_iface_mechanism_call_class_delete:
5077  * @proxy: A #CphIfaceMechanismProxy.
5078  * @arg_name: Argument to pass with the method invocation.
5079  * @cancellable: (allow-none): A #GCancellable or %NULL.
5080  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5081  * @user_data: User data to pass to @callback.
5082  *
5083  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassDelete">ClassDelete()</link> D-Bus method on @proxy.
5084  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5085  * You can then call cph_iface_mechanism_call_class_delete_finish() to get the result of the operation.
5086  *
5087  * See cph_iface_mechanism_call_class_delete_sync() for the synchronous, blocking version of this method.
5088  */
5089 void
cph_iface_mechanism_call_class_delete(CphIfaceMechanism * proxy,const gchar * arg_name,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)5090 cph_iface_mechanism_call_class_delete (
5091     CphIfaceMechanism *proxy,
5092     const gchar *arg_name,
5093     GCancellable *cancellable,
5094     GAsyncReadyCallback callback,
5095     gpointer user_data)
5096 {
5097   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5098     "ClassDelete",
5099     g_variant_new ("(s)",
5100                    arg_name),
5101     G_DBUS_CALL_FLAGS_NONE,
5102     -1,
5103     cancellable,
5104     callback,
5105     user_data);
5106 }
5107 
5108 /**
5109  * cph_iface_mechanism_call_class_delete_finish:
5110  * @proxy: A #CphIfaceMechanismProxy.
5111  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5112  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_class_delete().
5113  * @error: Return location for error or %NULL.
5114  *
5115  * Finishes an operation started with cph_iface_mechanism_call_class_delete().
5116  *
5117  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5118  */
5119 gboolean
cph_iface_mechanism_call_class_delete_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)5120 cph_iface_mechanism_call_class_delete_finish (
5121     CphIfaceMechanism *proxy,
5122     gchar **out_error,
5123     GAsyncResult *res,
5124     GError **error)
5125 {
5126   GVariant *_ret;
5127   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5128   if (_ret == NULL)
5129     goto _out;
5130   g_variant_get (_ret,
5131                  "(s)",
5132                  out_error);
5133   g_variant_unref (_ret);
5134 _out:
5135   return _ret != NULL;
5136 }
5137 
5138 /**
5139  * cph_iface_mechanism_call_class_delete_sync:
5140  * @proxy: A #CphIfaceMechanismProxy.
5141  * @arg_name: Argument to pass with the method invocation.
5142  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5143  * @cancellable: (allow-none): A #GCancellable or %NULL.
5144  * @error: Return location for error or %NULL.
5145  *
5146  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassDelete">ClassDelete()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5147  *
5148  * See cph_iface_mechanism_call_class_delete() for the asynchronous version of this method.
5149  *
5150  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5151  */
5152 gboolean
cph_iface_mechanism_call_class_delete_sync(CphIfaceMechanism * proxy,const gchar * arg_name,gchar ** out_error,GCancellable * cancellable,GError ** error)5153 cph_iface_mechanism_call_class_delete_sync (
5154     CphIfaceMechanism *proxy,
5155     const gchar *arg_name,
5156     gchar **out_error,
5157     GCancellable *cancellable,
5158     GError **error)
5159 {
5160   GVariant *_ret;
5161   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5162     "ClassDelete",
5163     g_variant_new ("(s)",
5164                    arg_name),
5165     G_DBUS_CALL_FLAGS_NONE,
5166     -1,
5167     cancellable,
5168     error);
5169   if (_ret == NULL)
5170     goto _out;
5171   g_variant_get (_ret,
5172                  "(s)",
5173                  out_error);
5174   g_variant_unref (_ret);
5175 _out:
5176   return _ret != NULL;
5177 }
5178 
5179 /**
5180  * cph_iface_mechanism_call_printer_set_info:
5181  * @proxy: A #CphIfaceMechanismProxy.
5182  * @arg_name: Argument to pass with the method invocation.
5183  * @arg_info: Argument to pass with the method invocation.
5184  * @cancellable: (allow-none): A #GCancellable or %NULL.
5185  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5186  * @user_data: User data to pass to @callback.
5187  *
5188  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetInfo">PrinterSetInfo()</link> D-Bus method on @proxy.
5189  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5190  * You can then call cph_iface_mechanism_call_printer_set_info_finish() to get the result of the operation.
5191  *
5192  * See cph_iface_mechanism_call_printer_set_info_sync() for the synchronous, blocking version of this method.
5193  */
5194 void
cph_iface_mechanism_call_printer_set_info(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_info,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)5195 cph_iface_mechanism_call_printer_set_info (
5196     CphIfaceMechanism *proxy,
5197     const gchar *arg_name,
5198     const gchar *arg_info,
5199     GCancellable *cancellable,
5200     GAsyncReadyCallback callback,
5201     gpointer user_data)
5202 {
5203   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5204     "PrinterSetInfo",
5205     g_variant_new ("(ss)",
5206                    arg_name,
5207                    arg_info),
5208     G_DBUS_CALL_FLAGS_NONE,
5209     -1,
5210     cancellable,
5211     callback,
5212     user_data);
5213 }
5214 
5215 /**
5216  * cph_iface_mechanism_call_printer_set_info_finish:
5217  * @proxy: A #CphIfaceMechanismProxy.
5218  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5219  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_info().
5220  * @error: Return location for error or %NULL.
5221  *
5222  * Finishes an operation started with cph_iface_mechanism_call_printer_set_info().
5223  *
5224  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5225  */
5226 gboolean
cph_iface_mechanism_call_printer_set_info_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)5227 cph_iface_mechanism_call_printer_set_info_finish (
5228     CphIfaceMechanism *proxy,
5229     gchar **out_error,
5230     GAsyncResult *res,
5231     GError **error)
5232 {
5233   GVariant *_ret;
5234   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5235   if (_ret == NULL)
5236     goto _out;
5237   g_variant_get (_ret,
5238                  "(s)",
5239                  out_error);
5240   g_variant_unref (_ret);
5241 _out:
5242   return _ret != NULL;
5243 }
5244 
5245 /**
5246  * cph_iface_mechanism_call_printer_set_info_sync:
5247  * @proxy: A #CphIfaceMechanismProxy.
5248  * @arg_name: Argument to pass with the method invocation.
5249  * @arg_info: Argument to pass with the method invocation.
5250  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5251  * @cancellable: (allow-none): A #GCancellable or %NULL.
5252  * @error: Return location for error or %NULL.
5253  *
5254  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetInfo">PrinterSetInfo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5255  *
5256  * See cph_iface_mechanism_call_printer_set_info() for the asynchronous version of this method.
5257  *
5258  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5259  */
5260 gboolean
cph_iface_mechanism_call_printer_set_info_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_info,gchar ** out_error,GCancellable * cancellable,GError ** error)5261 cph_iface_mechanism_call_printer_set_info_sync (
5262     CphIfaceMechanism *proxy,
5263     const gchar *arg_name,
5264     const gchar *arg_info,
5265     gchar **out_error,
5266     GCancellable *cancellable,
5267     GError **error)
5268 {
5269   GVariant *_ret;
5270   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5271     "PrinterSetInfo",
5272     g_variant_new ("(ss)",
5273                    arg_name,
5274                    arg_info),
5275     G_DBUS_CALL_FLAGS_NONE,
5276     -1,
5277     cancellable,
5278     error);
5279   if (_ret == NULL)
5280     goto _out;
5281   g_variant_get (_ret,
5282                  "(s)",
5283                  out_error);
5284   g_variant_unref (_ret);
5285 _out:
5286   return _ret != NULL;
5287 }
5288 
5289 /**
5290  * cph_iface_mechanism_call_printer_set_location:
5291  * @proxy: A #CphIfaceMechanismProxy.
5292  * @arg_name: Argument to pass with the method invocation.
5293  * @arg_location: Argument to pass with the method invocation.
5294  * @cancellable: (allow-none): A #GCancellable or %NULL.
5295  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5296  * @user_data: User data to pass to @callback.
5297  *
5298  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetLocation">PrinterSetLocation()</link> D-Bus method on @proxy.
5299  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5300  * You can then call cph_iface_mechanism_call_printer_set_location_finish() to get the result of the operation.
5301  *
5302  * See cph_iface_mechanism_call_printer_set_location_sync() for the synchronous, blocking version of this method.
5303  */
5304 void
cph_iface_mechanism_call_printer_set_location(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_location,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)5305 cph_iface_mechanism_call_printer_set_location (
5306     CphIfaceMechanism *proxy,
5307     const gchar *arg_name,
5308     const gchar *arg_location,
5309     GCancellable *cancellable,
5310     GAsyncReadyCallback callback,
5311     gpointer user_data)
5312 {
5313   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5314     "PrinterSetLocation",
5315     g_variant_new ("(ss)",
5316                    arg_name,
5317                    arg_location),
5318     G_DBUS_CALL_FLAGS_NONE,
5319     -1,
5320     cancellable,
5321     callback,
5322     user_data);
5323 }
5324 
5325 /**
5326  * cph_iface_mechanism_call_printer_set_location_finish:
5327  * @proxy: A #CphIfaceMechanismProxy.
5328  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5329  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_location().
5330  * @error: Return location for error or %NULL.
5331  *
5332  * Finishes an operation started with cph_iface_mechanism_call_printer_set_location().
5333  *
5334  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5335  */
5336 gboolean
cph_iface_mechanism_call_printer_set_location_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)5337 cph_iface_mechanism_call_printer_set_location_finish (
5338     CphIfaceMechanism *proxy,
5339     gchar **out_error,
5340     GAsyncResult *res,
5341     GError **error)
5342 {
5343   GVariant *_ret;
5344   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5345   if (_ret == NULL)
5346     goto _out;
5347   g_variant_get (_ret,
5348                  "(s)",
5349                  out_error);
5350   g_variant_unref (_ret);
5351 _out:
5352   return _ret != NULL;
5353 }
5354 
5355 /**
5356  * cph_iface_mechanism_call_printer_set_location_sync:
5357  * @proxy: A #CphIfaceMechanismProxy.
5358  * @arg_name: Argument to pass with the method invocation.
5359  * @arg_location: Argument to pass with the method invocation.
5360  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5361  * @cancellable: (allow-none): A #GCancellable or %NULL.
5362  * @error: Return location for error or %NULL.
5363  *
5364  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetLocation">PrinterSetLocation()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5365  *
5366  * See cph_iface_mechanism_call_printer_set_location() for the asynchronous version of this method.
5367  *
5368  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5369  */
5370 gboolean
cph_iface_mechanism_call_printer_set_location_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_location,gchar ** out_error,GCancellable * cancellable,GError ** error)5371 cph_iface_mechanism_call_printer_set_location_sync (
5372     CphIfaceMechanism *proxy,
5373     const gchar *arg_name,
5374     const gchar *arg_location,
5375     gchar **out_error,
5376     GCancellable *cancellable,
5377     GError **error)
5378 {
5379   GVariant *_ret;
5380   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5381     "PrinterSetLocation",
5382     g_variant_new ("(ss)",
5383                    arg_name,
5384                    arg_location),
5385     G_DBUS_CALL_FLAGS_NONE,
5386     -1,
5387     cancellable,
5388     error);
5389   if (_ret == NULL)
5390     goto _out;
5391   g_variant_get (_ret,
5392                  "(s)",
5393                  out_error);
5394   g_variant_unref (_ret);
5395 _out:
5396   return _ret != NULL;
5397 }
5398 
5399 /**
5400  * cph_iface_mechanism_call_printer_set_shared:
5401  * @proxy: A #CphIfaceMechanismProxy.
5402  * @arg_name: Argument to pass with the method invocation.
5403  * @arg_shared: Argument to pass with the method invocation.
5404  * @cancellable: (allow-none): A #GCancellable or %NULL.
5405  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5406  * @user_data: User data to pass to @callback.
5407  *
5408  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetShared">PrinterSetShared()</link> D-Bus method on @proxy.
5409  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5410  * You can then call cph_iface_mechanism_call_printer_set_shared_finish() to get the result of the operation.
5411  *
5412  * See cph_iface_mechanism_call_printer_set_shared_sync() for the synchronous, blocking version of this method.
5413  */
5414 void
cph_iface_mechanism_call_printer_set_shared(CphIfaceMechanism * proxy,const gchar * arg_name,gboolean arg_shared,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)5415 cph_iface_mechanism_call_printer_set_shared (
5416     CphIfaceMechanism *proxy,
5417     const gchar *arg_name,
5418     gboolean arg_shared,
5419     GCancellable *cancellable,
5420     GAsyncReadyCallback callback,
5421     gpointer user_data)
5422 {
5423   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5424     "PrinterSetShared",
5425     g_variant_new ("(sb)",
5426                    arg_name,
5427                    arg_shared),
5428     G_DBUS_CALL_FLAGS_NONE,
5429     -1,
5430     cancellable,
5431     callback,
5432     user_data);
5433 }
5434 
5435 /**
5436  * cph_iface_mechanism_call_printer_set_shared_finish:
5437  * @proxy: A #CphIfaceMechanismProxy.
5438  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5439  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_shared().
5440  * @error: Return location for error or %NULL.
5441  *
5442  * Finishes an operation started with cph_iface_mechanism_call_printer_set_shared().
5443  *
5444  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5445  */
5446 gboolean
cph_iface_mechanism_call_printer_set_shared_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)5447 cph_iface_mechanism_call_printer_set_shared_finish (
5448     CphIfaceMechanism *proxy,
5449     gchar **out_error,
5450     GAsyncResult *res,
5451     GError **error)
5452 {
5453   GVariant *_ret;
5454   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5455   if (_ret == NULL)
5456     goto _out;
5457   g_variant_get (_ret,
5458                  "(s)",
5459                  out_error);
5460   g_variant_unref (_ret);
5461 _out:
5462   return _ret != NULL;
5463 }
5464 
5465 /**
5466  * cph_iface_mechanism_call_printer_set_shared_sync:
5467  * @proxy: A #CphIfaceMechanismProxy.
5468  * @arg_name: Argument to pass with the method invocation.
5469  * @arg_shared: Argument to pass with the method invocation.
5470  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5471  * @cancellable: (allow-none): A #GCancellable or %NULL.
5472  * @error: Return location for error or %NULL.
5473  *
5474  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetShared">PrinterSetShared()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5475  *
5476  * See cph_iface_mechanism_call_printer_set_shared() for the asynchronous version of this method.
5477  *
5478  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5479  */
5480 gboolean
cph_iface_mechanism_call_printer_set_shared_sync(CphIfaceMechanism * proxy,const gchar * arg_name,gboolean arg_shared,gchar ** out_error,GCancellable * cancellable,GError ** error)5481 cph_iface_mechanism_call_printer_set_shared_sync (
5482     CphIfaceMechanism *proxy,
5483     const gchar *arg_name,
5484     gboolean arg_shared,
5485     gchar **out_error,
5486     GCancellable *cancellable,
5487     GError **error)
5488 {
5489   GVariant *_ret;
5490   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5491     "PrinterSetShared",
5492     g_variant_new ("(sb)",
5493                    arg_name,
5494                    arg_shared),
5495     G_DBUS_CALL_FLAGS_NONE,
5496     -1,
5497     cancellable,
5498     error);
5499   if (_ret == NULL)
5500     goto _out;
5501   g_variant_get (_ret,
5502                  "(s)",
5503                  out_error);
5504   g_variant_unref (_ret);
5505 _out:
5506   return _ret != NULL;
5507 }
5508 
5509 /**
5510  * cph_iface_mechanism_call_printer_set_job_sheets:
5511  * @proxy: A #CphIfaceMechanismProxy.
5512  * @arg_name: Argument to pass with the method invocation.
5513  * @arg_start: Argument to pass with the method invocation.
5514  * @arg_end: Argument to pass with the method invocation.
5515  * @cancellable: (allow-none): A #GCancellable or %NULL.
5516  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5517  * @user_data: User data to pass to @callback.
5518  *
5519  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetJobSheets">PrinterSetJobSheets()</link> D-Bus method on @proxy.
5520  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5521  * You can then call cph_iface_mechanism_call_printer_set_job_sheets_finish() to get the result of the operation.
5522  *
5523  * See cph_iface_mechanism_call_printer_set_job_sheets_sync() for the synchronous, blocking version of this method.
5524  */
5525 void
cph_iface_mechanism_call_printer_set_job_sheets(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_start,const gchar * arg_end,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)5526 cph_iface_mechanism_call_printer_set_job_sheets (
5527     CphIfaceMechanism *proxy,
5528     const gchar *arg_name,
5529     const gchar *arg_start,
5530     const gchar *arg_end,
5531     GCancellable *cancellable,
5532     GAsyncReadyCallback callback,
5533     gpointer user_data)
5534 {
5535   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5536     "PrinterSetJobSheets",
5537     g_variant_new ("(sss)",
5538                    arg_name,
5539                    arg_start,
5540                    arg_end),
5541     G_DBUS_CALL_FLAGS_NONE,
5542     -1,
5543     cancellable,
5544     callback,
5545     user_data);
5546 }
5547 
5548 /**
5549  * cph_iface_mechanism_call_printer_set_job_sheets_finish:
5550  * @proxy: A #CphIfaceMechanismProxy.
5551  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5552  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_job_sheets().
5553  * @error: Return location for error or %NULL.
5554  *
5555  * Finishes an operation started with cph_iface_mechanism_call_printer_set_job_sheets().
5556  *
5557  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5558  */
5559 gboolean
cph_iface_mechanism_call_printer_set_job_sheets_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)5560 cph_iface_mechanism_call_printer_set_job_sheets_finish (
5561     CphIfaceMechanism *proxy,
5562     gchar **out_error,
5563     GAsyncResult *res,
5564     GError **error)
5565 {
5566   GVariant *_ret;
5567   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5568   if (_ret == NULL)
5569     goto _out;
5570   g_variant_get (_ret,
5571                  "(s)",
5572                  out_error);
5573   g_variant_unref (_ret);
5574 _out:
5575   return _ret != NULL;
5576 }
5577 
5578 /**
5579  * cph_iface_mechanism_call_printer_set_job_sheets_sync:
5580  * @proxy: A #CphIfaceMechanismProxy.
5581  * @arg_name: Argument to pass with the method invocation.
5582  * @arg_start: Argument to pass with the method invocation.
5583  * @arg_end: Argument to pass with the method invocation.
5584  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5585  * @cancellable: (allow-none): A #GCancellable or %NULL.
5586  * @error: Return location for error or %NULL.
5587  *
5588  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetJobSheets">PrinterSetJobSheets()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5589  *
5590  * See cph_iface_mechanism_call_printer_set_job_sheets() for the asynchronous version of this method.
5591  *
5592  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5593  */
5594 gboolean
cph_iface_mechanism_call_printer_set_job_sheets_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_start,const gchar * arg_end,gchar ** out_error,GCancellable * cancellable,GError ** error)5595 cph_iface_mechanism_call_printer_set_job_sheets_sync (
5596     CphIfaceMechanism *proxy,
5597     const gchar *arg_name,
5598     const gchar *arg_start,
5599     const gchar *arg_end,
5600     gchar **out_error,
5601     GCancellable *cancellable,
5602     GError **error)
5603 {
5604   GVariant *_ret;
5605   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5606     "PrinterSetJobSheets",
5607     g_variant_new ("(sss)",
5608                    arg_name,
5609                    arg_start,
5610                    arg_end),
5611     G_DBUS_CALL_FLAGS_NONE,
5612     -1,
5613     cancellable,
5614     error);
5615   if (_ret == NULL)
5616     goto _out;
5617   g_variant_get (_ret,
5618                  "(s)",
5619                  out_error);
5620   g_variant_unref (_ret);
5621 _out:
5622   return _ret != NULL;
5623 }
5624 
5625 /**
5626  * cph_iface_mechanism_call_printer_set_error_policy:
5627  * @proxy: A #CphIfaceMechanismProxy.
5628  * @arg_name: Argument to pass with the method invocation.
5629  * @arg_policy: Argument to pass with the method invocation.
5630  * @cancellable: (allow-none): A #GCancellable or %NULL.
5631  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5632  * @user_data: User data to pass to @callback.
5633  *
5634  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetErrorPolicy">PrinterSetErrorPolicy()</link> D-Bus method on @proxy.
5635  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5636  * You can then call cph_iface_mechanism_call_printer_set_error_policy_finish() to get the result of the operation.
5637  *
5638  * See cph_iface_mechanism_call_printer_set_error_policy_sync() for the synchronous, blocking version of this method.
5639  */
5640 void
cph_iface_mechanism_call_printer_set_error_policy(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_policy,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)5641 cph_iface_mechanism_call_printer_set_error_policy (
5642     CphIfaceMechanism *proxy,
5643     const gchar *arg_name,
5644     const gchar *arg_policy,
5645     GCancellable *cancellable,
5646     GAsyncReadyCallback callback,
5647     gpointer user_data)
5648 {
5649   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5650     "PrinterSetErrorPolicy",
5651     g_variant_new ("(ss)",
5652                    arg_name,
5653                    arg_policy),
5654     G_DBUS_CALL_FLAGS_NONE,
5655     -1,
5656     cancellable,
5657     callback,
5658     user_data);
5659 }
5660 
5661 /**
5662  * cph_iface_mechanism_call_printer_set_error_policy_finish:
5663  * @proxy: A #CphIfaceMechanismProxy.
5664  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5665  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_error_policy().
5666  * @error: Return location for error or %NULL.
5667  *
5668  * Finishes an operation started with cph_iface_mechanism_call_printer_set_error_policy().
5669  *
5670  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5671  */
5672 gboolean
cph_iface_mechanism_call_printer_set_error_policy_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)5673 cph_iface_mechanism_call_printer_set_error_policy_finish (
5674     CphIfaceMechanism *proxy,
5675     gchar **out_error,
5676     GAsyncResult *res,
5677     GError **error)
5678 {
5679   GVariant *_ret;
5680   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5681   if (_ret == NULL)
5682     goto _out;
5683   g_variant_get (_ret,
5684                  "(s)",
5685                  out_error);
5686   g_variant_unref (_ret);
5687 _out:
5688   return _ret != NULL;
5689 }
5690 
5691 /**
5692  * cph_iface_mechanism_call_printer_set_error_policy_sync:
5693  * @proxy: A #CphIfaceMechanismProxy.
5694  * @arg_name: Argument to pass with the method invocation.
5695  * @arg_policy: Argument to pass with the method invocation.
5696  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5697  * @cancellable: (allow-none): A #GCancellable or %NULL.
5698  * @error: Return location for error or %NULL.
5699  *
5700  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetErrorPolicy">PrinterSetErrorPolicy()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5701  *
5702  * See cph_iface_mechanism_call_printer_set_error_policy() for the asynchronous version of this method.
5703  *
5704  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5705  */
5706 gboolean
cph_iface_mechanism_call_printer_set_error_policy_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_policy,gchar ** out_error,GCancellable * cancellable,GError ** error)5707 cph_iface_mechanism_call_printer_set_error_policy_sync (
5708     CphIfaceMechanism *proxy,
5709     const gchar *arg_name,
5710     const gchar *arg_policy,
5711     gchar **out_error,
5712     GCancellable *cancellable,
5713     GError **error)
5714 {
5715   GVariant *_ret;
5716   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5717     "PrinterSetErrorPolicy",
5718     g_variant_new ("(ss)",
5719                    arg_name,
5720                    arg_policy),
5721     G_DBUS_CALL_FLAGS_NONE,
5722     -1,
5723     cancellable,
5724     error);
5725   if (_ret == NULL)
5726     goto _out;
5727   g_variant_get (_ret,
5728                  "(s)",
5729                  out_error);
5730   g_variant_unref (_ret);
5731 _out:
5732   return _ret != NULL;
5733 }
5734 
5735 /**
5736  * cph_iface_mechanism_call_printer_set_op_policy:
5737  * @proxy: A #CphIfaceMechanismProxy.
5738  * @arg_name: Argument to pass with the method invocation.
5739  * @arg_policy: Argument to pass with the method invocation.
5740  * @cancellable: (allow-none): A #GCancellable or %NULL.
5741  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5742  * @user_data: User data to pass to @callback.
5743  *
5744  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetOpPolicy">PrinterSetOpPolicy()</link> D-Bus method on @proxy.
5745  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5746  * You can then call cph_iface_mechanism_call_printer_set_op_policy_finish() to get the result of the operation.
5747  *
5748  * See cph_iface_mechanism_call_printer_set_op_policy_sync() for the synchronous, blocking version of this method.
5749  */
5750 void
cph_iface_mechanism_call_printer_set_op_policy(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_policy,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)5751 cph_iface_mechanism_call_printer_set_op_policy (
5752     CphIfaceMechanism *proxy,
5753     const gchar *arg_name,
5754     const gchar *arg_policy,
5755     GCancellable *cancellable,
5756     GAsyncReadyCallback callback,
5757     gpointer user_data)
5758 {
5759   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5760     "PrinterSetOpPolicy",
5761     g_variant_new ("(ss)",
5762                    arg_name,
5763                    arg_policy),
5764     G_DBUS_CALL_FLAGS_NONE,
5765     -1,
5766     cancellable,
5767     callback,
5768     user_data);
5769 }
5770 
5771 /**
5772  * cph_iface_mechanism_call_printer_set_op_policy_finish:
5773  * @proxy: A #CphIfaceMechanismProxy.
5774  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5775  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_op_policy().
5776  * @error: Return location for error or %NULL.
5777  *
5778  * Finishes an operation started with cph_iface_mechanism_call_printer_set_op_policy().
5779  *
5780  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5781  */
5782 gboolean
cph_iface_mechanism_call_printer_set_op_policy_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)5783 cph_iface_mechanism_call_printer_set_op_policy_finish (
5784     CphIfaceMechanism *proxy,
5785     gchar **out_error,
5786     GAsyncResult *res,
5787     GError **error)
5788 {
5789   GVariant *_ret;
5790   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5791   if (_ret == NULL)
5792     goto _out;
5793   g_variant_get (_ret,
5794                  "(s)",
5795                  out_error);
5796   g_variant_unref (_ret);
5797 _out:
5798   return _ret != NULL;
5799 }
5800 
5801 /**
5802  * cph_iface_mechanism_call_printer_set_op_policy_sync:
5803  * @proxy: A #CphIfaceMechanismProxy.
5804  * @arg_name: Argument to pass with the method invocation.
5805  * @arg_policy: Argument to pass with the method invocation.
5806  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5807  * @cancellable: (allow-none): A #GCancellable or %NULL.
5808  * @error: Return location for error or %NULL.
5809  *
5810  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetOpPolicy">PrinterSetOpPolicy()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5811  *
5812  * See cph_iface_mechanism_call_printer_set_op_policy() for the asynchronous version of this method.
5813  *
5814  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5815  */
5816 gboolean
cph_iface_mechanism_call_printer_set_op_policy_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_policy,gchar ** out_error,GCancellable * cancellable,GError ** error)5817 cph_iface_mechanism_call_printer_set_op_policy_sync (
5818     CphIfaceMechanism *proxy,
5819     const gchar *arg_name,
5820     const gchar *arg_policy,
5821     gchar **out_error,
5822     GCancellable *cancellable,
5823     GError **error)
5824 {
5825   GVariant *_ret;
5826   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5827     "PrinterSetOpPolicy",
5828     g_variant_new ("(ss)",
5829                    arg_name,
5830                    arg_policy),
5831     G_DBUS_CALL_FLAGS_NONE,
5832     -1,
5833     cancellable,
5834     error);
5835   if (_ret == NULL)
5836     goto _out;
5837   g_variant_get (_ret,
5838                  "(s)",
5839                  out_error);
5840   g_variant_unref (_ret);
5841 _out:
5842   return _ret != NULL;
5843 }
5844 
5845 /**
5846  * cph_iface_mechanism_call_printer_set_users_allowed:
5847  * @proxy: A #CphIfaceMechanismProxy.
5848  * @arg_name: Argument to pass with the method invocation.
5849  * @arg_users: Argument to pass with the method invocation.
5850  * @cancellable: (allow-none): A #GCancellable or %NULL.
5851  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5852  * @user_data: User data to pass to @callback.
5853  *
5854  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetUsersAllowed">PrinterSetUsersAllowed()</link> D-Bus method on @proxy.
5855  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5856  * You can then call cph_iface_mechanism_call_printer_set_users_allowed_finish() to get the result of the operation.
5857  *
5858  * See cph_iface_mechanism_call_printer_set_users_allowed_sync() for the synchronous, blocking version of this method.
5859  */
5860 void
cph_iface_mechanism_call_printer_set_users_allowed(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * const * arg_users,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)5861 cph_iface_mechanism_call_printer_set_users_allowed (
5862     CphIfaceMechanism *proxy,
5863     const gchar *arg_name,
5864     const gchar *const *arg_users,
5865     GCancellable *cancellable,
5866     GAsyncReadyCallback callback,
5867     gpointer user_data)
5868 {
5869   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5870     "PrinterSetUsersAllowed",
5871     g_variant_new ("(s^as)",
5872                    arg_name,
5873                    arg_users),
5874     G_DBUS_CALL_FLAGS_NONE,
5875     -1,
5876     cancellable,
5877     callback,
5878     user_data);
5879 }
5880 
5881 /**
5882  * cph_iface_mechanism_call_printer_set_users_allowed_finish:
5883  * @proxy: A #CphIfaceMechanismProxy.
5884  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5885  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_users_allowed().
5886  * @error: Return location for error or %NULL.
5887  *
5888  * Finishes an operation started with cph_iface_mechanism_call_printer_set_users_allowed().
5889  *
5890  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5891  */
5892 gboolean
cph_iface_mechanism_call_printer_set_users_allowed_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)5893 cph_iface_mechanism_call_printer_set_users_allowed_finish (
5894     CphIfaceMechanism *proxy,
5895     gchar **out_error,
5896     GAsyncResult *res,
5897     GError **error)
5898 {
5899   GVariant *_ret;
5900   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5901   if (_ret == NULL)
5902     goto _out;
5903   g_variant_get (_ret,
5904                  "(s)",
5905                  out_error);
5906   g_variant_unref (_ret);
5907 _out:
5908   return _ret != NULL;
5909 }
5910 
5911 /**
5912  * cph_iface_mechanism_call_printer_set_users_allowed_sync:
5913  * @proxy: A #CphIfaceMechanismProxy.
5914  * @arg_name: Argument to pass with the method invocation.
5915  * @arg_users: Argument to pass with the method invocation.
5916  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5917  * @cancellable: (allow-none): A #GCancellable or %NULL.
5918  * @error: Return location for error or %NULL.
5919  *
5920  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetUsersAllowed">PrinterSetUsersAllowed()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5921  *
5922  * See cph_iface_mechanism_call_printer_set_users_allowed() for the asynchronous version of this method.
5923  *
5924  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5925  */
5926 gboolean
cph_iface_mechanism_call_printer_set_users_allowed_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * const * arg_users,gchar ** out_error,GCancellable * cancellable,GError ** error)5927 cph_iface_mechanism_call_printer_set_users_allowed_sync (
5928     CphIfaceMechanism *proxy,
5929     const gchar *arg_name,
5930     const gchar *const *arg_users,
5931     gchar **out_error,
5932     GCancellable *cancellable,
5933     GError **error)
5934 {
5935   GVariant *_ret;
5936   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5937     "PrinterSetUsersAllowed",
5938     g_variant_new ("(s^as)",
5939                    arg_name,
5940                    arg_users),
5941     G_DBUS_CALL_FLAGS_NONE,
5942     -1,
5943     cancellable,
5944     error);
5945   if (_ret == NULL)
5946     goto _out;
5947   g_variant_get (_ret,
5948                  "(s)",
5949                  out_error);
5950   g_variant_unref (_ret);
5951 _out:
5952   return _ret != NULL;
5953 }
5954 
5955 /**
5956  * cph_iface_mechanism_call_printer_set_users_denied:
5957  * @proxy: A #CphIfaceMechanismProxy.
5958  * @arg_name: Argument to pass with the method invocation.
5959  * @arg_users: Argument to pass with the method invocation.
5960  * @cancellable: (allow-none): A #GCancellable or %NULL.
5961  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5962  * @user_data: User data to pass to @callback.
5963  *
5964  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetUsersDenied">PrinterSetUsersDenied()</link> D-Bus method on @proxy.
5965  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5966  * You can then call cph_iface_mechanism_call_printer_set_users_denied_finish() to get the result of the operation.
5967  *
5968  * See cph_iface_mechanism_call_printer_set_users_denied_sync() for the synchronous, blocking version of this method.
5969  */
5970 void
cph_iface_mechanism_call_printer_set_users_denied(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * const * arg_users,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)5971 cph_iface_mechanism_call_printer_set_users_denied (
5972     CphIfaceMechanism *proxy,
5973     const gchar *arg_name,
5974     const gchar *const *arg_users,
5975     GCancellable *cancellable,
5976     GAsyncReadyCallback callback,
5977     gpointer user_data)
5978 {
5979   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5980     "PrinterSetUsersDenied",
5981     g_variant_new ("(s^as)",
5982                    arg_name,
5983                    arg_users),
5984     G_DBUS_CALL_FLAGS_NONE,
5985     -1,
5986     cancellable,
5987     callback,
5988     user_data);
5989 }
5990 
5991 /**
5992  * cph_iface_mechanism_call_printer_set_users_denied_finish:
5993  * @proxy: A #CphIfaceMechanismProxy.
5994  * @out_error: (out): Return location for return parameter or %NULL to ignore.
5995  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_set_users_denied().
5996  * @error: Return location for error or %NULL.
5997  *
5998  * Finishes an operation started with cph_iface_mechanism_call_printer_set_users_denied().
5999  *
6000  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6001  */
6002 gboolean
cph_iface_mechanism_call_printer_set_users_denied_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)6003 cph_iface_mechanism_call_printer_set_users_denied_finish (
6004     CphIfaceMechanism *proxy,
6005     gchar **out_error,
6006     GAsyncResult *res,
6007     GError **error)
6008 {
6009   GVariant *_ret;
6010   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6011   if (_ret == NULL)
6012     goto _out;
6013   g_variant_get (_ret,
6014                  "(s)",
6015                  out_error);
6016   g_variant_unref (_ret);
6017 _out:
6018   return _ret != NULL;
6019 }
6020 
6021 /**
6022  * cph_iface_mechanism_call_printer_set_users_denied_sync:
6023  * @proxy: A #CphIfaceMechanismProxy.
6024  * @arg_name: Argument to pass with the method invocation.
6025  * @arg_users: Argument to pass with the method invocation.
6026  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6027  * @cancellable: (allow-none): A #GCancellable or %NULL.
6028  * @error: Return location for error or %NULL.
6029  *
6030  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetUsersDenied">PrinterSetUsersDenied()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6031  *
6032  * See cph_iface_mechanism_call_printer_set_users_denied() for the asynchronous version of this method.
6033  *
6034  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6035  */
6036 gboolean
cph_iface_mechanism_call_printer_set_users_denied_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * const * arg_users,gchar ** out_error,GCancellable * cancellable,GError ** error)6037 cph_iface_mechanism_call_printer_set_users_denied_sync (
6038     CphIfaceMechanism *proxy,
6039     const gchar *arg_name,
6040     const gchar *const *arg_users,
6041     gchar **out_error,
6042     GCancellable *cancellable,
6043     GError **error)
6044 {
6045   GVariant *_ret;
6046   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6047     "PrinterSetUsersDenied",
6048     g_variant_new ("(s^as)",
6049                    arg_name,
6050                    arg_users),
6051     G_DBUS_CALL_FLAGS_NONE,
6052     -1,
6053     cancellable,
6054     error);
6055   if (_ret == NULL)
6056     goto _out;
6057   g_variant_get (_ret,
6058                  "(s)",
6059                  out_error);
6060   g_variant_unref (_ret);
6061 _out:
6062   return _ret != NULL;
6063 }
6064 
6065 /**
6066  * cph_iface_mechanism_call_printer_add_option_default:
6067  * @proxy: A #CphIfaceMechanismProxy.
6068  * @arg_name: Argument to pass with the method invocation.
6069  * @arg_option: Argument to pass with the method invocation.
6070  * @arg_values: Argument to pass with the method invocation.
6071  * @cancellable: (allow-none): A #GCancellable or %NULL.
6072  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6073  * @user_data: User data to pass to @callback.
6074  *
6075  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddOptionDefault">PrinterAddOptionDefault()</link> D-Bus method on @proxy.
6076  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6077  * You can then call cph_iface_mechanism_call_printer_add_option_default_finish() to get the result of the operation.
6078  *
6079  * See cph_iface_mechanism_call_printer_add_option_default_sync() for the synchronous, blocking version of this method.
6080  */
6081 void
cph_iface_mechanism_call_printer_add_option_default(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_option,const gchar * const * arg_values,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)6082 cph_iface_mechanism_call_printer_add_option_default (
6083     CphIfaceMechanism *proxy,
6084     const gchar *arg_name,
6085     const gchar *arg_option,
6086     const gchar *const *arg_values,
6087     GCancellable *cancellable,
6088     GAsyncReadyCallback callback,
6089     gpointer user_data)
6090 {
6091   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6092     "PrinterAddOptionDefault",
6093     g_variant_new ("(ss^as)",
6094                    arg_name,
6095                    arg_option,
6096                    arg_values),
6097     G_DBUS_CALL_FLAGS_NONE,
6098     -1,
6099     cancellable,
6100     callback,
6101     user_data);
6102 }
6103 
6104 /**
6105  * cph_iface_mechanism_call_printer_add_option_default_finish:
6106  * @proxy: A #CphIfaceMechanismProxy.
6107  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6108  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_add_option_default().
6109  * @error: Return location for error or %NULL.
6110  *
6111  * Finishes an operation started with cph_iface_mechanism_call_printer_add_option_default().
6112  *
6113  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6114  */
6115 gboolean
cph_iface_mechanism_call_printer_add_option_default_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)6116 cph_iface_mechanism_call_printer_add_option_default_finish (
6117     CphIfaceMechanism *proxy,
6118     gchar **out_error,
6119     GAsyncResult *res,
6120     GError **error)
6121 {
6122   GVariant *_ret;
6123   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6124   if (_ret == NULL)
6125     goto _out;
6126   g_variant_get (_ret,
6127                  "(s)",
6128                  out_error);
6129   g_variant_unref (_ret);
6130 _out:
6131   return _ret != NULL;
6132 }
6133 
6134 /**
6135  * cph_iface_mechanism_call_printer_add_option_default_sync:
6136  * @proxy: A #CphIfaceMechanismProxy.
6137  * @arg_name: Argument to pass with the method invocation.
6138  * @arg_option: Argument to pass with the method invocation.
6139  * @arg_values: Argument to pass with the method invocation.
6140  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6141  * @cancellable: (allow-none): A #GCancellable or %NULL.
6142  * @error: Return location for error or %NULL.
6143  *
6144  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddOptionDefault">PrinterAddOptionDefault()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6145  *
6146  * See cph_iface_mechanism_call_printer_add_option_default() for the asynchronous version of this method.
6147  *
6148  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6149  */
6150 gboolean
cph_iface_mechanism_call_printer_add_option_default_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_option,const gchar * const * arg_values,gchar ** out_error,GCancellable * cancellable,GError ** error)6151 cph_iface_mechanism_call_printer_add_option_default_sync (
6152     CphIfaceMechanism *proxy,
6153     const gchar *arg_name,
6154     const gchar *arg_option,
6155     const gchar *const *arg_values,
6156     gchar **out_error,
6157     GCancellable *cancellable,
6158     GError **error)
6159 {
6160   GVariant *_ret;
6161   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6162     "PrinterAddOptionDefault",
6163     g_variant_new ("(ss^as)",
6164                    arg_name,
6165                    arg_option,
6166                    arg_values),
6167     G_DBUS_CALL_FLAGS_NONE,
6168     -1,
6169     cancellable,
6170     error);
6171   if (_ret == NULL)
6172     goto _out;
6173   g_variant_get (_ret,
6174                  "(s)",
6175                  out_error);
6176   g_variant_unref (_ret);
6177 _out:
6178   return _ret != NULL;
6179 }
6180 
6181 /**
6182  * cph_iface_mechanism_call_printer_delete_option_default:
6183  * @proxy: A #CphIfaceMechanismProxy.
6184  * @arg_name: Argument to pass with the method invocation.
6185  * @arg_option: Argument to pass with the method invocation.
6186  * @cancellable: (allow-none): A #GCancellable or %NULL.
6187  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6188  * @user_data: User data to pass to @callback.
6189  *
6190  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterDeleteOptionDefault">PrinterDeleteOptionDefault()</link> D-Bus method on @proxy.
6191  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6192  * You can then call cph_iface_mechanism_call_printer_delete_option_default_finish() to get the result of the operation.
6193  *
6194  * See cph_iface_mechanism_call_printer_delete_option_default_sync() for the synchronous, blocking version of this method.
6195  */
6196 void
cph_iface_mechanism_call_printer_delete_option_default(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_option,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)6197 cph_iface_mechanism_call_printer_delete_option_default (
6198     CphIfaceMechanism *proxy,
6199     const gchar *arg_name,
6200     const gchar *arg_option,
6201     GCancellable *cancellable,
6202     GAsyncReadyCallback callback,
6203     gpointer user_data)
6204 {
6205   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6206     "PrinterDeleteOptionDefault",
6207     g_variant_new ("(ss)",
6208                    arg_name,
6209                    arg_option),
6210     G_DBUS_CALL_FLAGS_NONE,
6211     -1,
6212     cancellable,
6213     callback,
6214     user_data);
6215 }
6216 
6217 /**
6218  * cph_iface_mechanism_call_printer_delete_option_default_finish:
6219  * @proxy: A #CphIfaceMechanismProxy.
6220  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6221  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_delete_option_default().
6222  * @error: Return location for error or %NULL.
6223  *
6224  * Finishes an operation started with cph_iface_mechanism_call_printer_delete_option_default().
6225  *
6226  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6227  */
6228 gboolean
cph_iface_mechanism_call_printer_delete_option_default_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)6229 cph_iface_mechanism_call_printer_delete_option_default_finish (
6230     CphIfaceMechanism *proxy,
6231     gchar **out_error,
6232     GAsyncResult *res,
6233     GError **error)
6234 {
6235   GVariant *_ret;
6236   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6237   if (_ret == NULL)
6238     goto _out;
6239   g_variant_get (_ret,
6240                  "(s)",
6241                  out_error);
6242   g_variant_unref (_ret);
6243 _out:
6244   return _ret != NULL;
6245 }
6246 
6247 /**
6248  * cph_iface_mechanism_call_printer_delete_option_default_sync:
6249  * @proxy: A #CphIfaceMechanismProxy.
6250  * @arg_name: Argument to pass with the method invocation.
6251  * @arg_option: Argument to pass with the method invocation.
6252  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6253  * @cancellable: (allow-none): A #GCancellable or %NULL.
6254  * @error: Return location for error or %NULL.
6255  *
6256  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterDeleteOptionDefault">PrinterDeleteOptionDefault()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6257  *
6258  * See cph_iface_mechanism_call_printer_delete_option_default() for the asynchronous version of this method.
6259  *
6260  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6261  */
6262 gboolean
cph_iface_mechanism_call_printer_delete_option_default_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_option,gchar ** out_error,GCancellable * cancellable,GError ** error)6263 cph_iface_mechanism_call_printer_delete_option_default_sync (
6264     CphIfaceMechanism *proxy,
6265     const gchar *arg_name,
6266     const gchar *arg_option,
6267     gchar **out_error,
6268     GCancellable *cancellable,
6269     GError **error)
6270 {
6271   GVariant *_ret;
6272   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6273     "PrinterDeleteOptionDefault",
6274     g_variant_new ("(ss)",
6275                    arg_name,
6276                    arg_option),
6277     G_DBUS_CALL_FLAGS_NONE,
6278     -1,
6279     cancellable,
6280     error);
6281   if (_ret == NULL)
6282     goto _out;
6283   g_variant_get (_ret,
6284                  "(s)",
6285                  out_error);
6286   g_variant_unref (_ret);
6287 _out:
6288   return _ret != NULL;
6289 }
6290 
6291 /**
6292  * cph_iface_mechanism_call_printer_add_option:
6293  * @proxy: A #CphIfaceMechanismProxy.
6294  * @arg_name: Argument to pass with the method invocation.
6295  * @arg_option: Argument to pass with the method invocation.
6296  * @arg_values: Argument to pass with the method invocation.
6297  * @cancellable: (allow-none): A #GCancellable or %NULL.
6298  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6299  * @user_data: User data to pass to @callback.
6300  *
6301  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddOption">PrinterAddOption()</link> D-Bus method on @proxy.
6302  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6303  * You can then call cph_iface_mechanism_call_printer_add_option_finish() to get the result of the operation.
6304  *
6305  * See cph_iface_mechanism_call_printer_add_option_sync() for the synchronous, blocking version of this method.
6306  */
6307 void
cph_iface_mechanism_call_printer_add_option(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_option,const gchar * const * arg_values,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)6308 cph_iface_mechanism_call_printer_add_option (
6309     CphIfaceMechanism *proxy,
6310     const gchar *arg_name,
6311     const gchar *arg_option,
6312     const gchar *const *arg_values,
6313     GCancellable *cancellable,
6314     GAsyncReadyCallback callback,
6315     gpointer user_data)
6316 {
6317   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6318     "PrinterAddOption",
6319     g_variant_new ("(ss^as)",
6320                    arg_name,
6321                    arg_option,
6322                    arg_values),
6323     G_DBUS_CALL_FLAGS_NONE,
6324     -1,
6325     cancellable,
6326     callback,
6327     user_data);
6328 }
6329 
6330 /**
6331  * cph_iface_mechanism_call_printer_add_option_finish:
6332  * @proxy: A #CphIfaceMechanismProxy.
6333  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6334  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_printer_add_option().
6335  * @error: Return location for error or %NULL.
6336  *
6337  * Finishes an operation started with cph_iface_mechanism_call_printer_add_option().
6338  *
6339  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6340  */
6341 gboolean
cph_iface_mechanism_call_printer_add_option_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)6342 cph_iface_mechanism_call_printer_add_option_finish (
6343     CphIfaceMechanism *proxy,
6344     gchar **out_error,
6345     GAsyncResult *res,
6346     GError **error)
6347 {
6348   GVariant *_ret;
6349   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6350   if (_ret == NULL)
6351     goto _out;
6352   g_variant_get (_ret,
6353                  "(s)",
6354                  out_error);
6355   g_variant_unref (_ret);
6356 _out:
6357   return _ret != NULL;
6358 }
6359 
6360 /**
6361  * cph_iface_mechanism_call_printer_add_option_sync:
6362  * @proxy: A #CphIfaceMechanismProxy.
6363  * @arg_name: Argument to pass with the method invocation.
6364  * @arg_option: Argument to pass with the method invocation.
6365  * @arg_values: Argument to pass with the method invocation.
6366  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6367  * @cancellable: (allow-none): A #GCancellable or %NULL.
6368  * @error: Return location for error or %NULL.
6369  *
6370  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddOption">PrinterAddOption()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6371  *
6372  * See cph_iface_mechanism_call_printer_add_option() for the asynchronous version of this method.
6373  *
6374  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6375  */
6376 gboolean
cph_iface_mechanism_call_printer_add_option_sync(CphIfaceMechanism * proxy,const gchar * arg_name,const gchar * arg_option,const gchar * const * arg_values,gchar ** out_error,GCancellable * cancellable,GError ** error)6377 cph_iface_mechanism_call_printer_add_option_sync (
6378     CphIfaceMechanism *proxy,
6379     const gchar *arg_name,
6380     const gchar *arg_option,
6381     const gchar *const *arg_values,
6382     gchar **out_error,
6383     GCancellable *cancellable,
6384     GError **error)
6385 {
6386   GVariant *_ret;
6387   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6388     "PrinterAddOption",
6389     g_variant_new ("(ss^as)",
6390                    arg_name,
6391                    arg_option,
6392                    arg_values),
6393     G_DBUS_CALL_FLAGS_NONE,
6394     -1,
6395     cancellable,
6396     error);
6397   if (_ret == NULL)
6398     goto _out;
6399   g_variant_get (_ret,
6400                  "(s)",
6401                  out_error);
6402   g_variant_unref (_ret);
6403 _out:
6404   return _ret != NULL;
6405 }
6406 
6407 /**
6408  * cph_iface_mechanism_call_job_cancel:
6409  * @proxy: A #CphIfaceMechanismProxy.
6410  * @arg_jobid: Argument to pass with the method invocation.
6411  * @cancellable: (allow-none): A #GCancellable or %NULL.
6412  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6413  * @user_data: User data to pass to @callback.
6414  *
6415  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobCancel">JobCancel()</link> D-Bus method on @proxy.
6416  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6417  * You can then call cph_iface_mechanism_call_job_cancel_finish() to get the result of the operation.
6418  *
6419  * See cph_iface_mechanism_call_job_cancel_sync() for the synchronous, blocking version of this method.
6420  *
6421  * Deprecated: The D-Bus method has been deprecated.
6422  */
6423 void
cph_iface_mechanism_call_job_cancel(CphIfaceMechanism * proxy,gint arg_jobid,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)6424 cph_iface_mechanism_call_job_cancel (
6425     CphIfaceMechanism *proxy,
6426     gint arg_jobid,
6427     GCancellable *cancellable,
6428     GAsyncReadyCallback callback,
6429     gpointer user_data)
6430 {
6431   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6432     "JobCancel",
6433     g_variant_new ("(i)",
6434                    arg_jobid),
6435     G_DBUS_CALL_FLAGS_NONE,
6436     -1,
6437     cancellable,
6438     callback,
6439     user_data);
6440 }
6441 
6442 /**
6443  * cph_iface_mechanism_call_job_cancel_finish:
6444  * @proxy: A #CphIfaceMechanismProxy.
6445  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6446  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_job_cancel().
6447  * @error: Return location for error or %NULL.
6448  *
6449  * Finishes an operation started with cph_iface_mechanism_call_job_cancel().
6450  *
6451  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6452  *
6453  * Deprecated: The D-Bus method has been deprecated.
6454  */
6455 gboolean
cph_iface_mechanism_call_job_cancel_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)6456 cph_iface_mechanism_call_job_cancel_finish (
6457     CphIfaceMechanism *proxy,
6458     gchar **out_error,
6459     GAsyncResult *res,
6460     GError **error)
6461 {
6462   GVariant *_ret;
6463   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6464   if (_ret == NULL)
6465     goto _out;
6466   g_variant_get (_ret,
6467                  "(s)",
6468                  out_error);
6469   g_variant_unref (_ret);
6470 _out:
6471   return _ret != NULL;
6472 }
6473 
6474 /**
6475  * cph_iface_mechanism_call_job_cancel_sync:
6476  * @proxy: A #CphIfaceMechanismProxy.
6477  * @arg_jobid: Argument to pass with the method invocation.
6478  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6479  * @cancellable: (allow-none): A #GCancellable or %NULL.
6480  * @error: Return location for error or %NULL.
6481  *
6482  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobCancel">JobCancel()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6483  *
6484  * See cph_iface_mechanism_call_job_cancel() for the asynchronous version of this method.
6485  *
6486  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6487  *
6488  * Deprecated: The D-Bus method has been deprecated.
6489  */
6490 gboolean
cph_iface_mechanism_call_job_cancel_sync(CphIfaceMechanism * proxy,gint arg_jobid,gchar ** out_error,GCancellable * cancellable,GError ** error)6491 cph_iface_mechanism_call_job_cancel_sync (
6492     CphIfaceMechanism *proxy,
6493     gint arg_jobid,
6494     gchar **out_error,
6495     GCancellable *cancellable,
6496     GError **error)
6497 {
6498   GVariant *_ret;
6499   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6500     "JobCancel",
6501     g_variant_new ("(i)",
6502                    arg_jobid),
6503     G_DBUS_CALL_FLAGS_NONE,
6504     -1,
6505     cancellable,
6506     error);
6507   if (_ret == NULL)
6508     goto _out;
6509   g_variant_get (_ret,
6510                  "(s)",
6511                  out_error);
6512   g_variant_unref (_ret);
6513 _out:
6514   return _ret != NULL;
6515 }
6516 
6517 /**
6518  * cph_iface_mechanism_call_job_cancel_purge:
6519  * @proxy: A #CphIfaceMechanismProxy.
6520  * @arg_jobid: Argument to pass with the method invocation.
6521  * @arg_purge: Argument to pass with the method invocation.
6522  * @cancellable: (allow-none): A #GCancellable or %NULL.
6523  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6524  * @user_data: User data to pass to @callback.
6525  *
6526  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobCancelPurge">JobCancelPurge()</link> D-Bus method on @proxy.
6527  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6528  * You can then call cph_iface_mechanism_call_job_cancel_purge_finish() to get the result of the operation.
6529  *
6530  * See cph_iface_mechanism_call_job_cancel_purge_sync() for the synchronous, blocking version of this method.
6531  */
6532 void
cph_iface_mechanism_call_job_cancel_purge(CphIfaceMechanism * proxy,gint arg_jobid,gboolean arg_purge,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)6533 cph_iface_mechanism_call_job_cancel_purge (
6534     CphIfaceMechanism *proxy,
6535     gint arg_jobid,
6536     gboolean arg_purge,
6537     GCancellable *cancellable,
6538     GAsyncReadyCallback callback,
6539     gpointer user_data)
6540 {
6541   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6542     "JobCancelPurge",
6543     g_variant_new ("(ib)",
6544                    arg_jobid,
6545                    arg_purge),
6546     G_DBUS_CALL_FLAGS_NONE,
6547     -1,
6548     cancellable,
6549     callback,
6550     user_data);
6551 }
6552 
6553 /**
6554  * cph_iface_mechanism_call_job_cancel_purge_finish:
6555  * @proxy: A #CphIfaceMechanismProxy.
6556  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6557  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_job_cancel_purge().
6558  * @error: Return location for error or %NULL.
6559  *
6560  * Finishes an operation started with cph_iface_mechanism_call_job_cancel_purge().
6561  *
6562  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6563  */
6564 gboolean
cph_iface_mechanism_call_job_cancel_purge_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)6565 cph_iface_mechanism_call_job_cancel_purge_finish (
6566     CphIfaceMechanism *proxy,
6567     gchar **out_error,
6568     GAsyncResult *res,
6569     GError **error)
6570 {
6571   GVariant *_ret;
6572   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6573   if (_ret == NULL)
6574     goto _out;
6575   g_variant_get (_ret,
6576                  "(s)",
6577                  out_error);
6578   g_variant_unref (_ret);
6579 _out:
6580   return _ret != NULL;
6581 }
6582 
6583 /**
6584  * cph_iface_mechanism_call_job_cancel_purge_sync:
6585  * @proxy: A #CphIfaceMechanismProxy.
6586  * @arg_jobid: Argument to pass with the method invocation.
6587  * @arg_purge: Argument to pass with the method invocation.
6588  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6589  * @cancellable: (allow-none): A #GCancellable or %NULL.
6590  * @error: Return location for error or %NULL.
6591  *
6592  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobCancelPurge">JobCancelPurge()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6593  *
6594  * See cph_iface_mechanism_call_job_cancel_purge() for the asynchronous version of this method.
6595  *
6596  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6597  */
6598 gboolean
cph_iface_mechanism_call_job_cancel_purge_sync(CphIfaceMechanism * proxy,gint arg_jobid,gboolean arg_purge,gchar ** out_error,GCancellable * cancellable,GError ** error)6599 cph_iface_mechanism_call_job_cancel_purge_sync (
6600     CphIfaceMechanism *proxy,
6601     gint arg_jobid,
6602     gboolean arg_purge,
6603     gchar **out_error,
6604     GCancellable *cancellable,
6605     GError **error)
6606 {
6607   GVariant *_ret;
6608   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6609     "JobCancelPurge",
6610     g_variant_new ("(ib)",
6611                    arg_jobid,
6612                    arg_purge),
6613     G_DBUS_CALL_FLAGS_NONE,
6614     -1,
6615     cancellable,
6616     error);
6617   if (_ret == NULL)
6618     goto _out;
6619   g_variant_get (_ret,
6620                  "(s)",
6621                  out_error);
6622   g_variant_unref (_ret);
6623 _out:
6624   return _ret != NULL;
6625 }
6626 
6627 /**
6628  * cph_iface_mechanism_call_job_restart:
6629  * @proxy: A #CphIfaceMechanismProxy.
6630  * @arg_jobid: Argument to pass with the method invocation.
6631  * @cancellable: (allow-none): A #GCancellable or %NULL.
6632  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6633  * @user_data: User data to pass to @callback.
6634  *
6635  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobRestart">JobRestart()</link> D-Bus method on @proxy.
6636  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6637  * You can then call cph_iface_mechanism_call_job_restart_finish() to get the result of the operation.
6638  *
6639  * See cph_iface_mechanism_call_job_restart_sync() for the synchronous, blocking version of this method.
6640  */
6641 void
cph_iface_mechanism_call_job_restart(CphIfaceMechanism * proxy,gint arg_jobid,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)6642 cph_iface_mechanism_call_job_restart (
6643     CphIfaceMechanism *proxy,
6644     gint arg_jobid,
6645     GCancellable *cancellable,
6646     GAsyncReadyCallback callback,
6647     gpointer user_data)
6648 {
6649   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6650     "JobRestart",
6651     g_variant_new ("(i)",
6652                    arg_jobid),
6653     G_DBUS_CALL_FLAGS_NONE,
6654     -1,
6655     cancellable,
6656     callback,
6657     user_data);
6658 }
6659 
6660 /**
6661  * cph_iface_mechanism_call_job_restart_finish:
6662  * @proxy: A #CphIfaceMechanismProxy.
6663  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6664  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_job_restart().
6665  * @error: Return location for error or %NULL.
6666  *
6667  * Finishes an operation started with cph_iface_mechanism_call_job_restart().
6668  *
6669  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6670  */
6671 gboolean
cph_iface_mechanism_call_job_restart_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)6672 cph_iface_mechanism_call_job_restart_finish (
6673     CphIfaceMechanism *proxy,
6674     gchar **out_error,
6675     GAsyncResult *res,
6676     GError **error)
6677 {
6678   GVariant *_ret;
6679   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6680   if (_ret == NULL)
6681     goto _out;
6682   g_variant_get (_ret,
6683                  "(s)",
6684                  out_error);
6685   g_variant_unref (_ret);
6686 _out:
6687   return _ret != NULL;
6688 }
6689 
6690 /**
6691  * cph_iface_mechanism_call_job_restart_sync:
6692  * @proxy: A #CphIfaceMechanismProxy.
6693  * @arg_jobid: Argument to pass with the method invocation.
6694  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6695  * @cancellable: (allow-none): A #GCancellable or %NULL.
6696  * @error: Return location for error or %NULL.
6697  *
6698  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobRestart">JobRestart()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6699  *
6700  * See cph_iface_mechanism_call_job_restart() for the asynchronous version of this method.
6701  *
6702  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6703  */
6704 gboolean
cph_iface_mechanism_call_job_restart_sync(CphIfaceMechanism * proxy,gint arg_jobid,gchar ** out_error,GCancellable * cancellable,GError ** error)6705 cph_iface_mechanism_call_job_restart_sync (
6706     CphIfaceMechanism *proxy,
6707     gint arg_jobid,
6708     gchar **out_error,
6709     GCancellable *cancellable,
6710     GError **error)
6711 {
6712   GVariant *_ret;
6713   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6714     "JobRestart",
6715     g_variant_new ("(i)",
6716                    arg_jobid),
6717     G_DBUS_CALL_FLAGS_NONE,
6718     -1,
6719     cancellable,
6720     error);
6721   if (_ret == NULL)
6722     goto _out;
6723   g_variant_get (_ret,
6724                  "(s)",
6725                  out_error);
6726   g_variant_unref (_ret);
6727 _out:
6728   return _ret != NULL;
6729 }
6730 
6731 /**
6732  * cph_iface_mechanism_call_job_set_hold_until:
6733  * @proxy: A #CphIfaceMechanismProxy.
6734  * @arg_jobid: Argument to pass with the method invocation.
6735  * @arg_job_hold_until: Argument to pass with the method invocation.
6736  * @cancellable: (allow-none): A #GCancellable or %NULL.
6737  * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6738  * @user_data: User data to pass to @callback.
6739  *
6740  * Asynchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobSetHoldUntil">JobSetHoldUntil()</link> D-Bus method on @proxy.
6741  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6742  * You can then call cph_iface_mechanism_call_job_set_hold_until_finish() to get the result of the operation.
6743  *
6744  * See cph_iface_mechanism_call_job_set_hold_until_sync() for the synchronous, blocking version of this method.
6745  */
6746 void
cph_iface_mechanism_call_job_set_hold_until(CphIfaceMechanism * proxy,gint arg_jobid,const gchar * arg_job_hold_until,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)6747 cph_iface_mechanism_call_job_set_hold_until (
6748     CphIfaceMechanism *proxy,
6749     gint arg_jobid,
6750     const gchar *arg_job_hold_until,
6751     GCancellable *cancellable,
6752     GAsyncReadyCallback callback,
6753     gpointer user_data)
6754 {
6755   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6756     "JobSetHoldUntil",
6757     g_variant_new ("(is)",
6758                    arg_jobid,
6759                    arg_job_hold_until),
6760     G_DBUS_CALL_FLAGS_NONE,
6761     -1,
6762     cancellable,
6763     callback,
6764     user_data);
6765 }
6766 
6767 /**
6768  * cph_iface_mechanism_call_job_set_hold_until_finish:
6769  * @proxy: A #CphIfaceMechanismProxy.
6770  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6771  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_call_job_set_hold_until().
6772  * @error: Return location for error or %NULL.
6773  *
6774  * Finishes an operation started with cph_iface_mechanism_call_job_set_hold_until().
6775  *
6776  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6777  */
6778 gboolean
cph_iface_mechanism_call_job_set_hold_until_finish(CphIfaceMechanism * proxy,gchar ** out_error,GAsyncResult * res,GError ** error)6779 cph_iface_mechanism_call_job_set_hold_until_finish (
6780     CphIfaceMechanism *proxy,
6781     gchar **out_error,
6782     GAsyncResult *res,
6783     GError **error)
6784 {
6785   GVariant *_ret;
6786   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6787   if (_ret == NULL)
6788     goto _out;
6789   g_variant_get (_ret,
6790                  "(s)",
6791                  out_error);
6792   g_variant_unref (_ret);
6793 _out:
6794   return _ret != NULL;
6795 }
6796 
6797 /**
6798  * cph_iface_mechanism_call_job_set_hold_until_sync:
6799  * @proxy: A #CphIfaceMechanismProxy.
6800  * @arg_jobid: Argument to pass with the method invocation.
6801  * @arg_job_hold_until: Argument to pass with the method invocation.
6802  * @out_error: (out): Return location for return parameter or %NULL to ignore.
6803  * @cancellable: (allow-none): A #GCancellable or %NULL.
6804  * @error: Return location for error or %NULL.
6805  *
6806  * Synchronously invokes the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobSetHoldUntil">JobSetHoldUntil()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6807  *
6808  * See cph_iface_mechanism_call_job_set_hold_until() for the asynchronous version of this method.
6809  *
6810  * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6811  */
6812 gboolean
cph_iface_mechanism_call_job_set_hold_until_sync(CphIfaceMechanism * proxy,gint arg_jobid,const gchar * arg_job_hold_until,gchar ** out_error,GCancellable * cancellable,GError ** error)6813 cph_iface_mechanism_call_job_set_hold_until_sync (
6814     CphIfaceMechanism *proxy,
6815     gint arg_jobid,
6816     const gchar *arg_job_hold_until,
6817     gchar **out_error,
6818     GCancellable *cancellable,
6819     GError **error)
6820 {
6821   GVariant *_ret;
6822   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6823     "JobSetHoldUntil",
6824     g_variant_new ("(is)",
6825                    arg_jobid,
6826                    arg_job_hold_until),
6827     G_DBUS_CALL_FLAGS_NONE,
6828     -1,
6829     cancellable,
6830     error);
6831   if (_ret == NULL)
6832     goto _out;
6833   g_variant_get (_ret,
6834                  "(s)",
6835                  out_error);
6836   g_variant_unref (_ret);
6837 _out:
6838   return _ret != NULL;
6839 }
6840 
6841 /**
6842  * cph_iface_mechanism_complete_file_get:
6843  * @object: A #CphIfaceMechanism.
6844  * @invocation: (transfer full): A #GDBusMethodInvocation.
6845  * @error: Parameter to return.
6846  *
6847  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.FileGet">FileGet()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
6848  *
6849  * This method will free @invocation, you cannot use it afterwards.
6850  */
6851 void
cph_iface_mechanism_complete_file_get(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)6852 cph_iface_mechanism_complete_file_get (
6853     CphIfaceMechanism *object,
6854     GDBusMethodInvocation *invocation,
6855     const gchar *error)
6856 {
6857   g_dbus_method_invocation_return_value (invocation,
6858     g_variant_new ("(s)",
6859                    error));
6860 }
6861 
6862 /**
6863  * cph_iface_mechanism_complete_file_put:
6864  * @object: A #CphIfaceMechanism.
6865  * @invocation: (transfer full): A #GDBusMethodInvocation.
6866  * @error: Parameter to return.
6867  *
6868  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.FilePut">FilePut()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
6869  *
6870  * This method will free @invocation, you cannot use it afterwards.
6871  */
6872 void
cph_iface_mechanism_complete_file_put(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)6873 cph_iface_mechanism_complete_file_put (
6874     CphIfaceMechanism *object,
6875     GDBusMethodInvocation *invocation,
6876     const gchar *error)
6877 {
6878   g_dbus_method_invocation_return_value (invocation,
6879     g_variant_new ("(s)",
6880                    error));
6881 }
6882 
6883 /**
6884  * cph_iface_mechanism_complete_server_get_settings:
6885  * @object: A #CphIfaceMechanism.
6886  * @invocation: (transfer full): A #GDBusMethodInvocation.
6887  * @error: Parameter to return.
6888  * @settings: Parameter to return.
6889  *
6890  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ServerGetSettings">ServerGetSettings()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
6891  *
6892  * This method will free @invocation, you cannot use it afterwards.
6893  */
6894 void
cph_iface_mechanism_complete_server_get_settings(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error,GVariant * settings)6895 cph_iface_mechanism_complete_server_get_settings (
6896     CphIfaceMechanism *object,
6897     GDBusMethodInvocation *invocation,
6898     const gchar *error,
6899     GVariant *settings)
6900 {
6901   g_dbus_method_invocation_return_value (invocation,
6902     g_variant_new ("(s@a{ss})",
6903                    error,
6904                    settings));
6905 }
6906 
6907 /**
6908  * cph_iface_mechanism_complete_server_set_settings:
6909  * @object: A #CphIfaceMechanism.
6910  * @invocation: (transfer full): A #GDBusMethodInvocation.
6911  * @error: Parameter to return.
6912  *
6913  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ServerSetSettings">ServerSetSettings()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
6914  *
6915  * This method will free @invocation, you cannot use it afterwards.
6916  */
6917 void
cph_iface_mechanism_complete_server_set_settings(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)6918 cph_iface_mechanism_complete_server_set_settings (
6919     CphIfaceMechanism *object,
6920     GDBusMethodInvocation *invocation,
6921     const gchar *error)
6922 {
6923   g_dbus_method_invocation_return_value (invocation,
6924     g_variant_new ("(s)",
6925                    error));
6926 }
6927 
6928 /**
6929  * cph_iface_mechanism_complete_devices_get:
6930  * @object: A #CphIfaceMechanism.
6931  * @invocation: (transfer full): A #GDBusMethodInvocation.
6932  * @error: Parameter to return.
6933  * @devices: Parameter to return.
6934  *
6935  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.DevicesGet">DevicesGet()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
6936  *
6937  * This method will free @invocation, you cannot use it afterwards.
6938  */
6939 void
cph_iface_mechanism_complete_devices_get(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error,GVariant * devices)6940 cph_iface_mechanism_complete_devices_get (
6941     CphIfaceMechanism *object,
6942     GDBusMethodInvocation *invocation,
6943     const gchar *error,
6944     GVariant *devices)
6945 {
6946   g_dbus_method_invocation_return_value (invocation,
6947     g_variant_new ("(s@a{ss})",
6948                    error,
6949                    devices));
6950 }
6951 
6952 /**
6953  * cph_iface_mechanism_complete_printer_add:
6954  * @object: A #CphIfaceMechanism.
6955  * @invocation: (transfer full): A #GDBusMethodInvocation.
6956  * @error: Parameter to return.
6957  *
6958  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAdd">PrinterAdd()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
6959  *
6960  * This method will free @invocation, you cannot use it afterwards.
6961  */
6962 void
cph_iface_mechanism_complete_printer_add(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)6963 cph_iface_mechanism_complete_printer_add (
6964     CphIfaceMechanism *object,
6965     GDBusMethodInvocation *invocation,
6966     const gchar *error)
6967 {
6968   g_dbus_method_invocation_return_value (invocation,
6969     g_variant_new ("(s)",
6970                    error));
6971 }
6972 
6973 /**
6974  * cph_iface_mechanism_complete_printer_add_with_ppd_file:
6975  * @object: A #CphIfaceMechanism.
6976  * @invocation: (transfer full): A #GDBusMethodInvocation.
6977  * @error: Parameter to return.
6978  *
6979  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddWithPpdFile">PrinterAddWithPpdFile()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
6980  *
6981  * This method will free @invocation, you cannot use it afterwards.
6982  */
6983 void
cph_iface_mechanism_complete_printer_add_with_ppd_file(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)6984 cph_iface_mechanism_complete_printer_add_with_ppd_file (
6985     CphIfaceMechanism *object,
6986     GDBusMethodInvocation *invocation,
6987     const gchar *error)
6988 {
6989   g_dbus_method_invocation_return_value (invocation,
6990     g_variant_new ("(s)",
6991                    error));
6992 }
6993 
6994 /**
6995  * cph_iface_mechanism_complete_printer_set_device:
6996  * @object: A #CphIfaceMechanism.
6997  * @invocation: (transfer full): A #GDBusMethodInvocation.
6998  * @error: Parameter to return.
6999  *
7000  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetDevice">PrinterSetDevice()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7001  *
7002  * This method will free @invocation, you cannot use it afterwards.
7003  */
7004 void
cph_iface_mechanism_complete_printer_set_device(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7005 cph_iface_mechanism_complete_printer_set_device (
7006     CphIfaceMechanism *object,
7007     GDBusMethodInvocation *invocation,
7008     const gchar *error)
7009 {
7010   g_dbus_method_invocation_return_value (invocation,
7011     g_variant_new ("(s)",
7012                    error));
7013 }
7014 
7015 /**
7016  * cph_iface_mechanism_complete_printer_set_default:
7017  * @object: A #CphIfaceMechanism.
7018  * @invocation: (transfer full): A #GDBusMethodInvocation.
7019  * @error: Parameter to return.
7020  *
7021  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetDefault">PrinterSetDefault()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7022  *
7023  * This method will free @invocation, you cannot use it afterwards.
7024  */
7025 void
cph_iface_mechanism_complete_printer_set_default(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7026 cph_iface_mechanism_complete_printer_set_default (
7027     CphIfaceMechanism *object,
7028     GDBusMethodInvocation *invocation,
7029     const gchar *error)
7030 {
7031   g_dbus_method_invocation_return_value (invocation,
7032     g_variant_new ("(s)",
7033                    error));
7034 }
7035 
7036 /**
7037  * cph_iface_mechanism_complete_printer_set_enabled:
7038  * @object: A #CphIfaceMechanism.
7039  * @invocation: (transfer full): A #GDBusMethodInvocation.
7040  * @error: Parameter to return.
7041  *
7042  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetEnabled">PrinterSetEnabled()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7043  *
7044  * This method will free @invocation, you cannot use it afterwards.
7045  */
7046 void
cph_iface_mechanism_complete_printer_set_enabled(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7047 cph_iface_mechanism_complete_printer_set_enabled (
7048     CphIfaceMechanism *object,
7049     GDBusMethodInvocation *invocation,
7050     const gchar *error)
7051 {
7052   g_dbus_method_invocation_return_value (invocation,
7053     g_variant_new ("(s)",
7054                    error));
7055 }
7056 
7057 /**
7058  * cph_iface_mechanism_complete_printer_set_accept_jobs:
7059  * @object: A #CphIfaceMechanism.
7060  * @invocation: (transfer full): A #GDBusMethodInvocation.
7061  * @error: Parameter to return.
7062  *
7063  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetAcceptJobs">PrinterSetAcceptJobs()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7064  *
7065  * This method will free @invocation, you cannot use it afterwards.
7066  */
7067 void
cph_iface_mechanism_complete_printer_set_accept_jobs(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7068 cph_iface_mechanism_complete_printer_set_accept_jobs (
7069     CphIfaceMechanism *object,
7070     GDBusMethodInvocation *invocation,
7071     const gchar *error)
7072 {
7073   g_dbus_method_invocation_return_value (invocation,
7074     g_variant_new ("(s)",
7075                    error));
7076 }
7077 
7078 /**
7079  * cph_iface_mechanism_complete_printer_rename:
7080  * @object: A #CphIfaceMechanism.
7081  * @invocation: (transfer full): A #GDBusMethodInvocation.
7082  * @error: Parameter to return.
7083  *
7084  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterRename">PrinterRename()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7085  *
7086  * This method will free @invocation, you cannot use it afterwards.
7087  */
7088 void
cph_iface_mechanism_complete_printer_rename(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7089 cph_iface_mechanism_complete_printer_rename (
7090     CphIfaceMechanism *object,
7091     GDBusMethodInvocation *invocation,
7092     const gchar *error)
7093 {
7094   g_dbus_method_invocation_return_value (invocation,
7095     g_variant_new ("(s)",
7096                    error));
7097 }
7098 
7099 /**
7100  * cph_iface_mechanism_complete_printer_delete:
7101  * @object: A #CphIfaceMechanism.
7102  * @invocation: (transfer full): A #GDBusMethodInvocation.
7103  * @error: Parameter to return.
7104  *
7105  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterDelete">PrinterDelete()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7106  *
7107  * This method will free @invocation, you cannot use it afterwards.
7108  */
7109 void
cph_iface_mechanism_complete_printer_delete(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7110 cph_iface_mechanism_complete_printer_delete (
7111     CphIfaceMechanism *object,
7112     GDBusMethodInvocation *invocation,
7113     const gchar *error)
7114 {
7115   g_dbus_method_invocation_return_value (invocation,
7116     g_variant_new ("(s)",
7117                    error));
7118 }
7119 
7120 /**
7121  * cph_iface_mechanism_complete_class_add_printer:
7122  * @object: A #CphIfaceMechanism.
7123  * @invocation: (transfer full): A #GDBusMethodInvocation.
7124  * @error: Parameter to return.
7125  *
7126  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassAddPrinter">ClassAddPrinter()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7127  *
7128  * This method will free @invocation, you cannot use it afterwards.
7129  */
7130 void
cph_iface_mechanism_complete_class_add_printer(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7131 cph_iface_mechanism_complete_class_add_printer (
7132     CphIfaceMechanism *object,
7133     GDBusMethodInvocation *invocation,
7134     const gchar *error)
7135 {
7136   g_dbus_method_invocation_return_value (invocation,
7137     g_variant_new ("(s)",
7138                    error));
7139 }
7140 
7141 /**
7142  * cph_iface_mechanism_complete_class_delete_printer:
7143  * @object: A #CphIfaceMechanism.
7144  * @invocation: (transfer full): A #GDBusMethodInvocation.
7145  * @error: Parameter to return.
7146  *
7147  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassDeletePrinter">ClassDeletePrinter()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7148  *
7149  * This method will free @invocation, you cannot use it afterwards.
7150  */
7151 void
cph_iface_mechanism_complete_class_delete_printer(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7152 cph_iface_mechanism_complete_class_delete_printer (
7153     CphIfaceMechanism *object,
7154     GDBusMethodInvocation *invocation,
7155     const gchar *error)
7156 {
7157   g_dbus_method_invocation_return_value (invocation,
7158     g_variant_new ("(s)",
7159                    error));
7160 }
7161 
7162 /**
7163  * cph_iface_mechanism_complete_class_delete:
7164  * @object: A #CphIfaceMechanism.
7165  * @invocation: (transfer full): A #GDBusMethodInvocation.
7166  * @error: Parameter to return.
7167  *
7168  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.ClassDelete">ClassDelete()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7169  *
7170  * This method will free @invocation, you cannot use it afterwards.
7171  */
7172 void
cph_iface_mechanism_complete_class_delete(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7173 cph_iface_mechanism_complete_class_delete (
7174     CphIfaceMechanism *object,
7175     GDBusMethodInvocation *invocation,
7176     const gchar *error)
7177 {
7178   g_dbus_method_invocation_return_value (invocation,
7179     g_variant_new ("(s)",
7180                    error));
7181 }
7182 
7183 /**
7184  * cph_iface_mechanism_complete_printer_set_info:
7185  * @object: A #CphIfaceMechanism.
7186  * @invocation: (transfer full): A #GDBusMethodInvocation.
7187  * @error: Parameter to return.
7188  *
7189  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetInfo">PrinterSetInfo()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7190  *
7191  * This method will free @invocation, you cannot use it afterwards.
7192  */
7193 void
cph_iface_mechanism_complete_printer_set_info(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7194 cph_iface_mechanism_complete_printer_set_info (
7195     CphIfaceMechanism *object,
7196     GDBusMethodInvocation *invocation,
7197     const gchar *error)
7198 {
7199   g_dbus_method_invocation_return_value (invocation,
7200     g_variant_new ("(s)",
7201                    error));
7202 }
7203 
7204 /**
7205  * cph_iface_mechanism_complete_printer_set_location:
7206  * @object: A #CphIfaceMechanism.
7207  * @invocation: (transfer full): A #GDBusMethodInvocation.
7208  * @error: Parameter to return.
7209  *
7210  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetLocation">PrinterSetLocation()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7211  *
7212  * This method will free @invocation, you cannot use it afterwards.
7213  */
7214 void
cph_iface_mechanism_complete_printer_set_location(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7215 cph_iface_mechanism_complete_printer_set_location (
7216     CphIfaceMechanism *object,
7217     GDBusMethodInvocation *invocation,
7218     const gchar *error)
7219 {
7220   g_dbus_method_invocation_return_value (invocation,
7221     g_variant_new ("(s)",
7222                    error));
7223 }
7224 
7225 /**
7226  * cph_iface_mechanism_complete_printer_set_shared:
7227  * @object: A #CphIfaceMechanism.
7228  * @invocation: (transfer full): A #GDBusMethodInvocation.
7229  * @error: Parameter to return.
7230  *
7231  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetShared">PrinterSetShared()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7232  *
7233  * This method will free @invocation, you cannot use it afterwards.
7234  */
7235 void
cph_iface_mechanism_complete_printer_set_shared(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7236 cph_iface_mechanism_complete_printer_set_shared (
7237     CphIfaceMechanism *object,
7238     GDBusMethodInvocation *invocation,
7239     const gchar *error)
7240 {
7241   g_dbus_method_invocation_return_value (invocation,
7242     g_variant_new ("(s)",
7243                    error));
7244 }
7245 
7246 /**
7247  * cph_iface_mechanism_complete_printer_set_job_sheets:
7248  * @object: A #CphIfaceMechanism.
7249  * @invocation: (transfer full): A #GDBusMethodInvocation.
7250  * @error: Parameter to return.
7251  *
7252  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetJobSheets">PrinterSetJobSheets()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7253  *
7254  * This method will free @invocation, you cannot use it afterwards.
7255  */
7256 void
cph_iface_mechanism_complete_printer_set_job_sheets(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7257 cph_iface_mechanism_complete_printer_set_job_sheets (
7258     CphIfaceMechanism *object,
7259     GDBusMethodInvocation *invocation,
7260     const gchar *error)
7261 {
7262   g_dbus_method_invocation_return_value (invocation,
7263     g_variant_new ("(s)",
7264                    error));
7265 }
7266 
7267 /**
7268  * cph_iface_mechanism_complete_printer_set_error_policy:
7269  * @object: A #CphIfaceMechanism.
7270  * @invocation: (transfer full): A #GDBusMethodInvocation.
7271  * @error: Parameter to return.
7272  *
7273  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetErrorPolicy">PrinterSetErrorPolicy()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7274  *
7275  * This method will free @invocation, you cannot use it afterwards.
7276  */
7277 void
cph_iface_mechanism_complete_printer_set_error_policy(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7278 cph_iface_mechanism_complete_printer_set_error_policy (
7279     CphIfaceMechanism *object,
7280     GDBusMethodInvocation *invocation,
7281     const gchar *error)
7282 {
7283   g_dbus_method_invocation_return_value (invocation,
7284     g_variant_new ("(s)",
7285                    error));
7286 }
7287 
7288 /**
7289  * cph_iface_mechanism_complete_printer_set_op_policy:
7290  * @object: A #CphIfaceMechanism.
7291  * @invocation: (transfer full): A #GDBusMethodInvocation.
7292  * @error: Parameter to return.
7293  *
7294  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetOpPolicy">PrinterSetOpPolicy()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7295  *
7296  * This method will free @invocation, you cannot use it afterwards.
7297  */
7298 void
cph_iface_mechanism_complete_printer_set_op_policy(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7299 cph_iface_mechanism_complete_printer_set_op_policy (
7300     CphIfaceMechanism *object,
7301     GDBusMethodInvocation *invocation,
7302     const gchar *error)
7303 {
7304   g_dbus_method_invocation_return_value (invocation,
7305     g_variant_new ("(s)",
7306                    error));
7307 }
7308 
7309 /**
7310  * cph_iface_mechanism_complete_printer_set_users_allowed:
7311  * @object: A #CphIfaceMechanism.
7312  * @invocation: (transfer full): A #GDBusMethodInvocation.
7313  * @error: Parameter to return.
7314  *
7315  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetUsersAllowed">PrinterSetUsersAllowed()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7316  *
7317  * This method will free @invocation, you cannot use it afterwards.
7318  */
7319 void
cph_iface_mechanism_complete_printer_set_users_allowed(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7320 cph_iface_mechanism_complete_printer_set_users_allowed (
7321     CphIfaceMechanism *object,
7322     GDBusMethodInvocation *invocation,
7323     const gchar *error)
7324 {
7325   g_dbus_method_invocation_return_value (invocation,
7326     g_variant_new ("(s)",
7327                    error));
7328 }
7329 
7330 /**
7331  * cph_iface_mechanism_complete_printer_set_users_denied:
7332  * @object: A #CphIfaceMechanism.
7333  * @invocation: (transfer full): A #GDBusMethodInvocation.
7334  * @error: Parameter to return.
7335  *
7336  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterSetUsersDenied">PrinterSetUsersDenied()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7337  *
7338  * This method will free @invocation, you cannot use it afterwards.
7339  */
7340 void
cph_iface_mechanism_complete_printer_set_users_denied(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7341 cph_iface_mechanism_complete_printer_set_users_denied (
7342     CphIfaceMechanism *object,
7343     GDBusMethodInvocation *invocation,
7344     const gchar *error)
7345 {
7346   g_dbus_method_invocation_return_value (invocation,
7347     g_variant_new ("(s)",
7348                    error));
7349 }
7350 
7351 /**
7352  * cph_iface_mechanism_complete_printer_add_option_default:
7353  * @object: A #CphIfaceMechanism.
7354  * @invocation: (transfer full): A #GDBusMethodInvocation.
7355  * @error: Parameter to return.
7356  *
7357  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddOptionDefault">PrinterAddOptionDefault()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7358  *
7359  * This method will free @invocation, you cannot use it afterwards.
7360  */
7361 void
cph_iface_mechanism_complete_printer_add_option_default(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7362 cph_iface_mechanism_complete_printer_add_option_default (
7363     CphIfaceMechanism *object,
7364     GDBusMethodInvocation *invocation,
7365     const gchar *error)
7366 {
7367   g_dbus_method_invocation_return_value (invocation,
7368     g_variant_new ("(s)",
7369                    error));
7370 }
7371 
7372 /**
7373  * cph_iface_mechanism_complete_printer_delete_option_default:
7374  * @object: A #CphIfaceMechanism.
7375  * @invocation: (transfer full): A #GDBusMethodInvocation.
7376  * @error: Parameter to return.
7377  *
7378  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterDeleteOptionDefault">PrinterDeleteOptionDefault()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7379  *
7380  * This method will free @invocation, you cannot use it afterwards.
7381  */
7382 void
cph_iface_mechanism_complete_printer_delete_option_default(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7383 cph_iface_mechanism_complete_printer_delete_option_default (
7384     CphIfaceMechanism *object,
7385     GDBusMethodInvocation *invocation,
7386     const gchar *error)
7387 {
7388   g_dbus_method_invocation_return_value (invocation,
7389     g_variant_new ("(s)",
7390                    error));
7391 }
7392 
7393 /**
7394  * cph_iface_mechanism_complete_printer_add_option:
7395  * @object: A #CphIfaceMechanism.
7396  * @invocation: (transfer full): A #GDBusMethodInvocation.
7397  * @error: Parameter to return.
7398  *
7399  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.PrinterAddOption">PrinterAddOption()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7400  *
7401  * This method will free @invocation, you cannot use it afterwards.
7402  */
7403 void
cph_iface_mechanism_complete_printer_add_option(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7404 cph_iface_mechanism_complete_printer_add_option (
7405     CphIfaceMechanism *object,
7406     GDBusMethodInvocation *invocation,
7407     const gchar *error)
7408 {
7409   g_dbus_method_invocation_return_value (invocation,
7410     g_variant_new ("(s)",
7411                    error));
7412 }
7413 
7414 /**
7415  * cph_iface_mechanism_complete_job_cancel:
7416  * @object: A #CphIfaceMechanism.
7417  * @invocation: (transfer full): A #GDBusMethodInvocation.
7418  * @error: Parameter to return.
7419  *
7420  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobCancel">JobCancel()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7421  *
7422  * This method will free @invocation, you cannot use it afterwards.
7423  *
7424  * Deprecated: The D-Bus method has been deprecated.
7425  */
7426 void
cph_iface_mechanism_complete_job_cancel(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7427 cph_iface_mechanism_complete_job_cancel (
7428     CphIfaceMechanism *object,
7429     GDBusMethodInvocation *invocation,
7430     const gchar *error)
7431 {
7432   g_dbus_method_invocation_return_value (invocation,
7433     g_variant_new ("(s)",
7434                    error));
7435 }
7436 
7437 /**
7438  * cph_iface_mechanism_complete_job_cancel_purge:
7439  * @object: A #CphIfaceMechanism.
7440  * @invocation: (transfer full): A #GDBusMethodInvocation.
7441  * @error: Parameter to return.
7442  *
7443  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobCancelPurge">JobCancelPurge()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7444  *
7445  * This method will free @invocation, you cannot use it afterwards.
7446  */
7447 void
cph_iface_mechanism_complete_job_cancel_purge(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7448 cph_iface_mechanism_complete_job_cancel_purge (
7449     CphIfaceMechanism *object,
7450     GDBusMethodInvocation *invocation,
7451     const gchar *error)
7452 {
7453   g_dbus_method_invocation_return_value (invocation,
7454     g_variant_new ("(s)",
7455                    error));
7456 }
7457 
7458 /**
7459  * cph_iface_mechanism_complete_job_restart:
7460  * @object: A #CphIfaceMechanism.
7461  * @invocation: (transfer full): A #GDBusMethodInvocation.
7462  * @error: Parameter to return.
7463  *
7464  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobRestart">JobRestart()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7465  *
7466  * This method will free @invocation, you cannot use it afterwards.
7467  */
7468 void
cph_iface_mechanism_complete_job_restart(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7469 cph_iface_mechanism_complete_job_restart (
7470     CphIfaceMechanism *object,
7471     GDBusMethodInvocation *invocation,
7472     const gchar *error)
7473 {
7474   g_dbus_method_invocation_return_value (invocation,
7475     g_variant_new ("(s)",
7476                    error));
7477 }
7478 
7479 /**
7480  * cph_iface_mechanism_complete_job_set_hold_until:
7481  * @object: A #CphIfaceMechanism.
7482  * @invocation: (transfer full): A #GDBusMethodInvocation.
7483  * @error: Parameter to return.
7484  *
7485  * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-opensuse-CupsPkHelper-Mechanism.JobSetHoldUntil">JobSetHoldUntil()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
7486  *
7487  * This method will free @invocation, you cannot use it afterwards.
7488  */
7489 void
cph_iface_mechanism_complete_job_set_hold_until(CphIfaceMechanism * object,GDBusMethodInvocation * invocation,const gchar * error)7490 cph_iface_mechanism_complete_job_set_hold_until (
7491     CphIfaceMechanism *object,
7492     GDBusMethodInvocation *invocation,
7493     const gchar *error)
7494 {
7495   g_dbus_method_invocation_return_value (invocation,
7496     g_variant_new ("(s)",
7497                    error));
7498 }
7499 
7500 /* ------------------------------------------------------------------------ */
7501 
7502 /**
7503  * CphIfaceMechanismProxy:
7504  *
7505  * The #CphIfaceMechanismProxy structure contains only private data and should only be accessed using the provided API.
7506  */
7507 
7508 /**
7509  * CphIfaceMechanismProxyClass:
7510  * @parent_class: The parent class.
7511  *
7512  * Class structure for #CphIfaceMechanismProxy.
7513  */
7514 
7515 struct _CphIfaceMechanismProxyPrivate
7516 {
7517   GData *qdata;
7518 };
7519 
7520 static void cph_iface_mechanism_proxy_iface_init (CphIfaceMechanismIface *iface);
7521 
7522 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
7523 G_DEFINE_TYPE_WITH_CODE (CphIfaceMechanismProxy, cph_iface_mechanism_proxy, G_TYPE_DBUS_PROXY,
7524                          G_ADD_PRIVATE (CphIfaceMechanismProxy)
7525                          G_IMPLEMENT_INTERFACE (CPH_IFACE_TYPE_MECHANISM, cph_iface_mechanism_proxy_iface_init));
7526 
7527 #else
7528 G_DEFINE_TYPE_WITH_CODE (CphIfaceMechanismProxy, cph_iface_mechanism_proxy, G_TYPE_DBUS_PROXY,
7529                          G_IMPLEMENT_INTERFACE (CPH_IFACE_TYPE_MECHANISM, cph_iface_mechanism_proxy_iface_init));
7530 
7531 #endif
7532 static void
cph_iface_mechanism_proxy_finalize(GObject * object)7533 cph_iface_mechanism_proxy_finalize (GObject *object)
7534 {
7535   CphIfaceMechanismProxy *proxy = CPH_IFACE_MECHANISM_PROXY (object);
7536   g_datalist_clear (&proxy->priv->qdata);
7537   G_OBJECT_CLASS (cph_iface_mechanism_proxy_parent_class)->finalize (object);
7538 }
7539 
7540 static void
cph_iface_mechanism_proxy_get_property(GObject * object,guint prop_id,GValue * value,GParamSpec * pspec G_GNUC_UNUSED)7541 cph_iface_mechanism_proxy_get_property (GObject      *object,
7542   guint         prop_id,
7543   GValue       *value,
7544   GParamSpec   *pspec G_GNUC_UNUSED)
7545 {
7546 }
7547 
7548 static void
cph_iface_mechanism_proxy_set_property(GObject * object,guint prop_id,const GValue * value,GParamSpec * pspec G_GNUC_UNUSED)7549 cph_iface_mechanism_proxy_set_property (GObject      *object,
7550   guint         prop_id,
7551   const GValue *value,
7552   GParamSpec   *pspec G_GNUC_UNUSED)
7553 {
7554 }
7555 
7556 static void
cph_iface_mechanism_proxy_g_signal(GDBusProxy * proxy,const gchar * sender_name G_GNUC_UNUSED,const gchar * signal_name,GVariant * parameters)7557 cph_iface_mechanism_proxy_g_signal (GDBusProxy *proxy,
7558   const gchar *sender_name G_GNUC_UNUSED,
7559   const gchar *signal_name,
7560   GVariant *parameters)
7561 {
7562   _ExtendedGDBusSignalInfo *info;
7563   GVariantIter iter;
7564   GVariant *child;
7565   GValue *paramv;
7566   guint num_params;
7567   guint n;
7568   guint signal_id;
7569   info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_cph_iface_mechanism_interface_info.parent_struct, signal_name);
7570   if (info == NULL)
7571     return;
7572   num_params = g_variant_n_children (parameters);
7573   paramv = g_new0 (GValue, num_params + 1);
7574   g_value_init (&paramv[0], CPH_IFACE_TYPE_MECHANISM);
7575   g_value_set_object (&paramv[0], proxy);
7576   g_variant_iter_init (&iter, parameters);
7577   n = 1;
7578   while ((child = g_variant_iter_next_value (&iter)) != NULL)
7579     {
7580       _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
7581       if (arg_info->use_gvariant)
7582         {
7583           g_value_init (&paramv[n], G_TYPE_VARIANT);
7584           g_value_set_variant (&paramv[n], child);
7585           n++;
7586         }
7587       else
7588         g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
7589       g_variant_unref (child);
7590     }
7591   signal_id = g_signal_lookup (info->signal_name, CPH_IFACE_TYPE_MECHANISM);
7592   g_signal_emitv (paramv, signal_id, 0, NULL);
7593   for (n = 0; n < num_params + 1; n++)
7594     g_value_unset (&paramv[n]);
7595   g_free (paramv);
7596 }
7597 
7598 static void
cph_iface_mechanism_proxy_g_properties_changed(GDBusProxy * _proxy,GVariant * changed_properties,const gchar * const * invalidated_properties)7599 cph_iface_mechanism_proxy_g_properties_changed (GDBusProxy *_proxy,
7600   GVariant *changed_properties,
7601   const gchar *const *invalidated_properties)
7602 {
7603   CphIfaceMechanismProxy *proxy = CPH_IFACE_MECHANISM_PROXY (_proxy);
7604   guint n;
7605   const gchar *key;
7606   GVariantIter *iter;
7607   _ExtendedGDBusPropertyInfo *info;
7608   g_variant_get (changed_properties, "a{sv}", &iter);
7609   while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
7610     {
7611       info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cph_iface_mechanism_interface_info.parent_struct, key);
7612       g_datalist_remove_data (&proxy->priv->qdata, key);
7613       if (info != NULL)
7614         g_object_notify (G_OBJECT (proxy), info->hyphen_name);
7615     }
7616   g_variant_iter_free (iter);
7617   for (n = 0; invalidated_properties[n] != NULL; n++)
7618     {
7619       info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cph_iface_mechanism_interface_info.parent_struct, invalidated_properties[n]);
7620       g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
7621       if (info != NULL)
7622         g_object_notify (G_OBJECT (proxy), info->hyphen_name);
7623     }
7624 }
7625 
7626 static void
cph_iface_mechanism_proxy_init(CphIfaceMechanismProxy * proxy)7627 cph_iface_mechanism_proxy_init (CphIfaceMechanismProxy *proxy)
7628 {
7629 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
7630   proxy->priv = cph_iface_mechanism_proxy_get_instance_private (proxy);
7631 #else
7632   proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, CPH_IFACE_TYPE_MECHANISM_PROXY, CphIfaceMechanismProxyPrivate);
7633 #endif
7634 
7635   g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), cph_iface_mechanism_interface_info ());
7636 }
7637 
7638 static void
cph_iface_mechanism_proxy_class_init(CphIfaceMechanismProxyClass * klass)7639 cph_iface_mechanism_proxy_class_init (CphIfaceMechanismProxyClass *klass)
7640 {
7641   GObjectClass *gobject_class;
7642   GDBusProxyClass *proxy_class;
7643 
7644   gobject_class = G_OBJECT_CLASS (klass);
7645   gobject_class->finalize     = cph_iface_mechanism_proxy_finalize;
7646   gobject_class->get_property = cph_iface_mechanism_proxy_get_property;
7647   gobject_class->set_property = cph_iface_mechanism_proxy_set_property;
7648 
7649   proxy_class = G_DBUS_PROXY_CLASS (klass);
7650   proxy_class->g_signal = cph_iface_mechanism_proxy_g_signal;
7651   proxy_class->g_properties_changed = cph_iface_mechanism_proxy_g_properties_changed;
7652 
7653 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
7654   g_type_class_add_private (klass, sizeof (CphIfaceMechanismProxyPrivate));
7655 #endif
7656 }
7657 
7658 static void
cph_iface_mechanism_proxy_iface_init(CphIfaceMechanismIface * iface)7659 cph_iface_mechanism_proxy_iface_init (CphIfaceMechanismIface *iface)
7660 {
7661 }
7662 
7663 /**
7664  * cph_iface_mechanism_proxy_new:
7665  * @connection: A #GDBusConnection.
7666  * @flags: Flags from the #GDBusProxyFlags enumeration.
7667  * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
7668  * @object_path: An object path.
7669  * @cancellable: (allow-none): A #GCancellable or %NULL.
7670  * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
7671  * @user_data: User data to pass to @callback.
7672  *
7673  * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-opensuse-CupsPkHelper-Mechanism.top_of_page">org.opensuse.CupsPkHelper.Mechanism</link>. See g_dbus_proxy_new() for more details.
7674  *
7675  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7676  * You can then call cph_iface_mechanism_proxy_new_finish() to get the result of the operation.
7677  *
7678  * See cph_iface_mechanism_proxy_new_sync() for the synchronous, blocking version of this constructor.
7679  */
7680 void
cph_iface_mechanism_proxy_new(GDBusConnection * connection,GDBusProxyFlags flags,const gchar * name,const gchar * object_path,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)7681 cph_iface_mechanism_proxy_new (
7682     GDBusConnection     *connection,
7683     GDBusProxyFlags      flags,
7684     const gchar         *name,
7685     const gchar         *object_path,
7686     GCancellable        *cancellable,
7687     GAsyncReadyCallback  callback,
7688     gpointer             user_data)
7689 {
7690   g_async_initable_new_async (CPH_IFACE_TYPE_MECHANISM_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.opensuse.CupsPkHelper.Mechanism", NULL);
7691 }
7692 
7693 /**
7694  * cph_iface_mechanism_proxy_new_finish:
7695  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_proxy_new().
7696  * @error: Return location for error or %NULL
7697  *
7698  * Finishes an operation started with cph_iface_mechanism_proxy_new().
7699  *
7700  * Returns: (transfer full) (type CphIfaceMechanismProxy): The constructed proxy object or %NULL if @error is set.
7701  */
7702 CphIfaceMechanism *
cph_iface_mechanism_proxy_new_finish(GAsyncResult * res,GError ** error)7703 cph_iface_mechanism_proxy_new_finish (
7704     GAsyncResult        *res,
7705     GError             **error)
7706 {
7707   GObject *ret;
7708   GObject *source_object;
7709   source_object = g_async_result_get_source_object (res);
7710   ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
7711   g_object_unref (source_object);
7712   if (ret != NULL)
7713     return CPH_IFACE_MECHANISM (ret);
7714   else
7715     return NULL;
7716 }
7717 
7718 /**
7719  * cph_iface_mechanism_proxy_new_sync:
7720  * @connection: A #GDBusConnection.
7721  * @flags: Flags from the #GDBusProxyFlags enumeration.
7722  * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
7723  * @object_path: An object path.
7724  * @cancellable: (allow-none): A #GCancellable or %NULL.
7725  * @error: Return location for error or %NULL
7726  *
7727  * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-opensuse-CupsPkHelper-Mechanism.top_of_page">org.opensuse.CupsPkHelper.Mechanism</link>. See g_dbus_proxy_new_sync() for more details.
7728  *
7729  * The calling thread is blocked until a reply is received.
7730  *
7731  * See cph_iface_mechanism_proxy_new() for the asynchronous version of this constructor.
7732  *
7733  * Returns: (transfer full) (type CphIfaceMechanismProxy): The constructed proxy object or %NULL if @error is set.
7734  */
7735 CphIfaceMechanism *
cph_iface_mechanism_proxy_new_sync(GDBusConnection * connection,GDBusProxyFlags flags,const gchar * name,const gchar * object_path,GCancellable * cancellable,GError ** error)7736 cph_iface_mechanism_proxy_new_sync (
7737     GDBusConnection     *connection,
7738     GDBusProxyFlags      flags,
7739     const gchar         *name,
7740     const gchar         *object_path,
7741     GCancellable        *cancellable,
7742     GError             **error)
7743 {
7744   GInitable *ret;
7745   ret = g_initable_new (CPH_IFACE_TYPE_MECHANISM_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.opensuse.CupsPkHelper.Mechanism", NULL);
7746   if (ret != NULL)
7747     return CPH_IFACE_MECHANISM (ret);
7748   else
7749     return NULL;
7750 }
7751 
7752 
7753 /**
7754  * cph_iface_mechanism_proxy_new_for_bus:
7755  * @bus_type: A #GBusType.
7756  * @flags: Flags from the #GDBusProxyFlags enumeration.
7757  * @name: A bus name (well-known or unique).
7758  * @object_path: An object path.
7759  * @cancellable: (allow-none): A #GCancellable or %NULL.
7760  * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
7761  * @user_data: User data to pass to @callback.
7762  *
7763  * Like cph_iface_mechanism_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
7764  *
7765  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7766  * You can then call cph_iface_mechanism_proxy_new_for_bus_finish() to get the result of the operation.
7767  *
7768  * See cph_iface_mechanism_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
7769  */
7770 void
cph_iface_mechanism_proxy_new_for_bus(GBusType bus_type,GDBusProxyFlags flags,const gchar * name,const gchar * object_path,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)7771 cph_iface_mechanism_proxy_new_for_bus (
7772     GBusType             bus_type,
7773     GDBusProxyFlags      flags,
7774     const gchar         *name,
7775     const gchar         *object_path,
7776     GCancellable        *cancellable,
7777     GAsyncReadyCallback  callback,
7778     gpointer             user_data)
7779 {
7780   g_async_initable_new_async (CPH_IFACE_TYPE_MECHANISM_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.opensuse.CupsPkHelper.Mechanism", NULL);
7781 }
7782 
7783 /**
7784  * cph_iface_mechanism_proxy_new_for_bus_finish:
7785  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_mechanism_proxy_new_for_bus().
7786  * @error: Return location for error or %NULL
7787  *
7788  * Finishes an operation started with cph_iface_mechanism_proxy_new_for_bus().
7789  *
7790  * Returns: (transfer full) (type CphIfaceMechanismProxy): The constructed proxy object or %NULL if @error is set.
7791  */
7792 CphIfaceMechanism *
cph_iface_mechanism_proxy_new_for_bus_finish(GAsyncResult * res,GError ** error)7793 cph_iface_mechanism_proxy_new_for_bus_finish (
7794     GAsyncResult        *res,
7795     GError             **error)
7796 {
7797   GObject *ret;
7798   GObject *source_object;
7799   source_object = g_async_result_get_source_object (res);
7800   ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
7801   g_object_unref (source_object);
7802   if (ret != NULL)
7803     return CPH_IFACE_MECHANISM (ret);
7804   else
7805     return NULL;
7806 }
7807 
7808 /**
7809  * cph_iface_mechanism_proxy_new_for_bus_sync:
7810  * @bus_type: A #GBusType.
7811  * @flags: Flags from the #GDBusProxyFlags enumeration.
7812  * @name: A bus name (well-known or unique).
7813  * @object_path: An object path.
7814  * @cancellable: (allow-none): A #GCancellable or %NULL.
7815  * @error: Return location for error or %NULL
7816  *
7817  * Like cph_iface_mechanism_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
7818  *
7819  * The calling thread is blocked until a reply is received.
7820  *
7821  * See cph_iface_mechanism_proxy_new_for_bus() for the asynchronous version of this constructor.
7822  *
7823  * Returns: (transfer full) (type CphIfaceMechanismProxy): The constructed proxy object or %NULL if @error is set.
7824  */
7825 CphIfaceMechanism *
cph_iface_mechanism_proxy_new_for_bus_sync(GBusType bus_type,GDBusProxyFlags flags,const gchar * name,const gchar * object_path,GCancellable * cancellable,GError ** error)7826 cph_iface_mechanism_proxy_new_for_bus_sync (
7827     GBusType             bus_type,
7828     GDBusProxyFlags      flags,
7829     const gchar         *name,
7830     const gchar         *object_path,
7831     GCancellable        *cancellable,
7832     GError             **error)
7833 {
7834   GInitable *ret;
7835   ret = g_initable_new (CPH_IFACE_TYPE_MECHANISM_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.opensuse.CupsPkHelper.Mechanism", NULL);
7836   if (ret != NULL)
7837     return CPH_IFACE_MECHANISM (ret);
7838   else
7839     return NULL;
7840 }
7841 
7842 
7843 /* ------------------------------------------------------------------------ */
7844 
7845 /**
7846  * CphIfaceMechanismSkeleton:
7847  *
7848  * The #CphIfaceMechanismSkeleton structure contains only private data and should only be accessed using the provided API.
7849  */
7850 
7851 /**
7852  * CphIfaceMechanismSkeletonClass:
7853  * @parent_class: The parent class.
7854  *
7855  * Class structure for #CphIfaceMechanismSkeleton.
7856  */
7857 
7858 struct _CphIfaceMechanismSkeletonPrivate
7859 {
7860   GValue *properties;
7861   GList *changed_properties;
7862   GSource *changed_properties_idle_source;
7863   GMainContext *context;
7864   GMutex lock;
7865 };
7866 
7867 static void
_cph_iface_mechanism_skeleton_handle_method_call(GDBusConnection * connection G_GNUC_UNUSED,const gchar * sender G_GNUC_UNUSED,const gchar * object_path G_GNUC_UNUSED,const gchar * interface_name,const gchar * method_name,GVariant * parameters,GDBusMethodInvocation * invocation,gpointer user_data)7868 _cph_iface_mechanism_skeleton_handle_method_call (
7869   GDBusConnection *connection G_GNUC_UNUSED,
7870   const gchar *sender G_GNUC_UNUSED,
7871   const gchar *object_path G_GNUC_UNUSED,
7872   const gchar *interface_name,
7873   const gchar *method_name,
7874   GVariant *parameters,
7875   GDBusMethodInvocation *invocation,
7876   gpointer user_data)
7877 {
7878   CphIfaceMechanismSkeleton *skeleton = CPH_IFACE_MECHANISM_SKELETON (user_data);
7879   _ExtendedGDBusMethodInfo *info;
7880   GVariantIter iter;
7881   GVariant *child;
7882   GValue *paramv;
7883   guint num_params;
7884   guint num_extra;
7885   guint n;
7886   guint signal_id;
7887   GValue return_value = G_VALUE_INIT;
7888   info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
7889   g_assert (info != NULL);
7890   num_params = g_variant_n_children (parameters);
7891   num_extra = info->pass_fdlist ? 3 : 2;  paramv = g_new0 (GValue, num_params + num_extra);
7892   n = 0;
7893   g_value_init (&paramv[n], CPH_IFACE_TYPE_MECHANISM);
7894   g_value_set_object (&paramv[n++], skeleton);
7895   g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
7896   g_value_set_object (&paramv[n++], invocation);
7897   if (info->pass_fdlist)
7898     {
7899 #ifdef G_OS_UNIX
7900       g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
7901       g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
7902 #else
7903       g_assert_not_reached ();
7904 #endif
7905     }
7906   g_variant_iter_init (&iter, parameters);
7907   while ((child = g_variant_iter_next_value (&iter)) != NULL)
7908     {
7909       _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
7910       if (arg_info->use_gvariant)
7911         {
7912           g_value_init (&paramv[n], G_TYPE_VARIANT);
7913           g_value_set_variant (&paramv[n], child);
7914           n++;
7915         }
7916       else
7917         g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
7918       g_variant_unref (child);
7919     }
7920   signal_id = g_signal_lookup (info->signal_name, CPH_IFACE_TYPE_MECHANISM);
7921   g_value_init (&return_value, G_TYPE_BOOLEAN);
7922   g_signal_emitv (paramv, signal_id, 0, &return_value);
7923   if (!g_value_get_boolean (&return_value))
7924     g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);
7925   g_value_unset (&return_value);
7926   for (n = 0; n < num_params + num_extra; n++)
7927     g_value_unset (&paramv[n]);
7928   g_free (paramv);
7929 }
7930 
7931 static GVariant *
_cph_iface_mechanism_skeleton_handle_get_property(GDBusConnection * connection G_GNUC_UNUSED,const gchar * sender G_GNUC_UNUSED,const gchar * object_path G_GNUC_UNUSED,const gchar * interface_name G_GNUC_UNUSED,const gchar * property_name,GError ** error,gpointer user_data)7932 _cph_iface_mechanism_skeleton_handle_get_property (
7933   GDBusConnection *connection G_GNUC_UNUSED,
7934   const gchar *sender G_GNUC_UNUSED,
7935   const gchar *object_path G_GNUC_UNUSED,
7936   const gchar *interface_name G_GNUC_UNUSED,
7937   const gchar *property_name,
7938   GError **error,
7939   gpointer user_data)
7940 {
7941   CphIfaceMechanismSkeleton *skeleton = CPH_IFACE_MECHANISM_SKELETON (user_data);
7942   GValue value = G_VALUE_INIT;
7943   GParamSpec *pspec;
7944   _ExtendedGDBusPropertyInfo *info;
7945   GVariant *ret;
7946   ret = NULL;
7947   info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cph_iface_mechanism_interface_info.parent_struct, property_name);
7948   g_assert (info != NULL);
7949   pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
7950   if (pspec == NULL)
7951     {
7952       g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
7953     }
7954   else
7955     {
7956       g_value_init (&value, pspec->value_type);
7957       g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
7958       ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
7959       g_value_unset (&value);
7960     }
7961   return ret;
7962 }
7963 
7964 static gboolean
_cph_iface_mechanism_skeleton_handle_set_property(GDBusConnection * connection G_GNUC_UNUSED,const gchar * sender G_GNUC_UNUSED,const gchar * object_path G_GNUC_UNUSED,const gchar * interface_name G_GNUC_UNUSED,const gchar * property_name,GVariant * variant,GError ** error,gpointer user_data)7965 _cph_iface_mechanism_skeleton_handle_set_property (
7966   GDBusConnection *connection G_GNUC_UNUSED,
7967   const gchar *sender G_GNUC_UNUSED,
7968   const gchar *object_path G_GNUC_UNUSED,
7969   const gchar *interface_name G_GNUC_UNUSED,
7970   const gchar *property_name,
7971   GVariant *variant,
7972   GError **error,
7973   gpointer user_data)
7974 {
7975   CphIfaceMechanismSkeleton *skeleton = CPH_IFACE_MECHANISM_SKELETON (user_data);
7976   GValue value = G_VALUE_INIT;
7977   GParamSpec *pspec;
7978   _ExtendedGDBusPropertyInfo *info;
7979   gboolean ret;
7980   ret = FALSE;
7981   info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cph_iface_mechanism_interface_info.parent_struct, property_name);
7982   g_assert (info != NULL);
7983   pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
7984   if (pspec == NULL)
7985     {
7986       g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
7987     }
7988   else
7989     {
7990       if (info->use_gvariant)
7991         g_value_set_variant (&value, variant);
7992       else
7993         g_dbus_gvariant_to_gvalue (variant, &value);
7994       g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
7995       g_value_unset (&value);
7996       ret = TRUE;
7997     }
7998   return ret;
7999 }
8000 
8001 static const GDBusInterfaceVTable _cph_iface_mechanism_skeleton_vtable =
8002 {
8003   _cph_iface_mechanism_skeleton_handle_method_call,
8004   _cph_iface_mechanism_skeleton_handle_get_property,
8005   _cph_iface_mechanism_skeleton_handle_set_property,
8006   {NULL}
8007 };
8008 
8009 static GDBusInterfaceInfo *
cph_iface_mechanism_skeleton_dbus_interface_get_info(GDBusInterfaceSkeleton * skeleton G_GNUC_UNUSED)8010 cph_iface_mechanism_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
8011 {
8012   return cph_iface_mechanism_interface_info ();
8013 }
8014 
8015 static GDBusInterfaceVTable *
cph_iface_mechanism_skeleton_dbus_interface_get_vtable(GDBusInterfaceSkeleton * skeleton G_GNUC_UNUSED)8016 cph_iface_mechanism_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
8017 {
8018   return (GDBusInterfaceVTable *) &_cph_iface_mechanism_skeleton_vtable;
8019 }
8020 
8021 static GVariant *
cph_iface_mechanism_skeleton_dbus_interface_get_properties(GDBusInterfaceSkeleton * _skeleton)8022 cph_iface_mechanism_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
8023 {
8024   CphIfaceMechanismSkeleton *skeleton = CPH_IFACE_MECHANISM_SKELETON (_skeleton);
8025 
8026   GVariantBuilder builder;
8027   guint n;
8028   g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
8029   if (_cph_iface_mechanism_interface_info.parent_struct.properties == NULL)
8030     goto out;
8031   for (n = 0; _cph_iface_mechanism_interface_info.parent_struct.properties[n] != NULL; n++)
8032     {
8033       GDBusPropertyInfo *info = _cph_iface_mechanism_interface_info.parent_struct.properties[n];
8034       if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
8035         {
8036           GVariant *value;
8037           value = _cph_iface_mechanism_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.opensuse.CupsPkHelper.Mechanism", info->name, NULL, skeleton);
8038           if (value != NULL)
8039             {
8040               g_variant_take_ref (value);
8041               g_variant_builder_add (&builder, "{sv}", info->name, value);
8042               g_variant_unref (value);
8043             }
8044         }
8045     }
8046 out:
8047   return g_variant_builder_end (&builder);
8048 }
8049 
8050 static void
cph_iface_mechanism_skeleton_dbus_interface_flush(GDBusInterfaceSkeleton * _skeleton)8051 cph_iface_mechanism_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
8052 {
8053 }
8054 
8055 static void cph_iface_mechanism_skeleton_iface_init (CphIfaceMechanismIface *iface);
8056 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
8057 G_DEFINE_TYPE_WITH_CODE (CphIfaceMechanismSkeleton, cph_iface_mechanism_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
8058                          G_ADD_PRIVATE (CphIfaceMechanismSkeleton)
8059                          G_IMPLEMENT_INTERFACE (CPH_IFACE_TYPE_MECHANISM, cph_iface_mechanism_skeleton_iface_init));
8060 
8061 #else
8062 G_DEFINE_TYPE_WITH_CODE (CphIfaceMechanismSkeleton, cph_iface_mechanism_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
8063                          G_IMPLEMENT_INTERFACE (CPH_IFACE_TYPE_MECHANISM, cph_iface_mechanism_skeleton_iface_init));
8064 
8065 #endif
8066 static void
cph_iface_mechanism_skeleton_finalize(GObject * object)8067 cph_iface_mechanism_skeleton_finalize (GObject *object)
8068 {
8069   CphIfaceMechanismSkeleton *skeleton = CPH_IFACE_MECHANISM_SKELETON (object);
8070   g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
8071   if (skeleton->priv->changed_properties_idle_source != NULL)
8072     g_source_destroy (skeleton->priv->changed_properties_idle_source);
8073   g_main_context_unref (skeleton->priv->context);
8074   g_mutex_clear (&skeleton->priv->lock);
8075   G_OBJECT_CLASS (cph_iface_mechanism_skeleton_parent_class)->finalize (object);
8076 }
8077 
8078 static void
cph_iface_mechanism_skeleton_init(CphIfaceMechanismSkeleton * skeleton)8079 cph_iface_mechanism_skeleton_init (CphIfaceMechanismSkeleton *skeleton)
8080 {
8081 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
8082   skeleton->priv = cph_iface_mechanism_skeleton_get_instance_private (skeleton);
8083 #else
8084   skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, CPH_IFACE_TYPE_MECHANISM_SKELETON, CphIfaceMechanismSkeletonPrivate);
8085 #endif
8086 
8087   g_mutex_init (&skeleton->priv->lock);
8088   skeleton->priv->context = g_main_context_ref_thread_default ();
8089 }
8090 
8091 static void
cph_iface_mechanism_skeleton_class_init(CphIfaceMechanismSkeletonClass * klass)8092 cph_iface_mechanism_skeleton_class_init (CphIfaceMechanismSkeletonClass *klass)
8093 {
8094   GObjectClass *gobject_class;
8095   GDBusInterfaceSkeletonClass *skeleton_class;
8096 
8097   gobject_class = G_OBJECT_CLASS (klass);
8098   gobject_class->finalize = cph_iface_mechanism_skeleton_finalize;
8099 
8100   skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
8101   skeleton_class->get_info = cph_iface_mechanism_skeleton_dbus_interface_get_info;
8102   skeleton_class->get_properties = cph_iface_mechanism_skeleton_dbus_interface_get_properties;
8103   skeleton_class->flush = cph_iface_mechanism_skeleton_dbus_interface_flush;
8104   skeleton_class->get_vtable = cph_iface_mechanism_skeleton_dbus_interface_get_vtable;
8105 
8106 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
8107   g_type_class_add_private (klass, sizeof (CphIfaceMechanismSkeletonPrivate));
8108 #endif
8109 }
8110 
8111 static void
cph_iface_mechanism_skeleton_iface_init(CphIfaceMechanismIface * iface)8112 cph_iface_mechanism_skeleton_iface_init (CphIfaceMechanismIface *iface)
8113 {
8114 }
8115 
8116 /**
8117  * cph_iface_mechanism_skeleton_new:
8118  *
8119  * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-opensuse-CupsPkHelper-Mechanism.top_of_page">org.opensuse.CupsPkHelper.Mechanism</link>.
8120  *
8121  * Returns: (transfer full) (type CphIfaceMechanismSkeleton): The skeleton object.
8122  */
8123 CphIfaceMechanism *
cph_iface_mechanism_skeleton_new(void)8124 cph_iface_mechanism_skeleton_new (void)
8125 {
8126   return CPH_IFACE_MECHANISM (g_object_new (CPH_IFACE_TYPE_MECHANISM_SKELETON, NULL));
8127 }
8128 
8129 /* ------------------------------------------------------------------------
8130  * Code for Object, ObjectProxy and ObjectSkeleton
8131  * ------------------------------------------------------------------------
8132  */
8133 
8134 /**
8135  * SECTION:CphIfaceObject
8136  * @title: CphIfaceObject
8137  * @short_description: Specialized GDBusObject types
8138  *
8139  * This section contains the #CphIfaceObject, #CphIfaceObjectProxy, and #CphIfaceObjectSkeleton types which make it easier to work with objects implementing generated types for D-Bus interfaces.
8140  */
8141 
8142 /**
8143  * CphIfaceObject:
8144  *
8145  * The #CphIfaceObject type is a specialized container of interfaces.
8146  */
8147 
8148 /**
8149  * CphIfaceObjectIface:
8150  * @parent_iface: The parent interface.
8151  *
8152  * Virtual table for the #CphIfaceObject interface.
8153  */
8154 
8155 typedef CphIfaceObjectIface CphIfaceObjectInterface;
8156 G_DEFINE_INTERFACE_WITH_CODE (CphIfaceObject, cph_iface_object, G_TYPE_OBJECT, g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_DBUS_OBJECT));
8157 
8158 static void
cph_iface_object_default_init(CphIfaceObjectIface * iface)8159 cph_iface_object_default_init (CphIfaceObjectIface *iface)
8160 {
8161   /**
8162    * CphIfaceObject:mechanism:
8163    *
8164    * The #CphIfaceMechanism instance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-opensuse-CupsPkHelper-Mechanism.top_of_page">org.opensuse.CupsPkHelper.Mechanism</link>, if any.
8165    *
8166    * Connect to the #GObject::notify signal to get informed of property changes.
8167    */
8168   g_object_interface_install_property (iface, g_param_spec_object ("mechanism", "mechanism", "mechanism", CPH_IFACE_TYPE_MECHANISM, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS));
8169 
8170 }
8171 
8172 /**
8173  * cph_iface_object_get_mechanism:
8174  * @object: A #CphIfaceObject.
8175  *
8176  * Gets the #CphIfaceMechanism instance for the D-Bus interface <link linkend="gdbus-interface-org-opensuse-CupsPkHelper-Mechanism.top_of_page">org.opensuse.CupsPkHelper.Mechanism</link> on @object, if any.
8177  *
8178  * Returns: (transfer full): A #CphIfaceMechanism that must be freed with g_object_unref() or %NULL if @object does not implement the interface.
8179  */
cph_iface_object_get_mechanism(CphIfaceObject * object)8180 CphIfaceMechanism *cph_iface_object_get_mechanism (CphIfaceObject *object)
8181 {
8182   GDBusInterface *ret;
8183   ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.opensuse.CupsPkHelper.Mechanism");
8184   if (ret == NULL)
8185     return NULL;
8186   return CPH_IFACE_MECHANISM (ret);
8187 }
8188 
8189 
8190 /**
8191  * cph_iface_object_peek_mechanism: (skip)
8192  * @object: A #CphIfaceObject.
8193  *
8194  * Like cph_iface_object_get_mechanism() but doesn't increase the reference count on the returned object.
8195  *
8196  * <warning>It is not safe to use the returned object if you are on another thread than the one where the #GDBusObjectManagerClient or #GDBusObjectManagerServer for @object is running.</warning>
8197  *
8198  * Returns: (transfer none): A #CphIfaceMechanism or %NULL if @object does not implement the interface. Do not free the returned object, it is owned by @object.
8199  */
cph_iface_object_peek_mechanism(CphIfaceObject * object)8200 CphIfaceMechanism *cph_iface_object_peek_mechanism (CphIfaceObject *object)
8201 {
8202   GDBusInterface *ret;
8203   ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.opensuse.CupsPkHelper.Mechanism");
8204   if (ret == NULL)
8205     return NULL;
8206   g_object_unref (ret);
8207   return CPH_IFACE_MECHANISM (ret);
8208 }
8209 
8210 
8211 static void
cph_iface_object_notify(GDBusObject * object,GDBusInterface * interface)8212 cph_iface_object_notify (GDBusObject *object, GDBusInterface *interface)
8213 {
8214   _ExtendedGDBusInterfaceInfo *info = (_ExtendedGDBusInterfaceInfo *) g_dbus_interface_get_info (interface);
8215   /* info can be NULL if the other end is using a D-Bus interface we don't know
8216    * anything about, for example old generated code in this process talking to
8217    * newer generated code in the other process. */
8218   if (info != NULL)
8219     g_object_notify (G_OBJECT (object), info->hyphen_name);
8220 }
8221 
8222 /**
8223  * CphIfaceObjectProxy:
8224  *
8225  * The #CphIfaceObjectProxy structure contains only private data and should only be accessed using the provided API.
8226  */
8227 
8228 /**
8229  * CphIfaceObjectProxyClass:
8230  * @parent_class: The parent class.
8231  *
8232  * Class structure for #CphIfaceObjectProxy.
8233  */
8234 
8235 static void
cph_iface_object_proxy__cph_iface_object_iface_init(CphIfaceObjectIface * iface G_GNUC_UNUSED)8236 cph_iface_object_proxy__cph_iface_object_iface_init (CphIfaceObjectIface *iface G_GNUC_UNUSED)
8237 {
8238 }
8239 
8240 static void
cph_iface_object_proxy__g_dbus_object_iface_init(GDBusObjectIface * iface)8241 cph_iface_object_proxy__g_dbus_object_iface_init (GDBusObjectIface *iface)
8242 {
8243   iface->interface_added = cph_iface_object_notify;
8244   iface->interface_removed = cph_iface_object_notify;
8245 }
8246 
8247 
8248 G_DEFINE_TYPE_WITH_CODE (CphIfaceObjectProxy, cph_iface_object_proxy, G_TYPE_DBUS_OBJECT_PROXY,
8249                          G_IMPLEMENT_INTERFACE (CPH_IFACE_TYPE_OBJECT, cph_iface_object_proxy__cph_iface_object_iface_init)
8250                          G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, cph_iface_object_proxy__g_dbus_object_iface_init));
8251 
8252 static void
cph_iface_object_proxy_init(CphIfaceObjectProxy * object G_GNUC_UNUSED)8253 cph_iface_object_proxy_init (CphIfaceObjectProxy *object G_GNUC_UNUSED)
8254 {
8255 }
8256 
8257 static void
cph_iface_object_proxy_set_property(GObject * gobject,guint prop_id,const GValue * value G_GNUC_UNUSED,GParamSpec * pspec)8258 cph_iface_object_proxy_set_property (GObject      *gobject,
8259   guint         prop_id,
8260   const GValue *value G_GNUC_UNUSED,
8261   GParamSpec   *pspec)
8262 {
8263   G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
8264 }
8265 
8266 static void
cph_iface_object_proxy_get_property(GObject * gobject,guint prop_id,GValue * value,GParamSpec * pspec)8267 cph_iface_object_proxy_get_property (GObject      *gobject,
8268   guint         prop_id,
8269   GValue       *value,
8270   GParamSpec   *pspec)
8271 {
8272   CphIfaceObjectProxy *object = CPH_IFACE_OBJECT_PROXY (gobject);
8273   GDBusInterface *interface;
8274 
8275   switch (prop_id)
8276     {
8277     case 1:
8278       interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.opensuse.CupsPkHelper.Mechanism");
8279       g_value_take_object (value, interface);
8280       break;
8281 
8282     default:
8283       G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
8284       break;
8285   }
8286 }
8287 
8288 static void
cph_iface_object_proxy_class_init(CphIfaceObjectProxyClass * klass)8289 cph_iface_object_proxy_class_init (CphIfaceObjectProxyClass *klass)
8290 {
8291   GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
8292 
8293   gobject_class->set_property = cph_iface_object_proxy_set_property;
8294   gobject_class->get_property = cph_iface_object_proxy_get_property;
8295 
8296   g_object_class_override_property (gobject_class, 1, "mechanism");
8297 }
8298 
8299 /**
8300  * cph_iface_object_proxy_new:
8301  * @connection: A #GDBusConnection.
8302  * @object_path: An object path.
8303  *
8304  * Creates a new proxy object.
8305  *
8306  * Returns: (transfer full): The proxy object.
8307  */
8308 CphIfaceObjectProxy *
cph_iface_object_proxy_new(GDBusConnection * connection,const gchar * object_path)8309 cph_iface_object_proxy_new (GDBusConnection *connection,
8310   const gchar *object_path)
8311 {
8312   g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), NULL);
8313   g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);
8314   return CPH_IFACE_OBJECT_PROXY (g_object_new (CPH_IFACE_TYPE_OBJECT_PROXY, "g-connection", connection, "g-object-path", object_path, NULL));
8315 }
8316 
8317 /**
8318  * CphIfaceObjectSkeleton:
8319  *
8320  * The #CphIfaceObjectSkeleton structure contains only private data and should only be accessed using the provided API.
8321  */
8322 
8323 /**
8324  * CphIfaceObjectSkeletonClass:
8325  * @parent_class: The parent class.
8326  *
8327  * Class structure for #CphIfaceObjectSkeleton.
8328  */
8329 
8330 static void
cph_iface_object_skeleton__cph_iface_object_iface_init(CphIfaceObjectIface * iface G_GNUC_UNUSED)8331 cph_iface_object_skeleton__cph_iface_object_iface_init (CphIfaceObjectIface *iface G_GNUC_UNUSED)
8332 {
8333 }
8334 
8335 
8336 static void
cph_iface_object_skeleton__g_dbus_object_iface_init(GDBusObjectIface * iface)8337 cph_iface_object_skeleton__g_dbus_object_iface_init (GDBusObjectIface *iface)
8338 {
8339   iface->interface_added = cph_iface_object_notify;
8340   iface->interface_removed = cph_iface_object_notify;
8341 }
8342 
8343 G_DEFINE_TYPE_WITH_CODE (CphIfaceObjectSkeleton, cph_iface_object_skeleton, G_TYPE_DBUS_OBJECT_SKELETON,
8344                          G_IMPLEMENT_INTERFACE (CPH_IFACE_TYPE_OBJECT, cph_iface_object_skeleton__cph_iface_object_iface_init)
8345                          G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, cph_iface_object_skeleton__g_dbus_object_iface_init));
8346 
8347 static void
cph_iface_object_skeleton_init(CphIfaceObjectSkeleton * object G_GNUC_UNUSED)8348 cph_iface_object_skeleton_init (CphIfaceObjectSkeleton *object G_GNUC_UNUSED)
8349 {
8350 }
8351 
8352 static void
cph_iface_object_skeleton_set_property(GObject * gobject,guint prop_id,const GValue * value,GParamSpec * pspec)8353 cph_iface_object_skeleton_set_property (GObject      *gobject,
8354   guint         prop_id,
8355   const GValue *value,
8356   GParamSpec   *pspec)
8357 {
8358   CphIfaceObjectSkeleton *object = CPH_IFACE_OBJECT_SKELETON (gobject);
8359   GDBusInterfaceSkeleton *interface;
8360 
8361   switch (prop_id)
8362     {
8363     case 1:
8364       interface = g_value_get_object (value);
8365       if (interface != NULL)
8366         {
8367           g_warn_if_fail (CPH_IFACE_IS_MECHANISM (interface));
8368           g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object), interface);
8369         }
8370       else
8371         {
8372           g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object), "org.opensuse.CupsPkHelper.Mechanism");
8373         }
8374       break;
8375 
8376     default:
8377       G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
8378       break;
8379   }
8380 }
8381 
8382 static void
cph_iface_object_skeleton_get_property(GObject * gobject,guint prop_id,GValue * value,GParamSpec * pspec)8383 cph_iface_object_skeleton_get_property (GObject      *gobject,
8384   guint         prop_id,
8385   GValue       *value,
8386   GParamSpec   *pspec)
8387 {
8388   CphIfaceObjectSkeleton *object = CPH_IFACE_OBJECT_SKELETON (gobject);
8389   GDBusInterface *interface;
8390 
8391   switch (prop_id)
8392     {
8393     case 1:
8394       interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.opensuse.CupsPkHelper.Mechanism");
8395       g_value_take_object (value, interface);
8396       break;
8397 
8398     default:
8399       G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
8400       break;
8401   }
8402 }
8403 
8404 static void
cph_iface_object_skeleton_class_init(CphIfaceObjectSkeletonClass * klass)8405 cph_iface_object_skeleton_class_init (CphIfaceObjectSkeletonClass *klass)
8406 {
8407   GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
8408 
8409   gobject_class->set_property = cph_iface_object_skeleton_set_property;
8410   gobject_class->get_property = cph_iface_object_skeleton_get_property;
8411 
8412   g_object_class_override_property (gobject_class, 1, "mechanism");
8413 }
8414 
8415 /**
8416  * cph_iface_object_skeleton_new:
8417  * @object_path: An object path.
8418  *
8419  * Creates a new skeleton object.
8420  *
8421  * Returns: (transfer full): The skeleton object.
8422  */
8423 CphIfaceObjectSkeleton *
cph_iface_object_skeleton_new(const gchar * object_path)8424 cph_iface_object_skeleton_new (const gchar *object_path)
8425 {
8426   g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);
8427   return CPH_IFACE_OBJECT_SKELETON (g_object_new (CPH_IFACE_TYPE_OBJECT_SKELETON, "g-object-path", object_path, NULL));
8428 }
8429 
8430 /**
8431  * cph_iface_object_skeleton_set_mechanism:
8432  * @object: A #CphIfaceObjectSkeleton.
8433  * @interface_: (allow-none): A #CphIfaceMechanism or %NULL to clear the interface.
8434  *
8435  * Sets the #CphIfaceMechanism instance for the D-Bus interface <link linkend="gdbus-interface-org-opensuse-CupsPkHelper-Mechanism.top_of_page">org.opensuse.CupsPkHelper.Mechanism</link> on @object.
8436  */
cph_iface_object_skeleton_set_mechanism(CphIfaceObjectSkeleton * object,CphIfaceMechanism * interface_)8437 void cph_iface_object_skeleton_set_mechanism (CphIfaceObjectSkeleton *object, CphIfaceMechanism *interface_)
8438 {
8439   g_object_set (G_OBJECT (object), "mechanism", interface_, NULL);
8440 }
8441 
8442 
8443 /* ------------------------------------------------------------------------
8444  * Code for ObjectManager client
8445  * ------------------------------------------------------------------------
8446  */
8447 
8448 /**
8449  * SECTION:CphIfaceObjectManagerClient
8450  * @title: CphIfaceObjectManagerClient
8451  * @short_description: Generated GDBusObjectManagerClient type
8452  *
8453  * This section contains a #GDBusObjectManagerClient that uses cph_iface_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc.
8454  */
8455 
8456 /**
8457  * CphIfaceObjectManagerClient:
8458  *
8459  * The #CphIfaceObjectManagerClient structure contains only private data and should only be accessed using the provided API.
8460  */
8461 
8462 /**
8463  * CphIfaceObjectManagerClientClass:
8464  * @parent_class: The parent class.
8465  *
8466  * Class structure for #CphIfaceObjectManagerClient.
8467  */
8468 
8469 G_DEFINE_TYPE (CphIfaceObjectManagerClient, cph_iface_object_manager_client, G_TYPE_DBUS_OBJECT_MANAGER_CLIENT);
8470 
8471 static void
cph_iface_object_manager_client_init(CphIfaceObjectManagerClient * manager G_GNUC_UNUSED)8472 cph_iface_object_manager_client_init (CphIfaceObjectManagerClient *manager G_GNUC_UNUSED)
8473 {
8474 }
8475 
8476 static void
cph_iface_object_manager_client_class_init(CphIfaceObjectManagerClientClass * klass G_GNUC_UNUSED)8477 cph_iface_object_manager_client_class_init (CphIfaceObjectManagerClientClass *klass G_GNUC_UNUSED)
8478 {
8479 }
8480 
8481 /**
8482  * cph_iface_object_manager_client_get_proxy_type:
8483  * @manager: A #GDBusObjectManagerClient.
8484  * @object_path: The object path of the remote object (unused).
8485  * @interface_name: (allow-none): Interface name of the remote object or %NULL to get the object proxy #GType.
8486  * @user_data: User data (unused).
8487  *
8488  * A #GDBusProxyTypeFunc that maps @interface_name to the generated #GDBusObjectProxy<!-- -->- and #GDBusProxy<!-- -->-derived types.
8489  *
8490  * Returns: A #GDBusProxy<!-- -->-derived #GType if @interface_name is not %NULL, otherwise the #GType for #CphIfaceObjectProxy.
8491  */
8492 GType
cph_iface_object_manager_client_get_proxy_type(GDBusObjectManagerClient * manager G_GNUC_UNUSED,const gchar * object_path G_GNUC_UNUSED,const gchar * interface_name,gpointer user_data G_GNUC_UNUSED)8493 cph_iface_object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager G_GNUC_UNUSED, const gchar *object_path G_GNUC_UNUSED, const gchar *interface_name, gpointer user_data G_GNUC_UNUSED)
8494 {
8495   static gsize once_init_value = 0;
8496   static GHashTable *lookup_hash;
8497   GType ret;
8498 
8499   if (interface_name == NULL)
8500     return CPH_IFACE_TYPE_OBJECT_PROXY;
8501   if (g_once_init_enter (&once_init_value))
8502     {
8503       lookup_hash = g_hash_table_new (g_str_hash, g_str_equal);
8504       g_hash_table_insert (lookup_hash, (gpointer) "org.opensuse.CupsPkHelper.Mechanism", GSIZE_TO_POINTER (CPH_IFACE_TYPE_MECHANISM_PROXY));
8505       g_once_init_leave (&once_init_value, 1);
8506     }
8507   ret = (GType) GPOINTER_TO_SIZE (g_hash_table_lookup (lookup_hash, interface_name));
8508   if (ret == (GType) 0)
8509     ret = G_TYPE_DBUS_PROXY;
8510   return ret;
8511 }
8512 
8513 /**
8514  * cph_iface_object_manager_client_new:
8515  * @connection: A #GDBusConnection.
8516  * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
8517  * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
8518  * @object_path: An object path.
8519  * @cancellable: (allow-none): A #GCancellable or %NULL.
8520  * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
8521  * @user_data: User data to pass to @callback.
8522  *
8523  * Asynchronously creates #GDBusObjectManagerClient using cph_iface_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new() for more details.
8524  *
8525  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
8526  * You can then call cph_iface_object_manager_client_new_finish() to get the result of the operation.
8527  *
8528  * See cph_iface_object_manager_client_new_sync() for the synchronous, blocking version of this constructor.
8529  */
8530 void
cph_iface_object_manager_client_new(GDBusConnection * connection,GDBusObjectManagerClientFlags flags,const gchar * name,const gchar * object_path,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)8531 cph_iface_object_manager_client_new (
8532     GDBusConnection        *connection,
8533     GDBusObjectManagerClientFlags  flags,
8534     const gchar            *name,
8535     const gchar            *object_path,
8536     GCancellable           *cancellable,
8537     GAsyncReadyCallback     callback,
8538     gpointer                user_data)
8539 {
8540   g_async_initable_new_async (CPH_IFACE_TYPE_OBJECT_MANAGER_CLIENT, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "flags", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-func", cph_iface_object_manager_client_get_proxy_type, NULL);
8541 }
8542 
8543 /**
8544  * cph_iface_object_manager_client_new_finish:
8545  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_object_manager_client_new().
8546  * @error: Return location for error or %NULL
8547  *
8548  * Finishes an operation started with cph_iface_object_manager_client_new().
8549  *
8550  * Returns: (transfer full) (type CphIfaceObjectManagerClient): The constructed object manager client or %NULL if @error is set.
8551  */
8552 GDBusObjectManager *
cph_iface_object_manager_client_new_finish(GAsyncResult * res,GError ** error)8553 cph_iface_object_manager_client_new_finish (
8554     GAsyncResult        *res,
8555     GError             **error)
8556 {
8557   GObject *ret;
8558   GObject *source_object;
8559   source_object = g_async_result_get_source_object (res);
8560   ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
8561   g_object_unref (source_object);
8562   if (ret != NULL)
8563     return G_DBUS_OBJECT_MANAGER (ret);
8564   else
8565     return NULL;
8566 }
8567 
8568 /**
8569  * cph_iface_object_manager_client_new_sync:
8570  * @connection: A #GDBusConnection.
8571  * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
8572  * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
8573  * @object_path: An object path.
8574  * @cancellable: (allow-none): A #GCancellable or %NULL.
8575  * @error: Return location for error or %NULL
8576  *
8577  * Synchronously creates #GDBusObjectManagerClient using cph_iface_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new_sync() for more details.
8578  *
8579  * The calling thread is blocked until a reply is received.
8580  *
8581  * See cph_iface_object_manager_client_new() for the asynchronous version of this constructor.
8582  *
8583  * Returns: (transfer full) (type CphIfaceObjectManagerClient): The constructed object manager client or %NULL if @error is set.
8584  */
8585 GDBusObjectManager *
cph_iface_object_manager_client_new_sync(GDBusConnection * connection,GDBusObjectManagerClientFlags flags,const gchar * name,const gchar * object_path,GCancellable * cancellable,GError ** error)8586 cph_iface_object_manager_client_new_sync (
8587     GDBusConnection        *connection,
8588     GDBusObjectManagerClientFlags  flags,
8589     const gchar            *name,
8590     const gchar            *object_path,
8591     GCancellable           *cancellable,
8592     GError                **error)
8593 {
8594   GInitable *ret;
8595   ret = g_initable_new (CPH_IFACE_TYPE_OBJECT_MANAGER_CLIENT, cancellable, error, "flags", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-func", cph_iface_object_manager_client_get_proxy_type, NULL);
8596   if (ret != NULL)
8597     return G_DBUS_OBJECT_MANAGER (ret);
8598   else
8599     return NULL;
8600 }
8601 
8602 
8603 /**
8604  * cph_iface_object_manager_client_new_for_bus:
8605  * @bus_type: A #GBusType.
8606  * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
8607  * @name: A bus name (well-known or unique).
8608  * @object_path: An object path.
8609  * @cancellable: (allow-none): A #GCancellable or %NULL.
8610  * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
8611  * @user_data: User data to pass to @callback.
8612  *
8613  * Like cph_iface_object_manager_client_new() but takes a #GBusType instead of a #GDBusConnection.
8614  *
8615  * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
8616  * You can then call cph_iface_object_manager_client_new_for_bus_finish() to get the result of the operation.
8617  *
8618  * See cph_iface_object_manager_client_new_for_bus_sync() for the synchronous, blocking version of this constructor.
8619  */
8620 void
cph_iface_object_manager_client_new_for_bus(GBusType bus_type,GDBusObjectManagerClientFlags flags,const gchar * name,const gchar * object_path,GCancellable * cancellable,GAsyncReadyCallback callback,gpointer user_data)8621 cph_iface_object_manager_client_new_for_bus (
8622     GBusType                bus_type,
8623     GDBusObjectManagerClientFlags  flags,
8624     const gchar            *name,
8625     const gchar            *object_path,
8626     GCancellable           *cancellable,
8627     GAsyncReadyCallback     callback,
8628     gpointer                user_data)
8629 {
8630   g_async_initable_new_async (CPH_IFACE_TYPE_OBJECT_MANAGER_CLIENT, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-proxy-type-func", cph_iface_object_manager_client_get_proxy_type, NULL);
8631 }
8632 
8633 /**
8634  * cph_iface_object_manager_client_new_for_bus_finish:
8635  * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cph_iface_object_manager_client_new_for_bus().
8636  * @error: Return location for error or %NULL
8637  *
8638  * Finishes an operation started with cph_iface_object_manager_client_new_for_bus().
8639  *
8640  * Returns: (transfer full) (type CphIfaceObjectManagerClient): The constructed object manager client or %NULL if @error is set.
8641  */
8642 GDBusObjectManager *
cph_iface_object_manager_client_new_for_bus_finish(GAsyncResult * res,GError ** error)8643 cph_iface_object_manager_client_new_for_bus_finish (
8644     GAsyncResult        *res,
8645     GError             **error)
8646 {
8647   GObject *ret;
8648   GObject *source_object;
8649   source_object = g_async_result_get_source_object (res);
8650   ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
8651   g_object_unref (source_object);
8652   if (ret != NULL)
8653     return G_DBUS_OBJECT_MANAGER (ret);
8654   else
8655     return NULL;
8656 }
8657 
8658 /**
8659  * cph_iface_object_manager_client_new_for_bus_sync:
8660  * @bus_type: A #GBusType.
8661  * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
8662  * @name: A bus name (well-known or unique).
8663  * @object_path: An object path.
8664  * @cancellable: (allow-none): A #GCancellable or %NULL.
8665  * @error: Return location for error or %NULL
8666  *
8667  * Like cph_iface_object_manager_client_new_sync() but takes a #GBusType instead of a #GDBusConnection.
8668  *
8669  * The calling thread is blocked until a reply is received.
8670  *
8671  * See cph_iface_object_manager_client_new_for_bus() for the asynchronous version of this constructor.
8672  *
8673  * Returns: (transfer full) (type CphIfaceObjectManagerClient): The constructed object manager client or %NULL if @error is set.
8674  */
8675 GDBusObjectManager *
cph_iface_object_manager_client_new_for_bus_sync(GBusType bus_type,GDBusObjectManagerClientFlags flags,const gchar * name,const gchar * object_path,GCancellable * cancellable,GError ** error)8676 cph_iface_object_manager_client_new_for_bus_sync (
8677     GBusType                bus_type,
8678     GDBusObjectManagerClientFlags  flags,
8679     const gchar            *name,
8680     const gchar            *object_path,
8681     GCancellable           *cancellable,
8682     GError                **error)
8683 {
8684   GInitable *ret;
8685   ret = g_initable_new (CPH_IFACE_TYPE_OBJECT_MANAGER_CLIENT, cancellable, error, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-proxy-type-func", cph_iface_object_manager_client_get_proxy_type, NULL);
8686   if (ret != NULL)
8687     return G_DBUS_OBJECT_MANAGER (ret);
8688   else
8689     return NULL;
8690 }
8691 
8692 
8693