Sound Manager
audio_manager_interface.c
Go to the documentation of this file.
1 /*
2  * Generated by gdbus-codegen 2.40.2. DO NOT EDIT.
3  *
4  * The license of this code is the same as for the source it was derived from.
5  */
6 
7 #ifdef HAVE_CONFIG_H
8 # include "config.h"
9 #endif
10 
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;
23 
24 typedef struct
25 {
26  GDBusMethodInfo parent_struct;
27  const gchar *signal_name;
28  gboolean pass_fdlist;
30 
31 typedef struct
32 {
33  GDBusSignalInfo parent_struct;
34  const gchar *signal_name;
36 
37 typedef struct
38 {
39  GDBusPropertyInfo parent_struct;
40  const gchar *hyphen_name;
41  gboolean use_gvariant;
43 
44 typedef struct
45 {
46  GDBusInterfaceInfo parent_struct;
47  const gchar *hyphen_name;
49 
50 typedef struct
51 {
53  guint prop_id;
54  GValue orig_value; /* the value before the change */
56 
57 static void
58 _changed_property_free (ChangedProperty *data)
59 {
60  g_value_unset (&data->orig_value);
61  g_free (data);
62 }
63 
64 static gboolean
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
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
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.genivi.audiomanager.commandinterface
153  * ------------------------------------------------------------------------
154  */
155 
164 /* ---- Introspection data for org.genivi.audiomanager.commandinterface ---- */
165 
166 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_connect_IN_ARG_sourceID =
167 {
168  {
169  -1,
170  (gchar *) "sourceID",
171  (gchar *) "q",
172  NULL
173  },
174  FALSE
175 };
176 
177 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_connect_IN_ARG_sinkID =
178 {
179  {
180  -1,
181  (gchar *) "sinkID",
182  (gchar *) "q",
183  NULL
184  },
185  FALSE
186 };
187 
188 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_connect_IN_ARG_pointers[] =
189 {
190  &_audiomanager_commandinterface_method_info_connect_IN_ARG_sourceID,
191  &_audiomanager_commandinterface_method_info_connect_IN_ARG_sinkID,
192  NULL
193 };
194 
195 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_connect_OUT_ARG_result =
196 {
197  {
198  -1,
199  (gchar *) "result",
200  (gchar *) "n",
201  NULL
202  },
203  FALSE
204 };
205 
206 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_connect_OUT_ARG_mainConnectionID =
207 {
208  {
209  -1,
210  (gchar *) "mainConnectionID",
211  (gchar *) "q",
212  NULL
213  },
214  FALSE
215 };
216 
217 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_connect_OUT_ARG_pointers[] =
218 {
219  &_audiomanager_commandinterface_method_info_connect_OUT_ARG_result,
220  &_audiomanager_commandinterface_method_info_connect_OUT_ARG_mainConnectionID,
221  NULL
222 };
223 
224 static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_connect =
225 {
226  {
227  -1,
228  (gchar *) "Connect",
229  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_connect_IN_ARG_pointers,
230  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_connect_OUT_ARG_pointers,
231  NULL
232  },
233  "handle-connect",
234  FALSE
235 };
236 
237 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_disconnect_IN_ARG_mainConnectionID =
238 {
239  {
240  -1,
241  (gchar *) "mainConnectionID",
242  (gchar *) "q",
243  NULL
244  },
245  FALSE
246 };
247 
248 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_disconnect_IN_ARG_pointers[] =
249 {
250  &_audiomanager_commandinterface_method_info_disconnect_IN_ARG_mainConnectionID,
251  NULL
252 };
253 
254 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_disconnect_OUT_ARG_result =
255 {
256  {
257  -1,
258  (gchar *) "result",
259  (gchar *) "n",
260  NULL
261  },
262  FALSE
263 };
264 
265 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_disconnect_OUT_ARG_pointers[] =
266 {
267  &_audiomanager_commandinterface_method_info_disconnect_OUT_ARG_result,
268  NULL
269 };
270 
271 static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_disconnect =
272 {
273  {
274  -1,
275  (gchar *) "Disconnect",
276  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_disconnect_IN_ARG_pointers,
277  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_disconnect_OUT_ARG_pointers,
278  NULL
279  },
280  "handle-disconnect",
281  FALSE
282 };
283 
284 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_volume_IN_ARG_sinkID =
285 {
286  {
287  -1,
288  (gchar *) "sinkID",
289  (gchar *) "q",
290  NULL
291  },
292  FALSE
293 };
294 
295 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_volume_IN_ARG_volume =
296 {
297  {
298  -1,
299  (gchar *) "volume",
300  (gchar *) "n",
301  NULL
302  },
303  FALSE
304 };
305 
306 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_set_volume_IN_ARG_pointers[] =
307 {
308  &_audiomanager_commandinterface_method_info_set_volume_IN_ARG_sinkID,
309  &_audiomanager_commandinterface_method_info_set_volume_IN_ARG_volume,
310  NULL
311 };
312 
313 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_volume_OUT_ARG_result =
314 {
315  {
316  -1,
317  (gchar *) "result",
318  (gchar *) "n",
319  NULL
320  },
321  FALSE
322 };
323 
324 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_set_volume_OUT_ARG_pointers[] =
325 {
326  &_audiomanager_commandinterface_method_info_set_volume_OUT_ARG_result,
327  NULL
328 };
329 
330 static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_set_volume =
331 {
332  {
333  -1,
334  (gchar *) "SetVolume",
335  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_set_volume_IN_ARG_pointers,
336  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_set_volume_OUT_ARG_pointers,
337  NULL
338  },
339  "handle-set-volume",
340  FALSE
341 };
342 
343 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_volume_step_IN_ARG_sinkID =
344 {
345  {
346  -1,
347  (gchar *) "sinkID",
348  (gchar *) "q",
349  NULL
350  },
351  FALSE
352 };
353 
354 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_volume_step_IN_ARG_volumeStep =
355 {
356  {
357  -1,
358  (gchar *) "volumeStep",
359  (gchar *) "n",
360  NULL
361  },
362  FALSE
363 };
364 
365 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_volume_step_IN_ARG_pointers[] =
366 {
367  &_audiomanager_commandinterface_method_info_volume_step_IN_ARG_sinkID,
368  &_audiomanager_commandinterface_method_info_volume_step_IN_ARG_volumeStep,
369  NULL
370 };
371 
372 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_volume_step_OUT_ARG_result =
373 {
374  {
375  -1,
376  (gchar *) "result",
377  (gchar *) "n",
378  NULL
379  },
380  FALSE
381 };
382 
383 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_volume_step_OUT_ARG_pointers[] =
384 {
385  &_audiomanager_commandinterface_method_info_volume_step_OUT_ARG_result,
386  NULL
387 };
388 
389 static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_volume_step =
390 {
391  {
392  -1,
393  (gchar *) "VolumeStep",
394  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_volume_step_IN_ARG_pointers,
395  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_volume_step_OUT_ARG_pointers,
396  NULL
397  },
398  "handle-volume-step",
399  FALSE
400 };
401 
402 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_sinkID =
403 {
404  {
405  -1,
406  (gchar *) "sinkID",
407  (gchar *) "q",
408  NULL
409  },
410  FALSE
411 };
412 
413 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_muteState =
414 {
415  {
416  -1,
417  (gchar *) "muteState",
418  (gchar *) "n",
419  NULL
420  },
421  FALSE
422 };
423 
424 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_pointers[] =
425 {
426  &_audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_sinkID,
427  &_audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_muteState,
428  NULL
429 };
430 
431 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_sink_mute_state_OUT_ARG_result =
432 {
433  {
434  -1,
435  (gchar *) "result",
436  (gchar *) "n",
437  NULL
438  },
439  FALSE
440 };
441 
442 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_set_sink_mute_state_OUT_ARG_pointers[] =
443 {
444  &_audiomanager_commandinterface_method_info_set_sink_mute_state_OUT_ARG_result,
445  NULL
446 };
447 
448 static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_set_sink_mute_state =
449 {
450  {
451  -1,
452  (gchar *) "SetSinkMuteState",
453  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_pointers,
454  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_set_sink_mute_state_OUT_ARG_pointers,
455  NULL
456  },
457  "handle-set-sink-mute-state",
458  FALSE
459 };
460 
461 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_result =
462 {
463  {
464  -1,
465  (gchar *) "result",
466  (gchar *) "n",
467  NULL
468  },
469  FALSE
470 };
471 
472 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_listConnections =
473 {
474  {
475  -1,
476  (gchar *) "listConnections",
477  (gchar *) "a(qqqnn)",
478  NULL
479  },
480  FALSE
481 };
482 
483 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_pointers[] =
484 {
485  &_audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_result,
486  &_audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_listConnections,
487  NULL
488 };
489 
490 static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_get_list_main_connections =
491 {
492  {
493  -1,
494  (gchar *) "GetListMainConnections",
495  NULL,
496  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_pointers,
497  NULL
498  },
499  "handle-get-list-main-connections",
500  FALSE
501 };
502 
503 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_result =
504 {
505  {
506  -1,
507  (gchar *) "result",
508  (gchar *) "n",
509  NULL
510  },
511  FALSE
512 };
513 
514 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_listMainSinks =
515 {
516  {
517  -1,
518  (gchar *) "listMainSinks",
519  (gchar *) "a(qs(nn)nnq)",
520  NULL
521  },
522  FALSE
523 };
524 
525 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_pointers[] =
526 {
527  &_audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_result,
528  &_audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_listMainSinks,
529  NULL
530 };
531 
532 static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_get_list_main_sinks =
533 {
534  {
535  -1,
536  (gchar *) "GetListMainSinks",
537  NULL,
538  (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_pointers,
539  NULL
540  },
541  "handle-get-list-main-sinks",
542  FALSE
543 };
544 
545 static const _ExtendedGDBusMethodInfo * const _audiomanager_commandinterface_method_info_pointers[] =
546 {
547  &_audiomanager_commandinterface_method_info_connect,
548  &_audiomanager_commandinterface_method_info_disconnect,
549  &_audiomanager_commandinterface_method_info_set_volume,
550  &_audiomanager_commandinterface_method_info_volume_step,
551  &_audiomanager_commandinterface_method_info_set_sink_mute_state,
552  &_audiomanager_commandinterface_method_info_get_list_main_connections,
553  &_audiomanager_commandinterface_method_info_get_list_main_sinks,
554  NULL
555 };
556 
557 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_new_main_connection_ARG_mainConnection =
558 {
559  {
560  -1,
561  (gchar *) "mainConnection",
562  (gchar *) "(qqqnn)",
563  NULL
564  },
565  FALSE
566 };
567 
568 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_new_main_connection_ARG_pointers[] =
569 {
570  &_audiomanager_commandinterface_signal_info_new_main_connection_ARG_mainConnection,
571  NULL
572 };
573 
574 static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_new_main_connection =
575 {
576  {
577  -1,
578  (gchar *) "NewMainConnection",
579  (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_new_main_connection_ARG_pointers,
580  NULL
581  },
582  "new-main-connection"
583 };
584 
585 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_removed_main_connection_ARG_mainConnectionId =
586 {
587  {
588  -1,
589  (gchar *) "mainConnectionId",
590  (gchar *) "q",
591  NULL
592  },
593  FALSE
594 };
595 
596 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_removed_main_connection_ARG_pointers[] =
597 {
598  &_audiomanager_commandinterface_signal_info_removed_main_connection_ARG_mainConnectionId,
599  NULL
600 };
601 
602 static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_removed_main_connection =
603 {
604  {
605  -1,
606  (gchar *) "RemovedMainConnection",
607  (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_removed_main_connection_ARG_pointers,
608  NULL
609  },
610  "removed-main-connection"
611 };
612 
613 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_connectionID =
614 {
615  {
616  -1,
617  (gchar *) "connectionID",
618  (gchar *) "q",
619  NULL
620  },
621  FALSE
622 };
623 
624 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_connectionState =
625 {
626  {
627  -1,
628  (gchar *) "connectionState",
629  (gchar *) "n",
630  NULL
631  },
632  FALSE
633 };
634 
635 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_pointers[] =
636 {
637  &_audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_connectionID,
638  &_audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_connectionState,
639  NULL
640 };
641 
642 static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_main_connection_state_changed =
643 {
644  {
645  -1,
646  (gchar *) "MainConnectionStateChanged",
647  (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_pointers,
648  NULL
649  },
650  "main-connection-state-changed"
651 };
652 
653 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_volume_changed_ARG_sinkID =
654 {
655  {
656  -1,
657  (gchar *) "sinkID",
658  (gchar *) "q",
659  NULL
660  },
661  FALSE
662 };
663 
664 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_volume_changed_ARG_volume =
665 {
666  {
667  -1,
668  (gchar *) "volume",
669  (gchar *) "n",
670  NULL
671  },
672  FALSE
673 };
674 
675 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_volume_changed_ARG_pointers[] =
676 {
677  &_audiomanager_commandinterface_signal_info_volume_changed_ARG_sinkID,
678  &_audiomanager_commandinterface_signal_info_volume_changed_ARG_volume,
679  NULL
680 };
681 
682 static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_volume_changed =
683 {
684  {
685  -1,
686  (gchar *) "VolumeChanged",
687  (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_volume_changed_ARG_pointers,
688  NULL
689  },
690  "volume-changed"
691 };
692 
693 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_sinkID =
694 {
695  {
696  -1,
697  (gchar *) "sinkID",
698  (gchar *) "q",
699  NULL
700  },
701  FALSE
702 };
703 
704 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_muteState =
705 {
706  {
707  -1,
708  (gchar *) "muteState",
709  (gchar *) "n",
710  NULL
711  },
712  FALSE
713 };
714 
715 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_pointers[] =
716 {
717  &_audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_sinkID,
718  &_audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_muteState,
719  NULL
720 };
721 
722 static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_sink_mute_state_changed =
723 {
724  {
725  -1,
726  (gchar *) "SinkMuteStateChanged",
727  (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_pointers,
728  NULL
729  },
730  "sink-mute-state-changed"
731 };
732 
733 static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_system_property_changed_ARG_SystemProperty =
734 {
735  {
736  -1,
737  (gchar *) "SystemProperty",
738  (gchar *) "(nn)",
739  NULL
740  },
741  FALSE
742 };
743 
744 static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_system_property_changed_ARG_pointers[] =
745 {
746  &_audiomanager_commandinterface_signal_info_system_property_changed_ARG_SystemProperty,
747  NULL
748 };
749 
750 static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_system_property_changed =
751 {
752  {
753  -1,
754  (gchar *) "SystemPropertyChanged",
755  (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_system_property_changed_ARG_pointers,
756  NULL
757  },
758  "system-property-changed"
759 };
760 
761 static const _ExtendedGDBusSignalInfo * const _audiomanager_commandinterface_signal_info_pointers[] =
762 {
763  &_audiomanager_commandinterface_signal_info_new_main_connection,
764  &_audiomanager_commandinterface_signal_info_removed_main_connection,
765  &_audiomanager_commandinterface_signal_info_main_connection_state_changed,
766  &_audiomanager_commandinterface_signal_info_volume_changed,
767  &_audiomanager_commandinterface_signal_info_sink_mute_state_changed,
768  &_audiomanager_commandinterface_signal_info_system_property_changed,
769  NULL
770 };
771 
772 static const _ExtendedGDBusInterfaceInfo _audiomanager_commandinterface_interface_info =
773 {
774  {
775  -1,
776  (gchar *) "org.genivi.audiomanager.commandinterface",
777  (GDBusMethodInfo **) &_audiomanager_commandinterface_method_info_pointers,
778  (GDBusSignalInfo **) &_audiomanager_commandinterface_signal_info_pointers,
779  NULL,
780  NULL
781  },
782  "audiomanager-commandinterface",
783 };
784 
785 
793 GDBusInterfaceInfo *
795 {
796  return (GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct;
797 }
798 
809 guint
810 audiomanager_commandinterface_override_properties (GObjectClass *klass, guint property_id_begin)
811 {
812  return property_id_begin - 1;
813 }
814 
815 
816 
844 G_DEFINE_INTERFACE (AudiomanagerCommandinterface, audiomanager_commandinterface, G_TYPE_OBJECT);
845 
846 static void
847 audiomanager_commandinterface_default_init (AudiomanagerCommandinterfaceIface *iface)
848 {
849  /* GObject signals for incoming D-Bus method calls: */
863  g_signal_new ("handle-connect",
864  G_TYPE_FROM_INTERFACE (iface),
865  G_SIGNAL_RUN_LAST,
866  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_connect),
867  g_signal_accumulator_true_handled,
868  NULL,
869  g_cclosure_marshal_generic,
870  G_TYPE_BOOLEAN,
871  3,
872  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
873 
886  g_signal_new ("handle-disconnect",
887  G_TYPE_FROM_INTERFACE (iface),
888  G_SIGNAL_RUN_LAST,
889  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_disconnect),
890  g_signal_accumulator_true_handled,
891  NULL,
892  g_cclosure_marshal_generic,
893  G_TYPE_BOOLEAN,
894  2,
895  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
896 
910  g_signal_new ("handle-set-volume",
911  G_TYPE_FROM_INTERFACE (iface),
912  G_SIGNAL_RUN_LAST,
913  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_set_volume),
914  g_signal_accumulator_true_handled,
915  NULL,
916  g_cclosure_marshal_generic,
917  G_TYPE_BOOLEAN,
918  3,
919  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_INT);
920 
934  g_signal_new ("handle-volume-step",
935  G_TYPE_FROM_INTERFACE (iface),
936  G_SIGNAL_RUN_LAST,
937  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_volume_step),
938  g_signal_accumulator_true_handled,
939  NULL,
940  g_cclosure_marshal_generic,
941  G_TYPE_BOOLEAN,
942  3,
943  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_INT);
944 
958  g_signal_new ("handle-set-sink-mute-state",
959  G_TYPE_FROM_INTERFACE (iface),
960  G_SIGNAL_RUN_LAST,
961  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_set_sink_mute_state),
962  g_signal_accumulator_true_handled,
963  NULL,
964  g_cclosure_marshal_generic,
965  G_TYPE_BOOLEAN,
966  3,
967  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_INT);
968 
980  g_signal_new ("handle-get-list-main-connections",
981  G_TYPE_FROM_INTERFACE (iface),
982  G_SIGNAL_RUN_LAST,
983  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_get_list_main_connections),
984  g_signal_accumulator_true_handled,
985  NULL,
986  g_cclosure_marshal_generic,
987  G_TYPE_BOOLEAN,
988  1,
989  G_TYPE_DBUS_METHOD_INVOCATION);
990 
1002  g_signal_new ("handle-get-list-main-sinks",
1003  G_TYPE_FROM_INTERFACE (iface),
1004  G_SIGNAL_RUN_LAST,
1005  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_get_list_main_sinks),
1006  g_signal_accumulator_true_handled,
1007  NULL,
1008  g_cclosure_marshal_generic,
1009  G_TYPE_BOOLEAN,
1010  1,
1011  G_TYPE_DBUS_METHOD_INVOCATION);
1012 
1013  /* GObject signals for received D-Bus signals: */
1023  g_signal_new ("new-main-connection",
1024  G_TYPE_FROM_INTERFACE (iface),
1025  G_SIGNAL_RUN_LAST,
1026  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, new_main_connection),
1027  NULL,
1028  NULL,
1029  g_cclosure_marshal_generic,
1030  G_TYPE_NONE,
1031  1, G_TYPE_VARIANT);
1032 
1042  g_signal_new ("removed-main-connection",
1043  G_TYPE_FROM_INTERFACE (iface),
1044  G_SIGNAL_RUN_LAST,
1045  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, removed_main_connection),
1046  NULL,
1047  NULL,
1048  g_cclosure_marshal_generic,
1049  G_TYPE_NONE,
1050  1, G_TYPE_UINT);
1051 
1062  g_signal_new ("main-connection-state-changed",
1063  G_TYPE_FROM_INTERFACE (iface),
1064  G_SIGNAL_RUN_LAST,
1065  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, main_connection_state_changed),
1066  NULL,
1067  NULL,
1068  g_cclosure_marshal_generic,
1069  G_TYPE_NONE,
1070  2, G_TYPE_UINT, G_TYPE_INT);
1071 
1082  g_signal_new ("volume-changed",
1083  G_TYPE_FROM_INTERFACE (iface),
1084  G_SIGNAL_RUN_LAST,
1085  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, volume_changed),
1086  NULL,
1087  NULL,
1088  g_cclosure_marshal_generic,
1089  G_TYPE_NONE,
1090  2, G_TYPE_UINT, G_TYPE_INT);
1091 
1102  g_signal_new ("sink-mute-state-changed",
1103  G_TYPE_FROM_INTERFACE (iface),
1104  G_SIGNAL_RUN_LAST,
1105  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, sink_mute_state_changed),
1106  NULL,
1107  NULL,
1108  g_cclosure_marshal_generic,
1109  G_TYPE_NONE,
1110  2, G_TYPE_UINT, G_TYPE_INT);
1111 
1121  g_signal_new ("system-property-changed",
1122  G_TYPE_FROM_INTERFACE (iface),
1123  G_SIGNAL_RUN_LAST,
1124  G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, system_property_changed),
1125  NULL,
1126  NULL,
1127  g_cclosure_marshal_generic,
1128  G_TYPE_NONE,
1129  1, G_TYPE_VARIANT);
1130 
1131 }
1132 
1140 void
1143  GVariant *arg_mainConnection)
1144 {
1145  g_signal_emit_by_name (object, "new-main-connection", arg_mainConnection);
1146 }
1147 
1155 void
1158  guint16 arg_mainConnectionId)
1159 {
1160  g_signal_emit_by_name (object, "removed-main-connection", arg_mainConnectionId);
1161 }
1162 
1171 void
1174  guint16 arg_connectionID,
1175  gint16 arg_connectionState)
1176 {
1177  g_signal_emit_by_name (object, "main-connection-state-changed", arg_connectionID, arg_connectionState);
1178 }
1179 
1188 void
1191  guint16 arg_sinkID,
1192  gint16 arg_volume)
1193 {
1194  g_signal_emit_by_name (object, "volume-changed", arg_sinkID, arg_volume);
1195 }
1196 
1205 void
1208  guint16 arg_sinkID,
1209  gint16 arg_muteState)
1210 {
1211  g_signal_emit_by_name (object, "sink-mute-state-changed", arg_sinkID, arg_muteState);
1212 }
1213 
1221 void
1224  GVariant *arg_SystemProperty)
1225 {
1226  g_signal_emit_by_name (object, "system-property-changed", arg_SystemProperty);
1227 }
1228 
1244 void
1247  guint16 arg_sourceID,
1248  guint16 arg_sinkID,
1249  GCancellable *cancellable,
1250  GAsyncReadyCallback callback,
1251  gpointer user_data)
1252 {
1253  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1254  "Connect",
1255  g_variant_new ("(qq)",
1256  arg_sourceID,
1257  arg_sinkID),
1258  G_DBUS_CALL_FLAGS_NONE,
1259  -1,
1260  cancellable,
1261  callback,
1262  user_data);
1263 }
1264 
1277 gboolean
1280  gint16 *out_result,
1281  guint16 *out_mainConnectionID,
1282  GAsyncResult *res,
1283  GError **error)
1284 {
1285  GVariant *_ret;
1286  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1287  if (_ret == NULL)
1288  goto _out;
1289  g_variant_get (_ret,
1290  "(nq)",
1291  out_result,
1292  out_mainConnectionID);
1293  g_variant_unref (_ret);
1294 _out:
1295  return _ret != NULL;
1296 }
1297 
1314 gboolean
1317  guint16 arg_sourceID,
1318  guint16 arg_sinkID,
1319  gint16 *out_result,
1320  guint16 *out_mainConnectionID,
1321  GCancellable *cancellable,
1322  GError **error)
1323 {
1324  GVariant *_ret;
1325  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1326  "Connect",
1327  g_variant_new ("(qq)",
1328  arg_sourceID,
1329  arg_sinkID),
1330  G_DBUS_CALL_FLAGS_NONE,
1331  -1,
1332  cancellable,
1333  error);
1334  if (_ret == NULL)
1335  goto _out;
1336  g_variant_get (_ret,
1337  "(nq)",
1338  out_result,
1339  out_mainConnectionID);
1340  g_variant_unref (_ret);
1341 _out:
1342  return _ret != NULL;
1343 }
1344 
1359 void
1362  guint16 arg_mainConnectionID,
1363  GCancellable *cancellable,
1364  GAsyncReadyCallback callback,
1365  gpointer user_data)
1366 {
1367  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1368  "Disconnect",
1369  g_variant_new ("(q)",
1370  arg_mainConnectionID),
1371  G_DBUS_CALL_FLAGS_NONE,
1372  -1,
1373  cancellable,
1374  callback,
1375  user_data);
1376 }
1377 
1389 gboolean
1392  gint16 *out_result,
1393  GAsyncResult *res,
1394  GError **error)
1395 {
1396  GVariant *_ret;
1397  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1398  if (_ret == NULL)
1399  goto _out;
1400  g_variant_get (_ret,
1401  "(n)",
1402  out_result);
1403  g_variant_unref (_ret);
1404 _out:
1405  return _ret != NULL;
1406 }
1407 
1422 gboolean
1425  guint16 arg_mainConnectionID,
1426  gint16 *out_result,
1427  GCancellable *cancellable,
1428  GError **error)
1429 {
1430  GVariant *_ret;
1431  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1432  "Disconnect",
1433  g_variant_new ("(q)",
1434  arg_mainConnectionID),
1435  G_DBUS_CALL_FLAGS_NONE,
1436  -1,
1437  cancellable,
1438  error);
1439  if (_ret == NULL)
1440  goto _out;
1441  g_variant_get (_ret,
1442  "(n)",
1443  out_result);
1444  g_variant_unref (_ret);
1445 _out:
1446  return _ret != NULL;
1447 }
1448 
1464 void
1467  guint16 arg_sinkID,
1468  gint16 arg_volume,
1469  GCancellable *cancellable,
1470  GAsyncReadyCallback callback,
1471  gpointer user_data)
1472 {
1473  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1474  "SetVolume",
1475  g_variant_new ("(qn)",
1476  arg_sinkID,
1477  arg_volume),
1478  G_DBUS_CALL_FLAGS_NONE,
1479  -1,
1480  cancellable,
1481  callback,
1482  user_data);
1483 }
1484 
1496 gboolean
1499  gint16 *out_result,
1500  GAsyncResult *res,
1501  GError **error)
1502 {
1503  GVariant *_ret;
1504  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1505  if (_ret == NULL)
1506  goto _out;
1507  g_variant_get (_ret,
1508  "(n)",
1509  out_result);
1510  g_variant_unref (_ret);
1511 _out:
1512  return _ret != NULL;
1513 }
1514 
1530 gboolean
1533  guint16 arg_sinkID,
1534  gint16 arg_volume,
1535  gint16 *out_result,
1536  GCancellable *cancellable,
1537  GError **error)
1538 {
1539  GVariant *_ret;
1540  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1541  "SetVolume",
1542  g_variant_new ("(qn)",
1543  arg_sinkID,
1544  arg_volume),
1545  G_DBUS_CALL_FLAGS_NONE,
1546  -1,
1547  cancellable,
1548  error);
1549  if (_ret == NULL)
1550  goto _out;
1551  g_variant_get (_ret,
1552  "(n)",
1553  out_result);
1554  g_variant_unref (_ret);
1555 _out:
1556  return _ret != NULL;
1557 }
1558 
1574 void
1577  guint16 arg_sinkID,
1578  gint16 arg_volumeStep,
1579  GCancellable *cancellable,
1580  GAsyncReadyCallback callback,
1581  gpointer user_data)
1582 {
1583  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1584  "VolumeStep",
1585  g_variant_new ("(qn)",
1586  arg_sinkID,
1587  arg_volumeStep),
1588  G_DBUS_CALL_FLAGS_NONE,
1589  -1,
1590  cancellable,
1591  callback,
1592  user_data);
1593 }
1594 
1606 gboolean
1609  gint16 *out_result,
1610  GAsyncResult *res,
1611  GError **error)
1612 {
1613  GVariant *_ret;
1614  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1615  if (_ret == NULL)
1616  goto _out;
1617  g_variant_get (_ret,
1618  "(n)",
1619  out_result);
1620  g_variant_unref (_ret);
1621 _out:
1622  return _ret != NULL;
1623 }
1624 
1640 gboolean
1643  guint16 arg_sinkID,
1644  gint16 arg_volumeStep,
1645  gint16 *out_result,
1646  GCancellable *cancellable,
1647  GError **error)
1648 {
1649  GVariant *_ret;
1650  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1651  "VolumeStep",
1652  g_variant_new ("(qn)",
1653  arg_sinkID,
1654  arg_volumeStep),
1655  G_DBUS_CALL_FLAGS_NONE,
1656  -1,
1657  cancellable,
1658  error);
1659  if (_ret == NULL)
1660  goto _out;
1661  g_variant_get (_ret,
1662  "(n)",
1663  out_result);
1664  g_variant_unref (_ret);
1665 _out:
1666  return _ret != NULL;
1667 }
1668 
1684 void
1687  guint16 arg_sinkID,
1688  gint16 arg_muteState,
1689  GCancellable *cancellable,
1690  GAsyncReadyCallback callback,
1691  gpointer user_data)
1692 {
1693  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1694  "SetSinkMuteState",
1695  g_variant_new ("(qn)",
1696  arg_sinkID,
1697  arg_muteState),
1698  G_DBUS_CALL_FLAGS_NONE,
1699  -1,
1700  cancellable,
1701  callback,
1702  user_data);
1703 }
1704 
1716 gboolean
1719  gint16 *out_result,
1720  GAsyncResult *res,
1721  GError **error)
1722 {
1723  GVariant *_ret;
1724  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1725  if (_ret == NULL)
1726  goto _out;
1727  g_variant_get (_ret,
1728  "(n)",
1729  out_result);
1730  g_variant_unref (_ret);
1731 _out:
1732  return _ret != NULL;
1733 }
1734 
1750 gboolean
1753  guint16 arg_sinkID,
1754  gint16 arg_muteState,
1755  gint16 *out_result,
1756  GCancellable *cancellable,
1757  GError **error)
1758 {
1759  GVariant *_ret;
1760  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1761  "SetSinkMuteState",
1762  g_variant_new ("(qn)",
1763  arg_sinkID,
1764  arg_muteState),
1765  G_DBUS_CALL_FLAGS_NONE,
1766  -1,
1767  cancellable,
1768  error);
1769  if (_ret == NULL)
1770  goto _out;
1771  g_variant_get (_ret,
1772  "(n)",
1773  out_result);
1774  g_variant_unref (_ret);
1775 _out:
1776  return _ret != NULL;
1777 }
1778 
1792 void
1795  GCancellable *cancellable,
1796  GAsyncReadyCallback callback,
1797  gpointer user_data)
1798 {
1799  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1800  "GetListMainConnections",
1801  g_variant_new ("()"),
1802  G_DBUS_CALL_FLAGS_NONE,
1803  -1,
1804  cancellable,
1805  callback,
1806  user_data);
1807 }
1808 
1821 gboolean
1824  gint16 *out_result,
1825  GVariant **out_listConnections,
1826  GAsyncResult *res,
1827  GError **error)
1828 {
1829  GVariant *_ret;
1830  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1831  if (_ret == NULL)
1832  goto _out;
1833  g_variant_get (_ret,
1834  "(n@a(qqqnn))",
1835  out_result,
1836  out_listConnections);
1837  g_variant_unref (_ret);
1838 _out:
1839  return _ret != NULL;
1840 }
1841 
1856 gboolean
1859  gint16 *out_result,
1860  GVariant **out_listConnections,
1861  GCancellable *cancellable,
1862  GError **error)
1863 {
1864  GVariant *_ret;
1865  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1866  "GetListMainConnections",
1867  g_variant_new ("()"),
1868  G_DBUS_CALL_FLAGS_NONE,
1869  -1,
1870  cancellable,
1871  error);
1872  if (_ret == NULL)
1873  goto _out;
1874  g_variant_get (_ret,
1875  "(n@a(qqqnn))",
1876  out_result,
1877  out_listConnections);
1878  g_variant_unref (_ret);
1879 _out:
1880  return _ret != NULL;
1881 }
1882 
1896 void
1899  GCancellable *cancellable,
1900  GAsyncReadyCallback callback,
1901  gpointer user_data)
1902 {
1903  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1904  "GetListMainSinks",
1905  g_variant_new ("()"),
1906  G_DBUS_CALL_FLAGS_NONE,
1907  -1,
1908  cancellable,
1909  callback,
1910  user_data);
1911 }
1912 
1925 gboolean
1928  gint16 *out_result,
1929  GVariant **out_listMainSinks,
1930  GAsyncResult *res,
1931  GError **error)
1932 {
1933  GVariant *_ret;
1934  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1935  if (_ret == NULL)
1936  goto _out;
1937  g_variant_get (_ret,
1938  "(n@a(qs(nn)nnq))",
1939  out_result,
1940  out_listMainSinks);
1941  g_variant_unref (_ret);
1942 _out:
1943  return _ret != NULL;
1944 }
1945 
1960 gboolean
1963  gint16 *out_result,
1964  GVariant **out_listMainSinks,
1965  GCancellable *cancellable,
1966  GError **error)
1967 {
1968  GVariant *_ret;
1969  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1970  "GetListMainSinks",
1971  g_variant_new ("()"),
1972  G_DBUS_CALL_FLAGS_NONE,
1973  -1,
1974  cancellable,
1975  error);
1976  if (_ret == NULL)
1977  goto _out;
1978  g_variant_get (_ret,
1979  "(n@a(qs(nn)nnq))",
1980  out_result,
1981  out_listMainSinks);
1982  g_variant_unref (_ret);
1983 _out:
1984  return _ret != NULL;
1985 }
1986 
1998 void
2001  GDBusMethodInvocation *invocation,
2002  gint16 result,
2003  guint16 mainConnectionID)
2004 {
2005  g_dbus_method_invocation_return_value (invocation,
2006  g_variant_new ("(nq)",
2007  result,
2008  mainConnectionID));
2009 }
2010 
2021 void
2024  GDBusMethodInvocation *invocation,
2025  gint16 result)
2026 {
2027  g_dbus_method_invocation_return_value (invocation,
2028  g_variant_new ("(n)",
2029  result));
2030 }
2031 
2042 void
2045  GDBusMethodInvocation *invocation,
2046  gint16 result)
2047 {
2048  g_dbus_method_invocation_return_value (invocation,
2049  g_variant_new ("(n)",
2050  result));
2051 }
2052 
2063 void
2066  GDBusMethodInvocation *invocation,
2067  gint16 result)
2068 {
2069  g_dbus_method_invocation_return_value (invocation,
2070  g_variant_new ("(n)",
2071  result));
2072 }
2073 
2084 void
2087  GDBusMethodInvocation *invocation,
2088  gint16 result)
2089 {
2090  g_dbus_method_invocation_return_value (invocation,
2091  g_variant_new ("(n)",
2092  result));
2093 }
2094 
2106 void
2109  GDBusMethodInvocation *invocation,
2110  gint16 result,
2111  GVariant *listConnections)
2112 {
2113  g_dbus_method_invocation_return_value (invocation,
2114  g_variant_new ("(n@a(qqqnn))",
2115  result,
2116  listConnections));
2117 }
2118 
2130 void
2133  GDBusMethodInvocation *invocation,
2134  gint16 result,
2135  GVariant *listMainSinks)
2136 {
2137  g_dbus_method_invocation_return_value (invocation,
2138  g_variant_new ("(n@a(qs(nn)nnq))",
2139  result,
2140  listMainSinks));
2141 }
2142 
2143 /* ------------------------------------------------------------------------ */
2144 
2159 {
2160  GData *qdata;
2161 };
2162 
2163 static void audiomanager_commandinterface_proxy_iface_init (AudiomanagerCommandinterfaceIface *iface);
2164 
2165 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
2166 G_DEFINE_TYPE_WITH_CODE (AudiomanagerCommandinterfaceProxy, audiomanager_commandinterface_proxy, G_TYPE_DBUS_PROXY,
2167  G_ADD_PRIVATE (AudiomanagerCommandinterfaceProxy)
2168  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_COMMANDINTERFACE, audiomanager_commandinterface_proxy_iface_init));
2169 
2170 #else
2171 G_DEFINE_TYPE_WITH_CODE (AudiomanagerCommandinterfaceProxy, audiomanager_commandinterface_proxy, G_TYPE_DBUS_PROXY,
2172  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_COMMANDINTERFACE, audiomanager_commandinterface_proxy_iface_init));
2173 
2174 #endif
2175 static void
2176 audiomanager_commandinterface_proxy_finalize (GObject *object)
2177 {
2179  g_datalist_clear (&proxy->priv->qdata);
2180  G_OBJECT_CLASS (audiomanager_commandinterface_proxy_parent_class)->finalize (object);
2181 }
2182 
2183 static void
2184 audiomanager_commandinterface_proxy_get_property (GObject *object,
2185  guint prop_id,
2186  GValue *value,
2187  GParamSpec *pspec G_GNUC_UNUSED)
2188 {
2189 }
2190 
2191 static void
2192 audiomanager_commandinterface_proxy_set_property (GObject *object,
2193  guint prop_id,
2194  const GValue *value,
2195  GParamSpec *pspec G_GNUC_UNUSED)
2196 {
2197 }
2198 
2199 static void
2200 audiomanager_commandinterface_proxy_g_signal (GDBusProxy *proxy,
2201  const gchar *sender_name G_GNUC_UNUSED,
2202  const gchar *signal_name,
2203  GVariant *parameters)
2204 {
2206  GVariantIter iter;
2207  GVariant *child;
2208  GValue *paramv;
2209  guint num_params;
2210  guint n;
2211  guint signal_id;
2212  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct, signal_name);
2213  if (info == NULL)
2214  return;
2215  num_params = g_variant_n_children (parameters);
2216  paramv = g_new0 (GValue, num_params + 1);
2217  g_value_init (&paramv[0], TYPE_AUDIOMANAGER_COMMANDINTERFACE);
2218  g_value_set_object (&paramv[0], proxy);
2219  g_variant_iter_init (&iter, parameters);
2220  n = 1;
2221  while ((child = g_variant_iter_next_value (&iter)) != NULL)
2222  {
2223  _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
2224  if (arg_info->use_gvariant)
2225  {
2226  g_value_init (&paramv[n], G_TYPE_VARIANT);
2227  g_value_set_variant (&paramv[n], child);
2228  n++;
2229  }
2230  else
2231  g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
2232  g_variant_unref (child);
2233  }
2234  signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_COMMANDINTERFACE);
2235  g_signal_emitv (paramv, signal_id, 0, NULL);
2236  for (n = 0; n < num_params + 1; n++)
2237  g_value_unset (&paramv[n]);
2238  g_free (paramv);
2239 }
2240 
2241 static void
2242 audiomanager_commandinterface_proxy_g_properties_changed (GDBusProxy *_proxy,
2243  GVariant *changed_properties,
2244  const gchar *const *invalidated_properties)
2245 {
2247  guint n;
2248  const gchar *key;
2249  GVariantIter *iter;
2251  g_variant_get (changed_properties, "a{sv}", &iter);
2252  while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
2253  {
2254  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct, key);
2255  g_datalist_remove_data (&proxy->priv->qdata, key);
2256  if (info != NULL)
2257  g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2258  }
2259  g_variant_iter_free (iter);
2260  for (n = 0; invalidated_properties[n] != NULL; n++)
2261  {
2262  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct, invalidated_properties[n]);
2263  g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
2264  if (info != NULL)
2265  g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2266  }
2267 }
2268 
2269 static void
2270 audiomanager_commandinterface_proxy_init (AudiomanagerCommandinterfaceProxy *proxy)
2271 {
2272 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
2273  proxy->priv = audiomanager_commandinterface_proxy_get_instance_private (proxy);
2274 #else
2275  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_AUDIOMANAGER_COMMANDINTERFACE_PROXY, AudiomanagerCommandinterfaceProxyPrivate);
2276 #endif
2277 
2278  g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), audiomanager_commandinterface_interface_info ());
2279 }
2280 
2281 static void
2282 audiomanager_commandinterface_proxy_class_init (AudiomanagerCommandinterfaceProxyClass *klass)
2283 {
2284  GObjectClass *gobject_class;
2285  GDBusProxyClass *proxy_class;
2286 
2287  gobject_class = G_OBJECT_CLASS (klass);
2288  gobject_class->finalize = audiomanager_commandinterface_proxy_finalize;
2289  gobject_class->get_property = audiomanager_commandinterface_proxy_get_property;
2290  gobject_class->set_property = audiomanager_commandinterface_proxy_set_property;
2291 
2292  proxy_class = G_DBUS_PROXY_CLASS (klass);
2293  proxy_class->g_signal = audiomanager_commandinterface_proxy_g_signal;
2294  proxy_class->g_properties_changed = audiomanager_commandinterface_proxy_g_properties_changed;
2295 
2296 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
2297  g_type_class_add_private (klass, sizeof (AudiomanagerCommandinterfaceProxyPrivate));
2298 #endif
2299 }
2300 
2301 static void
2302 audiomanager_commandinterface_proxy_iface_init (AudiomanagerCommandinterfaceIface *iface)
2303 {
2304 }
2305 
2323 void
2325  GDBusConnection *connection,
2326  GDBusProxyFlags flags,
2327  const gchar *name,
2328  const gchar *object_path,
2329  GCancellable *cancellable,
2330  GAsyncReadyCallback callback,
2331  gpointer user_data)
2332 {
2333  g_async_initable_new_async (TYPE_AUDIOMANAGER_COMMANDINTERFACE_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.genivi.audiomanager.commandinterface", NULL);
2334 }
2335 
2347  GAsyncResult *res,
2348  GError **error)
2349 {
2350  GObject *ret;
2351  GObject *source_object;
2352  source_object = g_async_result_get_source_object (res);
2353  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2354  g_object_unref (source_object);
2355  if (ret != NULL)
2356  return AUDIOMANAGER_COMMANDINTERFACE (ret);
2357  else
2358  return NULL;
2359 }
2360 
2380  GDBusConnection *connection,
2381  GDBusProxyFlags flags,
2382  const gchar *name,
2383  const gchar *object_path,
2384  GCancellable *cancellable,
2385  GError **error)
2386 {
2387  GInitable *ret;
2388  ret = g_initable_new (TYPE_AUDIOMANAGER_COMMANDINTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.genivi.audiomanager.commandinterface", NULL);
2389  if (ret != NULL)
2390  return AUDIOMANAGER_COMMANDINTERFACE (ret);
2391  else
2392  return NULL;
2393 }
2394 
2395 
2413 void
2415  GBusType bus_type,
2416  GDBusProxyFlags flags,
2417  const gchar *name,
2418  const gchar *object_path,
2419  GCancellable *cancellable,
2420  GAsyncReadyCallback callback,
2421  gpointer user_data)
2422 {
2423  g_async_initable_new_async (TYPE_AUDIOMANAGER_COMMANDINTERFACE_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.genivi.audiomanager.commandinterface", NULL);
2424 }
2425 
2437  GAsyncResult *res,
2438  GError **error)
2439 {
2440  GObject *ret;
2441  GObject *source_object;
2442  source_object = g_async_result_get_source_object (res);
2443  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2444  g_object_unref (source_object);
2445  if (ret != NULL)
2446  return AUDIOMANAGER_COMMANDINTERFACE (ret);
2447  else
2448  return NULL;
2449 }
2450 
2470  GBusType bus_type,
2471  GDBusProxyFlags flags,
2472  const gchar *name,
2473  const gchar *object_path,
2474  GCancellable *cancellable,
2475  GError **error)
2476 {
2477  GInitable *ret;
2478  ret = g_initable_new (TYPE_AUDIOMANAGER_COMMANDINTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.genivi.audiomanager.commandinterface", NULL);
2479  if (ret != NULL)
2480  return AUDIOMANAGER_COMMANDINTERFACE (ret);
2481  else
2482  return NULL;
2483 }
2484 
2485 
2486 /* ------------------------------------------------------------------------ */
2487 
2502 {
2503  GValue *properties;
2506  GMainContext *context;
2507  GMutex lock;
2508 };
2509 
2510 static void
2511 _audiomanager_commandinterface_skeleton_handle_method_call (
2512  GDBusConnection *connection G_GNUC_UNUSED,
2513  const gchar *sender G_GNUC_UNUSED,
2514  const gchar *object_path G_GNUC_UNUSED,
2515  const gchar *interface_name,
2516  const gchar *method_name,
2517  GVariant *parameters,
2518  GDBusMethodInvocation *invocation,
2519  gpointer user_data)
2520 {
2523  GVariantIter iter;
2524  GVariant *child;
2525  GValue *paramv;
2526  guint num_params;
2527  guint num_extra;
2528  guint n;
2529  guint signal_id;
2530  GValue return_value = G_VALUE_INIT;
2531  info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
2532  g_assert (info != NULL);
2533  num_params = g_variant_n_children (parameters);
2534  num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
2535  n = 0;
2536  g_value_init (&paramv[n], TYPE_AUDIOMANAGER_COMMANDINTERFACE);
2537  g_value_set_object (&paramv[n++], skeleton);
2538  g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
2539  g_value_set_object (&paramv[n++], invocation);
2540  if (info->pass_fdlist)
2541  {
2542 #ifdef G_OS_UNIX
2543  g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
2544  g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
2545 #else
2546  g_assert_not_reached ();
2547 #endif
2548  }
2549  g_variant_iter_init (&iter, parameters);
2550  while ((child = g_variant_iter_next_value (&iter)) != NULL)
2551  {
2552  _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
2553  if (arg_info->use_gvariant)
2554  {
2555  g_value_init (&paramv[n], G_TYPE_VARIANT);
2556  g_value_set_variant (&paramv[n], child);
2557  n++;
2558  }
2559  else
2560  g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
2561  g_variant_unref (child);
2562  }
2563  signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_COMMANDINTERFACE);
2564  g_value_init (&return_value, G_TYPE_BOOLEAN);
2565  g_signal_emitv (paramv, signal_id, 0, &return_value);
2566  if (!g_value_get_boolean (&return_value))
2567  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);
2568  g_value_unset (&return_value);
2569  for (n = 0; n < num_params + num_extra; n++)
2570  g_value_unset (&paramv[n]);
2571  g_free (paramv);
2572 }
2573 
2574 static GVariant *
2575 _audiomanager_commandinterface_skeleton_handle_get_property (
2576  GDBusConnection *connection G_GNUC_UNUSED,
2577  const gchar *sender G_GNUC_UNUSED,
2578  const gchar *object_path G_GNUC_UNUSED,
2579  const gchar *interface_name G_GNUC_UNUSED,
2580  const gchar *property_name,
2581  GError **error,
2582  gpointer user_data)
2583 {
2585  GValue value = G_VALUE_INIT;
2586  GParamSpec *pspec;
2588  GVariant *ret;
2589  ret = NULL;
2590  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct, property_name);
2591  g_assert (info != NULL);
2592  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2593  if (pspec == NULL)
2594  {
2595  g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2596  }
2597  else
2598  {
2599  g_value_init (&value, pspec->value_type);
2600  g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2601  ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
2602  g_value_unset (&value);
2603  }
2604  return ret;
2605 }
2606 
2607 static gboolean
2608 _audiomanager_commandinterface_skeleton_handle_set_property (
2609  GDBusConnection *connection G_GNUC_UNUSED,
2610  const gchar *sender G_GNUC_UNUSED,
2611  const gchar *object_path G_GNUC_UNUSED,
2612  const gchar *interface_name G_GNUC_UNUSED,
2613  const gchar *property_name,
2614  GVariant *variant,
2615  GError **error,
2616  gpointer user_data)
2617 {
2619  GValue value = G_VALUE_INIT;
2620  GParamSpec *pspec;
2622  gboolean ret;
2623  ret = FALSE;
2624  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct, property_name);
2625  g_assert (info != NULL);
2626  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2627  if (pspec == NULL)
2628  {
2629  g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2630  }
2631  else
2632  {
2633  if (info->use_gvariant)
2634  g_value_set_variant (&value, variant);
2635  else
2636  g_dbus_gvariant_to_gvalue (variant, &value);
2637  g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2638  g_value_unset (&value);
2639  ret = TRUE;
2640  }
2641  return ret;
2642 }
2643 
2644 static const GDBusInterfaceVTable _audiomanager_commandinterface_skeleton_vtable =
2645 {
2646  _audiomanager_commandinterface_skeleton_handle_method_call,
2647  _audiomanager_commandinterface_skeleton_handle_get_property,
2648  _audiomanager_commandinterface_skeleton_handle_set_property,
2649  {NULL}
2650 };
2651 
2652 static GDBusInterfaceInfo *
2653 audiomanager_commandinterface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
2654 {
2656 }
2657 
2658 static GDBusInterfaceVTable *
2659 audiomanager_commandinterface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
2660 {
2661  return (GDBusInterfaceVTable *) &_audiomanager_commandinterface_skeleton_vtable;
2662 }
2663 
2664 static GVariant *
2665 audiomanager_commandinterface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
2666 {
2668 
2669  GVariantBuilder builder;
2670  guint n;
2671  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
2672  if (_audiomanager_commandinterface_interface_info.parent_struct.properties == NULL)
2673  goto out;
2674  for (n = 0; _audiomanager_commandinterface_interface_info.parent_struct.properties[n] != NULL; n++)
2675  {
2676  GDBusPropertyInfo *info = _audiomanager_commandinterface_interface_info.parent_struct.properties[n];
2677  if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
2678  {
2679  GVariant *value;
2680  value = _audiomanager_commandinterface_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.genivi.audiomanager.commandinterface", info->name, NULL, skeleton);
2681  if (value != NULL)
2682  {
2683  g_variant_take_ref (value);
2684  g_variant_builder_add (&builder, "{sv}", info->name, value);
2685  g_variant_unref (value);
2686  }
2687  }
2688  }
2689 out:
2690  return g_variant_builder_end (&builder);
2691 }
2692 
2693 static void
2694 audiomanager_commandinterface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
2695 {
2696 }
2697 
2698 static void
2699 _audiomanager_commandinterface_on_signal_new_main_connection (
2701  GVariant *arg_mainConnection)
2702 {
2704 
2705  GList *connections, *l;
2706  GVariant *signal_variant;
2707  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2708 
2709  signal_variant = g_variant_ref_sink (g_variant_new ("(@(qqqnn))",
2710  arg_mainConnection));
2711  for (l = connections; l != NULL; l = l->next)
2712  {
2713  GDBusConnection *connection = l->data;
2714  g_dbus_connection_emit_signal (connection,
2715  NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "NewMainConnection",
2716  signal_variant, NULL);
2717  }
2718  g_variant_unref (signal_variant);
2719  g_list_free_full (connections, g_object_unref);
2720 }
2721 
2722 static void
2723 _audiomanager_commandinterface_on_signal_removed_main_connection (
2725  guint16 arg_mainConnectionId)
2726 {
2728 
2729  GList *connections, *l;
2730  GVariant *signal_variant;
2731  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2732 
2733  signal_variant = g_variant_ref_sink (g_variant_new ("(q)",
2734  arg_mainConnectionId));
2735  for (l = connections; l != NULL; l = l->next)
2736  {
2737  GDBusConnection *connection = l->data;
2738  g_dbus_connection_emit_signal (connection,
2739  NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "RemovedMainConnection",
2740  signal_variant, NULL);
2741  }
2742  g_variant_unref (signal_variant);
2743  g_list_free_full (connections, g_object_unref);
2744 }
2745 
2746 static void
2747 _audiomanager_commandinterface_on_signal_main_connection_state_changed (
2749  guint16 arg_connectionID,
2750  gint16 arg_connectionState)
2751 {
2753 
2754  GList *connections, *l;
2755  GVariant *signal_variant;
2756  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2757 
2758  signal_variant = g_variant_ref_sink (g_variant_new ("(qn)",
2759  arg_connectionID,
2760  arg_connectionState));
2761  for (l = connections; l != NULL; l = l->next)
2762  {
2763  GDBusConnection *connection = l->data;
2764  g_dbus_connection_emit_signal (connection,
2765  NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "MainConnectionStateChanged",
2766  signal_variant, NULL);
2767  }
2768  g_variant_unref (signal_variant);
2769  g_list_free_full (connections, g_object_unref);
2770 }
2771 
2772 static void
2773 _audiomanager_commandinterface_on_signal_volume_changed (
2775  guint16 arg_sinkID,
2776  gint16 arg_volume)
2777 {
2779 
2780  GList *connections, *l;
2781  GVariant *signal_variant;
2782  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2783 
2784  signal_variant = g_variant_ref_sink (g_variant_new ("(qn)",
2785  arg_sinkID,
2786  arg_volume));
2787  for (l = connections; l != NULL; l = l->next)
2788  {
2789  GDBusConnection *connection = l->data;
2790  g_dbus_connection_emit_signal (connection,
2791  NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "VolumeChanged",
2792  signal_variant, NULL);
2793  }
2794  g_variant_unref (signal_variant);
2795  g_list_free_full (connections, g_object_unref);
2796 }
2797 
2798 static void
2799 _audiomanager_commandinterface_on_signal_sink_mute_state_changed (
2801  guint16 arg_sinkID,
2802  gint16 arg_muteState)
2803 {
2805 
2806  GList *connections, *l;
2807  GVariant *signal_variant;
2808  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2809 
2810  signal_variant = g_variant_ref_sink (g_variant_new ("(qn)",
2811  arg_sinkID,
2812  arg_muteState));
2813  for (l = connections; l != NULL; l = l->next)
2814  {
2815  GDBusConnection *connection = l->data;
2816  g_dbus_connection_emit_signal (connection,
2817  NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "SinkMuteStateChanged",
2818  signal_variant, NULL);
2819  }
2820  g_variant_unref (signal_variant);
2821  g_list_free_full (connections, g_object_unref);
2822 }
2823 
2824 static void
2825 _audiomanager_commandinterface_on_signal_system_property_changed (
2827  GVariant *arg_SystemProperty)
2828 {
2830 
2831  GList *connections, *l;
2832  GVariant *signal_variant;
2833  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2834 
2835  signal_variant = g_variant_ref_sink (g_variant_new ("(@(nn))",
2836  arg_SystemProperty));
2837  for (l = connections; l != NULL; l = l->next)
2838  {
2839  GDBusConnection *connection = l->data;
2840  g_dbus_connection_emit_signal (connection,
2841  NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "SystemPropertyChanged",
2842  signal_variant, NULL);
2843  }
2844  g_variant_unref (signal_variant);
2845  g_list_free_full (connections, g_object_unref);
2846 }
2847 
2848 static void audiomanager_commandinterface_skeleton_iface_init (AudiomanagerCommandinterfaceIface *iface);
2849 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
2850 G_DEFINE_TYPE_WITH_CODE (AudiomanagerCommandinterfaceSkeleton, audiomanager_commandinterface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
2851  G_ADD_PRIVATE (AudiomanagerCommandinterfaceSkeleton)
2852  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_COMMANDINTERFACE, audiomanager_commandinterface_skeleton_iface_init));
2853 
2854 #else
2855 G_DEFINE_TYPE_WITH_CODE (AudiomanagerCommandinterfaceSkeleton, audiomanager_commandinterface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
2856  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_COMMANDINTERFACE, audiomanager_commandinterface_skeleton_iface_init));
2857 
2858 #endif
2859 static void
2860 audiomanager_commandinterface_skeleton_finalize (GObject *object)
2861 {
2863  g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
2864  if (skeleton->priv->changed_properties_idle_source != NULL)
2865  g_source_destroy (skeleton->priv->changed_properties_idle_source);
2866  g_main_context_unref (skeleton->priv->context);
2867  g_mutex_clear (&skeleton->priv->lock);
2868  G_OBJECT_CLASS (audiomanager_commandinterface_skeleton_parent_class)->finalize (object);
2869 }
2870 
2871 static void
2872 audiomanager_commandinterface_skeleton_init (AudiomanagerCommandinterfaceSkeleton *skeleton)
2873 {
2874 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
2875  skeleton->priv = audiomanager_commandinterface_skeleton_get_instance_private (skeleton);
2876 #else
2877  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_AUDIOMANAGER_COMMANDINTERFACE_SKELETON, AudiomanagerCommandinterfaceSkeletonPrivate);
2878 #endif
2879 
2880  g_mutex_init (&skeleton->priv->lock);
2881  skeleton->priv->context = g_main_context_ref_thread_default ();
2882 }
2883 
2884 static void
2885 audiomanager_commandinterface_skeleton_class_init (AudiomanagerCommandinterfaceSkeletonClass *klass)
2886 {
2887  GObjectClass *gobject_class;
2888  GDBusInterfaceSkeletonClass *skeleton_class;
2889 
2890  gobject_class = G_OBJECT_CLASS (klass);
2891  gobject_class->finalize = audiomanager_commandinterface_skeleton_finalize;
2892 
2893  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
2894  skeleton_class->get_info = audiomanager_commandinterface_skeleton_dbus_interface_get_info;
2895  skeleton_class->get_properties = audiomanager_commandinterface_skeleton_dbus_interface_get_properties;
2896  skeleton_class->flush = audiomanager_commandinterface_skeleton_dbus_interface_flush;
2897  skeleton_class->get_vtable = audiomanager_commandinterface_skeleton_dbus_interface_get_vtable;
2898 
2899 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
2900  g_type_class_add_private (klass, sizeof (AudiomanagerCommandinterfaceSkeletonPrivate));
2901 #endif
2902 }
2903 
2904 static void
2905 audiomanager_commandinterface_skeleton_iface_init (AudiomanagerCommandinterfaceIface *iface)
2906 {
2907  iface->new_main_connection = _audiomanager_commandinterface_on_signal_new_main_connection;
2908  iface->removed_main_connection = _audiomanager_commandinterface_on_signal_removed_main_connection;
2909  iface->main_connection_state_changed = _audiomanager_commandinterface_on_signal_main_connection_state_changed;
2910  iface->volume_changed = _audiomanager_commandinterface_on_signal_volume_changed;
2911  iface->sink_mute_state_changed = _audiomanager_commandinterface_on_signal_sink_mute_state_changed;
2912  iface->system_property_changed = _audiomanager_commandinterface_on_signal_system_property_changed;
2913 }
2914 
2924 {
2926 }
2927 
2928 /* ------------------------------------------------------------------------
2929  * Code for interface org.genivi.audiomanager.routinginterface
2930  * ------------------------------------------------------------------------
2931  */
2932 
2941 /* ---- Introspection data for org.genivi.audiomanager.routinginterface ---- */
2942 
2943 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_connect_IN_ARG_handle =
2944 {
2945  {
2946  -1,
2947  (gchar *) "handle",
2948  (gchar *) "q",
2949  NULL
2950  },
2951  FALSE
2952 };
2953 
2954 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_connect_IN_ARG_connectionID =
2955 {
2956  {
2957  -1,
2958  (gchar *) "connectionID",
2959  (gchar *) "q",
2960  NULL
2961  },
2962  FALSE
2963 };
2964 
2965 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_connect_IN_ARG_error =
2966 {
2967  {
2968  -1,
2969  (gchar *) "error",
2970  (gchar *) "q",
2971  NULL
2972  },
2973  FALSE
2974 };
2975 
2976 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_connect_IN_ARG_pointers[] =
2977 {
2978  &_audiomanager_routinginterface_method_info_ack_connect_IN_ARG_handle,
2979  &_audiomanager_routinginterface_method_info_ack_connect_IN_ARG_connectionID,
2980  &_audiomanager_routinginterface_method_info_ack_connect_IN_ARG_error,
2981  NULL
2982 };
2983 
2984 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_connect =
2985 {
2986  {
2987  -1,
2988  (gchar *) "ackConnect",
2989  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_connect_IN_ARG_pointers,
2990  NULL,
2991  NULL
2992  },
2993  "handle-ack-connect",
2994  FALSE
2995 };
2996 
2997 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_handle =
2998 {
2999  {
3000  -1,
3001  (gchar *) "handle",
3002  (gchar *) "q",
3003  NULL
3004  },
3005  FALSE
3006 };
3007 
3008 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_connectionID =
3009 {
3010  {
3011  -1,
3012  (gchar *) "connectionID",
3013  (gchar *) "q",
3014  NULL
3015  },
3016  FALSE
3017 };
3018 
3019 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_error =
3020 {
3021  {
3022  -1,
3023  (gchar *) "error",
3024  (gchar *) "q",
3025  NULL
3026  },
3027  FALSE
3028 };
3029 
3030 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_pointers[] =
3031 {
3032  &_audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_handle,
3033  &_audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_connectionID,
3034  &_audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_error,
3035  NULL
3036 };
3037 
3038 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_disconnect =
3039 {
3040  {
3041  -1,
3042  (gchar *) "ackDisconnect",
3043  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_pointers,
3044  NULL,
3045  NULL
3046  },
3047  "handle-ack-disconnect",
3048  FALSE
3049 };
3050 
3051 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_handle =
3052 {
3053  {
3054  -1,
3055  (gchar *) "handle",
3056  (gchar *) "q",
3057  NULL
3058  },
3059  FALSE
3060 };
3061 
3062 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_error =
3063 {
3064  {
3065  -1,
3066  (gchar *) "error",
3067  (gchar *) "q",
3068  NULL
3069  },
3070  FALSE
3071 };
3072 
3073 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_pointers[] =
3074 {
3075  &_audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_handle,
3076  &_audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_error,
3077  NULL
3078 };
3079 
3080 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_set_source_state =
3081 {
3082  {
3083  -1,
3084  (gchar *) "ackSetSourceState",
3085  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_pointers,
3086  NULL,
3087  NULL
3088  },
3089  "handle-ack-set-source-state",
3090  FALSE
3091 };
3092 
3093 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_handle =
3094 {
3095  {
3096  -1,
3097  (gchar *) "handle",
3098  (gchar *) "q",
3099  NULL
3100  },
3101  FALSE
3102 };
3103 
3104 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_volume =
3105 {
3106  {
3107  -1,
3108  (gchar *) "volume",
3109  (gchar *) "n",
3110  NULL
3111  },
3112  FALSE
3113 };
3114 
3115 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_error =
3116 {
3117  {
3118  -1,
3119  (gchar *) "error",
3120  (gchar *) "q",
3121  NULL
3122  },
3123  FALSE
3124 };
3125 
3126 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_pointers[] =
3127 {
3128  &_audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_handle,
3129  &_audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_volume,
3130  &_audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_error,
3131  NULL
3132 };
3133 
3134 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_set_sink_volume =
3135 {
3136  {
3137  -1,
3138  (gchar *) "ackSetSinkVolume",
3139  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_pointers,
3140  NULL,
3141  NULL
3142  },
3143  "handle-ack-set-sink-volume",
3144  FALSE
3145 };
3146 
3147 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_sink_IN_ARG_sinkData =
3148 {
3149  {
3150  -1,
3151  (gchar *) "sinkData",
3152  (gchar *) "(qsqinb(ii)nna(in)aia(in)a(iin)a(iin))",
3153  NULL
3154  },
3155  FALSE
3156 };
3157 
3158 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_sink_IN_ARG_pointers[] =
3159 {
3160  &_audiomanager_routinginterface_method_info_register_sink_IN_ARG_sinkData,
3161  NULL
3162 };
3163 
3164 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_sink_OUT_ARG_sinkID =
3165 {
3166  {
3167  -1,
3168  (gchar *) "sinkID",
3169  (gchar *) "q",
3170  NULL
3171  },
3172  FALSE
3173 };
3174 
3175 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_sink_OUT_ARG_error =
3176 {
3177  {
3178  -1,
3179  (gchar *) "error",
3180  (gchar *) "q",
3181  NULL
3182  },
3183  FALSE
3184 };
3185 
3186 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_sink_OUT_ARG_pointers[] =
3187 {
3188  &_audiomanager_routinginterface_method_info_register_sink_OUT_ARG_sinkID,
3189  &_audiomanager_routinginterface_method_info_register_sink_OUT_ARG_error,
3190  NULL
3191 };
3192 
3193 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_register_sink =
3194 {
3195  {
3196  -1,
3197  (gchar *) "registerSink",
3198  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_sink_IN_ARG_pointers,
3199  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_sink_OUT_ARG_pointers,
3200  NULL
3201  },
3202  "handle-register-sink",
3203  FALSE
3204 };
3205 
3206 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_deregister_sink_IN_ARG_sinkID =
3207 {
3208  {
3209  -1,
3210  (gchar *) "sinkID",
3211  (gchar *) "q",
3212  NULL
3213  },
3214  FALSE
3215 };
3216 
3217 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_deregister_sink_IN_ARG_pointers[] =
3218 {
3219  &_audiomanager_routinginterface_method_info_deregister_sink_IN_ARG_sinkID,
3220  NULL
3221 };
3222 
3223 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_deregister_sink_OUT_ARG_error =
3224 {
3225  {
3226  -1,
3227  (gchar *) "error",
3228  (gchar *) "i",
3229  NULL
3230  },
3231  FALSE
3232 };
3233 
3234 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_deregister_sink_OUT_ARG_pointers[] =
3235 {
3236  &_audiomanager_routinginterface_method_info_deregister_sink_OUT_ARG_error,
3237  NULL
3238 };
3239 
3240 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_deregister_sink =
3241 {
3242  {
3243  -1,
3244  (gchar *) "deregisterSink",
3245  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_deregister_sink_IN_ARG_pointers,
3246  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_deregister_sink_OUT_ARG_pointers,
3247  NULL
3248  },
3249  "handle-deregister-sink",
3250  FALSE
3251 };
3252 
3253 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_source_IN_ARG_sourceData =
3254 {
3255  {
3256  -1,
3257  (gchar *) "sourceData",
3258  (gchar *) "(qqsqinb(ii)qa(in)aia(in)a(iin)a(iin))",
3259  NULL
3260  },
3261  FALSE
3262 };
3263 
3264 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_source_IN_ARG_pointers[] =
3265 {
3266  &_audiomanager_routinginterface_method_info_register_source_IN_ARG_sourceData,
3267  NULL
3268 };
3269 
3270 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_source_OUT_ARG_sourceID =
3271 {
3272  {
3273  -1,
3274  (gchar *) "sourceID",
3275  (gchar *) "q",
3276  NULL
3277  },
3278  FALSE
3279 };
3280 
3281 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_source_OUT_ARG_error =
3282 {
3283  {
3284  -1,
3285  (gchar *) "error",
3286  (gchar *) "q",
3287  NULL
3288  },
3289  FALSE
3290 };
3291 
3292 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_source_OUT_ARG_pointers[] =
3293 {
3294  &_audiomanager_routinginterface_method_info_register_source_OUT_ARG_sourceID,
3295  &_audiomanager_routinginterface_method_info_register_source_OUT_ARG_error,
3296  NULL
3297 };
3298 
3299 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_register_source =
3300 {
3301  {
3302  -1,
3303  (gchar *) "registerSource",
3304  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_source_IN_ARG_pointers,
3305  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_source_OUT_ARG_pointers,
3306  NULL
3307  },
3308  "handle-register-source",
3309  FALSE
3310 };
3311 
3312 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_deregister_source_IN_ARG_sourceID =
3313 {
3314  {
3315  -1,
3316  (gchar *) "sourceID",
3317  (gchar *) "q",
3318  NULL
3319  },
3320  FALSE
3321 };
3322 
3323 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_deregister_source_IN_ARG_pointers[] =
3324 {
3325  &_audiomanager_routinginterface_method_info_deregister_source_IN_ARG_sourceID,
3326  NULL
3327 };
3328 
3329 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_deregister_source_OUT_ARG_error =
3330 {
3331  {
3332  -1,
3333  (gchar *) "error",
3334  (gchar *) "q",
3335  NULL
3336  },
3337  FALSE
3338 };
3339 
3340 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_deregister_source_OUT_ARG_pointers[] =
3341 {
3342  &_audiomanager_routinginterface_method_info_deregister_source_OUT_ARG_error,
3343  NULL
3344 };
3345 
3346 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_deregister_source =
3347 {
3348  {
3349  -1,
3350  (gchar *) "deregisterSource",
3351  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_deregister_source_IN_ARG_pointers,
3352  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_deregister_source_OUT_ARG_pointers,
3353  NULL
3354  },
3355  "handle-deregister-source",
3356  FALSE
3357 };
3358 
3359 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_sourceID =
3360 {
3361  {
3362  -1,
3363  (gchar *) "sourceID",
3364  (gchar *) "q",
3365  NULL
3366  },
3367  FALSE
3368 };
3369 
3370 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_interruptState =
3371 {
3372  {
3373  -1,
3374  (gchar *) "interruptState",
3375  (gchar *) "q",
3376  NULL
3377  },
3378  FALSE
3379 };
3380 
3381 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_pointers[] =
3382 {
3383  &_audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_sourceID,
3384  &_audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_interruptState,
3385  NULL
3386 };
3387 
3388 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_hook_interrupt_status_change =
3389 {
3390  {
3391  -1,
3392  (gchar *) "hookInterruptStatusChange",
3393  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_pointers,
3394  NULL,
3395  NULL
3396  },
3397  "handle-hook-interrupt-status-change",
3398  FALSE
3399 };
3400 
3401 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_sourceID =
3402 {
3403  {
3404  -1,
3405  (gchar *) "sourceID",
3406  (gchar *) "q",
3407  NULL
3408  },
3409  FALSE
3410 };
3411 
3412 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_availability =
3413 {
3414  {
3415  -1,
3416  (gchar *) "availability",
3417  (gchar *) "(nn)",
3418  NULL
3419  },
3420  FALSE
3421 };
3422 
3423 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_pointers[] =
3424 {
3425  &_audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_sourceID,
3426  &_audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_availability,
3427  NULL
3428 };
3429 
3430 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_hook_source_availablity_status_change =
3431 {
3432  {
3433  -1,
3434  (gchar *) "hookSourceAvailablityStatusChange",
3435  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_pointers,
3436  NULL,
3437  NULL
3438  },
3439  "handle-hook-source-availablity-status-change",
3440  FALSE
3441 };
3442 
3443 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_confirm_routing_ready_IN_ARG_domainID =
3444 {
3445  {
3446  -1,
3447  (gchar *) "domainID",
3448  (gchar *) "q",
3449  NULL
3450  },
3451  FALSE
3452 };
3453 
3454 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_confirm_routing_ready_IN_ARG_pointers[] =
3455 {
3456  &_audiomanager_routinginterface_method_info_confirm_routing_ready_IN_ARG_domainID,
3457  NULL
3458 };
3459 
3460 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_confirm_routing_ready =
3461 {
3462  {
3463  -1,
3464  (gchar *) "confirmRoutingReady",
3465  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_confirm_routing_ready_IN_ARG_pointers,
3466  NULL,
3467  NULL
3468  },
3469  "handle-confirm-routing-ready",
3470  FALSE
3471 };
3472 
3473 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_confirm_routing_rundown_IN_ARG_domainID =
3474 {
3475  {
3476  -1,
3477  (gchar *) "domainID",
3478  (gchar *) "q",
3479  NULL
3480  },
3481  FALSE
3482 };
3483 
3484 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_confirm_routing_rundown_IN_ARG_pointers[] =
3485 {
3486  &_audiomanager_routinginterface_method_info_confirm_routing_rundown_IN_ARG_domainID,
3487  NULL
3488 };
3489 
3490 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_confirm_routing_rundown =
3491 {
3492  {
3493  -1,
3494  (gchar *) "confirmRoutingRundown",
3495  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_confirm_routing_rundown_IN_ARG_pointers,
3496  NULL,
3497  NULL
3498  },
3499  "handle-confirm-routing-rundown",
3500  FALSE
3501 };
3502 
3503 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_handle =
3504 {
3505  {
3506  -1,
3507  (gchar *) "handle",
3508  (gchar *) "q",
3509  NULL
3510  },
3511  FALSE
3512 };
3513 
3514 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_listvolumes =
3515 {
3516  {
3517  -1,
3518  (gchar *) "listvolumes",
3519  (gchar *) "a(nqqnq)",
3520  NULL
3521  },
3522  FALSE
3523 };
3524 
3525 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_error =
3526 {
3527  {
3528  -1,
3529  (gchar *) "error",
3530  (gchar *) "q",
3531  NULL
3532  },
3533  FALSE
3534 };
3535 
3536 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_pointers[] =
3537 {
3538  &_audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_handle,
3539  &_audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_listvolumes,
3540  &_audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_error,
3541  NULL
3542 };
3543 
3544 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_set_volumes =
3545 {
3546  {
3547  -1,
3548  (gchar *) "ackSetVolumes",
3549  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_pointers,
3550  NULL,
3551  NULL
3552  },
3553  "handle-ack-set-volumes",
3554  FALSE
3555 };
3556 
3557 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_handle =
3558 {
3559  {
3560  -1,
3561  (gchar *) "handle",
3562  (gchar *) "q",
3563  NULL
3564  },
3565  FALSE
3566 };
3567 
3568 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_error =
3569 {
3570  {
3571  -1,
3572  (gchar *) "error",
3573  (gchar *) "q",
3574  NULL
3575  },
3576  FALSE
3577 };
3578 
3579 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_pointers[] =
3580 {
3581  &_audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_handle,
3582  &_audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_error,
3583  NULL
3584 };
3585 
3586 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_sink_notification_configuration =
3587 {
3588  {
3589  -1,
3590  (gchar *) "ackSinkNotificationConfiguration",
3591  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_pointers,
3592  NULL,
3593  NULL
3594  },
3595  "handle-ack-sink-notification-configuration",
3596  FALSE
3597 };
3598 
3599 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_handle =
3600 {
3601  {
3602  -1,
3603  (gchar *) "handle",
3604  (gchar *) "q",
3605  NULL
3606  },
3607  FALSE
3608 };
3609 
3610 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_error =
3611 {
3612  {
3613  -1,
3614  (gchar *) "error",
3615  (gchar *) "q",
3616  NULL
3617  },
3618  FALSE
3619 };
3620 
3621 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_pointers[] =
3622 {
3623  &_audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_handle,
3624  &_audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_error,
3625  NULL
3626 };
3627 
3628 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_source_notification_configuration =
3629 {
3630  {
3631  -1,
3632  (gchar *) "ackSourceNotificationConfiguration",
3633  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_pointers,
3634  NULL,
3635  NULL
3636  },
3637  "handle-ack-source-notification-configuration",
3638  FALSE
3639 };
3640 
3641 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_IN_ARG_domaindata =
3642 {
3643  {
3644  -1,
3645  (gchar *) "domaindata",
3646  (gchar *) "(qsssbbn)",
3647  NULL
3648  },
3649  FALSE
3650 };
3651 
3652 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnBusname =
3653 {
3654  {
3655  -1,
3656  (gchar *) "returnBusname",
3657  (gchar *) "s",
3658  NULL
3659  },
3660  FALSE
3661 };
3662 
3663 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnPath =
3664 {
3665  {
3666  -1,
3667  (gchar *) "returnPath",
3668  (gchar *) "s",
3669  NULL
3670  },
3671  FALSE
3672 };
3673 
3674 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnInterface =
3675 {
3676  {
3677  -1,
3678  (gchar *) "returnInterface",
3679  (gchar *) "s",
3680  NULL
3681  },
3682  FALSE
3683 };
3684 
3685 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_domain_IN_ARG_pointers[] =
3686 {
3687  &_audiomanager_routinginterface_method_info_register_domain_IN_ARG_domaindata,
3688  &_audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnBusname,
3689  &_audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnPath,
3690  &_audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnInterface,
3691  NULL
3692 };
3693 
3694 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_OUT_ARG_domainid =
3695 {
3696  {
3697  -1,
3698  (gchar *) "domainid",
3699  (gchar *) "q",
3700  NULL
3701  },
3702  FALSE
3703 };
3704 
3705 static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_OUT_ARG_error =
3706 {
3707  {
3708  -1,
3709  (gchar *) "error",
3710  (gchar *) "q",
3711  NULL
3712  },
3713  FALSE
3714 };
3715 
3716 static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_domain_OUT_ARG_pointers[] =
3717 {
3718  &_audiomanager_routinginterface_method_info_register_domain_OUT_ARG_domainid,
3719  &_audiomanager_routinginterface_method_info_register_domain_OUT_ARG_error,
3720  NULL
3721 };
3722 
3723 static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_register_domain =
3724 {
3725  {
3726  -1,
3727  (gchar *) "registerDomain",
3728  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_domain_IN_ARG_pointers,
3729  (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_domain_OUT_ARG_pointers,
3730  NULL
3731  },
3732  "handle-register-domain",
3733  FALSE
3734 };
3735 
3736 static const _ExtendedGDBusMethodInfo * const _audiomanager_routinginterface_method_info_pointers[] =
3737 {
3738  &_audiomanager_routinginterface_method_info_ack_connect,
3739  &_audiomanager_routinginterface_method_info_ack_disconnect,
3740  &_audiomanager_routinginterface_method_info_ack_set_source_state,
3741  &_audiomanager_routinginterface_method_info_ack_set_sink_volume,
3742  &_audiomanager_routinginterface_method_info_register_sink,
3743  &_audiomanager_routinginterface_method_info_deregister_sink,
3744  &_audiomanager_routinginterface_method_info_register_source,
3745  &_audiomanager_routinginterface_method_info_deregister_source,
3746  &_audiomanager_routinginterface_method_info_hook_interrupt_status_change,
3747  &_audiomanager_routinginterface_method_info_hook_source_availablity_status_change,
3748  &_audiomanager_routinginterface_method_info_confirm_routing_ready,
3749  &_audiomanager_routinginterface_method_info_confirm_routing_rundown,
3750  &_audiomanager_routinginterface_method_info_ack_set_volumes,
3751  &_audiomanager_routinginterface_method_info_ack_sink_notification_configuration,
3752  &_audiomanager_routinginterface_method_info_ack_source_notification_configuration,
3753  &_audiomanager_routinginterface_method_info_register_domain,
3754  NULL
3755 };
3756 
3757 static const _ExtendedGDBusSignalInfo _audiomanager_routinginterface_signal_info_set_routing_ready =
3758 {
3759  {
3760  -1,
3761  (gchar *) "setRoutingReady",
3762  NULL,
3763  NULL
3764  },
3765  "set-routing-ready"
3766 };
3767 
3768 static const _ExtendedGDBusSignalInfo _audiomanager_routinginterface_signal_info_set_routing_rundown =
3769 {
3770  {
3771  -1,
3772  (gchar *) "setRoutingRundown",
3773  NULL,
3774  NULL
3775  },
3776  "set-routing-rundown"
3777 };
3778 
3779 static const _ExtendedGDBusSignalInfo * const _audiomanager_routinginterface_signal_info_pointers[] =
3780 {
3781  &_audiomanager_routinginterface_signal_info_set_routing_ready,
3782  &_audiomanager_routinginterface_signal_info_set_routing_rundown,
3783  NULL
3784 };
3785 
3786 static const _ExtendedGDBusInterfaceInfo _audiomanager_routinginterface_interface_info =
3787 {
3788  {
3789  -1,
3790  (gchar *) "org.genivi.audiomanager.routinginterface",
3791  (GDBusMethodInfo **) &_audiomanager_routinginterface_method_info_pointers,
3792  (GDBusSignalInfo **) &_audiomanager_routinginterface_signal_info_pointers,
3793  NULL,
3794  NULL
3795  },
3796  "audiomanager-routinginterface",
3797 };
3798 
3799 
3807 GDBusInterfaceInfo *
3809 {
3810  return (GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct;
3811 }
3812 
3823 guint
3824 audiomanager_routinginterface_override_properties (GObjectClass *klass, guint property_id_begin)
3825 {
3826  return property_id_begin - 1;
3827 }
3828 
3829 
3830 
3863 G_DEFINE_INTERFACE (AudiomanagerRoutinginterface, audiomanager_routinginterface, G_TYPE_OBJECT);
3864 
3865 static void
3866 audiomanager_routinginterface_default_init (AudiomanagerRoutinginterfaceIface *iface)
3867 {
3868  /* GObject signals for incoming D-Bus method calls: */
3883  g_signal_new ("handle-ack-connect",
3884  G_TYPE_FROM_INTERFACE (iface),
3885  G_SIGNAL_RUN_LAST,
3886  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_connect),
3887  g_signal_accumulator_true_handled,
3888  NULL,
3889  g_cclosure_marshal_generic,
3890  G_TYPE_BOOLEAN,
3891  4,
3892  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT);
3893 
3908  g_signal_new ("handle-ack-disconnect",
3909  G_TYPE_FROM_INTERFACE (iface),
3910  G_SIGNAL_RUN_LAST,
3911  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_disconnect),
3912  g_signal_accumulator_true_handled,
3913  NULL,
3914  g_cclosure_marshal_generic,
3915  G_TYPE_BOOLEAN,
3916  4,
3917  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT);
3918 
3932  g_signal_new ("handle-ack-set-source-state",
3933  G_TYPE_FROM_INTERFACE (iface),
3934  G_SIGNAL_RUN_LAST,
3935  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_set_source_state),
3936  g_signal_accumulator_true_handled,
3937  NULL,
3938  g_cclosure_marshal_generic,
3939  G_TYPE_BOOLEAN,
3940  3,
3941  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
3942 
3957  g_signal_new ("handle-ack-set-sink-volume",
3958  G_TYPE_FROM_INTERFACE (iface),
3959  G_SIGNAL_RUN_LAST,
3960  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_set_sink_volume),
3961  g_signal_accumulator_true_handled,
3962  NULL,
3963  g_cclosure_marshal_generic,
3964  G_TYPE_BOOLEAN,
3965  4,
3966  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_INT, G_TYPE_UINT);
3967 
3980  g_signal_new ("handle-register-sink",
3981  G_TYPE_FROM_INTERFACE (iface),
3982  G_SIGNAL_RUN_LAST,
3983  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_register_sink),
3984  g_signal_accumulator_true_handled,
3985  NULL,
3986  g_cclosure_marshal_generic,
3987  G_TYPE_BOOLEAN,
3988  2,
3989  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
3990 
4003  g_signal_new ("handle-deregister-sink",
4004  G_TYPE_FROM_INTERFACE (iface),
4005  G_SIGNAL_RUN_LAST,
4006  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_deregister_sink),
4007  g_signal_accumulator_true_handled,
4008  NULL,
4009  g_cclosure_marshal_generic,
4010  G_TYPE_BOOLEAN,
4011  2,
4012  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
4013 
4026  g_signal_new ("handle-register-source",
4027  G_TYPE_FROM_INTERFACE (iface),
4028  G_SIGNAL_RUN_LAST,
4029  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_register_source),
4030  g_signal_accumulator_true_handled,
4031  NULL,
4032  g_cclosure_marshal_generic,
4033  G_TYPE_BOOLEAN,
4034  2,
4035  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
4036 
4049  g_signal_new ("handle-deregister-source",
4050  G_TYPE_FROM_INTERFACE (iface),
4051  G_SIGNAL_RUN_LAST,
4052  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_deregister_source),
4053  g_signal_accumulator_true_handled,
4054  NULL,
4055  g_cclosure_marshal_generic,
4056  G_TYPE_BOOLEAN,
4057  2,
4058  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
4059 
4073  g_signal_new ("handle-hook-interrupt-status-change",
4074  G_TYPE_FROM_INTERFACE (iface),
4075  G_SIGNAL_RUN_LAST,
4076  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_hook_interrupt_status_change),
4077  g_signal_accumulator_true_handled,
4078  NULL,
4079  g_cclosure_marshal_generic,
4080  G_TYPE_BOOLEAN,
4081  3,
4082  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
4083 
4097  g_signal_new ("handle-hook-source-availablity-status-change",
4098  G_TYPE_FROM_INTERFACE (iface),
4099  G_SIGNAL_RUN_LAST,
4100  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_hook_source_availablity_status_change),
4101  g_signal_accumulator_true_handled,
4102  NULL,
4103  g_cclosure_marshal_generic,
4104  G_TYPE_BOOLEAN,
4105  3,
4106  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_VARIANT);
4107 
4120  g_signal_new ("handle-confirm-routing-ready",
4121  G_TYPE_FROM_INTERFACE (iface),
4122  G_SIGNAL_RUN_LAST,
4123  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_confirm_routing_ready),
4124  g_signal_accumulator_true_handled,
4125  NULL,
4126  g_cclosure_marshal_generic,
4127  G_TYPE_BOOLEAN,
4128  2,
4129  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
4130 
4143  g_signal_new ("handle-confirm-routing-rundown",
4144  G_TYPE_FROM_INTERFACE (iface),
4145  G_SIGNAL_RUN_LAST,
4146  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_confirm_routing_rundown),
4147  g_signal_accumulator_true_handled,
4148  NULL,
4149  g_cclosure_marshal_generic,
4150  G_TYPE_BOOLEAN,
4151  2,
4152  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
4153 
4168  g_signal_new ("handle-ack-set-volumes",
4169  G_TYPE_FROM_INTERFACE (iface),
4170  G_SIGNAL_RUN_LAST,
4171  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_set_volumes),
4172  g_signal_accumulator_true_handled,
4173  NULL,
4174  g_cclosure_marshal_generic,
4175  G_TYPE_BOOLEAN,
4176  4,
4177  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_VARIANT, G_TYPE_UINT);
4178 
4192  g_signal_new ("handle-ack-sink-notification-configuration",
4193  G_TYPE_FROM_INTERFACE (iface),
4194  G_SIGNAL_RUN_LAST,
4195  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_sink_notification_configuration),
4196  g_signal_accumulator_true_handled,
4197  NULL,
4198  g_cclosure_marshal_generic,
4199  G_TYPE_BOOLEAN,
4200  3,
4201  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
4202 
4216  g_signal_new ("handle-ack-source-notification-configuration",
4217  G_TYPE_FROM_INTERFACE (iface),
4218  G_SIGNAL_RUN_LAST,
4219  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_source_notification_configuration),
4220  g_signal_accumulator_true_handled,
4221  NULL,
4222  g_cclosure_marshal_generic,
4223  G_TYPE_BOOLEAN,
4224  3,
4225  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
4226 
4242  g_signal_new ("handle-register-domain",
4243  G_TYPE_FROM_INTERFACE (iface),
4244  G_SIGNAL_RUN_LAST,
4245  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_register_domain),
4246  g_signal_accumulator_true_handled,
4247  NULL,
4248  g_cclosure_marshal_generic,
4249  G_TYPE_BOOLEAN,
4250  5,
4251  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
4252 
4253  /* GObject signals for received D-Bus signals: */
4262  g_signal_new ("set-routing-ready",
4263  G_TYPE_FROM_INTERFACE (iface),
4264  G_SIGNAL_RUN_LAST,
4265  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, set_routing_ready),
4266  NULL,
4267  NULL,
4268  g_cclosure_marshal_generic,
4269  G_TYPE_NONE,
4270  0);
4271 
4280  g_signal_new ("set-routing-rundown",
4281  G_TYPE_FROM_INTERFACE (iface),
4282  G_SIGNAL_RUN_LAST,
4283  G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, set_routing_rundown),
4284  NULL,
4285  NULL,
4286  g_cclosure_marshal_generic,
4287  G_TYPE_NONE,
4288  0);
4289 
4290 }
4291 
4298 void
4301 {
4302  g_signal_emit_by_name (object, "set-routing-ready");
4303 }
4304 
4311 void
4314 {
4315  g_signal_emit_by_name (object, "set-routing-rundown");
4316 }
4317 
4334 void
4337  guint16 arg_handle,
4338  guint16 arg_connectionID,
4339  guint16 arg_error,
4340  GCancellable *cancellable,
4341  GAsyncReadyCallback callback,
4342  gpointer user_data)
4343 {
4344  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4345  "ackConnect",
4346  g_variant_new ("(qqq)",
4347  arg_handle,
4348  arg_connectionID,
4349  arg_error),
4350  G_DBUS_CALL_FLAGS_NONE,
4351  -1,
4352  cancellable,
4353  callback,
4354  user_data);
4355 }
4356 
4367 gboolean
4370  GAsyncResult *res,
4371  GError **error)
4372 {
4373  GVariant *_ret;
4374  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4375  if (_ret == NULL)
4376  goto _out;
4377  g_variant_get (_ret,
4378  "()");
4379  g_variant_unref (_ret);
4380 _out:
4381  return _ret != NULL;
4382 }
4383 
4399 gboolean
4402  guint16 arg_handle,
4403  guint16 arg_connectionID,
4404  guint16 arg_error,
4405  GCancellable *cancellable,
4406  GError **error)
4407 {
4408  GVariant *_ret;
4409  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4410  "ackConnect",
4411  g_variant_new ("(qqq)",
4412  arg_handle,
4413  arg_connectionID,
4414  arg_error),
4415  G_DBUS_CALL_FLAGS_NONE,
4416  -1,
4417  cancellable,
4418  error);
4419  if (_ret == NULL)
4420  goto _out;
4421  g_variant_get (_ret,
4422  "()");
4423  g_variant_unref (_ret);
4424 _out:
4425  return _ret != NULL;
4426 }
4427 
4444 void
4447  guint16 arg_handle,
4448  guint16 arg_connectionID,
4449  guint16 arg_error,
4450  GCancellable *cancellable,
4451  GAsyncReadyCallback callback,
4452  gpointer user_data)
4453 {
4454  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4455  "ackDisconnect",
4456  g_variant_new ("(qqq)",
4457  arg_handle,
4458  arg_connectionID,
4459  arg_error),
4460  G_DBUS_CALL_FLAGS_NONE,
4461  -1,
4462  cancellable,
4463  callback,
4464  user_data);
4465 }
4466 
4477 gboolean
4480  GAsyncResult *res,
4481  GError **error)
4482 {
4483  GVariant *_ret;
4484  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4485  if (_ret == NULL)
4486  goto _out;
4487  g_variant_get (_ret,
4488  "()");
4489  g_variant_unref (_ret);
4490 _out:
4491  return _ret != NULL;
4492 }
4493 
4509 gboolean
4512  guint16 arg_handle,
4513  guint16 arg_connectionID,
4514  guint16 arg_error,
4515  GCancellable *cancellable,
4516  GError **error)
4517 {
4518  GVariant *_ret;
4519  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4520  "ackDisconnect",
4521  g_variant_new ("(qqq)",
4522  arg_handle,
4523  arg_connectionID,
4524  arg_error),
4525  G_DBUS_CALL_FLAGS_NONE,
4526  -1,
4527  cancellable,
4528  error);
4529  if (_ret == NULL)
4530  goto _out;
4531  g_variant_get (_ret,
4532  "()");
4533  g_variant_unref (_ret);
4534 _out:
4535  return _ret != NULL;
4536 }
4537 
4553 void
4556  guint16 arg_handle,
4557  guint16 arg_error,
4558  GCancellable *cancellable,
4559  GAsyncReadyCallback callback,
4560  gpointer user_data)
4561 {
4562  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4563  "ackSetSourceState",
4564  g_variant_new ("(qq)",
4565  arg_handle,
4566  arg_error),
4567  G_DBUS_CALL_FLAGS_NONE,
4568  -1,
4569  cancellable,
4570  callback,
4571  user_data);
4572 }
4573 
4584 gboolean
4587  GAsyncResult *res,
4588  GError **error)
4589 {
4590  GVariant *_ret;
4591  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4592  if (_ret == NULL)
4593  goto _out;
4594  g_variant_get (_ret,
4595  "()");
4596  g_variant_unref (_ret);
4597 _out:
4598  return _ret != NULL;
4599 }
4600 
4615 gboolean
4618  guint16 arg_handle,
4619  guint16 arg_error,
4620  GCancellable *cancellable,
4621  GError **error)
4622 {
4623  GVariant *_ret;
4624  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4625  "ackSetSourceState",
4626  g_variant_new ("(qq)",
4627  arg_handle,
4628  arg_error),
4629  G_DBUS_CALL_FLAGS_NONE,
4630  -1,
4631  cancellable,
4632  error);
4633  if (_ret == NULL)
4634  goto _out;
4635  g_variant_get (_ret,
4636  "()");
4637  g_variant_unref (_ret);
4638 _out:
4639  return _ret != NULL;
4640 }
4641 
4658 void
4661  guint16 arg_handle,
4662  gint16 arg_volume,
4663  guint16 arg_error,
4664  GCancellable *cancellable,
4665  GAsyncReadyCallback callback,
4666  gpointer user_data)
4667 {
4668  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4669  "ackSetSinkVolume",
4670  g_variant_new ("(qnq)",
4671  arg_handle,
4672  arg_volume,
4673  arg_error),
4674  G_DBUS_CALL_FLAGS_NONE,
4675  -1,
4676  cancellable,
4677  callback,
4678  user_data);
4679 }
4680 
4691 gboolean
4694  GAsyncResult *res,
4695  GError **error)
4696 {
4697  GVariant *_ret;
4698  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4699  if (_ret == NULL)
4700  goto _out;
4701  g_variant_get (_ret,
4702  "()");
4703  g_variant_unref (_ret);
4704 _out:
4705  return _ret != NULL;
4706 }
4707 
4723 gboolean
4726  guint16 arg_handle,
4727  gint16 arg_volume,
4728  guint16 arg_error,
4729  GCancellable *cancellable,
4730  GError **error)
4731 {
4732  GVariant *_ret;
4733  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4734  "ackSetSinkVolume",
4735  g_variant_new ("(qnq)",
4736  arg_handle,
4737  arg_volume,
4738  arg_error),
4739  G_DBUS_CALL_FLAGS_NONE,
4740  -1,
4741  cancellable,
4742  error);
4743  if (_ret == NULL)
4744  goto _out;
4745  g_variant_get (_ret,
4746  "()");
4747  g_variant_unref (_ret);
4748 _out:
4749  return _ret != NULL;
4750 }
4751 
4766 void
4769  GVariant *arg_sinkData,
4770  GCancellable *cancellable,
4771  GAsyncReadyCallback callback,
4772  gpointer user_data)
4773 {
4774  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4775  "registerSink",
4776  g_variant_new ("(@(qsqinb(ii)nna(in)aia(in)a(iin)a(iin)))",
4777  arg_sinkData),
4778  G_DBUS_CALL_FLAGS_NONE,
4779  -1,
4780  cancellable,
4781  callback,
4782  user_data);
4783 }
4784 
4797 gboolean
4800  guint16 *out_sinkID,
4801  guint16 *out_error,
4802  GAsyncResult *res,
4803  GError **error)
4804 {
4805  GVariant *_ret;
4806  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4807  if (_ret == NULL)
4808  goto _out;
4809  g_variant_get (_ret,
4810  "(qq)",
4811  out_sinkID,
4812  out_error);
4813  g_variant_unref (_ret);
4814 _out:
4815  return _ret != NULL;
4816 }
4817 
4833 gboolean
4836  GVariant *arg_sinkData,
4837  guint16 *out_sinkID,
4838  guint16 *out_error,
4839  GCancellable *cancellable,
4840  GError **error)
4841 {
4842  GVariant *_ret;
4843  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4844  "registerSink",
4845  g_variant_new ("(@(qsqinb(ii)nna(in)aia(in)a(iin)a(iin)))",
4846  arg_sinkData),
4847  G_DBUS_CALL_FLAGS_NONE,
4848  -1,
4849  cancellable,
4850  error);
4851  if (_ret == NULL)
4852  goto _out;
4853  g_variant_get (_ret,
4854  "(qq)",
4855  out_sinkID,
4856  out_error);
4857  g_variant_unref (_ret);
4858 _out:
4859  return _ret != NULL;
4860 }
4861 
4876 void
4879  guint16 arg_sinkID,
4880  GCancellable *cancellable,
4881  GAsyncReadyCallback callback,
4882  gpointer user_data)
4883 {
4884  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4885  "deregisterSink",
4886  g_variant_new ("(q)",
4887  arg_sinkID),
4888  G_DBUS_CALL_FLAGS_NONE,
4889  -1,
4890  cancellable,
4891  callback,
4892  user_data);
4893 }
4894 
4906 gboolean
4909  gint *out_error,
4910  GAsyncResult *res,
4911  GError **error)
4912 {
4913  GVariant *_ret;
4914  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4915  if (_ret == NULL)
4916  goto _out;
4917  g_variant_get (_ret,
4918  "(i)",
4919  out_error);
4920  g_variant_unref (_ret);
4921 _out:
4922  return _ret != NULL;
4923 }
4924 
4939 gboolean
4942  guint16 arg_sinkID,
4943  gint *out_error,
4944  GCancellable *cancellable,
4945  GError **error)
4946 {
4947  GVariant *_ret;
4948  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4949  "deregisterSink",
4950  g_variant_new ("(q)",
4951  arg_sinkID),
4952  G_DBUS_CALL_FLAGS_NONE,
4953  -1,
4954  cancellable,
4955  error);
4956  if (_ret == NULL)
4957  goto _out;
4958  g_variant_get (_ret,
4959  "(i)",
4960  out_error);
4961  g_variant_unref (_ret);
4962 _out:
4963  return _ret != NULL;
4964 }
4965 
4980 void
4983  GVariant *arg_sourceData,
4984  GCancellable *cancellable,
4985  GAsyncReadyCallback callback,
4986  gpointer user_data)
4987 {
4988  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4989  "registerSource",
4990  g_variant_new ("(@(qqsqinb(ii)qa(in)aia(in)a(iin)a(iin)))",
4991  arg_sourceData),
4992  G_DBUS_CALL_FLAGS_NONE,
4993  -1,
4994  cancellable,
4995  callback,
4996  user_data);
4997 }
4998 
5011 gboolean
5014  guint16 *out_sourceID,
5015  guint16 *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  "(qq)",
5025  out_sourceID,
5026  out_error);
5027  g_variant_unref (_ret);
5028 _out:
5029  return _ret != NULL;
5030 }
5031 
5047 gboolean
5050  GVariant *arg_sourceData,
5051  guint16 *out_sourceID,
5052  guint16 *out_error,
5053  GCancellable *cancellable,
5054  GError **error)
5055 {
5056  GVariant *_ret;
5057  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5058  "registerSource",
5059  g_variant_new ("(@(qqsqinb(ii)qa(in)aia(in)a(iin)a(iin)))",
5060  arg_sourceData),
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  "(qq)",
5069  out_sourceID,
5070  out_error);
5071  g_variant_unref (_ret);
5072 _out:
5073  return _ret != NULL;
5074 }
5075 
5090 void
5093  guint16 arg_sourceID,
5094  GCancellable *cancellable,
5095  GAsyncReadyCallback callback,
5096  gpointer user_data)
5097 {
5098  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5099  "deregisterSource",
5100  g_variant_new ("(q)",
5101  arg_sourceID),
5102  G_DBUS_CALL_FLAGS_NONE,
5103  -1,
5104  cancellable,
5105  callback,
5106  user_data);
5107 }
5108 
5120 gboolean
5123  guint16 *out_error,
5124  GAsyncResult *res,
5125  GError **error)
5126 {
5127  GVariant *_ret;
5128  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5129  if (_ret == NULL)
5130  goto _out;
5131  g_variant_get (_ret,
5132  "(q)",
5133  out_error);
5134  g_variant_unref (_ret);
5135 _out:
5136  return _ret != NULL;
5137 }
5138 
5153 gboolean
5156  guint16 arg_sourceID,
5157  guint16 *out_error,
5158  GCancellable *cancellable,
5159  GError **error)
5160 {
5161  GVariant *_ret;
5162  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5163  "deregisterSource",
5164  g_variant_new ("(q)",
5165  arg_sourceID),
5166  G_DBUS_CALL_FLAGS_NONE,
5167  -1,
5168  cancellable,
5169  error);
5170  if (_ret == NULL)
5171  goto _out;
5172  g_variant_get (_ret,
5173  "(q)",
5174  out_error);
5175  g_variant_unref (_ret);
5176 _out:
5177  return _ret != NULL;
5178 }
5179 
5195 void
5198  guint16 arg_sourceID,
5199  guint16 arg_interruptState,
5200  GCancellable *cancellable,
5201  GAsyncReadyCallback callback,
5202  gpointer user_data)
5203 {
5204  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5205  "hookInterruptStatusChange",
5206  g_variant_new ("(qq)",
5207  arg_sourceID,
5208  arg_interruptState),
5209  G_DBUS_CALL_FLAGS_NONE,
5210  -1,
5211  cancellable,
5212  callback,
5213  user_data);
5214 }
5215 
5226 gboolean
5229  GAsyncResult *res,
5230  GError **error)
5231 {
5232  GVariant *_ret;
5233  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5234  if (_ret == NULL)
5235  goto _out;
5236  g_variant_get (_ret,
5237  "()");
5238  g_variant_unref (_ret);
5239 _out:
5240  return _ret != NULL;
5241 }
5242 
5257 gboolean
5260  guint16 arg_sourceID,
5261  guint16 arg_interruptState,
5262  GCancellable *cancellable,
5263  GError **error)
5264 {
5265  GVariant *_ret;
5266  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5267  "hookInterruptStatusChange",
5268  g_variant_new ("(qq)",
5269  arg_sourceID,
5270  arg_interruptState),
5271  G_DBUS_CALL_FLAGS_NONE,
5272  -1,
5273  cancellable,
5274  error);
5275  if (_ret == NULL)
5276  goto _out;
5277  g_variant_get (_ret,
5278  "()");
5279  g_variant_unref (_ret);
5280 _out:
5281  return _ret != NULL;
5282 }
5283 
5299 void
5302  guint16 arg_sourceID,
5303  GVariant *arg_availability,
5304  GCancellable *cancellable,
5305  GAsyncReadyCallback callback,
5306  gpointer user_data)
5307 {
5308  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5309  "hookSourceAvailablityStatusChange",
5310  g_variant_new ("(q@(nn))",
5311  arg_sourceID,
5312  arg_availability),
5313  G_DBUS_CALL_FLAGS_NONE,
5314  -1,
5315  cancellable,
5316  callback,
5317  user_data);
5318 }
5319 
5330 gboolean
5333  GAsyncResult *res,
5334  GError **error)
5335 {
5336  GVariant *_ret;
5337  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5338  if (_ret == NULL)
5339  goto _out;
5340  g_variant_get (_ret,
5341  "()");
5342  g_variant_unref (_ret);
5343 _out:
5344  return _ret != NULL;
5345 }
5346 
5361 gboolean
5364  guint16 arg_sourceID,
5365  GVariant *arg_availability,
5366  GCancellable *cancellable,
5367  GError **error)
5368 {
5369  GVariant *_ret;
5370  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5371  "hookSourceAvailablityStatusChange",
5372  g_variant_new ("(q@(nn))",
5373  arg_sourceID,
5374  arg_availability),
5375  G_DBUS_CALL_FLAGS_NONE,
5376  -1,
5377  cancellable,
5378  error);
5379  if (_ret == NULL)
5380  goto _out;
5381  g_variant_get (_ret,
5382  "()");
5383  g_variant_unref (_ret);
5384 _out:
5385  return _ret != NULL;
5386 }
5387 
5402 void
5405  guint16 arg_domainID,
5406  GCancellable *cancellable,
5407  GAsyncReadyCallback callback,
5408  gpointer user_data)
5409 {
5410  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5411  "confirmRoutingReady",
5412  g_variant_new ("(q)",
5413  arg_domainID),
5414  G_DBUS_CALL_FLAGS_NONE,
5415  -1,
5416  cancellable,
5417  callback,
5418  user_data);
5419 }
5420 
5431 gboolean
5434  GAsyncResult *res,
5435  GError **error)
5436 {
5437  GVariant *_ret;
5438  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5439  if (_ret == NULL)
5440  goto _out;
5441  g_variant_get (_ret,
5442  "()");
5443  g_variant_unref (_ret);
5444 _out:
5445  return _ret != NULL;
5446 }
5447 
5461 gboolean
5464  guint16 arg_domainID,
5465  GCancellable *cancellable,
5466  GError **error)
5467 {
5468  GVariant *_ret;
5469  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5470  "confirmRoutingReady",
5471  g_variant_new ("(q)",
5472  arg_domainID),
5473  G_DBUS_CALL_FLAGS_NONE,
5474  -1,
5475  cancellable,
5476  error);
5477  if (_ret == NULL)
5478  goto _out;
5479  g_variant_get (_ret,
5480  "()");
5481  g_variant_unref (_ret);
5482 _out:
5483  return _ret != NULL;
5484 }
5485 
5500 void
5503  guint16 arg_domainID,
5504  GCancellable *cancellable,
5505  GAsyncReadyCallback callback,
5506  gpointer user_data)
5507 {
5508  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5509  "confirmRoutingRundown",
5510  g_variant_new ("(q)",
5511  arg_domainID),
5512  G_DBUS_CALL_FLAGS_NONE,
5513  -1,
5514  cancellable,
5515  callback,
5516  user_data);
5517 }
5518 
5529 gboolean
5532  GAsyncResult *res,
5533  GError **error)
5534 {
5535  GVariant *_ret;
5536  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5537  if (_ret == NULL)
5538  goto _out;
5539  g_variant_get (_ret,
5540  "()");
5541  g_variant_unref (_ret);
5542 _out:
5543  return _ret != NULL;
5544 }
5545 
5559 gboolean
5562  guint16 arg_domainID,
5563  GCancellable *cancellable,
5564  GError **error)
5565 {
5566  GVariant *_ret;
5567  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5568  "confirmRoutingRundown",
5569  g_variant_new ("(q)",
5570  arg_domainID),
5571  G_DBUS_CALL_FLAGS_NONE,
5572  -1,
5573  cancellable,
5574  error);
5575  if (_ret == NULL)
5576  goto _out;
5577  g_variant_get (_ret,
5578  "()");
5579  g_variant_unref (_ret);
5580 _out:
5581  return _ret != NULL;
5582 }
5583 
5600 void
5603  guint16 arg_handle,
5604  GVariant *arg_listvolumes,
5605  guint16 arg_error,
5606  GCancellable *cancellable,
5607  GAsyncReadyCallback callback,
5608  gpointer user_data)
5609 {
5610  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5611  "ackSetVolumes",
5612  g_variant_new ("(q@a(nqqnq)q)",
5613  arg_handle,
5614  arg_listvolumes,
5615  arg_error),
5616  G_DBUS_CALL_FLAGS_NONE,
5617  -1,
5618  cancellable,
5619  callback,
5620  user_data);
5621 }
5622 
5633 gboolean
5636  GAsyncResult *res,
5637  GError **error)
5638 {
5639  GVariant *_ret;
5640  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5641  if (_ret == NULL)
5642  goto _out;
5643  g_variant_get (_ret,
5644  "()");
5645  g_variant_unref (_ret);
5646 _out:
5647  return _ret != NULL;
5648 }
5649 
5665 gboolean
5668  guint16 arg_handle,
5669  GVariant *arg_listvolumes,
5670  guint16 arg_error,
5671  GCancellable *cancellable,
5672  GError **error)
5673 {
5674  GVariant *_ret;
5675  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5676  "ackSetVolumes",
5677  g_variant_new ("(q@a(nqqnq)q)",
5678  arg_handle,
5679  arg_listvolumes,
5680  arg_error),
5681  G_DBUS_CALL_FLAGS_NONE,
5682  -1,
5683  cancellable,
5684  error);
5685  if (_ret == NULL)
5686  goto _out;
5687  g_variant_get (_ret,
5688  "()");
5689  g_variant_unref (_ret);
5690 _out:
5691  return _ret != NULL;
5692 }
5693 
5709 void
5712  guint16 arg_handle,
5713  guint16 arg_error,
5714  GCancellable *cancellable,
5715  GAsyncReadyCallback callback,
5716  gpointer user_data)
5717 {
5718  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5719  "ackSinkNotificationConfiguration",
5720  g_variant_new ("(qq)",
5721  arg_handle,
5722  arg_error),
5723  G_DBUS_CALL_FLAGS_NONE,
5724  -1,
5725  cancellable,
5726  callback,
5727  user_data);
5728 }
5729 
5740 gboolean
5743  GAsyncResult *res,
5744  GError **error)
5745 {
5746  GVariant *_ret;
5747  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5748  if (_ret == NULL)
5749  goto _out;
5750  g_variant_get (_ret,
5751  "()");
5752  g_variant_unref (_ret);
5753 _out:
5754  return _ret != NULL;
5755 }
5756 
5771 gboolean
5774  guint16 arg_handle,
5775  guint16 arg_error,
5776  GCancellable *cancellable,
5777  GError **error)
5778 {
5779  GVariant *_ret;
5780  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5781  "ackSinkNotificationConfiguration",
5782  g_variant_new ("(qq)",
5783  arg_handle,
5784  arg_error),
5785  G_DBUS_CALL_FLAGS_NONE,
5786  -1,
5787  cancellable,
5788  error);
5789  if (_ret == NULL)
5790  goto _out;
5791  g_variant_get (_ret,
5792  "()");
5793  g_variant_unref (_ret);
5794 _out:
5795  return _ret != NULL;
5796 }
5797 
5813 void
5816  guint16 arg_handle,
5817  guint16 arg_error,
5818  GCancellable *cancellable,
5819  GAsyncReadyCallback callback,
5820  gpointer user_data)
5821 {
5822  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5823  "ackSourceNotificationConfiguration",
5824  g_variant_new ("(qq)",
5825  arg_handle,
5826  arg_error),
5827  G_DBUS_CALL_FLAGS_NONE,
5828  -1,
5829  cancellable,
5830  callback,
5831  user_data);
5832 }
5833 
5844 gboolean
5847  GAsyncResult *res,
5848  GError **error)
5849 {
5850  GVariant *_ret;
5851  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5852  if (_ret == NULL)
5853  goto _out;
5854  g_variant_get (_ret,
5855  "()");
5856  g_variant_unref (_ret);
5857 _out:
5858  return _ret != NULL;
5859 }
5860 
5875 gboolean
5878  guint16 arg_handle,
5879  guint16 arg_error,
5880  GCancellable *cancellable,
5881  GError **error)
5882 {
5883  GVariant *_ret;
5884  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5885  "ackSourceNotificationConfiguration",
5886  g_variant_new ("(qq)",
5887  arg_handle,
5888  arg_error),
5889  G_DBUS_CALL_FLAGS_NONE,
5890  -1,
5891  cancellable,
5892  error);
5893  if (_ret == NULL)
5894  goto _out;
5895  g_variant_get (_ret,
5896  "()");
5897  g_variant_unref (_ret);
5898 _out:
5899  return _ret != NULL;
5900 }
5901 
5919 void
5922  GVariant *arg_domaindata,
5923  const gchar *arg_returnBusname,
5924  const gchar *arg_returnPath,
5925  const gchar *arg_returnInterface,
5926  GCancellable *cancellable,
5927  GAsyncReadyCallback callback,
5928  gpointer user_data)
5929 {
5930  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5931  "registerDomain",
5932  g_variant_new ("(@(qsssbbn)sss)",
5933  arg_domaindata,
5934  arg_returnBusname,
5935  arg_returnPath,
5936  arg_returnInterface),
5937  G_DBUS_CALL_FLAGS_NONE,
5938  -1,
5939  cancellable,
5940  callback,
5941  user_data);
5942 }
5943 
5956 gboolean
5959  guint16 *out_domainid,
5960  guint16 *out_error,
5961  GAsyncResult *res,
5962  GError **error)
5963 {
5964  GVariant *_ret;
5965  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5966  if (_ret == NULL)
5967  goto _out;
5968  g_variant_get (_ret,
5969  "(qq)",
5970  out_domainid,
5971  out_error);
5972  g_variant_unref (_ret);
5973 _out:
5974  return _ret != NULL;
5975 }
5976 
5995 gboolean
5998  GVariant *arg_domaindata,
5999  const gchar *arg_returnBusname,
6000  const gchar *arg_returnPath,
6001  const gchar *arg_returnInterface,
6002  guint16 *out_domainid,
6003  guint16 *out_error,
6004  GCancellable *cancellable,
6005  GError **error)
6006 {
6007  GVariant *_ret;
6008  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6009  "registerDomain",
6010  g_variant_new ("(@(qsssbbn)sss)",
6011  arg_domaindata,
6012  arg_returnBusname,
6013  arg_returnPath,
6014  arg_returnInterface),
6015  G_DBUS_CALL_FLAGS_NONE,
6016  -1,
6017  cancellable,
6018  error);
6019  if (_ret == NULL)
6020  goto _out;
6021  g_variant_get (_ret,
6022  "(qq)",
6023  out_domainid,
6024  out_error);
6025  g_variant_unref (_ret);
6026 _out:
6027  return _ret != NULL;
6028 }
6029 
6039 void
6042  GDBusMethodInvocation *invocation)
6043 {
6044  g_dbus_method_invocation_return_value (invocation,
6045  g_variant_new ("()"));
6046 }
6047 
6057 void
6060  GDBusMethodInvocation *invocation)
6061 {
6062  g_dbus_method_invocation_return_value (invocation,
6063  g_variant_new ("()"));
6064 }
6065 
6075 void
6078  GDBusMethodInvocation *invocation)
6079 {
6080  g_dbus_method_invocation_return_value (invocation,
6081  g_variant_new ("()"));
6082 }
6083 
6093 void
6096  GDBusMethodInvocation *invocation)
6097 {
6098  g_dbus_method_invocation_return_value (invocation,
6099  g_variant_new ("()"));
6100 }
6101 
6113 void
6116  GDBusMethodInvocation *invocation,
6117  guint16 sinkID,
6118  guint16 error)
6119 {
6120  g_dbus_method_invocation_return_value (invocation,
6121  g_variant_new ("(qq)",
6122  sinkID,
6123  error));
6124 }
6125 
6136 void
6139  GDBusMethodInvocation *invocation,
6140  gint error)
6141 {
6142  g_dbus_method_invocation_return_value (invocation,
6143  g_variant_new ("(i)",
6144  error));
6145 }
6146 
6158 void
6161  GDBusMethodInvocation *invocation,
6162  guint16 sourceID,
6163  guint16 error)
6164 {
6165  g_dbus_method_invocation_return_value (invocation,
6166  g_variant_new ("(qq)",
6167  sourceID,
6168  error));
6169 }
6170 
6181 void
6184  GDBusMethodInvocation *invocation,
6185  guint16 error)
6186 {
6187  g_dbus_method_invocation_return_value (invocation,
6188  g_variant_new ("(q)",
6189  error));
6190 }
6191 
6201 void
6204  GDBusMethodInvocation *invocation)
6205 {
6206  g_dbus_method_invocation_return_value (invocation,
6207  g_variant_new ("()"));
6208 }
6209 
6219 void
6222  GDBusMethodInvocation *invocation)
6223 {
6224  g_dbus_method_invocation_return_value (invocation,
6225  g_variant_new ("()"));
6226 }
6227 
6237 void
6240  GDBusMethodInvocation *invocation)
6241 {
6242  g_dbus_method_invocation_return_value (invocation,
6243  g_variant_new ("()"));
6244 }
6245 
6255 void
6258  GDBusMethodInvocation *invocation)
6259 {
6260  g_dbus_method_invocation_return_value (invocation,
6261  g_variant_new ("()"));
6262 }
6263 
6273 void
6276  GDBusMethodInvocation *invocation)
6277 {
6278  g_dbus_method_invocation_return_value (invocation,
6279  g_variant_new ("()"));
6280 }
6281 
6291 void
6294  GDBusMethodInvocation *invocation)
6295 {
6296  g_dbus_method_invocation_return_value (invocation,
6297  g_variant_new ("()"));
6298 }
6299 
6309 void
6312  GDBusMethodInvocation *invocation)
6313 {
6314  g_dbus_method_invocation_return_value (invocation,
6315  g_variant_new ("()"));
6316 }
6317 
6329 void
6332  GDBusMethodInvocation *invocation,
6333  guint16 domainid,
6334  guint16 error)
6335 {
6336  g_dbus_method_invocation_return_value (invocation,
6337  g_variant_new ("(qq)",
6338  domainid,
6339  error));
6340 }
6341 
6342 /* ------------------------------------------------------------------------ */
6343 
6358 {
6359  GData *qdata;
6360 };
6361 
6362 static void audiomanager_routinginterface_proxy_iface_init (AudiomanagerRoutinginterfaceIface *iface);
6363 
6364 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
6365 G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutinginterfaceProxy, audiomanager_routinginterface_proxy, G_TYPE_DBUS_PROXY,
6366  G_ADD_PRIVATE (AudiomanagerRoutinginterfaceProxy)
6367  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTINGINTERFACE, audiomanager_routinginterface_proxy_iface_init));
6368 
6369 #else
6370 G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutinginterfaceProxy, audiomanager_routinginterface_proxy, G_TYPE_DBUS_PROXY,
6371  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTINGINTERFACE, audiomanager_routinginterface_proxy_iface_init));
6372 
6373 #endif
6374 static void
6375 audiomanager_routinginterface_proxy_finalize (GObject *object)
6376 {
6378  g_datalist_clear (&proxy->priv->qdata);
6379  G_OBJECT_CLASS (audiomanager_routinginterface_proxy_parent_class)->finalize (object);
6380 }
6381 
6382 static void
6383 audiomanager_routinginterface_proxy_get_property (GObject *object,
6384  guint prop_id,
6385  GValue *value,
6386  GParamSpec *pspec G_GNUC_UNUSED)
6387 {
6388 }
6389 
6390 static void
6391 audiomanager_routinginterface_proxy_set_property (GObject *object,
6392  guint prop_id,
6393  const GValue *value,
6394  GParamSpec *pspec G_GNUC_UNUSED)
6395 {
6396 }
6397 
6398 static void
6399 audiomanager_routinginterface_proxy_g_signal (GDBusProxy *proxy,
6400  const gchar *sender_name G_GNUC_UNUSED,
6401  const gchar *signal_name,
6402  GVariant *parameters)
6403 {
6405  GVariantIter iter;
6406  GVariant *child;
6407  GValue *paramv;
6408  guint num_params;
6409  guint n;
6410  guint signal_id;
6411  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct, signal_name);
6412  if (info == NULL)
6413  return;
6414  num_params = g_variant_n_children (parameters);
6415  paramv = g_new0 (GValue, num_params + 1);
6416  g_value_init (&paramv[0], TYPE_AUDIOMANAGER_ROUTINGINTERFACE);
6417  g_value_set_object (&paramv[0], proxy);
6418  g_variant_iter_init (&iter, parameters);
6419  n = 1;
6420  while ((child = g_variant_iter_next_value (&iter)) != NULL)
6421  {
6422  _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
6423  if (arg_info->use_gvariant)
6424  {
6425  g_value_init (&paramv[n], G_TYPE_VARIANT);
6426  g_value_set_variant (&paramv[n], child);
6427  n++;
6428  }
6429  else
6430  g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
6431  g_variant_unref (child);
6432  }
6433  signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_ROUTINGINTERFACE);
6434  g_signal_emitv (paramv, signal_id, 0, NULL);
6435  for (n = 0; n < num_params + 1; n++)
6436  g_value_unset (&paramv[n]);
6437  g_free (paramv);
6438 }
6439 
6440 static void
6441 audiomanager_routinginterface_proxy_g_properties_changed (GDBusProxy *_proxy,
6442  GVariant *changed_properties,
6443  const gchar *const *invalidated_properties)
6444 {
6446  guint n;
6447  const gchar *key;
6448  GVariantIter *iter;
6450  g_variant_get (changed_properties, "a{sv}", &iter);
6451  while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
6452  {
6453  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct, key);
6454  g_datalist_remove_data (&proxy->priv->qdata, key);
6455  if (info != NULL)
6456  g_object_notify (G_OBJECT (proxy), info->hyphen_name);
6457  }
6458  g_variant_iter_free (iter);
6459  for (n = 0; invalidated_properties[n] != NULL; n++)
6460  {
6461  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct, invalidated_properties[n]);
6462  g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
6463  if (info != NULL)
6464  g_object_notify (G_OBJECT (proxy), info->hyphen_name);
6465  }
6466 }
6467 
6468 static void
6469 audiomanager_routinginterface_proxy_init (AudiomanagerRoutinginterfaceProxy *proxy)
6470 {
6471 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
6472  proxy->priv = audiomanager_routinginterface_proxy_get_instance_private (proxy);
6473 #else
6474  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_AUDIOMANAGER_ROUTINGINTERFACE_PROXY, AudiomanagerRoutinginterfaceProxyPrivate);
6475 #endif
6476 
6477  g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), audiomanager_routinginterface_interface_info ());
6478 }
6479 
6480 static void
6481 audiomanager_routinginterface_proxy_class_init (AudiomanagerRoutinginterfaceProxyClass *klass)
6482 {
6483  GObjectClass *gobject_class;
6484  GDBusProxyClass *proxy_class;
6485 
6486  gobject_class = G_OBJECT_CLASS (klass);
6487  gobject_class->finalize = audiomanager_routinginterface_proxy_finalize;
6488  gobject_class->get_property = audiomanager_routinginterface_proxy_get_property;
6489  gobject_class->set_property = audiomanager_routinginterface_proxy_set_property;
6490 
6491  proxy_class = G_DBUS_PROXY_CLASS (klass);
6492  proxy_class->g_signal = audiomanager_routinginterface_proxy_g_signal;
6493  proxy_class->g_properties_changed = audiomanager_routinginterface_proxy_g_properties_changed;
6494 
6495 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
6496  g_type_class_add_private (klass, sizeof (AudiomanagerRoutinginterfaceProxyPrivate));
6497 #endif
6498 }
6499 
6500 static void
6501 audiomanager_routinginterface_proxy_iface_init (AudiomanagerRoutinginterfaceIface *iface)
6502 {
6503 }
6504 
6522 void
6524  GDBusConnection *connection,
6525  GDBusProxyFlags flags,
6526  const gchar *name,
6527  const gchar *object_path,
6528  GCancellable *cancellable,
6529  GAsyncReadyCallback callback,
6530  gpointer user_data)
6531 {
6532  g_async_initable_new_async (TYPE_AUDIOMANAGER_ROUTINGINTERFACE_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.genivi.audiomanager.routinginterface", NULL);
6533 }
6534 
6546  GAsyncResult *res,
6547  GError **error)
6548 {
6549  GObject *ret;
6550  GObject *source_object;
6551  source_object = g_async_result_get_source_object (res);
6552  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
6553  g_object_unref (source_object);
6554  if (ret != NULL)
6555  return AUDIOMANAGER_ROUTINGINTERFACE (ret);
6556  else
6557  return NULL;
6558 }
6559 
6579  GDBusConnection *connection,
6580  GDBusProxyFlags flags,
6581  const gchar *name,
6582  const gchar *object_path,
6583  GCancellable *cancellable,
6584  GError **error)
6585 {
6586  GInitable *ret;
6587  ret = g_initable_new (TYPE_AUDIOMANAGER_ROUTINGINTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.genivi.audiomanager.routinginterface", NULL);
6588  if (ret != NULL)
6589  return AUDIOMANAGER_ROUTINGINTERFACE (ret);
6590  else
6591  return NULL;
6592 }
6593 
6594 
6612 void
6614  GBusType bus_type,
6615  GDBusProxyFlags flags,
6616  const gchar *name,
6617  const gchar *object_path,
6618  GCancellable *cancellable,
6619  GAsyncReadyCallback callback,
6620  gpointer user_data)
6621 {
6622  g_async_initable_new_async (TYPE_AUDIOMANAGER_ROUTINGINTERFACE_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.genivi.audiomanager.routinginterface", NULL);
6623 }
6624 
6636  GAsyncResult *res,
6637  GError **error)
6638 {
6639  GObject *ret;
6640  GObject *source_object;
6641  source_object = g_async_result_get_source_object (res);
6642  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
6643  g_object_unref (source_object);
6644  if (ret != NULL)
6645  return AUDIOMANAGER_ROUTINGINTERFACE (ret);
6646  else
6647  return NULL;
6648 }
6649 
6669  GBusType bus_type,
6670  GDBusProxyFlags flags,
6671  const gchar *name,
6672  const gchar *object_path,
6673  GCancellable *cancellable,
6674  GError **error)
6675 {
6676  GInitable *ret;
6677  ret = g_initable_new (TYPE_AUDIOMANAGER_ROUTINGINTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.genivi.audiomanager.routinginterface", NULL);
6678  if (ret != NULL)
6679  return AUDIOMANAGER_ROUTINGINTERFACE (ret);
6680  else
6681  return NULL;
6682 }
6683 
6684 
6685 /* ------------------------------------------------------------------------ */
6686 
6701 {
6702  GValue *properties;
6705  GMainContext *context;
6706  GMutex lock;
6707 };
6708 
6709 static void
6710 _audiomanager_routinginterface_skeleton_handle_method_call (
6711  GDBusConnection *connection G_GNUC_UNUSED,
6712  const gchar *sender G_GNUC_UNUSED,
6713  const gchar *object_path G_GNUC_UNUSED,
6714  const gchar *interface_name,
6715  const gchar *method_name,
6716  GVariant *parameters,
6717  GDBusMethodInvocation *invocation,
6718  gpointer user_data)
6719 {
6722  GVariantIter iter;
6723  GVariant *child;
6724  GValue *paramv;
6725  guint num_params;
6726  guint num_extra;
6727  guint n;
6728  guint signal_id;
6729  GValue return_value = G_VALUE_INIT;
6730  info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
6731  g_assert (info != NULL);
6732  num_params = g_variant_n_children (parameters);
6733  num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
6734  n = 0;
6735  g_value_init (&paramv[n], TYPE_AUDIOMANAGER_ROUTINGINTERFACE);
6736  g_value_set_object (&paramv[n++], skeleton);
6737  g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
6738  g_value_set_object (&paramv[n++], invocation);
6739  if (info->pass_fdlist)
6740  {
6741 #ifdef G_OS_UNIX
6742  g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
6743  g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
6744 #else
6745  g_assert_not_reached ();
6746 #endif
6747  }
6748  g_variant_iter_init (&iter, parameters);
6749  while ((child = g_variant_iter_next_value (&iter)) != NULL)
6750  {
6751  _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
6752  if (arg_info->use_gvariant)
6753  {
6754  g_value_init (&paramv[n], G_TYPE_VARIANT);
6755  g_value_set_variant (&paramv[n], child);
6756  n++;
6757  }
6758  else
6759  g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
6760  g_variant_unref (child);
6761  }
6762  signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_ROUTINGINTERFACE);
6763  g_value_init (&return_value, G_TYPE_BOOLEAN);
6764  g_signal_emitv (paramv, signal_id, 0, &return_value);
6765  if (!g_value_get_boolean (&return_value))
6766  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);
6767  g_value_unset (&return_value);
6768  for (n = 0; n < num_params + num_extra; n++)
6769  g_value_unset (&paramv[n]);
6770  g_free (paramv);
6771 }
6772 
6773 static GVariant *
6774 _audiomanager_routinginterface_skeleton_handle_get_property (
6775  GDBusConnection *connection G_GNUC_UNUSED,
6776  const gchar *sender G_GNUC_UNUSED,
6777  const gchar *object_path G_GNUC_UNUSED,
6778  const gchar *interface_name G_GNUC_UNUSED,
6779  const gchar *property_name,
6780  GError **error,
6781  gpointer user_data)
6782 {
6784  GValue value = G_VALUE_INIT;
6785  GParamSpec *pspec;
6787  GVariant *ret;
6788  ret = NULL;
6789  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct, property_name);
6790  g_assert (info != NULL);
6791  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
6792  if (pspec == NULL)
6793  {
6794  g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
6795  }
6796  else
6797  {
6798  g_value_init (&value, pspec->value_type);
6799  g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
6800  ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
6801  g_value_unset (&value);
6802  }
6803  return ret;
6804 }
6805 
6806 static gboolean
6807 _audiomanager_routinginterface_skeleton_handle_set_property (
6808  GDBusConnection *connection G_GNUC_UNUSED,
6809  const gchar *sender G_GNUC_UNUSED,
6810  const gchar *object_path G_GNUC_UNUSED,
6811  const gchar *interface_name G_GNUC_UNUSED,
6812  const gchar *property_name,
6813  GVariant *variant,
6814  GError **error,
6815  gpointer user_data)
6816 {
6818  GValue value = G_VALUE_INIT;
6819  GParamSpec *pspec;
6821  gboolean ret;
6822  ret = FALSE;
6823  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct, property_name);
6824  g_assert (info != NULL);
6825  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
6826  if (pspec == NULL)
6827  {
6828  g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
6829  }
6830  else
6831  {
6832  if (info->use_gvariant)
6833  g_value_set_variant (&value, variant);
6834  else
6835  g_dbus_gvariant_to_gvalue (variant, &value);
6836  g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
6837  g_value_unset (&value);
6838  ret = TRUE;
6839  }
6840  return ret;
6841 }
6842 
6843 static const GDBusInterfaceVTable _audiomanager_routinginterface_skeleton_vtable =
6844 {
6845  _audiomanager_routinginterface_skeleton_handle_method_call,
6846  _audiomanager_routinginterface_skeleton_handle_get_property,
6847  _audiomanager_routinginterface_skeleton_handle_set_property,
6848  {NULL}
6849 };
6850 
6851 static GDBusInterfaceInfo *
6852 audiomanager_routinginterface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
6853 {
6855 }
6856 
6857 static GDBusInterfaceVTable *
6858 audiomanager_routinginterface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
6859 {
6860  return (GDBusInterfaceVTable *) &_audiomanager_routinginterface_skeleton_vtable;
6861 }
6862 
6863 static GVariant *
6864 audiomanager_routinginterface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
6865 {
6867 
6868  GVariantBuilder builder;
6869  guint n;
6870  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
6871  if (_audiomanager_routinginterface_interface_info.parent_struct.properties == NULL)
6872  goto out;
6873  for (n = 0; _audiomanager_routinginterface_interface_info.parent_struct.properties[n] != NULL; n++)
6874  {
6875  GDBusPropertyInfo *info = _audiomanager_routinginterface_interface_info.parent_struct.properties[n];
6876  if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
6877  {
6878  GVariant *value;
6879  value = _audiomanager_routinginterface_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.genivi.audiomanager.routinginterface", info->name, NULL, skeleton);
6880  if (value != NULL)
6881  {
6882  g_variant_take_ref (value);
6883  g_variant_builder_add (&builder, "{sv}", info->name, value);
6884  g_variant_unref (value);
6885  }
6886  }
6887  }
6888 out:
6889  return g_variant_builder_end (&builder);
6890 }
6891 
6892 static void
6893 audiomanager_routinginterface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
6894 {
6895 }
6896 
6897 static void
6898 _audiomanager_routinginterface_on_signal_set_routing_ready (
6900 {
6902 
6903  GList *connections, *l;
6904  GVariant *signal_variant;
6905  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
6906 
6907  signal_variant = g_variant_ref_sink (g_variant_new ("()"));
6908  for (l = connections; l != NULL; l = l->next)
6909  {
6910  GDBusConnection *connection = l->data;
6911  g_dbus_connection_emit_signal (connection,
6912  NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.routinginterface", "setRoutingReady",
6913  signal_variant, NULL);
6914  }
6915  g_variant_unref (signal_variant);
6916  g_list_free_full (connections, g_object_unref);
6917 }
6918 
6919 static void
6920 _audiomanager_routinginterface_on_signal_set_routing_rundown (
6922 {
6924 
6925  GList *connections, *l;
6926  GVariant *signal_variant;
6927  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
6928 
6929  signal_variant = g_variant_ref_sink (g_variant_new ("()"));
6930  for (l = connections; l != NULL; l = l->next)
6931  {
6932  GDBusConnection *connection = l->data;
6933  g_dbus_connection_emit_signal (connection,
6934  NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.routinginterface", "setRoutingRundown",
6935  signal_variant, NULL);
6936  }
6937  g_variant_unref (signal_variant);
6938  g_list_free_full (connections, g_object_unref);
6939 }
6940 
6941 static void audiomanager_routinginterface_skeleton_iface_init (AudiomanagerRoutinginterfaceIface *iface);
6942 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
6943 G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutinginterfaceSkeleton, audiomanager_routinginterface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
6944  G_ADD_PRIVATE (AudiomanagerRoutinginterfaceSkeleton)
6945  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTINGINTERFACE, audiomanager_routinginterface_skeleton_iface_init));
6946 
6947 #else
6948 G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutinginterfaceSkeleton, audiomanager_routinginterface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
6949  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTINGINTERFACE, audiomanager_routinginterface_skeleton_iface_init));
6950 
6951 #endif
6952 static void
6953 audiomanager_routinginterface_skeleton_finalize (GObject *object)
6954 {
6956  g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
6957  if (skeleton->priv->changed_properties_idle_source != NULL)
6958  g_source_destroy (skeleton->priv->changed_properties_idle_source);
6959  g_main_context_unref (skeleton->priv->context);
6960  g_mutex_clear (&skeleton->priv->lock);
6961  G_OBJECT_CLASS (audiomanager_routinginterface_skeleton_parent_class)->finalize (object);
6962 }
6963 
6964 static void
6965 audiomanager_routinginterface_skeleton_init (AudiomanagerRoutinginterfaceSkeleton *skeleton)
6966 {
6967 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
6968  skeleton->priv = audiomanager_routinginterface_skeleton_get_instance_private (skeleton);
6969 #else
6970  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_AUDIOMANAGER_ROUTINGINTERFACE_SKELETON, AudiomanagerRoutinginterfaceSkeletonPrivate);
6971 #endif
6972 
6973  g_mutex_init (&skeleton->priv->lock);
6974  skeleton->priv->context = g_main_context_ref_thread_default ();
6975 }
6976 
6977 static void
6978 audiomanager_routinginterface_skeleton_class_init (AudiomanagerRoutinginterfaceSkeletonClass *klass)
6979 {
6980  GObjectClass *gobject_class;
6981  GDBusInterfaceSkeletonClass *skeleton_class;
6982 
6983  gobject_class = G_OBJECT_CLASS (klass);
6984  gobject_class->finalize = audiomanager_routinginterface_skeleton_finalize;
6985 
6986  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
6987  skeleton_class->get_info = audiomanager_routinginterface_skeleton_dbus_interface_get_info;
6988  skeleton_class->get_properties = audiomanager_routinginterface_skeleton_dbus_interface_get_properties;
6989  skeleton_class->flush = audiomanager_routinginterface_skeleton_dbus_interface_flush;
6990  skeleton_class->get_vtable = audiomanager_routinginterface_skeleton_dbus_interface_get_vtable;
6991 
6992 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
6993  g_type_class_add_private (klass, sizeof (AudiomanagerRoutinginterfaceSkeletonPrivate));
6994 #endif
6995 }
6996 
6997 static void
6998 audiomanager_routinginterface_skeleton_iface_init (AudiomanagerRoutinginterfaceIface *iface)
6999 {
7000  iface->set_routing_ready = _audiomanager_routinginterface_on_signal_set_routing_ready;
7001  iface->set_routing_rundown = _audiomanager_routinginterface_on_signal_set_routing_rundown;
7002 }
7003 
7013 {
7015 }
7016 
7017 /* ------------------------------------------------------------------------
7018  * Code for interface org.genivi.audiomanager.routing.soundmanager
7019  * ------------------------------------------------------------------------
7020  */
7021 
7030 /* ---- Introspection data for org.genivi.audiomanager.routing.soundmanager ---- */
7031 
7032 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_abort_IN_ARG_handle =
7033 {
7034  {
7035  -1,
7036  (gchar *) "handle",
7037  (gchar *) "q",
7038  NULL
7039  },
7040  FALSE
7041 };
7042 
7043 static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_abort_IN_ARG_pointers[] =
7044 {
7045  &_audiomanager_routing_soundmanager_method_info_async_abort_IN_ARG_handle,
7046  NULL
7047 };
7048 
7049 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_abort_OUT_ARG_error =
7050 {
7051  {
7052  -1,
7053  (gchar *) "error",
7054  (gchar *) "n",
7055  NULL
7056  },
7057  FALSE
7058 };
7059 
7060 static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_abort_OUT_ARG_pointers[] =
7061 {
7062  &_audiomanager_routing_soundmanager_method_info_async_abort_OUT_ARG_error,
7063  NULL
7064 };
7065 
7066 static const _ExtendedGDBusMethodInfo _audiomanager_routing_soundmanager_method_info_async_abort =
7067 {
7068  {
7069  -1,
7070  (gchar *) "asyncAbort",
7071  (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_abort_IN_ARG_pointers,
7072  (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_abort_OUT_ARG_pointers,
7073  NULL
7074  },
7075  "handle-async-abort",
7076  FALSE
7077 };
7078 
7079 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_handle =
7080 {
7081  {
7082  -1,
7083  (gchar *) "handle",
7084  (gchar *) "q",
7085  NULL
7086  },
7087  FALSE
7088 };
7089 
7090 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_connectionID =
7091 {
7092  {
7093  -1,
7094  (gchar *) "connectionID",
7095  (gchar *) "q",
7096  NULL
7097  },
7098  FALSE
7099 };
7100 
7101 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_sourceID =
7102 {
7103  {
7104  -1,
7105  (gchar *) "sourceID",
7106  (gchar *) "q",
7107  NULL
7108  },
7109  FALSE
7110 };
7111 
7112 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_sinkID =
7113 {
7114  {
7115  -1,
7116  (gchar *) "sinkID",
7117  (gchar *) "q",
7118  NULL
7119  },
7120  FALSE
7121 };
7122 
7123 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_connectionFormat =
7124 {
7125  {
7126  -1,
7127  (gchar *) "connectionFormat",
7128  (gchar *) "i",
7129  NULL
7130  },
7131  FALSE
7132 };
7133 
7134 static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_pointers[] =
7135 {
7136  &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_handle,
7137  &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_connectionID,
7138  &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_sourceID,
7139  &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_sinkID,
7140  &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_connectionFormat,
7141  NULL
7142 };
7143 
7144 static const _ExtendedGDBusMethodInfo _audiomanager_routing_soundmanager_method_info_async_connect =
7145 {
7146  {
7147  -1,
7148  (gchar *) "asyncConnect",
7149  (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_pointers,
7150  NULL,
7151  NULL
7152  },
7153  "handle-async-connect",
7154  FALSE
7155 };
7156 
7157 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_handle =
7158 {
7159  {
7160  -1,
7161  (gchar *) "handle",
7162  (gchar *) "q",
7163  NULL
7164  },
7165  FALSE
7166 };
7167 
7168 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_connectionID =
7169 {
7170  {
7171  -1,
7172  (gchar *) "connectionID",
7173  (gchar *) "q",
7174  NULL
7175  },
7176  FALSE
7177 };
7178 
7179 static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_pointers[] =
7180 {
7181  &_audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_handle,
7182  &_audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_connectionID,
7183  NULL
7184 };
7185 
7186 static const _ExtendedGDBusMethodInfo _audiomanager_routing_soundmanager_method_info_async_disconnect =
7187 {
7188  {
7189  -1,
7190  (gchar *) "asyncDisconnect",
7191  (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_pointers,
7192  NULL,
7193  NULL
7194  },
7195  "handle-async-disconnect",
7196  FALSE
7197 };
7198 
7199 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_handle =
7200 {
7201  {
7202  -1,
7203  (gchar *) "handle",
7204  (gchar *) "q",
7205  NULL
7206  },
7207  FALSE
7208 };
7209 
7210 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_sinkID =
7211 {
7212  {
7213  -1,
7214  (gchar *) "sinkID",
7215  (gchar *) "q",
7216  NULL
7217  },
7218  FALSE
7219 };
7220 
7221 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_volume =
7222 {
7223  {
7224  -1,
7225  (gchar *) "volume",
7226  (gchar *) "n",
7227  NULL
7228  },
7229  FALSE
7230 };
7231 
7232 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_ramp =
7233 {
7234  {
7235  -1,
7236  (gchar *) "ramp",
7237  (gchar *) "n",
7238  NULL
7239  },
7240  FALSE
7241 };
7242 
7243 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_time =
7244 {
7245  {
7246  -1,
7247  (gchar *) "time",
7248  (gchar *) "q",
7249  NULL
7250  },
7251  FALSE
7252 };
7253 
7254 static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_pointers[] =
7255 {
7256  &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_handle,
7257  &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_sinkID,
7258  &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_volume,
7259  &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_ramp,
7260  &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_time,
7261  NULL
7262 };
7263 
7264 static const _ExtendedGDBusMethodInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume =
7265 {
7266  {
7267  -1,
7268  (gchar *) "asyncSetSinkVolume",
7269  (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_pointers,
7270  NULL,
7271  NULL
7272  },
7273  "handle-async-set-sink-volume",
7274  FALSE
7275 };
7276 
7277 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_handle =
7278 {
7279  {
7280  -1,
7281  (gchar *) "handle",
7282  (gchar *) "q",
7283  NULL
7284  },
7285  FALSE
7286 };
7287 
7288 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_sourceID =
7289 {
7290  {
7291  -1,
7292  (gchar *) "sourceID",
7293  (gchar *) "q",
7294  NULL
7295  },
7296  FALSE
7297 };
7298 
7299 static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_sourceState =
7300 {
7301  {
7302  -1,
7303  (gchar *) "sourceState",
7304  (gchar *) "i",
7305  NULL
7306  },
7307  FALSE
7308 };
7309 
7310 static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_pointers[] =
7311 {
7312  &_audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_handle,
7313  &_audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_sourceID,
7314  &_audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_sourceState,
7315  NULL
7316 };
7317 
7318 static const _ExtendedGDBusMethodInfo _audiomanager_routing_soundmanager_method_info_async_set_source_state =
7319 {
7320  {
7321  -1,
7322  (gchar *) "asyncSetSourceState",
7323  (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_pointers,
7324  NULL,
7325  NULL
7326  },
7327  "handle-async-set-source-state",
7328  FALSE
7329 };
7330 
7331 static const _ExtendedGDBusMethodInfo * const _audiomanager_routing_soundmanager_method_info_pointers[] =
7332 {
7333  &_audiomanager_routing_soundmanager_method_info_async_abort,
7334  &_audiomanager_routing_soundmanager_method_info_async_connect,
7335  &_audiomanager_routing_soundmanager_method_info_async_disconnect,
7336  &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume,
7337  &_audiomanager_routing_soundmanager_method_info_async_set_source_state,
7338  NULL
7339 };
7340 
7341 static const _ExtendedGDBusInterfaceInfo _audiomanager_routing_soundmanager_interface_info =
7342 {
7343  {
7344  -1,
7345  (gchar *) "org.genivi.audiomanager.routing.soundmanager",
7346  (GDBusMethodInfo **) &_audiomanager_routing_soundmanager_method_info_pointers,
7347  NULL,
7348  NULL,
7349  NULL
7350  },
7351  "audiomanager-routing-soundmanager",
7352 };
7353 
7354 
7362 GDBusInterfaceInfo *
7364 {
7365  return (GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct;
7366 }
7367 
7378 guint
7379 audiomanager_routing_soundmanager_override_properties (GObjectClass *klass, guint property_id_begin)
7380 {
7381  return property_id_begin - 1;
7382 }
7383 
7384 
7385 
7405 G_DEFINE_INTERFACE (AudiomanagerRoutingSoundmanager, audiomanager_routing_soundmanager, G_TYPE_OBJECT);
7406 
7407 static void
7408 audiomanager_routing_soundmanager_default_init (AudiomanagerRoutingSoundmanagerIface *iface)
7409 {
7410  /* GObject signals for incoming D-Bus method calls: */
7423  g_signal_new ("handle-async-abort",
7424  G_TYPE_FROM_INTERFACE (iface),
7425  G_SIGNAL_RUN_LAST,
7426  G_STRUCT_OFFSET (AudiomanagerRoutingSoundmanagerIface, handle_async_abort),
7427  g_signal_accumulator_true_handled,
7428  NULL,
7429  g_cclosure_marshal_generic,
7430  G_TYPE_BOOLEAN,
7431  2,
7432  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
7433 
7450  g_signal_new ("handle-async-connect",
7451  G_TYPE_FROM_INTERFACE (iface),
7452  G_SIGNAL_RUN_LAST,
7453  G_STRUCT_OFFSET (AudiomanagerRoutingSoundmanagerIface, handle_async_connect),
7454  g_signal_accumulator_true_handled,
7455  NULL,
7456  g_cclosure_marshal_generic,
7457  G_TYPE_BOOLEAN,
7458  6,
7459  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INT);
7460 
7474  g_signal_new ("handle-async-disconnect",
7475  G_TYPE_FROM_INTERFACE (iface),
7476  G_SIGNAL_RUN_LAST,
7477  G_STRUCT_OFFSET (AudiomanagerRoutingSoundmanagerIface, handle_async_disconnect),
7478  g_signal_accumulator_true_handled,
7479  NULL,
7480  g_cclosure_marshal_generic,
7481  G_TYPE_BOOLEAN,
7482  3,
7483  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
7484 
7501  g_signal_new ("handle-async-set-sink-volume",
7502  G_TYPE_FROM_INTERFACE (iface),
7503  G_SIGNAL_RUN_LAST,
7504  G_STRUCT_OFFSET (AudiomanagerRoutingSoundmanagerIface, handle_async_set_sink_volume),
7505  g_signal_accumulator_true_handled,
7506  NULL,
7507  g_cclosure_marshal_generic,
7508  G_TYPE_BOOLEAN,
7509  6,
7510  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INT, G_TYPE_INT, G_TYPE_UINT);
7511 
7526  g_signal_new ("handle-async-set-source-state",
7527  G_TYPE_FROM_INTERFACE (iface),
7528  G_SIGNAL_RUN_LAST,
7529  G_STRUCT_OFFSET (AudiomanagerRoutingSoundmanagerIface, handle_async_set_source_state),
7530  g_signal_accumulator_true_handled,
7531  NULL,
7532  g_cclosure_marshal_generic,
7533  G_TYPE_BOOLEAN,
7534  4,
7535  G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INT);
7536 
7537 }
7538 
7553 void
7556  guint16 arg_handle,
7557  GCancellable *cancellable,
7558  GAsyncReadyCallback callback,
7559  gpointer user_data)
7560 {
7561  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7562  "asyncAbort",
7563  g_variant_new ("(q)",
7564  arg_handle),
7565  G_DBUS_CALL_FLAGS_NONE,
7566  -1,
7567  cancellable,
7568  callback,
7569  user_data);
7570 }
7571 
7583 gboolean
7586  gint16 *out_error,
7587  GAsyncResult *res,
7588  GError **error)
7589 {
7590  GVariant *_ret;
7591  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7592  if (_ret == NULL)
7593  goto _out;
7594  g_variant_get (_ret,
7595  "(n)",
7596  out_error);
7597  g_variant_unref (_ret);
7598 _out:
7599  return _ret != NULL;
7600 }
7601 
7616 gboolean
7619  guint16 arg_handle,
7620  gint16 *out_error,
7621  GCancellable *cancellable,
7622  GError **error)
7623 {
7624  GVariant *_ret;
7625  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7626  "asyncAbort",
7627  g_variant_new ("(q)",
7628  arg_handle),
7629  G_DBUS_CALL_FLAGS_NONE,
7630  -1,
7631  cancellable,
7632  error);
7633  if (_ret == NULL)
7634  goto _out;
7635  g_variant_get (_ret,
7636  "(n)",
7637  out_error);
7638  g_variant_unref (_ret);
7639 _out:
7640  return _ret != NULL;
7641 }
7642 
7661 void
7664  guint16 arg_handle,
7665  guint16 arg_connectionID,
7666  guint16 arg_sourceID,
7667  guint16 arg_sinkID,
7668  gint arg_connectionFormat,
7669  GCancellable *cancellable,
7670  GAsyncReadyCallback callback,
7671  gpointer user_data)
7672 {
7673  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7674  "asyncConnect",
7675  g_variant_new ("(qqqqi)",
7676  arg_handle,
7677  arg_connectionID,
7678  arg_sourceID,
7679  arg_sinkID,
7680  arg_connectionFormat),
7681  G_DBUS_CALL_FLAGS_NONE,
7682  -1,
7683  cancellable,
7684  callback,
7685  user_data);
7686 }
7687 
7698 gboolean
7701  GAsyncResult *res,
7702  GError **error)
7703 {
7704  GVariant *_ret;
7705  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7706  if (_ret == NULL)
7707  goto _out;
7708  g_variant_get (_ret,
7709  "()");
7710  g_variant_unref (_ret);
7711 _out:
7712  return _ret != NULL;
7713 }
7714 
7732 gboolean
7735  guint16 arg_handle,
7736  guint16 arg_connectionID,
7737  guint16 arg_sourceID,
7738  guint16 arg_sinkID,
7739  gint arg_connectionFormat,
7740  GCancellable *cancellable,
7741  GError **error)
7742 {
7743  GVariant *_ret;
7744  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7745  "asyncConnect",
7746  g_variant_new ("(qqqqi)",
7747  arg_handle,
7748  arg_connectionID,
7749  arg_sourceID,
7750  arg_sinkID,
7751  arg_connectionFormat),
7752  G_DBUS_CALL_FLAGS_NONE,
7753  -1,
7754  cancellable,
7755  error);
7756  if (_ret == NULL)
7757  goto _out;
7758  g_variant_get (_ret,
7759  "()");
7760  g_variant_unref (_ret);
7761 _out:
7762  return _ret != NULL;
7763 }
7764 
7780 void
7783  guint16 arg_handle,
7784  guint16 arg_connectionID,
7785  GCancellable *cancellable,
7786  GAsyncReadyCallback callback,
7787  gpointer user_data)
7788 {
7789  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7790  "asyncDisconnect",
7791  g_variant_new ("(qq)",
7792  arg_handle,
7793  arg_connectionID),
7794  G_DBUS_CALL_FLAGS_NONE,
7795  -1,
7796  cancellable,
7797  callback,
7798  user_data);
7799 }
7800 
7811 gboolean
7814  GAsyncResult *res,
7815  GError **error)
7816 {
7817  GVariant *_ret;
7818  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7819  if (_ret == NULL)
7820  goto _out;
7821  g_variant_get (_ret,
7822  "()");
7823  g_variant_unref (_ret);
7824 _out:
7825  return _ret != NULL;
7826 }
7827 
7842 gboolean
7845  guint16 arg_handle,
7846  guint16 arg_connectionID,
7847  GCancellable *cancellable,
7848  GError **error)
7849 {
7850  GVariant *_ret;
7851  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7852  "asyncDisconnect",
7853  g_variant_new ("(qq)",
7854  arg_handle,
7855  arg_connectionID),
7856  G_DBUS_CALL_FLAGS_NONE,
7857  -1,
7858  cancellable,
7859  error);
7860  if (_ret == NULL)
7861  goto _out;
7862  g_variant_get (_ret,
7863  "()");
7864  g_variant_unref (_ret);
7865 _out:
7866  return _ret != NULL;
7867 }
7868 
7887 void
7890  guint16 arg_handle,
7891  guint16 arg_sinkID,
7892  gint16 arg_volume,
7893  gint16 arg_ramp,
7894  guint16 arg_time,
7895  GCancellable *cancellable,
7896  GAsyncReadyCallback callback,
7897  gpointer user_data)
7898 {
7899  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7900  "asyncSetSinkVolume",
7901  g_variant_new ("(qqnnq)",
7902  arg_handle,
7903  arg_sinkID,
7904  arg_volume,
7905  arg_ramp,
7906  arg_time),
7907  G_DBUS_CALL_FLAGS_NONE,
7908  -1,
7909  cancellable,
7910  callback,
7911  user_data);
7912 }
7913 
7924 gboolean
7927  GAsyncResult *res,
7928  GError **error)
7929 {
7930  GVariant *_ret;
7931  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7932  if (_ret == NULL)
7933  goto _out;
7934  g_variant_get (_ret,
7935  "()");
7936  g_variant_unref (_ret);
7937 _out:
7938  return _ret != NULL;
7939 }
7940 
7958 gboolean
7961  guint16 arg_handle,
7962  guint16 arg_sinkID,
7963  gint16 arg_volume,
7964  gint16 arg_ramp,
7965  guint16 arg_time,
7966  GCancellable *cancellable,
7967  GError **error)
7968 {
7969  GVariant *_ret;
7970  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7971  "asyncSetSinkVolume",
7972  g_variant_new ("(qqnnq)",
7973  arg_handle,
7974  arg_sinkID,
7975  arg_volume,
7976  arg_ramp,
7977  arg_time),
7978  G_DBUS_CALL_FLAGS_NONE,
7979  -1,
7980  cancellable,
7981  error);
7982  if (_ret == NULL)
7983  goto _out;
7984  g_variant_get (_ret,
7985  "()");
7986  g_variant_unref (_ret);
7987 _out:
7988  return _ret != NULL;
7989 }
7990 
8007 void
8010  guint16 arg_handle,
8011  guint16 arg_sourceID,
8012  gint arg_sourceState,
8013  GCancellable *cancellable,
8014  GAsyncReadyCallback callback,
8015  gpointer user_data)
8016 {
8017  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
8018  "asyncSetSourceState",
8019  g_variant_new ("(qqi)",
8020  arg_handle,
8021  arg_sourceID,
8022  arg_sourceState),
8023  G_DBUS_CALL_FLAGS_NONE,
8024  -1,
8025  cancellable,
8026  callback,
8027  user_data);
8028 }
8029 
8040 gboolean
8043  GAsyncResult *res,
8044  GError **error)
8045 {
8046  GVariant *_ret;
8047  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
8048  if (_ret == NULL)
8049  goto _out;
8050  g_variant_get (_ret,
8051  "()");
8052  g_variant_unref (_ret);
8053 _out:
8054  return _ret != NULL;
8055 }
8056 
8072 gboolean
8075  guint16 arg_handle,
8076  guint16 arg_sourceID,
8077  gint arg_sourceState,
8078  GCancellable *cancellable,
8079  GError **error)
8080 {
8081  GVariant *_ret;
8082  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
8083  "asyncSetSourceState",
8084  g_variant_new ("(qqi)",
8085  arg_handle,
8086  arg_sourceID,
8087  arg_sourceState),
8088  G_DBUS_CALL_FLAGS_NONE,
8089  -1,
8090  cancellable,
8091  error);
8092  if (_ret == NULL)
8093  goto _out;
8094  g_variant_get (_ret,
8095  "()");
8096  g_variant_unref (_ret);
8097 _out:
8098  return _ret != NULL;
8099 }
8100 
8111 void
8114  GDBusMethodInvocation *invocation,
8115  gint16 error)
8116 {
8117  g_dbus_method_invocation_return_value (invocation,
8118  g_variant_new ("(n)",
8119  error));
8120 }
8121 
8131 void
8134  GDBusMethodInvocation *invocation)
8135 {
8136  g_dbus_method_invocation_return_value (invocation,
8137  g_variant_new ("()"));
8138 }
8139 
8149 void
8152  GDBusMethodInvocation *invocation)
8153 {
8154  g_dbus_method_invocation_return_value (invocation,
8155  g_variant_new ("()"));
8156 }
8157 
8167 void
8170  GDBusMethodInvocation *invocation)
8171 {
8172  g_dbus_method_invocation_return_value (invocation,
8173  g_variant_new ("()"));
8174 }
8175 
8185 void
8188  GDBusMethodInvocation *invocation)
8189 {
8190  g_dbus_method_invocation_return_value (invocation,
8191  g_variant_new ("()"));
8192 }
8193 
8194 /* ------------------------------------------------------------------------ */
8195 
8210 {
8211  GData *qdata;
8212 };
8213 
8214 static void audiomanager_routing_soundmanager_proxy_iface_init (AudiomanagerRoutingSoundmanagerIface *iface);
8215 
8216 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
8217 G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutingSoundmanagerProxy, audiomanager_routing_soundmanager_proxy, G_TYPE_DBUS_PROXY,
8218  G_ADD_PRIVATE (AudiomanagerRoutingSoundmanagerProxy)
8219  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER, audiomanager_routing_soundmanager_proxy_iface_init));
8220 
8221 #else
8222 G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutingSoundmanagerProxy, audiomanager_routing_soundmanager_proxy, G_TYPE_DBUS_PROXY,
8223  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER, audiomanager_routing_soundmanager_proxy_iface_init));
8224 
8225 #endif
8226 static void
8227 audiomanager_routing_soundmanager_proxy_finalize (GObject *object)
8228 {
8230  g_datalist_clear (&proxy->priv->qdata);
8231  G_OBJECT_CLASS (audiomanager_routing_soundmanager_proxy_parent_class)->finalize (object);
8232 }
8233 
8234 static void
8235 audiomanager_routing_soundmanager_proxy_get_property (GObject *object,
8236  guint prop_id,
8237  GValue *value,
8238  GParamSpec *pspec G_GNUC_UNUSED)
8239 {
8240 }
8241 
8242 static void
8243 audiomanager_routing_soundmanager_proxy_set_property (GObject *object,
8244  guint prop_id,
8245  const GValue *value,
8246  GParamSpec *pspec G_GNUC_UNUSED)
8247 {
8248 }
8249 
8250 static void
8251 audiomanager_routing_soundmanager_proxy_g_signal (GDBusProxy *proxy,
8252  const gchar *sender_name G_GNUC_UNUSED,
8253  const gchar *signal_name,
8254  GVariant *parameters)
8255 {
8257  GVariantIter iter;
8258  GVariant *child;
8259  GValue *paramv;
8260  guint num_params;
8261  guint n;
8262  guint signal_id;
8263  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct, signal_name);
8264  if (info == NULL)
8265  return;
8266  num_params = g_variant_n_children (parameters);
8267  paramv = g_new0 (GValue, num_params + 1);
8268  g_value_init (&paramv[0], TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER);
8269  g_value_set_object (&paramv[0], proxy);
8270  g_variant_iter_init (&iter, parameters);
8271  n = 1;
8272  while ((child = g_variant_iter_next_value (&iter)) != NULL)
8273  {
8274  _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
8275  if (arg_info->use_gvariant)
8276  {
8277  g_value_init (&paramv[n], G_TYPE_VARIANT);
8278  g_value_set_variant (&paramv[n], child);
8279  n++;
8280  }
8281  else
8282  g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
8283  g_variant_unref (child);
8284  }
8285  signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER);
8286  g_signal_emitv (paramv, signal_id, 0, NULL);
8287  for (n = 0; n < num_params + 1; n++)
8288  g_value_unset (&paramv[n]);
8289  g_free (paramv);
8290 }
8291 
8292 static void
8293 audiomanager_routing_soundmanager_proxy_g_properties_changed (GDBusProxy *_proxy,
8294  GVariant *changed_properties,
8295  const gchar *const *invalidated_properties)
8296 {
8298  guint n;
8299  const gchar *key;
8300  GVariantIter *iter;
8302  g_variant_get (changed_properties, "a{sv}", &iter);
8303  while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
8304  {
8305  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct, key);
8306  g_datalist_remove_data (&proxy->priv->qdata, key);
8307  if (info != NULL)
8308  g_object_notify (G_OBJECT (proxy), info->hyphen_name);
8309  }
8310  g_variant_iter_free (iter);
8311  for (n = 0; invalidated_properties[n] != NULL; n++)
8312  {
8313  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct, invalidated_properties[n]);
8314  g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
8315  if (info != NULL)
8316  g_object_notify (G_OBJECT (proxy), info->hyphen_name);
8317  }
8318 }
8319 
8320 static void
8321 audiomanager_routing_soundmanager_proxy_init (AudiomanagerRoutingSoundmanagerProxy *proxy)
8322 {
8323 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
8324  proxy->priv = audiomanager_routing_soundmanager_proxy_get_instance_private (proxy);
8325 #else
8327 #endif
8328 
8329  g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), audiomanager_routing_soundmanager_interface_info ());
8330 }
8331 
8332 static void
8333 audiomanager_routing_soundmanager_proxy_class_init (AudiomanagerRoutingSoundmanagerProxyClass *klass)
8334 {
8335  GObjectClass *gobject_class;
8336  GDBusProxyClass *proxy_class;
8337 
8338  gobject_class = G_OBJECT_CLASS (klass);
8339  gobject_class->finalize = audiomanager_routing_soundmanager_proxy_finalize;
8340  gobject_class->get_property = audiomanager_routing_soundmanager_proxy_get_property;
8341  gobject_class->set_property = audiomanager_routing_soundmanager_proxy_set_property;
8342 
8343  proxy_class = G_DBUS_PROXY_CLASS (klass);
8344  proxy_class->g_signal = audiomanager_routing_soundmanager_proxy_g_signal;
8345  proxy_class->g_properties_changed = audiomanager_routing_soundmanager_proxy_g_properties_changed;
8346 
8347 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
8348  g_type_class_add_private (klass, sizeof (AudiomanagerRoutingSoundmanagerProxyPrivate));
8349 #endif
8350 }
8351 
8352 static void
8353 audiomanager_routing_soundmanager_proxy_iface_init (AudiomanagerRoutingSoundmanagerIface *iface)
8354 {
8355 }
8356 
8374 void
8376  GDBusConnection *connection,
8377  GDBusProxyFlags flags,
8378  const gchar *name,
8379  const gchar *object_path,
8380  GCancellable *cancellable,
8381  GAsyncReadyCallback callback,
8382  gpointer user_data)
8383 {
8384  g_async_initable_new_async (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER_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.genivi.audiomanager.routing.soundmanager", NULL);
8385 }
8386 
8398  GAsyncResult *res,
8399  GError **error)
8400 {
8401  GObject *ret;
8402  GObject *source_object;
8403  source_object = g_async_result_get_source_object (res);
8404  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
8405  g_object_unref (source_object);
8406  if (ret != NULL)
8407  return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
8408  else
8409  return NULL;
8410 }
8411 
8431  GDBusConnection *connection,
8432  GDBusProxyFlags flags,
8433  const gchar *name,
8434  const gchar *object_path,
8435  GCancellable *cancellable,
8436  GError **error)
8437 {
8438  GInitable *ret;
8439  ret = g_initable_new (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.genivi.audiomanager.routing.soundmanager", NULL);
8440  if (ret != NULL)
8441  return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
8442  else
8443  return NULL;
8444 }
8445 
8446 
8464 void
8466  GBusType bus_type,
8467  GDBusProxyFlags flags,
8468  const gchar *name,
8469  const gchar *object_path,
8470  GCancellable *cancellable,
8471  GAsyncReadyCallback callback,
8472  gpointer user_data)
8473 {
8474  g_async_initable_new_async (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER_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.genivi.audiomanager.routing.soundmanager", NULL);
8475 }
8476 
8488  GAsyncResult *res,
8489  GError **error)
8490 {
8491  GObject *ret;
8492  GObject *source_object;
8493  source_object = g_async_result_get_source_object (res);
8494  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
8495  g_object_unref (source_object);
8496  if (ret != NULL)
8497  return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
8498  else
8499  return NULL;
8500 }
8501 
8521  GBusType bus_type,
8522  GDBusProxyFlags flags,
8523  const gchar *name,
8524  const gchar *object_path,
8525  GCancellable *cancellable,
8526  GError **error)
8527 {
8528  GInitable *ret;
8529  ret = g_initable_new (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.genivi.audiomanager.routing.soundmanager", NULL);
8530  if (ret != NULL)
8531  return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
8532  else
8533  return NULL;
8534 }
8535 
8536 
8537 /* ------------------------------------------------------------------------ */
8538 
8553 {
8554  GValue *properties;
8557  GMainContext *context;
8558  GMutex lock;
8559 };
8560 
8561 static void
8562 _audiomanager_routing_soundmanager_skeleton_handle_method_call (
8563  GDBusConnection *connection G_GNUC_UNUSED,
8564  const gchar *sender G_GNUC_UNUSED,
8565  const gchar *object_path G_GNUC_UNUSED,
8566  const gchar *interface_name,
8567  const gchar *method_name,
8568  GVariant *parameters,
8569  GDBusMethodInvocation *invocation,
8570  gpointer user_data)
8571 {
8574  GVariantIter iter;
8575  GVariant *child;
8576  GValue *paramv;
8577  guint num_params;
8578  guint num_extra;
8579  guint n;
8580  guint signal_id;
8581  GValue return_value = G_VALUE_INIT;
8582  info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
8583  g_assert (info != NULL);
8584  num_params = g_variant_n_children (parameters);
8585  num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
8586  n = 0;
8587  g_value_init (&paramv[n], TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER);
8588  g_value_set_object (&paramv[n++], skeleton);
8589  g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
8590  g_value_set_object (&paramv[n++], invocation);
8591  if (info->pass_fdlist)
8592  {
8593 #ifdef G_OS_UNIX
8594  g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
8595  g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
8596 #else
8597  g_assert_not_reached ();
8598 #endif
8599  }
8600  g_variant_iter_init (&iter, parameters);
8601  while ((child = g_variant_iter_next_value (&iter)) != NULL)
8602  {
8603  _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
8604  if (arg_info->use_gvariant)
8605  {
8606  g_value_init (&paramv[n], G_TYPE_VARIANT);
8607  g_value_set_variant (&paramv[n], child);
8608  n++;
8609  }
8610  else
8611  g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
8612  g_variant_unref (child);
8613  }
8614  signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER);
8615  g_value_init (&return_value, G_TYPE_BOOLEAN);
8616  g_signal_emitv (paramv, signal_id, 0, &return_value);
8617  if (!g_value_get_boolean (&return_value))
8618  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);
8619  g_value_unset (&return_value);
8620  for (n = 0; n < num_params + num_extra; n++)
8621  g_value_unset (&paramv[n]);
8622  g_free (paramv);
8623 }
8624 
8625 static GVariant *
8626 _audiomanager_routing_soundmanager_skeleton_handle_get_property (
8627  GDBusConnection *connection G_GNUC_UNUSED,
8628  const gchar *sender G_GNUC_UNUSED,
8629  const gchar *object_path G_GNUC_UNUSED,
8630  const gchar *interface_name G_GNUC_UNUSED,
8631  const gchar *property_name,
8632  GError **error,
8633  gpointer user_data)
8634 {
8636  GValue value = G_VALUE_INIT;
8637  GParamSpec *pspec;
8639  GVariant *ret;
8640  ret = NULL;
8641  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct, property_name);
8642  g_assert (info != NULL);
8643  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
8644  if (pspec == NULL)
8645  {
8646  g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
8647  }
8648  else
8649  {
8650  g_value_init (&value, pspec->value_type);
8651  g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
8652  ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
8653  g_value_unset (&value);
8654  }
8655  return ret;
8656 }
8657 
8658 static gboolean
8659 _audiomanager_routing_soundmanager_skeleton_handle_set_property (
8660  GDBusConnection *connection G_GNUC_UNUSED,
8661  const gchar *sender G_GNUC_UNUSED,
8662  const gchar *object_path G_GNUC_UNUSED,
8663  const gchar *interface_name G_GNUC_UNUSED,
8664  const gchar *property_name,
8665  GVariant *variant,
8666  GError **error,
8667  gpointer user_data)
8668 {
8670  GValue value = G_VALUE_INIT;
8671  GParamSpec *pspec;
8673  gboolean ret;
8674  ret = FALSE;
8675  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct, property_name);
8676  g_assert (info != NULL);
8677  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
8678  if (pspec == NULL)
8679  {
8680  g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
8681  }
8682  else
8683  {
8684  if (info->use_gvariant)
8685  g_value_set_variant (&value, variant);
8686  else
8687  g_dbus_gvariant_to_gvalue (variant, &value);
8688  g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
8689  g_value_unset (&value);
8690  ret = TRUE;
8691  }
8692  return ret;
8693 }
8694 
8695 static const GDBusInterfaceVTable _audiomanager_routing_soundmanager_skeleton_vtable =
8696 {
8697  _audiomanager_routing_soundmanager_skeleton_handle_method_call,
8698  _audiomanager_routing_soundmanager_skeleton_handle_get_property,
8699  _audiomanager_routing_soundmanager_skeleton_handle_set_property,
8700  {NULL}
8701 };
8702 
8703 static GDBusInterfaceInfo *
8704 audiomanager_routing_soundmanager_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
8705 {
8707 }
8708 
8709 static GDBusInterfaceVTable *
8710 audiomanager_routing_soundmanager_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
8711 {
8712  return (GDBusInterfaceVTable *) &_audiomanager_routing_soundmanager_skeleton_vtable;
8713 }
8714 
8715 static GVariant *
8716 audiomanager_routing_soundmanager_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
8717 {
8719 
8720  GVariantBuilder builder;
8721  guint n;
8722  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
8723  if (_audiomanager_routing_soundmanager_interface_info.parent_struct.properties == NULL)
8724  goto out;
8725  for (n = 0; _audiomanager_routing_soundmanager_interface_info.parent_struct.properties[n] != NULL; n++)
8726  {
8727  GDBusPropertyInfo *info = _audiomanager_routing_soundmanager_interface_info.parent_struct.properties[n];
8728  if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
8729  {
8730  GVariant *value;
8731  value = _audiomanager_routing_soundmanager_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.genivi.audiomanager.routing.soundmanager", info->name, NULL, skeleton);
8732  if (value != NULL)
8733  {
8734  g_variant_take_ref (value);
8735  g_variant_builder_add (&builder, "{sv}", info->name, value);
8736  g_variant_unref (value);
8737  }
8738  }
8739  }
8740 out:
8741  return g_variant_builder_end (&builder);
8742 }
8743 
8744 static void
8745 audiomanager_routing_soundmanager_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
8746 {
8747 }
8748 
8749 static void audiomanager_routing_soundmanager_skeleton_iface_init (AudiomanagerRoutingSoundmanagerIface *iface);
8750 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
8751 G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutingSoundmanagerSkeleton, audiomanager_routing_soundmanager_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
8753  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER, audiomanager_routing_soundmanager_skeleton_iface_init));
8754 
8755 #else
8756 G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutingSoundmanagerSkeleton, audiomanager_routing_soundmanager_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
8757  G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER, audiomanager_routing_soundmanager_skeleton_iface_init));
8758 
8759 #endif
8760 static void
8761 audiomanager_routing_soundmanager_skeleton_finalize (GObject *object)
8762 {
8764  g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
8765  if (skeleton->priv->changed_properties_idle_source != NULL)
8766  g_source_destroy (skeleton->priv->changed_properties_idle_source);
8767  g_main_context_unref (skeleton->priv->context);
8768  g_mutex_clear (&skeleton->priv->lock);
8769  G_OBJECT_CLASS (audiomanager_routing_soundmanager_skeleton_parent_class)->finalize (object);
8770 }
8771 
8772 static void
8773 audiomanager_routing_soundmanager_skeleton_init (AudiomanagerRoutingSoundmanagerSkeleton *skeleton)
8774 {
8775 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
8776  skeleton->priv = audiomanager_routing_soundmanager_skeleton_get_instance_private (skeleton);
8777 #else
8779 #endif
8780 
8781  g_mutex_init (&skeleton->priv->lock);
8782  skeleton->priv->context = g_main_context_ref_thread_default ();
8783 }
8784 
8785 static void
8786 audiomanager_routing_soundmanager_skeleton_class_init (AudiomanagerRoutingSoundmanagerSkeletonClass *klass)
8787 {
8788  GObjectClass *gobject_class;
8789  GDBusInterfaceSkeletonClass *skeleton_class;
8790 
8791  gobject_class = G_OBJECT_CLASS (klass);
8792  gobject_class->finalize = audiomanager_routing_soundmanager_skeleton_finalize;
8793 
8794  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
8795  skeleton_class->get_info = audiomanager_routing_soundmanager_skeleton_dbus_interface_get_info;
8796  skeleton_class->get_properties = audiomanager_routing_soundmanager_skeleton_dbus_interface_get_properties;
8797  skeleton_class->flush = audiomanager_routing_soundmanager_skeleton_dbus_interface_flush;
8798  skeleton_class->get_vtable = audiomanager_routing_soundmanager_skeleton_dbus_interface_get_vtable;
8799 
8800 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
8801  g_type_class_add_private (klass, sizeof (AudiomanagerRoutingSoundmanagerSkeletonPrivate));
8802 #endif
8803 }
8804 
8805 static void
8806 audiomanager_routing_soundmanager_skeleton_iface_init (AudiomanagerRoutingSoundmanagerIface *iface)
8807 {
8808 }
8809 
8819 {
8821 }
8822 
8823 /* ------------------------------------------------------------------------
8824  * Code for Object, ObjectProxy and ObjectSkeleton
8825  * ------------------------------------------------------------------------
8826  */
8827 
8850 G_DEFINE_INTERFACE_WITH_CODE (Object, object, G_TYPE_OBJECT, g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_DBUS_OBJECT));
8851 
8852 static void
8853 object_default_init (ObjectIface *iface)
8854 {
8862  g_object_interface_install_property (iface, g_param_spec_object ("audiomanager-commandinterface", "audiomanager-commandinterface", "audiomanager-commandinterface", TYPE_AUDIOMANAGER_COMMANDINTERFACE, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS));
8863 
8871  g_object_interface_install_property (iface, g_param_spec_object ("audiomanager-routinginterface", "audiomanager-routinginterface", "audiomanager-routinginterface", TYPE_AUDIOMANAGER_ROUTINGINTERFACE, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS));
8872 
8880  g_object_interface_install_property (iface, g_param_spec_object ("audiomanager-routing-soundmanager", "audiomanager-routing-soundmanager", "audiomanager-routing-soundmanager", TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS));
8881 
8882 }
8883 
8893 {
8894  GDBusInterface *ret;
8895  ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.commandinterface");
8896  if (ret == NULL)
8897  return NULL;
8898  return AUDIOMANAGER_COMMANDINTERFACE (ret);
8899 }
8900 
8910 {
8911  GDBusInterface *ret;
8912  ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routinginterface");
8913  if (ret == NULL)
8914  return NULL;
8915  return AUDIOMANAGER_ROUTINGINTERFACE (ret);
8916 }
8917 
8927 {
8928  GDBusInterface *ret;
8929  ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routing.soundmanager");
8930  if (ret == NULL)
8931  return NULL;
8932  return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
8933 }
8934 
8935 
8947 {
8948  GDBusInterface *ret;
8949  ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.commandinterface");
8950  if (ret == NULL)
8951  return NULL;
8952  g_object_unref (ret);
8953  return AUDIOMANAGER_COMMANDINTERFACE (ret);
8954 }
8955 
8967 {
8968  GDBusInterface *ret;
8969  ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routinginterface");
8970  if (ret == NULL)
8971  return NULL;
8972  g_object_unref (ret);
8973  return AUDIOMANAGER_ROUTINGINTERFACE (ret);
8974 }
8975 
8987 {
8988  GDBusInterface *ret;
8989  ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routing.soundmanager");
8990  if (ret == NULL)
8991  return NULL;
8992  g_object_unref (ret);
8993  return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
8994 }
8995 
8996 
8997 static void
8998 object_notify (GDBusObject *object, GDBusInterface *interface)
8999 {
9000  _ExtendedGDBusInterfaceInfo *info = (_ExtendedGDBusInterfaceInfo *) g_dbus_interface_get_info (interface);
9001  /* info can be NULL if the other end is using a D-Bus interface we don't know
9002  * anything about, for example old generated code in this process talking to
9003  * newer generated code in the other process. */
9004  if (info != NULL)
9005  g_object_notify (G_OBJECT (object), info->hyphen_name);
9006 }
9007 
9021 static void
9022 object_proxy__object_iface_init (ObjectIface *iface G_GNUC_UNUSED)
9023 {
9024 }
9025 
9026 static void
9027 object_proxy__g_dbus_object_iface_init (GDBusObjectIface *iface)
9028 {
9029  iface->interface_added = object_notify;
9030  iface->interface_removed = object_notify;
9031 }
9032 
9033 
9034 G_DEFINE_TYPE_WITH_CODE (ObjectProxy, object_proxy, G_TYPE_DBUS_OBJECT_PROXY,
9035  G_IMPLEMENT_INTERFACE (TYPE_OBJECT, object_proxy__object_iface_init)
9036  G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, object_proxy__g_dbus_object_iface_init));
9037 
9038 static void
9039 object_proxy_init (ObjectProxy *object G_GNUC_UNUSED)
9040 {
9041 }
9042 
9043 static void
9044 object_proxy_set_property (GObject *gobject,
9045  guint prop_id,
9046  const GValue *value G_GNUC_UNUSED,
9047  GParamSpec *pspec)
9048 {
9049  G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
9050 }
9051 
9052 static void
9053 object_proxy_get_property (GObject *gobject,
9054  guint prop_id,
9055  GValue *value,
9056  GParamSpec *pspec)
9057 {
9058  ObjectProxy *object = OBJECT_PROXY (gobject);
9059  GDBusInterface *interface;
9060 
9061  switch (prop_id)
9062  {
9063  case 1:
9064  interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.commandinterface");
9065  g_value_take_object (value, interface);
9066  break;
9067 
9068  case 2:
9069  interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routinginterface");
9070  g_value_take_object (value, interface);
9071  break;
9072 
9073  case 3:
9074  interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routing.soundmanager");
9075  g_value_take_object (value, interface);
9076  break;
9077 
9078  default:
9079  G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
9080  break;
9081  }
9082 }
9083 
9084 static void
9085 object_proxy_class_init (ObjectProxyClass *klass)
9086 {
9087  GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
9088 
9089  gobject_class->set_property = object_proxy_set_property;
9090  gobject_class->get_property = object_proxy_get_property;
9091 
9092  g_object_class_override_property (gobject_class, 1, "audiomanager-commandinterface");
9093  g_object_class_override_property (gobject_class, 2, "audiomanager-routinginterface");
9094  g_object_class_override_property (gobject_class, 3, "audiomanager-routing-soundmanager");
9095 }
9096 
9106 ObjectProxy *
9107 object_proxy_new (GDBusConnection *connection,
9108  const gchar *object_path)
9109 {
9110  g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), NULL);
9111  g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);
9112  return OBJECT_PROXY (g_object_new (TYPE_OBJECT_PROXY, "g-connection", connection, "g-object-path", object_path, NULL));
9113 }
9114 
9128 static void
9129 object_skeleton__object_iface_init (ObjectIface *iface G_GNUC_UNUSED)
9130 {
9131 }
9132 
9133 
9134 static void
9135 object_skeleton__g_dbus_object_iface_init (GDBusObjectIface *iface)
9136 {
9137  iface->interface_added = object_notify;
9138  iface->interface_removed = object_notify;
9139 }
9140 
9141 G_DEFINE_TYPE_WITH_CODE (ObjectSkeleton, object_skeleton, G_TYPE_DBUS_OBJECT_SKELETON,
9142  G_IMPLEMENT_INTERFACE (TYPE_OBJECT, object_skeleton__object_iface_init)
9143  G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, object_skeleton__g_dbus_object_iface_init));
9144 
9145 static void
9146 object_skeleton_init (ObjectSkeleton *object G_GNUC_UNUSED)
9147 {
9148 }
9149 
9150 static void
9151 object_skeleton_set_property (GObject *gobject,
9152  guint prop_id,
9153  const GValue *value,
9154  GParamSpec *pspec)
9155 {
9156  ObjectSkeleton *object = OBJECT_SKELETON (gobject);
9157  GDBusInterfaceSkeleton *interface;
9158 
9159  switch (prop_id)
9160  {
9161  case 1:
9162  interface = g_value_get_object (value);
9163  if (interface != NULL)
9164  {
9165  g_warn_if_fail (IS_AUDIOMANAGER_COMMANDINTERFACE (interface));
9166  g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object), interface);
9167  }
9168  else
9169  {
9170  g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object), "org.genivi.audiomanager.commandinterface");
9171  }
9172  break;
9173 
9174  case 2:
9175  interface = g_value_get_object (value);
9176  if (interface != NULL)
9177  {
9178  g_warn_if_fail (IS_AUDIOMANAGER_ROUTINGINTERFACE (interface));
9179  g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object), interface);
9180  }
9181  else
9182  {
9183  g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object), "org.genivi.audiomanager.routinginterface");
9184  }
9185  break;
9186 
9187  case 3:
9188  interface = g_value_get_object (value);
9189  if (interface != NULL)
9190  {
9191  g_warn_if_fail (IS_AUDIOMANAGER_ROUTING_SOUNDMANAGER (interface));
9192  g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object), interface);
9193  }
9194  else
9195  {
9196  g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object), "org.genivi.audiomanager.routing.soundmanager");
9197  }
9198  break;
9199 
9200  default:
9201  G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
9202  break;
9203  }
9204 }
9205 
9206 static void
9207 object_skeleton_get_property (GObject *gobject,
9208  guint prop_id,
9209  GValue *value,
9210  GParamSpec *pspec)
9211 {
9212  ObjectSkeleton *object = OBJECT_SKELETON (gobject);
9213  GDBusInterface *interface;
9214 
9215  switch (prop_id)
9216  {
9217  case 1:
9218  interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.commandinterface");
9219  g_value_take_object (value, interface);
9220  break;
9221 
9222  case 2:
9223  interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routinginterface");
9224  g_value_take_object (value, interface);
9225  break;
9226 
9227  case 3:
9228  interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routing.soundmanager");
9229  g_value_take_object (value, interface);
9230  break;
9231 
9232  default:
9233  G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
9234  break;
9235  }
9236 }
9237 
9238 static void
9239 object_skeleton_class_init (ObjectSkeletonClass *klass)
9240 {
9241  GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
9242 
9243  gobject_class->set_property = object_skeleton_set_property;
9244  gobject_class->get_property = object_skeleton_get_property;
9245 
9246  g_object_class_override_property (gobject_class, 1, "audiomanager-commandinterface");
9247  g_object_class_override_property (gobject_class, 2, "audiomanager-routinginterface");
9248  g_object_class_override_property (gobject_class, 3, "audiomanager-routing-soundmanager");
9249 }
9250 
9260 object_skeleton_new (const gchar *object_path)
9261 {
9262  g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);
9263  return OBJECT_SKELETON (g_object_new (TYPE_OBJECT_SKELETON, "g-object-path", object_path, NULL));
9264 }
9265 
9274 {
9275  g_object_set (G_OBJECT (object), "audiomanager-commandinterface", interface_, NULL);
9276 }
9277 
9286 {
9287  g_object_set (G_OBJECT (object), "audiomanager-routinginterface", interface_, NULL);
9288 }
9289 
9298 {
9299  g_object_set (G_OBJECT (object), "audiomanager-routing-soundmanager", interface_, NULL);
9300 }
9301 
9302 
9303 /* ------------------------------------------------------------------------
9304  * Code for ObjectManager client
9305  * ------------------------------------------------------------------------
9306  */
9307 
9329 G_DEFINE_TYPE (ObjectManagerClient, object_manager_client, G_TYPE_DBUS_OBJECT_MANAGER_CLIENT);
9330 
9331 static void
9332 object_manager_client_init (ObjectManagerClient *manager G_GNUC_UNUSED)
9333 {
9334 }
9335 
9336 static void
9337 object_manager_client_class_init (ObjectManagerClientClass *klass G_GNUC_UNUSED)
9338 {
9339 }
9340 
9352 GType
9353 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)
9354 {
9355  static gsize once_init_value = 0;
9356  static GHashTable *lookup_hash;
9357  GType ret;
9358 
9359  if (interface_name == NULL)
9360  return TYPE_OBJECT_PROXY;
9361  if (g_once_init_enter (&once_init_value))
9362  {
9363  lookup_hash = g_hash_table_new (g_str_hash, g_str_equal);
9364  g_hash_table_insert (lookup_hash, (gpointer) "org.genivi.audiomanager.commandinterface", GSIZE_TO_POINTER (TYPE_AUDIOMANAGER_COMMANDINTERFACE_PROXY));
9365  g_hash_table_insert (lookup_hash, (gpointer) "org.genivi.audiomanager.routinginterface", GSIZE_TO_POINTER (TYPE_AUDIOMANAGER_ROUTINGINTERFACE_PROXY));
9366  g_hash_table_insert (lookup_hash, (gpointer) "org.genivi.audiomanager.routing.soundmanager", GSIZE_TO_POINTER (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER_PROXY));
9367  g_once_init_leave (&once_init_value, 1);
9368  }
9369  ret = (GType) GPOINTER_TO_SIZE (g_hash_table_lookup (lookup_hash, interface_name));
9370  if (ret == (GType) 0)
9371  ret = G_TYPE_DBUS_PROXY;
9372  return ret;
9373 }
9374 
9392 void
9394  GDBusConnection *connection,
9395  GDBusObjectManagerClientFlags flags,
9396  const gchar *name,
9397  const gchar *object_path,
9398  GCancellable *cancellable,
9399  GAsyncReadyCallback callback,
9400  gpointer user_data)
9401 {
9402  g_async_initable_new_async (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", object_manager_client_get_proxy_type, NULL);
9403 }
9404 
9414 GDBusObjectManager *
9416  GAsyncResult *res,
9417  GError **error)
9418 {
9419  GObject *ret;
9420  GObject *source_object;
9421  source_object = g_async_result_get_source_object (res);
9422  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
9423  g_object_unref (source_object);
9424  if (ret != NULL)
9425  return G_DBUS_OBJECT_MANAGER (ret);
9426  else
9427  return NULL;
9428 }
9429 
9447 GDBusObjectManager *
9449  GDBusConnection *connection,
9450  GDBusObjectManagerClientFlags flags,
9451  const gchar *name,
9452  const gchar *object_path,
9453  GCancellable *cancellable,
9454  GError **error)
9455 {
9456  GInitable *ret;
9457  ret = g_initable_new (TYPE_OBJECT_MANAGER_CLIENT, cancellable, error, "flags", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-func", object_manager_client_get_proxy_type, NULL);
9458  if (ret != NULL)
9459  return G_DBUS_OBJECT_MANAGER (ret);
9460  else
9461  return NULL;
9462 }
9463 
9464 
9482 void
9484  GBusType bus_type,
9485  GDBusObjectManagerClientFlags flags,
9486  const gchar *name,
9487  const gchar *object_path,
9488  GCancellable *cancellable,
9489  GAsyncReadyCallback callback,
9490  gpointer user_data)
9491 {
9492  g_async_initable_new_async (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", object_manager_client_get_proxy_type, NULL);
9493 }
9494 
9504 GDBusObjectManager *
9506  GAsyncResult *res,
9507  GError **error)
9508 {
9509  GObject *ret;
9510  GObject *source_object;
9511  source_object = g_async_result_get_source_object (res);
9512  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
9513  g_object_unref (source_object);
9514  if (ret != NULL)
9515  return G_DBUS_OBJECT_MANAGER (ret);
9516  else
9517  return NULL;
9518 }
9519 
9537 GDBusObjectManager *
9539  GBusType bus_type,
9540  GDBusObjectManagerClientFlags flags,
9541  const gchar *name,
9542  const gchar *object_path,
9543  GCancellable *cancellable,
9544  GError **error)
9545 {
9546  GInitable *ret;
9547  ret = g_initable_new (TYPE_OBJECT_MANAGER_CLIENT, cancellable, error, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-proxy-type-func", object_manager_client_get_proxy_type, NULL);
9548  if (ret != NULL)
9549  return G_DBUS_OBJECT_MANAGER (ret);
9550  else
9551  return NULL;
9552 }
9553 
9554 
gboolean audiomanager_routinginterface_call_register_source_finish(AudiomanagerRoutinginterface *proxy, guint16 *out_sourceID, guint16 *out_error, GAsyncResult *res, GError **error)
gboolean audiomanager_routinginterface_call_deregister_sink_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_sinkID, gint *out_error, GCancellable *cancellable, GError **error)
void audiomanager_commandinterface_call_connect(AudiomanagerCommandinterface *proxy, guint16 arg_sourceID, guint16 arg_sinkID, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
ObjectProxy * object_proxy_new(GDBusConnection *connection, const gchar *object_path)
#define TYPE_AUDIOMANAGER_ROUTINGINTERFACE
void audiomanager_routing_soundmanager_call_async_connect(AudiomanagerRoutingSoundmanager *proxy, guint16 arg_handle, guint16 arg_connectionID, guint16 arg_sourceID, guint16 arg_sinkID, gint arg_connectionFormat, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void audiomanager_routinginterface_call_register_source(AudiomanagerRoutinginterface *proxy, GVariant *arg_sourceData, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean audiomanager_routinginterface_call_ack_set_volumes_finish(AudiomanagerRoutinginterface *proxy, GAsyncResult *res, GError **error)
gboolean audiomanager_routinginterface_call_confirm_routing_ready_finish(AudiomanagerRoutinginterface *proxy, GAsyncResult *res, GError **error)
void audiomanager_routinginterface_call_hook_interrupt_status_change(AudiomanagerRoutinginterface *proxy, guint16 arg_sourceID, guint16 arg_interruptState, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
AudiomanagerRoutingSoundmanager * audiomanager_routing_soundmanager_proxy_new_for_bus_finish(GAsyncResult *res, GError **error)
void(* system_property_changed)(AudiomanagerCommandinterface *object, GVariant *arg_SystemProperty)
struct _AudiomanagerRoutingSoundmanager AudiomanagerRoutingSoundmanager
void audiomanager_routing_soundmanager_proxy_new_for_bus(GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void audiomanager_commandinterface_emit_system_property_changed(AudiomanagerCommandinterface *object, GVariant *arg_SystemProperty)
void audiomanager_routinginterface_proxy_new(GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean audiomanager_routing_soundmanager_call_async_abort_sync(AudiomanagerRoutingSoundmanager *proxy, guint16 arg_handle, gint16 *out_error, GCancellable *cancellable, GError **error)
#define IS_AUDIOMANAGER_ROUTING_SOUNDMANAGER(o)
void object_skeleton_set_audiomanager_routing_soundmanager(ObjectSkeleton *object, AudiomanagerRoutingSoundmanager *interface_)
#define AUDIOMANAGER_COMMANDINTERFACE(o)
void object_skeleton_set_audiomanager_commandinterface(ObjectSkeleton *object, AudiomanagerCommandinterface *interface_)
gboolean audiomanager_routinginterface_call_ack_source_notification_configuration_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, guint16 arg_error, GCancellable *cancellable, GError **error)
void audiomanager_routing_soundmanager_complete_async_set_source_state(AudiomanagerRoutingSoundmanager *object, GDBusMethodInvocation *invocation)
void audiomanager_routinginterface_call_deregister_source(AudiomanagerRoutinginterface *proxy, guint16 arg_sourceID, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
guint audiomanager_routinginterface_override_properties(GObjectClass *klass, guint property_id_begin)
#define TYPE_AUDIOMANAGER_ROUTINGINTERFACE_PROXY
#define AUDIOMANAGER_COMMANDINTERFACE_PROXY(o)
gboolean audiomanager_routing_soundmanager_call_async_set_sink_volume_sync(AudiomanagerRoutingSoundmanager *proxy, guint16 arg_handle, guint16 arg_sinkID, gint16 arg_volume, gint16 arg_ramp, guint16 arg_time, GCancellable *cancellable, GError **error)
gboolean audiomanager_routinginterface_call_hook_source_availablity_status_change_finish(AudiomanagerRoutinginterface *proxy, GAsyncResult *res, GError **error)
gboolean audiomanager_commandinterface_call_get_list_main_connections_finish(AudiomanagerCommandinterface *proxy, gint16 *out_result, GVariant **out_listConnections, GAsyncResult *res, GError **error)
gboolean audiomanager_routinginterface_call_deregister_source_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_sourceID, guint16 *out_error, GCancellable *cancellable, GError **error)
#define TYPE_AUDIOMANAGER_COMMANDINTERFACE_PROXY
void audiomanager_routinginterface_emit_set_routing_ready(AudiomanagerRoutinginterface *object)
gboolean audiomanager_routinginterface_call_register_sink_finish(AudiomanagerRoutinginterface *proxy, guint16 *out_sinkID, guint16 *out_error, GAsyncResult *res, GError **error)
void audiomanager_commandinterface_emit_sink_mute_state_changed(AudiomanagerCommandinterface *object, guint16 arg_sinkID, gint16 arg_muteState)
void audiomanager_commandinterface_call_set_volume(AudiomanagerCommandinterface *proxy, guint16 arg_sinkID, gint16 arg_volume, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
#define TYPE_AUDIOMANAGER_COMMANDINTERFACE_SKELETON
G_DEFINE_TYPE_WITH_CODE(AudiomanagerCommandinterfaceProxy, audiomanager_commandinterface_proxy, G_TYPE_DBUS_PROXY, G_IMPLEMENT_INTERFACE(TYPE_AUDIOMANAGER_COMMANDINTERFACE, audiomanager_commandinterface_proxy_iface_init))
void audiomanager_commandinterface_complete_get_list_main_connections(AudiomanagerCommandinterface *object, GDBusMethodInvocation *invocation, gint16 result, GVariant *listConnections)
void audiomanager_routinginterface_complete_confirm_routing_ready(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation)
G_DEFINE_TYPE(ObjectManagerClient, object_manager_client, G_TYPE_DBUS_OBJECT_MANAGER_CLIENT)
void(* removed_main_connection)(AudiomanagerCommandinterface *object, guint16 arg_mainConnectionId)
GType 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)
#define AUDIOMANAGER_ROUTINGINTERFACE_SKELETON(o)
#define IS_AUDIOMANAGER_ROUTINGINTERFACE(o)
AudiomanagerRoutingSoundmanager * audiomanager_routing_soundmanager_proxy_new_finish(GAsyncResult *res, GError **error)
AudiomanagerCommandinterface * audiomanager_commandinterface_skeleton_new(void)
#define TYPE_OBJECT
void audiomanager_commandinterface_proxy_new(GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void audiomanager_routing_soundmanager_call_async_set_sink_volume(AudiomanagerRoutingSoundmanager *proxy, guint16 arg_handle, guint16 arg_sinkID, gint16 arg_volume, gint16 arg_ramp, guint16 arg_time, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void audiomanager_routinginterface_complete_register_source(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation, guint16 sourceID, guint16 error)
void audiomanager_commandinterface_call_volume_step(AudiomanagerCommandinterface *proxy, guint16 arg_sinkID, gint16 arg_volumeStep, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void audiomanager_routinginterface_call_ack_set_source_state(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, guint16 arg_error, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean audiomanager_routinginterface_call_hook_source_availablity_status_change_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_sourceID, GVariant *arg_availability, GCancellable *cancellable, GError **error)
G_DEFINE_INTERFACE_WITH_CODE(Object, object, G_TYPE_OBJECT, g_type_interface_add_prerequisite(g_define_type_id, G_TYPE_DBUS_OBJECT))
AudiomanagerRoutingSoundmanager * audiomanager_routing_soundmanager_proxy_new_sync(GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
#define TYPE_OBJECT_MANAGER_CLIENT
gboolean audiomanager_routing_soundmanager_call_async_disconnect_finish(AudiomanagerRoutingSoundmanager *proxy, GAsyncResult *res, GError **error)
GDBusObjectManager * object_manager_client_new_sync(GDBusConnection *connection, GDBusObjectManagerClientFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
gboolean audiomanager_commandinterface_call_set_sink_mute_state_finish(AudiomanagerCommandinterface *proxy, gint16 *out_result, GAsyncResult *res, GError **error)
gboolean audiomanager_routinginterface_call_ack_connect_finish(AudiomanagerRoutinginterface *proxy, GAsyncResult *res, GError **error)
struct _AudiomanagerCommandinterface AudiomanagerCommandinterface
void audiomanager_routinginterface_emit_set_routing_rundown(AudiomanagerRoutinginterface *object)
void audiomanager_routinginterface_call_deregister_sink(AudiomanagerRoutinginterface *proxy, guint16 arg_sinkID, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDBusInterfaceInfo * audiomanager_routing_soundmanager_interface_info(void)
gboolean audiomanager_routinginterface_call_deregister_source_finish(AudiomanagerRoutinginterface *proxy, guint16 *out_error, GAsyncResult *res, GError **error)
gboolean audiomanager_commandinterface_call_disconnect_finish(AudiomanagerCommandinterface *proxy, gint16 *out_result, GAsyncResult *res, GError **error)
struct _AudiomanagerRoutinginterface AudiomanagerRoutinginterface
void audiomanager_commandinterface_complete_set_volume(AudiomanagerCommandinterface *object, GDBusMethodInvocation *invocation, gint16 result)
void audiomanager_routinginterface_call_hook_source_availablity_status_change(AudiomanagerRoutinginterface *proxy, guint16 arg_sourceID, GVariant *arg_availability, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean audiomanager_routinginterface_call_confirm_routing_rundown_finish(AudiomanagerRoutinginterface *proxy, GAsyncResult *res, GError **error)
gboolean audiomanager_commandinterface_call_get_list_main_sinks_finish(AudiomanagerCommandinterface *proxy, gint16 *out_result, GVariant **out_listMainSinks, GAsyncResult *res, GError **error)
void audiomanager_routinginterface_complete_ack_source_notification_configuration(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation)
void(* new_main_connection)(AudiomanagerCommandinterface *object, GVariant *arg_mainConnection)
gboolean audiomanager_routinginterface_call_ack_set_sink_volume_finish(AudiomanagerRoutinginterface *proxy, GAsyncResult *res, GError **error)
gboolean audiomanager_routinginterface_call_deregister_sink_finish(AudiomanagerRoutinginterface *proxy, gint *out_error, GAsyncResult *res, GError **error)
void object_manager_client_new(GDBusConnection *connection, GDBusObjectManagerClientFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
AudiomanagerRoutingSoundmanager * object_get_audiomanager_routing_soundmanager(Object *object)
AudiomanagerRoutinginterfaceIface AudiomanagerRoutinginterfaceInterface
#define AUDIOMANAGER_ROUTING_SOUNDMANAGER(o)
#define TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER_SKELETON
void audiomanager_routinginterface_complete_register_domain(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation, guint16 domainid, guint16 error)
gboolean audiomanager_routinginterface_call_hook_interrupt_status_change_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_sourceID, guint16 arg_interruptState, GCancellable *cancellable, GError **error)
void audiomanager_routinginterface_complete_register_sink(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation, guint16 sinkID, guint16 error)
void audiomanager_commandinterface_complete_connect(AudiomanagerCommandinterface *object, GDBusMethodInvocation *invocation, gint16 result, guint16 mainConnectionID)
gboolean audiomanager_routinginterface_call_ack_set_source_state_finish(AudiomanagerRoutinginterface *proxy, GAsyncResult *res, GError **error)
void audiomanager_commandinterface_call_disconnect(AudiomanagerCommandinterface *proxy, guint16 arg_mainConnectionID, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
G_DEFINE_INTERFACE(AudiomanagerCommandinterface, audiomanager_commandinterface, G_TYPE_OBJECT)
void audiomanager_routinginterface_call_confirm_routing_rundown(AudiomanagerRoutinginterface *proxy, guint16 arg_domainID, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
#define TYPE_AUDIOMANAGER_ROUTINGINTERFACE_SKELETON
void audiomanager_routing_soundmanager_complete_async_disconnect(AudiomanagerRoutingSoundmanager *object, GDBusMethodInvocation *invocation)
gboolean audiomanager_routinginterface_call_ack_disconnect_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, guint16 arg_connectionID, guint16 arg_error, GCancellable *cancellable, GError **error)
gboolean audiomanager_routinginterface_call_ack_connect_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, guint16 arg_connectionID, guint16 arg_error, GCancellable *cancellable, GError **error)
gboolean audiomanager_commandinterface_call_connect_finish(AudiomanagerCommandinterface *proxy, gint16 *out_result, guint16 *out_mainConnectionID, GAsyncResult *res, GError **error)
gboolean audiomanager_routinginterface_call_hook_interrupt_status_change_finish(AudiomanagerRoutinginterface *proxy, GAsyncResult *res, GError **error)
gboolean audiomanager_commandinterface_call_set_volume_sync(AudiomanagerCommandinterface *proxy, guint16 arg_sinkID, gint16 arg_volume, gint16 *out_result, GCancellable *cancellable, GError **error)
gboolean audiomanager_routinginterface_call_register_source_sync(AudiomanagerRoutinginterface *proxy, GVariant *arg_sourceData, guint16 *out_sourceID, guint16 *out_error, GCancellable *cancellable, GError **error)
#define TYPE_OBJECT_PROXY
gboolean audiomanager_commandinterface_call_set_sink_mute_state_sync(AudiomanagerCommandinterface *proxy, guint16 arg_sinkID, gint16 arg_muteState, gint16 *out_result, GCancellable *cancellable, GError **error)
void audiomanager_commandinterface_complete_volume_step(AudiomanagerCommandinterface *object, GDBusMethodInvocation *invocation, gint16 result)
void audiomanager_routinginterface_call_confirm_routing_ready(AudiomanagerRoutinginterface *proxy, guint16 arg_domainID, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean audiomanager_routinginterface_call_ack_set_sink_volume_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, gint16 arg_volume, guint16 arg_error, GCancellable *cancellable, GError **error)
GDBusObjectManager * object_manager_client_new_for_bus_sync(GBusType bus_type, GDBusObjectManagerClientFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
void audiomanager_commandinterface_complete_disconnect(AudiomanagerCommandinterface *object, GDBusMethodInvocation *invocation, gint16 result)
ObjectSkeleton * object_skeleton_new(const gchar *object_path)
gboolean audiomanager_routing_soundmanager_call_async_disconnect_sync(AudiomanagerRoutingSoundmanager *proxy, guint16 arg_handle, guint16 arg_connectionID, GCancellable *cancellable, GError **error)
AudiomanagerCommandinterface * audiomanager_commandinterface_proxy_new_for_bus_finish(GAsyncResult *res, GError **error)
void(* volume_changed)(AudiomanagerCommandinterface *object, guint16 arg_sinkID, gint16 arg_volume)
void audiomanager_commandinterface_emit_volume_changed(AudiomanagerCommandinterface *object, guint16 arg_sinkID, gint16 arg_volume)
guint audiomanager_routing_soundmanager_override_properties(GObjectClass *klass, guint property_id_begin)
AudiomanagerRoutinginterfaceSkeletonPrivate * priv
guint audiomanager_commandinterface_override_properties(GObjectClass *klass, guint property_id_begin)
AudiomanagerRoutingSoundmanagerIface AudiomanagerRoutingSoundmanagerInterface
#define AUDIOMANAGER_ROUTING_SOUNDMANAGER_PROXY(o)
void audiomanager_routing_soundmanager_call_async_disconnect(AudiomanagerRoutingSoundmanager *proxy, guint16 arg_handle, guint16 arg_connectionID, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean audiomanager_commandinterface_call_get_list_main_connections_sync(AudiomanagerCommandinterface *proxy, gint16 *out_result, GVariant **out_listConnections, GCancellable *cancellable, GError **error)
gboolean audiomanager_routing_soundmanager_call_async_abort_finish(AudiomanagerRoutingSoundmanager *proxy, gint16 *out_error, GAsyncResult *res, GError **error)
gboolean audiomanager_commandinterface_call_get_list_main_sinks_sync(AudiomanagerCommandinterface *proxy, gint16 *out_result, GVariant **out_listMainSinks, GCancellable *cancellable, GError **error)
void audiomanager_routinginterface_complete_ack_connect(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation)
void audiomanager_routing_soundmanager_complete_async_abort(AudiomanagerRoutingSoundmanager *object, GDBusMethodInvocation *invocation, gint16 error)
#define TYPE_OBJECT_SKELETON
AudiomanagerCommandinterface * audiomanager_commandinterface_proxy_new_finish(GAsyncResult *res, GError **error)
void audiomanager_routing_soundmanager_call_async_abort(AudiomanagerRoutingSoundmanager *proxy, guint16 arg_handle, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean audiomanager_routing_soundmanager_call_async_connect_sync(AudiomanagerRoutingSoundmanager *proxy, guint16 arg_handle, guint16 arg_connectionID, guint16 arg_sourceID, guint16 arg_sinkID, gint arg_connectionFormat, GCancellable *cancellable, GError **error)
AudiomanagerRoutinginterface * object_get_audiomanager_routinginterface(Object *object)
AudiomanagerCommandinterface * object_get_audiomanager_commandinterface(Object *object)
AudiomanagerRoutinginterface * object_peek_audiomanager_routinginterface(Object *object)
void audiomanager_routing_soundmanager_proxy_new(GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void audiomanager_routinginterface_complete_ack_set_source_state(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation)
GDBusObjectManager * object_manager_client_new_for_bus_finish(GAsyncResult *res, GError **error)
#define OBJECT_SKELETON(o)
void audiomanager_commandinterface_emit_removed_main_connection(AudiomanagerCommandinterface *object, guint16 arg_mainConnectionId)
#define TYPE_AUDIOMANAGER_COMMANDINTERFACE
void audiomanager_routing_soundmanager_call_async_set_source_state(AudiomanagerRoutingSoundmanager *proxy, guint16 arg_handle, guint16 arg_sourceID, gint arg_sourceState, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
AudiomanagerRoutinginterface * audiomanager_routinginterface_proxy_new_for_bus_sync(GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
AudiomanagerRoutinginterface * audiomanager_routinginterface_proxy_new_for_bus_finish(GAsyncResult *res, GError **error)
void audiomanager_commandinterface_proxy_new_for_bus(GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void(* set_routing_rundown)(AudiomanagerRoutinginterface *object)
void audiomanager_routinginterface_complete_confirm_routing_rundown(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation)
const _ExtendedGDBusPropertyInfo * info
void(* set_routing_ready)(AudiomanagerRoutinginterface *object)
AudiomanagerRoutinginterfaceProxyPrivate * priv
gboolean audiomanager_routing_soundmanager_call_async_set_source_state_finish(AudiomanagerRoutingSoundmanager *proxy, GAsyncResult *res, GError **error)
AudiomanagerRoutingSoundmanager * audiomanager_routing_soundmanager_skeleton_new(void)
gboolean audiomanager_routinginterface_call_ack_sink_notification_configuration_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, guint16 arg_error, GCancellable *cancellable, GError **error)
#define AUDIOMANAGER_ROUTINGINTERFACE(o)
#define AUDIOMANAGER_ROUTING_SOUNDMANAGER_SKELETON(o)
void audiomanager_commandinterface_emit_new_main_connection(AudiomanagerCommandinterface *object, GVariant *arg_mainConnection)
gboolean audiomanager_commandinterface_call_volume_step_finish(AudiomanagerCommandinterface *proxy, gint16 *out_result, GAsyncResult *res, GError **error)
void audiomanager_commandinterface_call_get_list_main_sinks(AudiomanagerCommandinterface *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void audiomanager_commandinterface_emit_main_connection_state_changed(AudiomanagerCommandinterface *object, guint16 arg_connectionID, gint16 arg_connectionState)
AudiomanagerRoutingSoundmanagerProxyPrivate * priv
void audiomanager_commandinterface_call_set_sink_mute_state(AudiomanagerCommandinterface *proxy, guint16 arg_sinkID, gint16 arg_muteState, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
gboolean audiomanager_commandinterface_call_connect_sync(AudiomanagerCommandinterface *proxy, guint16 arg_sourceID, guint16 arg_sinkID, gint16 *out_result, guint16 *out_mainConnectionID, GCancellable *cancellable, GError **error)
AudiomanagerCommandinterfaceIface AudiomanagerCommandinterfaceInterface
gboolean audiomanager_commandinterface_call_volume_step_sync(AudiomanagerCommandinterface *proxy, guint16 arg_sinkID, gint16 arg_volumeStep, gint16 *out_result, GCancellable *cancellable, GError **error)
void audiomanager_routinginterface_complete_ack_disconnect(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation)
gboolean audiomanager_routinginterface_call_register_sink_sync(AudiomanagerRoutinginterface *proxy, GVariant *arg_sinkData, guint16 *out_sinkID, guint16 *out_error, GCancellable *cancellable, GError **error)
gboolean audiomanager_routinginterface_call_ack_disconnect_finish(AudiomanagerRoutinginterface *proxy, GAsyncResult *res, GError **error)
AudiomanagerRoutingSoundmanager * audiomanager_routing_soundmanager_proxy_new_for_bus_sync(GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
void audiomanager_routinginterface_call_ack_set_volumes(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, GVariant *arg_listvolumes, guint16 arg_error, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
#define TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER
void audiomanager_routinginterface_complete_ack_set_volumes(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation)
AudiomanagerRoutingSoundmanager * object_peek_audiomanager_routing_soundmanager(Object *object)
gboolean audiomanager_routinginterface_call_register_domain_finish(AudiomanagerRoutinginterface *proxy, guint16 *out_domainid, guint16 *out_error, GAsyncResult *res, GError **error)
void(* sink_mute_state_changed)(AudiomanagerCommandinterface *object, guint16 arg_sinkID, gint16 arg_muteState)
#define AUDIOMANAGER_COMMANDINTERFACE_SKELETON(o)
GDBusObjectManager * object_manager_client_new_finish(GAsyncResult *res, GError **error)
void audiomanager_routinginterface_proxy_new_for_bus(GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void audiomanager_routinginterface_complete_deregister_source(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation, guint16 error)
ObjectIface ObjectInterface
struct _Object Object
void audiomanager_routinginterface_call_register_domain(AudiomanagerRoutinginterface *proxy, GVariant *arg_domaindata, const gchar *arg_returnBusname, const gchar *arg_returnPath, const gchar *arg_returnInterface, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void audiomanager_routinginterface_call_ack_set_sink_volume(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, gint16 arg_volume, guint16 arg_error, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
AudiomanagerRoutingSoundmanagerSkeletonPrivate * priv
void audiomanager_routinginterface_call_ack_source_notification_configuration(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, guint16 arg_error, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
#define AUDIOMANAGER_ROUTINGINTERFACE_PROXY(o)
void audiomanager_routinginterface_call_ack_connect(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, guint16 arg_connectionID, guint16 arg_error, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
AudiomanagerRoutinginterface * audiomanager_routinginterface_proxy_new_sync(GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
gboolean audiomanager_routing_soundmanager_call_async_set_source_state_sync(AudiomanagerRoutingSoundmanager *proxy, guint16 arg_handle, guint16 arg_sourceID, gint arg_sourceState, GCancellable *cancellable, GError **error)
AudiomanagerCommandinterfaceSkeletonPrivate * priv
gboolean audiomanager_routinginterface_call_confirm_routing_ready_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_domainID, GCancellable *cancellable, GError **error)
gboolean audiomanager_routing_soundmanager_call_async_set_sink_volume_finish(AudiomanagerRoutingSoundmanager *proxy, GAsyncResult *res, GError **error)
#define TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER_PROXY
void audiomanager_routing_soundmanager_complete_async_set_sink_volume(AudiomanagerRoutingSoundmanager *object, GDBusMethodInvocation *invocation)
AudiomanagerCommandinterfaceProxyPrivate * priv
void audiomanager_commandinterface_call_get_list_main_connections(AudiomanagerCommandinterface *proxy, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void 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)
gboolean audiomanager_routing_soundmanager_call_async_connect_finish(AudiomanagerRoutingSoundmanager *proxy, GAsyncResult *res, GError **error)
gboolean audiomanager_routinginterface_call_ack_set_source_state_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, guint16 arg_error, GCancellable *cancellable, GError **error)
void audiomanager_routinginterface_call_register_sink(AudiomanagerRoutinginterface *proxy, GVariant *arg_sinkData, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void audiomanager_routinginterface_call_ack_disconnect(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, guint16 arg_connectionID, guint16 arg_error, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDBusInterfaceInfo * audiomanager_routinginterface_interface_info(void)
AudiomanagerCommandinterface * audiomanager_commandinterface_proxy_new_sync(GDBusConnection *connection, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
AudiomanagerRoutinginterface * audiomanager_routinginterface_skeleton_new(void)
#define OBJECT_PROXY(o)
void audiomanager_routinginterface_complete_ack_sink_notification_configuration(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation)
AudiomanagerCommandinterface * object_peek_audiomanager_commandinterface(Object *object)
gboolean audiomanager_routinginterface_call_ack_sink_notification_configuration_finish(AudiomanagerRoutinginterface *proxy, GAsyncResult *res, GError **error)
#define IS_AUDIOMANAGER_COMMANDINTERFACE(o)
void audiomanager_routing_soundmanager_complete_async_connect(AudiomanagerRoutingSoundmanager *object, GDBusMethodInvocation *invocation)
gboolean audiomanager_commandinterface_call_set_volume_finish(AudiomanagerCommandinterface *proxy, gint16 *out_result, GAsyncResult *res, GError **error)
void object_skeleton_set_audiomanager_routinginterface(ObjectSkeleton *object, AudiomanagerRoutinginterface *interface_)
AudiomanagerCommandinterface * audiomanager_commandinterface_proxy_new_for_bus_sync(GBusType bus_type, GDBusProxyFlags flags, const gchar *name, const gchar *object_path, GCancellable *cancellable, GError **error)
GDBusInterfaceInfo * audiomanager_commandinterface_interface_info(void)
gboolean audiomanager_commandinterface_call_disconnect_sync(AudiomanagerCommandinterface *proxy, guint16 arg_mainConnectionID, gint16 *out_result, GCancellable *cancellable, GError **error)
gboolean audiomanager_routinginterface_call_register_domain_sync(AudiomanagerRoutinginterface *proxy, GVariant *arg_domaindata, const gchar *arg_returnBusname, const gchar *arg_returnPath, const gchar *arg_returnInterface, guint16 *out_domainid, guint16 *out_error, GCancellable *cancellable, GError **error)
void audiomanager_routinginterface_complete_hook_interrupt_status_change(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation)
void audiomanager_commandinterface_complete_set_sink_mute_state(AudiomanagerCommandinterface *object, GDBusMethodInvocation *invocation, gint16 result)
gboolean audiomanager_routinginterface_call_ack_source_notification_configuration_finish(AudiomanagerRoutinginterface *proxy, GAsyncResult *res, GError **error)
gboolean audiomanager_routinginterface_call_ack_set_volumes_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, GVariant *arg_listvolumes, guint16 arg_error, GCancellable *cancellable, GError **error)
void audiomanager_routinginterface_complete_hook_source_availablity_status_change(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation)
gboolean audiomanager_routinginterface_call_confirm_routing_rundown_sync(AudiomanagerRoutinginterface *proxy, guint16 arg_domainID, GCancellable *cancellable, GError **error)
void audiomanager_routinginterface_complete_ack_set_sink_volume(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation)
void audiomanager_commandinterface_complete_get_list_main_sinks(AudiomanagerCommandinterface *object, GDBusMethodInvocation *invocation, gint16 result, GVariant *listMainSinks)
void(* main_connection_state_changed)(AudiomanagerCommandinterface *object, guint16 arg_connectionID, gint16 arg_connectionState)
void audiomanager_routinginterface_call_ack_sink_notification_configuration(AudiomanagerRoutinginterface *proxy, guint16 arg_handle, guint16 arg_error, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
AudiomanagerRoutinginterface * audiomanager_routinginterface_proxy_new_finish(GAsyncResult *res, GError **error)
void audiomanager_routinginterface_complete_deregister_sink(AudiomanagerRoutinginterface *object, GDBusMethodInvocation *invocation, gint error)