summaryrefslogtreecommitdiffstats
path: root/src/dbus/audio_manager_interface.c
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-10-02 16:22:02 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-10-11 13:33:02 +0900
commitce253994af37137d4c29221e7914f437c3dcb510 (patch)
tree3beed005e974e45d008089ffe67c9793c8bb1ee4 /src/dbus/audio_manager_interface.c
parente483fae4992307f34b6a9926bfba8b2e0568ebe3 (diff)
Add agl-service-soundmanager-2017
Add a new binding agl-service-soundmanager-2017. A image about this see JIRA SPEC-916 Packaging via cmake [PatchSet3] Pass to afb-binding version 2 Fix typo Fix libsoundmanager bug [PatchSet4] Modified commit message [PatchSet5] Re-add root CMakeLists.txt Prevent memory leak of json object Bug-AGL: SPEC-926 Change-Id: I24c0280210777778c379ac7027f3d71fa28d6d85 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/dbus/audio_manager_interface.c')
-rw-r--r--src/dbus/audio_manager_interface.c9554
1 files changed, 9554 insertions, 0 deletions
diff --git a/src/dbus/audio_manager_interface.c b/src/dbus/audio_manager_interface.c
new file mode 100644
index 0000000..c276d70
--- /dev/null
+++ b/src/dbus/audio_manager_interface.c
@@ -0,0 +1,9554 @@
+/*
+ * Generated by gdbus-codegen 2.40.2. DO NOT EDIT.
+ *
+ * The license of this code is the same as for the source it was derived from.
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "audio_manager_interface.h"
+
+#include <string.h>
+#ifdef G_OS_UNIX
+# include <gio/gunixfdlist.h>
+#endif
+
+typedef struct
+{
+ GDBusArgInfo parent_struct;
+ gboolean use_gvariant;
+} _ExtendedGDBusArgInfo;
+
+typedef struct
+{
+ GDBusMethodInfo parent_struct;
+ const gchar *signal_name;
+ gboolean pass_fdlist;
+} _ExtendedGDBusMethodInfo;
+
+typedef struct
+{
+ GDBusSignalInfo parent_struct;
+ const gchar *signal_name;
+} _ExtendedGDBusSignalInfo;
+
+typedef struct
+{
+ GDBusPropertyInfo parent_struct;
+ const gchar *hyphen_name;
+ gboolean use_gvariant;
+} _ExtendedGDBusPropertyInfo;
+
+typedef struct
+{
+ GDBusInterfaceInfo parent_struct;
+ const gchar *hyphen_name;
+} _ExtendedGDBusInterfaceInfo;
+
+typedef struct
+{
+ const _ExtendedGDBusPropertyInfo *info;
+ guint prop_id;
+ GValue orig_value; /* the value before the change */
+} ChangedProperty;
+
+static void
+_changed_property_free (ChangedProperty *data)
+{
+ g_value_unset (&data->orig_value);
+ g_free (data);
+}
+
+static gboolean
+_g_strv_equal0 (gchar **a, gchar **b)
+{
+ gboolean ret = FALSE;
+ guint n;
+ if (a == NULL && b == NULL)
+ {
+ ret = TRUE;
+ goto out;
+ }
+ if (a == NULL || b == NULL)
+ goto out;
+ if (g_strv_length (a) != g_strv_length (b))
+ goto out;
+ for (n = 0; a[n] != NULL; n++)
+ if (g_strcmp0 (a[n], b[n]) != 0)
+ goto out;
+ ret = TRUE;
+out:
+ return ret;
+}
+
+static gboolean
+_g_variant_equal0 (GVariant *a, GVariant *b)
+{
+ gboolean ret = FALSE;
+ if (a == NULL && b == NULL)
+ {
+ ret = TRUE;
+ goto out;
+ }
+ if (a == NULL || b == NULL)
+ goto out;
+ ret = g_variant_equal (a, b);
+out:
+ return ret;
+}
+
+G_GNUC_UNUSED static gboolean
+_g_value_equal (const GValue *a, const GValue *b)
+{
+ gboolean ret = FALSE;
+ g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
+ switch (G_VALUE_TYPE (a))
+ {
+ case G_TYPE_BOOLEAN:
+ ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
+ break;
+ case G_TYPE_UCHAR:
+ ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
+ break;
+ case G_TYPE_INT:
+ ret = (g_value_get_int (a) == g_value_get_int (b));
+ break;
+ case G_TYPE_UINT:
+ ret = (g_value_get_uint (a) == g_value_get_uint (b));
+ break;
+ case G_TYPE_INT64:
+ ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
+ break;
+ case G_TYPE_UINT64:
+ ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
+ break;
+ case G_TYPE_DOUBLE:
+ {
+ /* Avoid -Wfloat-equal warnings by doing a direct bit compare */
+ gdouble da = g_value_get_double (a);
+ gdouble db = g_value_get_double (b);
+ ret = memcmp (&da, &db, sizeof (gdouble)) == 0;
+ }
+ break;
+ case G_TYPE_STRING:
+ ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
+ break;
+ case G_TYPE_VARIANT:
+ ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
+ break;
+ default:
+ if (G_VALUE_TYPE (a) == G_TYPE_STRV)
+ ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
+ else
+ g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
+ break;
+ }
+ return ret;
+}
+
+/* ------------------------------------------------------------------------
+ * Code for interface org.genivi.audiomanager.commandinterface
+ * ------------------------------------------------------------------------
+ */
+
+/**
+ * SECTION:AudiomanagerCommandinterface
+ * @title: AudiomanagerCommandinterface
+ * @short_description: Generated C code for the org.genivi.audiomanager.commandinterface D-Bus interface
+ *
+ * This section contains code for working with the <link linkend="gdbus-interface-org-genivi-audiomanager-commandinterface.top_of_page">org.genivi.audiomanager.commandinterface</link> D-Bus interface in C.
+ */
+
+/* ---- Introspection data for org.genivi.audiomanager.commandinterface ---- */
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_connect_IN_ARG_sourceID =
+{
+ {
+ -1,
+ (gchar *) "sourceID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_connect_IN_ARG_sinkID =
+{
+ {
+ -1,
+ (gchar *) "sinkID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_connect_IN_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_connect_IN_ARG_sourceID,
+ &_audiomanager_commandinterface_method_info_connect_IN_ARG_sinkID,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_connect_OUT_ARG_result =
+{
+ {
+ -1,
+ (gchar *) "result",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_connect_OUT_ARG_mainConnectionID =
+{
+ {
+ -1,
+ (gchar *) "mainConnectionID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_connect_OUT_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_connect_OUT_ARG_result,
+ &_audiomanager_commandinterface_method_info_connect_OUT_ARG_mainConnectionID,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_connect =
+{
+ {
+ -1,
+ (gchar *) "Connect",
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_connect_IN_ARG_pointers,
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_connect_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-connect",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_disconnect_IN_ARG_mainConnectionID =
+{
+ {
+ -1,
+ (gchar *) "mainConnectionID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_disconnect_IN_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_disconnect_IN_ARG_mainConnectionID,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_disconnect_OUT_ARG_result =
+{
+ {
+ -1,
+ (gchar *) "result",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_disconnect_OUT_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_disconnect_OUT_ARG_result,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_disconnect =
+{
+ {
+ -1,
+ (gchar *) "Disconnect",
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_disconnect_IN_ARG_pointers,
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_disconnect_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-disconnect",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_volume_IN_ARG_sinkID =
+{
+ {
+ -1,
+ (gchar *) "sinkID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_volume_IN_ARG_volume =
+{
+ {
+ -1,
+ (gchar *) "volume",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_set_volume_IN_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_set_volume_IN_ARG_sinkID,
+ &_audiomanager_commandinterface_method_info_set_volume_IN_ARG_volume,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_volume_OUT_ARG_result =
+{
+ {
+ -1,
+ (gchar *) "result",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_set_volume_OUT_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_set_volume_OUT_ARG_result,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_set_volume =
+{
+ {
+ -1,
+ (gchar *) "SetVolume",
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_set_volume_IN_ARG_pointers,
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_set_volume_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-set-volume",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_volume_step_IN_ARG_sinkID =
+{
+ {
+ -1,
+ (gchar *) "sinkID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_volume_step_IN_ARG_volumeStep =
+{
+ {
+ -1,
+ (gchar *) "volumeStep",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_volume_step_IN_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_volume_step_IN_ARG_sinkID,
+ &_audiomanager_commandinterface_method_info_volume_step_IN_ARG_volumeStep,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_volume_step_OUT_ARG_result =
+{
+ {
+ -1,
+ (gchar *) "result",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_volume_step_OUT_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_volume_step_OUT_ARG_result,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_volume_step =
+{
+ {
+ -1,
+ (gchar *) "VolumeStep",
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_volume_step_IN_ARG_pointers,
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_volume_step_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-volume-step",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_sinkID =
+{
+ {
+ -1,
+ (gchar *) "sinkID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_muteState =
+{
+ {
+ -1,
+ (gchar *) "muteState",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_sinkID,
+ &_audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_muteState,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_set_sink_mute_state_OUT_ARG_result =
+{
+ {
+ -1,
+ (gchar *) "result",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_set_sink_mute_state_OUT_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_set_sink_mute_state_OUT_ARG_result,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_set_sink_mute_state =
+{
+ {
+ -1,
+ (gchar *) "SetSinkMuteState",
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_set_sink_mute_state_IN_ARG_pointers,
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_set_sink_mute_state_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-set-sink-mute-state",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_result =
+{
+ {
+ -1,
+ (gchar *) "result",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_listConnections =
+{
+ {
+ -1,
+ (gchar *) "listConnections",
+ (gchar *) "a(qqqnn)",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_result,
+ &_audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_listConnections,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_get_list_main_connections =
+{
+ {
+ -1,
+ (gchar *) "GetListMainConnections",
+ NULL,
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_get_list_main_connections_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-get-list-main-connections",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_result =
+{
+ {
+ -1,
+ (gchar *) "result",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_listMainSinks =
+{
+ {
+ -1,
+ (gchar *) "listMainSinks",
+ (gchar *) "a(qs(nn)nnq)",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_result,
+ &_audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_listMainSinks,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_commandinterface_method_info_get_list_main_sinks =
+{
+ {
+ -1,
+ (gchar *) "GetListMainSinks",
+ NULL,
+ (GDBusArgInfo **) &_audiomanager_commandinterface_method_info_get_list_main_sinks_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-get-list-main-sinks",
+ FALSE
+};
+
+static const _ExtendedGDBusMethodInfo * const _audiomanager_commandinterface_method_info_pointers[] =
+{
+ &_audiomanager_commandinterface_method_info_connect,
+ &_audiomanager_commandinterface_method_info_disconnect,
+ &_audiomanager_commandinterface_method_info_set_volume,
+ &_audiomanager_commandinterface_method_info_volume_step,
+ &_audiomanager_commandinterface_method_info_set_sink_mute_state,
+ &_audiomanager_commandinterface_method_info_get_list_main_connections,
+ &_audiomanager_commandinterface_method_info_get_list_main_sinks,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_new_main_connection_ARG_mainConnection =
+{
+ {
+ -1,
+ (gchar *) "mainConnection",
+ (gchar *) "(qqqnn)",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_new_main_connection_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_signal_info_new_main_connection_ARG_mainConnection,
+ NULL
+};
+
+static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_new_main_connection =
+{
+ {
+ -1,
+ (gchar *) "NewMainConnection",
+ (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_new_main_connection_ARG_pointers,
+ NULL
+ },
+ "new-main-connection"
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_removed_main_connection_ARG_mainConnectionId =
+{
+ {
+ -1,
+ (gchar *) "mainConnectionId",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_removed_main_connection_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_signal_info_removed_main_connection_ARG_mainConnectionId,
+ NULL
+};
+
+static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_removed_main_connection =
+{
+ {
+ -1,
+ (gchar *) "RemovedMainConnection",
+ (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_removed_main_connection_ARG_pointers,
+ NULL
+ },
+ "removed-main-connection"
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_connectionID =
+{
+ {
+ -1,
+ (gchar *) "connectionID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_connectionState =
+{
+ {
+ -1,
+ (gchar *) "connectionState",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_connectionID,
+ &_audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_connectionState,
+ NULL
+};
+
+static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_main_connection_state_changed =
+{
+ {
+ -1,
+ (gchar *) "MainConnectionStateChanged",
+ (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_main_connection_state_changed_ARG_pointers,
+ NULL
+ },
+ "main-connection-state-changed"
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_volume_changed_ARG_sinkID =
+{
+ {
+ -1,
+ (gchar *) "sinkID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_volume_changed_ARG_volume =
+{
+ {
+ -1,
+ (gchar *) "volume",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_volume_changed_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_signal_info_volume_changed_ARG_sinkID,
+ &_audiomanager_commandinterface_signal_info_volume_changed_ARG_volume,
+ NULL
+};
+
+static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_volume_changed =
+{
+ {
+ -1,
+ (gchar *) "VolumeChanged",
+ (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_volume_changed_ARG_pointers,
+ NULL
+ },
+ "volume-changed"
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_sinkID =
+{
+ {
+ -1,
+ (gchar *) "sinkID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_muteState =
+{
+ {
+ -1,
+ (gchar *) "muteState",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_sinkID,
+ &_audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_muteState,
+ NULL
+};
+
+static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_sink_mute_state_changed =
+{
+ {
+ -1,
+ (gchar *) "SinkMuteStateChanged",
+ (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_sink_mute_state_changed_ARG_pointers,
+ NULL
+ },
+ "sink-mute-state-changed"
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_commandinterface_signal_info_system_property_changed_ARG_SystemProperty =
+{
+ {
+ -1,
+ (gchar *) "SystemProperty",
+ (gchar *) "(nn)",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_commandinterface_signal_info_system_property_changed_ARG_pointers[] =
+{
+ &_audiomanager_commandinterface_signal_info_system_property_changed_ARG_SystemProperty,
+ NULL
+};
+
+static const _ExtendedGDBusSignalInfo _audiomanager_commandinterface_signal_info_system_property_changed =
+{
+ {
+ -1,
+ (gchar *) "SystemPropertyChanged",
+ (GDBusArgInfo **) &_audiomanager_commandinterface_signal_info_system_property_changed_ARG_pointers,
+ NULL
+ },
+ "system-property-changed"
+};
+
+static const _ExtendedGDBusSignalInfo * const _audiomanager_commandinterface_signal_info_pointers[] =
+{
+ &_audiomanager_commandinterface_signal_info_new_main_connection,
+ &_audiomanager_commandinterface_signal_info_removed_main_connection,
+ &_audiomanager_commandinterface_signal_info_main_connection_state_changed,
+ &_audiomanager_commandinterface_signal_info_volume_changed,
+ &_audiomanager_commandinterface_signal_info_sink_mute_state_changed,
+ &_audiomanager_commandinterface_signal_info_system_property_changed,
+ NULL
+};
+
+static const _ExtendedGDBusInterfaceInfo _audiomanager_commandinterface_interface_info =
+{
+ {
+ -1,
+ (gchar *) "org.genivi.audiomanager.commandinterface",
+ (GDBusMethodInfo **) &_audiomanager_commandinterface_method_info_pointers,
+ (GDBusSignalInfo **) &_audiomanager_commandinterface_signal_info_pointers,
+ NULL,
+ NULL
+ },
+ "audiomanager-commandinterface",
+};
+
+
+/**
+ * audiomanager_commandinterface_interface_info:
+ *
+ * Gets a machine-readable description of the <link linkend="gdbus-interface-org-genivi-audiomanager-commandinterface.top_of_page">org.genivi.audiomanager.commandinterface</link> D-Bus interface.
+ *
+ * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
+ */
+GDBusInterfaceInfo *
+audiomanager_commandinterface_interface_info (void)
+{
+ return (GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct;
+}
+
+/**
+ * audiomanager_commandinterface_override_properties:
+ * @klass: The class structure for a #GObject<!-- -->-derived class.
+ * @property_id_begin: The property id to assign to the first overridden property.
+ *
+ * Overrides all #GObject properties in the #AudiomanagerCommandinterface interface for a concrete class.
+ * The properties are overridden in the order they are defined.
+ *
+ * Returns: The last property id.
+ */
+guint
+audiomanager_commandinterface_override_properties (GObjectClass *klass, guint property_id_begin)
+{
+ return property_id_begin - 1;
+}
+
+
+
+/**
+ * AudiomanagerCommandinterface:
+ *
+ * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-commandinterface.top_of_page">org.genivi.audiomanager.commandinterface</link>.
+ */
+
+/**
+ * AudiomanagerCommandinterfaceIface:
+ * @parent_iface: The parent interface.
+ * @handle_connect: Handler for the #AudiomanagerCommandinterface::handle-connect signal.
+ * @handle_disconnect: Handler for the #AudiomanagerCommandinterface::handle-disconnect signal.
+ * @handle_get_list_main_connections: Handler for the #AudiomanagerCommandinterface::handle-get-list-main-connections signal.
+ * @handle_get_list_main_sinks: Handler for the #AudiomanagerCommandinterface::handle-get-list-main-sinks signal.
+ * @handle_set_sink_mute_state: Handler for the #AudiomanagerCommandinterface::handle-set-sink-mute-state signal.
+ * @handle_set_volume: Handler for the #AudiomanagerCommandinterface::handle-set-volume signal.
+ * @handle_volume_step: Handler for the #AudiomanagerCommandinterface::handle-volume-step signal.
+ * @main_connection_state_changed: Handler for the #AudiomanagerCommandinterface::main-connection-state-changed signal.
+ * @new_main_connection: Handler for the #AudiomanagerCommandinterface::new-main-connection signal.
+ * @removed_main_connection: Handler for the #AudiomanagerCommandinterface::removed-main-connection signal.
+ * @sink_mute_state_changed: Handler for the #AudiomanagerCommandinterface::sink-mute-state-changed signal.
+ * @system_property_changed: Handler for the #AudiomanagerCommandinterface::system-property-changed signal.
+ * @volume_changed: Handler for the #AudiomanagerCommandinterface::volume-changed signal.
+ *
+ * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-commandinterface.top_of_page">org.genivi.audiomanager.commandinterface</link>.
+ */
+
+typedef AudiomanagerCommandinterfaceIface AudiomanagerCommandinterfaceInterface;
+G_DEFINE_INTERFACE (AudiomanagerCommandinterface, audiomanager_commandinterface, G_TYPE_OBJECT);
+
+static void
+audiomanager_commandinterface_default_init (AudiomanagerCommandinterfaceIface *iface)
+{
+ /* GObject signals for incoming D-Bus method calls: */
+ /**
+ * AudiomanagerCommandinterface::handle-connect:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_sourceID: Argument passed by remote caller.
+ * @arg_sinkID: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.Connect">Connect()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_commandinterface_complete_connect() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-connect",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_connect),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 3,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerCommandinterface::handle-disconnect:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_mainConnectionID: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.Disconnect">Disconnect()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_commandinterface_complete_disconnect() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-disconnect",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_disconnect),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 2,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerCommandinterface::handle-set-volume:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_sinkID: Argument passed by remote caller.
+ * @arg_volume: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.SetVolume">SetVolume()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_commandinterface_complete_set_volume() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-set-volume",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_set_volume),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 3,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_INT);
+
+ /**
+ * AudiomanagerCommandinterface::handle-volume-step:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_sinkID: Argument passed by remote caller.
+ * @arg_volumeStep: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.VolumeStep">VolumeStep()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_commandinterface_complete_volume_step() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-volume-step",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_volume_step),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 3,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_INT);
+
+ /**
+ * AudiomanagerCommandinterface::handle-set-sink-mute-state:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_sinkID: Argument passed by remote caller.
+ * @arg_muteState: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.SetSinkMuteState">SetSinkMuteState()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_commandinterface_complete_set_sink_mute_state() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-set-sink-mute-state",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_set_sink_mute_state),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 3,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_INT);
+
+ /**
+ * AudiomanagerCommandinterface::handle-get-list-main-connections:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: A #GDBusMethodInvocation.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.GetListMainConnections">GetListMainConnections()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_commandinterface_complete_get_list_main_connections() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-get-list-main-connections",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_get_list_main_connections),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 1,
+ G_TYPE_DBUS_METHOD_INVOCATION);
+
+ /**
+ * AudiomanagerCommandinterface::handle-get-list-main-sinks:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: A #GDBusMethodInvocation.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.GetListMainSinks">GetListMainSinks()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_commandinterface_complete_get_list_main_sinks() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-get-list-main-sinks",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, handle_get_list_main_sinks),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 1,
+ G_TYPE_DBUS_METHOD_INVOCATION);
+
+ /* GObject signals for received D-Bus signals: */
+ /**
+ * AudiomanagerCommandinterface::new-main-connection:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_mainConnection: Argument.
+ *
+ * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.NewMainConnection">"NewMainConnection"</link> is received.
+ *
+ * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
+ */
+ g_signal_new ("new-main-connection",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, new_main_connection),
+ NULL,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_NONE,
+ 1, G_TYPE_VARIANT);
+
+ /**
+ * AudiomanagerCommandinterface::removed-main-connection:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_mainConnectionId: Argument.
+ *
+ * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.RemovedMainConnection">"RemovedMainConnection"</link> is received.
+ *
+ * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
+ */
+ g_signal_new ("removed-main-connection",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, removed_main_connection),
+ NULL,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_NONE,
+ 1, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerCommandinterface::main-connection-state-changed:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_connectionID: Argument.
+ * @arg_connectionState: Argument.
+ *
+ * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.MainConnectionStateChanged">"MainConnectionStateChanged"</link> is received.
+ *
+ * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
+ */
+ g_signal_new ("main-connection-state-changed",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, main_connection_state_changed),
+ NULL,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_NONE,
+ 2, G_TYPE_UINT, G_TYPE_INT);
+
+ /**
+ * AudiomanagerCommandinterface::volume-changed:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_sinkID: Argument.
+ * @arg_volume: Argument.
+ *
+ * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.VolumeChanged">"VolumeChanged"</link> is received.
+ *
+ * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
+ */
+ g_signal_new ("volume-changed",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, volume_changed),
+ NULL,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_NONE,
+ 2, G_TYPE_UINT, G_TYPE_INT);
+
+ /**
+ * AudiomanagerCommandinterface::sink-mute-state-changed:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_sinkID: Argument.
+ * @arg_muteState: Argument.
+ *
+ * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.SinkMuteStateChanged">"SinkMuteStateChanged"</link> is received.
+ *
+ * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
+ */
+ g_signal_new ("sink-mute-state-changed",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, sink_mute_state_changed),
+ NULL,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_NONE,
+ 2, G_TYPE_UINT, G_TYPE_INT);
+
+ /**
+ * AudiomanagerCommandinterface::system-property-changed:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_SystemProperty: Argument.
+ *
+ * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.SystemPropertyChanged">"SystemPropertyChanged"</link> is received.
+ *
+ * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
+ */
+ g_signal_new ("system-property-changed",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerCommandinterfaceIface, system_property_changed),
+ NULL,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_NONE,
+ 1, G_TYPE_VARIANT);
+
+}
+
+/**
+ * audiomanager_commandinterface_emit_new_main_connection:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_mainConnection: Argument to pass with the signal.
+ *
+ * Emits the <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.NewMainConnection">"NewMainConnection"</link> D-Bus signal.
+ */
+void
+audiomanager_commandinterface_emit_new_main_connection (
+ AudiomanagerCommandinterface *object,
+ GVariant *arg_mainConnection)
+{
+ g_signal_emit_by_name (object, "new-main-connection", arg_mainConnection);
+}
+
+/**
+ * audiomanager_commandinterface_emit_removed_main_connection:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_mainConnectionId: Argument to pass with the signal.
+ *
+ * Emits the <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.RemovedMainConnection">"RemovedMainConnection"</link> D-Bus signal.
+ */
+void
+audiomanager_commandinterface_emit_removed_main_connection (
+ AudiomanagerCommandinterface *object,
+ guint16 arg_mainConnectionId)
+{
+ g_signal_emit_by_name (object, "removed-main-connection", arg_mainConnectionId);
+}
+
+/**
+ * audiomanager_commandinterface_emit_main_connection_state_changed:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_connectionID: Argument to pass with the signal.
+ * @arg_connectionState: Argument to pass with the signal.
+ *
+ * Emits the <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.MainConnectionStateChanged">"MainConnectionStateChanged"</link> D-Bus signal.
+ */
+void
+audiomanager_commandinterface_emit_main_connection_state_changed (
+ AudiomanagerCommandinterface *object,
+ guint16 arg_connectionID,
+ gint16 arg_connectionState)
+{
+ g_signal_emit_by_name (object, "main-connection-state-changed", arg_connectionID, arg_connectionState);
+}
+
+/**
+ * audiomanager_commandinterface_emit_volume_changed:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_sinkID: Argument to pass with the signal.
+ * @arg_volume: Argument to pass with the signal.
+ *
+ * Emits the <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.VolumeChanged">"VolumeChanged"</link> D-Bus signal.
+ */
+void
+audiomanager_commandinterface_emit_volume_changed (
+ AudiomanagerCommandinterface *object,
+ guint16 arg_sinkID,
+ gint16 arg_volume)
+{
+ g_signal_emit_by_name (object, "volume-changed", arg_sinkID, arg_volume);
+}
+
+/**
+ * audiomanager_commandinterface_emit_sink_mute_state_changed:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_sinkID: Argument to pass with the signal.
+ * @arg_muteState: Argument to pass with the signal.
+ *
+ * Emits the <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.SinkMuteStateChanged">"SinkMuteStateChanged"</link> D-Bus signal.
+ */
+void
+audiomanager_commandinterface_emit_sink_mute_state_changed (
+ AudiomanagerCommandinterface *object,
+ guint16 arg_sinkID,
+ gint16 arg_muteState)
+{
+ g_signal_emit_by_name (object, "sink-mute-state-changed", arg_sinkID, arg_muteState);
+}
+
+/**
+ * audiomanager_commandinterface_emit_system_property_changed:
+ * @object: A #AudiomanagerCommandinterface.
+ * @arg_SystemProperty: Argument to pass with the signal.
+ *
+ * Emits the <link linkend="gdbus-signal-org-genivi-audiomanager-commandinterface.SystemPropertyChanged">"SystemPropertyChanged"</link> D-Bus signal.
+ */
+void
+audiomanager_commandinterface_emit_system_property_changed (
+ AudiomanagerCommandinterface *object,
+ GVariant *arg_SystemProperty)
+{
+ g_signal_emit_by_name (object, "system-property-changed", arg_SystemProperty);
+}
+
+/**
+ * audiomanager_commandinterface_call_connect:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.Connect">Connect()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_commandinterface_call_connect_finish() to get the result of the operation.
+ *
+ * See audiomanager_commandinterface_call_connect_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_commandinterface_call_connect (
+ AudiomanagerCommandinterface *proxy,
+ guint16 arg_sourceID,
+ guint16 arg_sinkID,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "Connect",
+ g_variant_new ("(qq)",
+ arg_sourceID,
+ arg_sinkID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_commandinterface_call_connect_finish:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @out_mainConnectionID: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_commandinterface_call_connect().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_commandinterface_call_connect().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_connect_finish (
+ AudiomanagerCommandinterface *proxy,
+ gint16 *out_result,
+ guint16 *out_mainConnectionID,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(nq)",
+ out_result,
+ out_mainConnectionID);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_connect_sync:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @out_mainConnectionID: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.Connect">Connect()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_commandinterface_call_connect() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_connect_sync (
+ AudiomanagerCommandinterface *proxy,
+ guint16 arg_sourceID,
+ guint16 arg_sinkID,
+ gint16 *out_result,
+ guint16 *out_mainConnectionID,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "Connect",
+ g_variant_new ("(qq)",
+ arg_sourceID,
+ arg_sinkID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(nq)",
+ out_result,
+ out_mainConnectionID);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_disconnect:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @arg_mainConnectionID: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.Disconnect">Disconnect()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_commandinterface_call_disconnect_finish() to get the result of the operation.
+ *
+ * See audiomanager_commandinterface_call_disconnect_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_commandinterface_call_disconnect (
+ AudiomanagerCommandinterface *proxy,
+ guint16 arg_mainConnectionID,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "Disconnect",
+ g_variant_new ("(q)",
+ arg_mainConnectionID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_commandinterface_call_disconnect_finish:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_commandinterface_call_disconnect().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_commandinterface_call_disconnect().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_disconnect_finish (
+ AudiomanagerCommandinterface *proxy,
+ gint16 *out_result,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_disconnect_sync:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @arg_mainConnectionID: Argument to pass with the method invocation.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.Disconnect">Disconnect()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_commandinterface_call_disconnect() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_disconnect_sync (
+ AudiomanagerCommandinterface *proxy,
+ guint16 arg_mainConnectionID,
+ gint16 *out_result,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "Disconnect",
+ g_variant_new ("(q)",
+ arg_mainConnectionID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_set_volume:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @arg_volume: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.SetVolume">SetVolume()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_commandinterface_call_set_volume_finish() to get the result of the operation.
+ *
+ * See audiomanager_commandinterface_call_set_volume_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_commandinterface_call_set_volume (
+ AudiomanagerCommandinterface *proxy,
+ guint16 arg_sinkID,
+ gint16 arg_volume,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "SetVolume",
+ g_variant_new ("(qn)",
+ arg_sinkID,
+ arg_volume),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_commandinterface_call_set_volume_finish:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_commandinterface_call_set_volume().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_commandinterface_call_set_volume().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_set_volume_finish (
+ AudiomanagerCommandinterface *proxy,
+ gint16 *out_result,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_set_volume_sync:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @arg_volume: Argument to pass with the method invocation.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.SetVolume">SetVolume()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_commandinterface_call_set_volume() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_set_volume_sync (
+ AudiomanagerCommandinterface *proxy,
+ guint16 arg_sinkID,
+ gint16 arg_volume,
+ gint16 *out_result,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "SetVolume",
+ g_variant_new ("(qn)",
+ arg_sinkID,
+ arg_volume),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_volume_step:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @arg_volumeStep: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.VolumeStep">VolumeStep()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_commandinterface_call_volume_step_finish() to get the result of the operation.
+ *
+ * See audiomanager_commandinterface_call_volume_step_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_commandinterface_call_volume_step (
+ AudiomanagerCommandinterface *proxy,
+ guint16 arg_sinkID,
+ gint16 arg_volumeStep,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "VolumeStep",
+ g_variant_new ("(qn)",
+ arg_sinkID,
+ arg_volumeStep),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_commandinterface_call_volume_step_finish:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_commandinterface_call_volume_step().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_commandinterface_call_volume_step().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_volume_step_finish (
+ AudiomanagerCommandinterface *proxy,
+ gint16 *out_result,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_volume_step_sync:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @arg_volumeStep: Argument to pass with the method invocation.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.VolumeStep">VolumeStep()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_commandinterface_call_volume_step() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_volume_step_sync (
+ AudiomanagerCommandinterface *proxy,
+ guint16 arg_sinkID,
+ gint16 arg_volumeStep,
+ gint16 *out_result,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "VolumeStep",
+ g_variant_new ("(qn)",
+ arg_sinkID,
+ arg_volumeStep),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_set_sink_mute_state:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @arg_muteState: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.SetSinkMuteState">SetSinkMuteState()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_commandinterface_call_set_sink_mute_state_finish() to get the result of the operation.
+ *
+ * See audiomanager_commandinterface_call_set_sink_mute_state_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_commandinterface_call_set_sink_mute_state (
+ AudiomanagerCommandinterface *proxy,
+ guint16 arg_sinkID,
+ gint16 arg_muteState,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "SetSinkMuteState",
+ g_variant_new ("(qn)",
+ arg_sinkID,
+ arg_muteState),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_commandinterface_call_set_sink_mute_state_finish:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_commandinterface_call_set_sink_mute_state().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_commandinterface_call_set_sink_mute_state().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_set_sink_mute_state_finish (
+ AudiomanagerCommandinterface *proxy,
+ gint16 *out_result,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_set_sink_mute_state_sync:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @arg_muteState: Argument to pass with the method invocation.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.SetSinkMuteState">SetSinkMuteState()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_commandinterface_call_set_sink_mute_state() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_set_sink_mute_state_sync (
+ AudiomanagerCommandinterface *proxy,
+ guint16 arg_sinkID,
+ gint16 arg_muteState,
+ gint16 *out_result,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "SetSinkMuteState",
+ g_variant_new ("(qn)",
+ arg_sinkID,
+ arg_muteState),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_get_list_main_connections:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.GetListMainConnections">GetListMainConnections()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_commandinterface_call_get_list_main_connections_finish() to get the result of the operation.
+ *
+ * See audiomanager_commandinterface_call_get_list_main_connections_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_commandinterface_call_get_list_main_connections (
+ AudiomanagerCommandinterface *proxy,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "GetListMainConnections",
+ g_variant_new ("()"),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_commandinterface_call_get_list_main_connections_finish:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @out_listConnections: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_commandinterface_call_get_list_main_connections().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_commandinterface_call_get_list_main_connections().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_get_list_main_connections_finish (
+ AudiomanagerCommandinterface *proxy,
+ gint16 *out_result,
+ GVariant **out_listConnections,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n@a(qqqnn))",
+ out_result,
+ out_listConnections);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_get_list_main_connections_sync:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @out_listConnections: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.GetListMainConnections">GetListMainConnections()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_commandinterface_call_get_list_main_connections() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_get_list_main_connections_sync (
+ AudiomanagerCommandinterface *proxy,
+ gint16 *out_result,
+ GVariant **out_listConnections,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "GetListMainConnections",
+ g_variant_new ("()"),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n@a(qqqnn))",
+ out_result,
+ out_listConnections);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_get_list_main_sinks:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.GetListMainSinks">GetListMainSinks()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_commandinterface_call_get_list_main_sinks_finish() to get the result of the operation.
+ *
+ * See audiomanager_commandinterface_call_get_list_main_sinks_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_commandinterface_call_get_list_main_sinks (
+ AudiomanagerCommandinterface *proxy,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "GetListMainSinks",
+ g_variant_new ("()"),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_commandinterface_call_get_list_main_sinks_finish:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @out_listMainSinks: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_commandinterface_call_get_list_main_sinks().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_commandinterface_call_get_list_main_sinks().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_get_list_main_sinks_finish (
+ AudiomanagerCommandinterface *proxy,
+ gint16 *out_result,
+ GVariant **out_listMainSinks,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n@a(qs(nn)nnq))",
+ out_result,
+ out_listMainSinks);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_call_get_list_main_sinks_sync:
+ * @proxy: A #AudiomanagerCommandinterfaceProxy.
+ * @out_result: (out): Return location for return parameter or %NULL to ignore.
+ * @out_listMainSinks: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.GetListMainSinks">GetListMainSinks()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_commandinterface_call_get_list_main_sinks() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_commandinterface_call_get_list_main_sinks_sync (
+ AudiomanagerCommandinterface *proxy,
+ gint16 *out_result,
+ GVariant **out_listMainSinks,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "GetListMainSinks",
+ g_variant_new ("()"),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n@a(qs(nn)nnq))",
+ out_result,
+ out_listMainSinks);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_commandinterface_complete_connect:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @result: Parameter to return.
+ * @mainConnectionID: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.Connect">Connect()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_commandinterface_complete_connect (
+ AudiomanagerCommandinterface *object,
+ GDBusMethodInvocation *invocation,
+ gint16 result,
+ guint16 mainConnectionID)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(nq)",
+ result,
+ mainConnectionID));
+}
+
+/**
+ * audiomanager_commandinterface_complete_disconnect:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @result: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.Disconnect">Disconnect()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_commandinterface_complete_disconnect (
+ AudiomanagerCommandinterface *object,
+ GDBusMethodInvocation *invocation,
+ gint16 result)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(n)",
+ result));
+}
+
+/**
+ * audiomanager_commandinterface_complete_set_volume:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @result: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.SetVolume">SetVolume()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_commandinterface_complete_set_volume (
+ AudiomanagerCommandinterface *object,
+ GDBusMethodInvocation *invocation,
+ gint16 result)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(n)",
+ result));
+}
+
+/**
+ * audiomanager_commandinterface_complete_volume_step:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @result: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.VolumeStep">VolumeStep()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_commandinterface_complete_volume_step (
+ AudiomanagerCommandinterface *object,
+ GDBusMethodInvocation *invocation,
+ gint16 result)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(n)",
+ result));
+}
+
+/**
+ * audiomanager_commandinterface_complete_set_sink_mute_state:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @result: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.SetSinkMuteState">SetSinkMuteState()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_commandinterface_complete_set_sink_mute_state (
+ AudiomanagerCommandinterface *object,
+ GDBusMethodInvocation *invocation,
+ gint16 result)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(n)",
+ result));
+}
+
+/**
+ * audiomanager_commandinterface_complete_get_list_main_connections:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @result: Parameter to return.
+ * @listConnections: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.GetListMainConnections">GetListMainConnections()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_commandinterface_complete_get_list_main_connections (
+ AudiomanagerCommandinterface *object,
+ GDBusMethodInvocation *invocation,
+ gint16 result,
+ GVariant *listConnections)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(n@a(qqqnn))",
+ result,
+ listConnections));
+}
+
+/**
+ * audiomanager_commandinterface_complete_get_list_main_sinks:
+ * @object: A #AudiomanagerCommandinterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @result: Parameter to return.
+ * @listMainSinks: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-commandinterface.GetListMainSinks">GetListMainSinks()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_commandinterface_complete_get_list_main_sinks (
+ AudiomanagerCommandinterface *object,
+ GDBusMethodInvocation *invocation,
+ gint16 result,
+ GVariant *listMainSinks)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(n@a(qs(nn)nnq))",
+ result,
+ listMainSinks));
+}
+
+/* ------------------------------------------------------------------------ */
+
+/**
+ * AudiomanagerCommandinterfaceProxy:
+ *
+ * The #AudiomanagerCommandinterfaceProxy structure contains only private data and should only be accessed using the provided API.
+ */
+
+/**
+ * AudiomanagerCommandinterfaceProxyClass:
+ * @parent_class: The parent class.
+ *
+ * Class structure for #AudiomanagerCommandinterfaceProxy.
+ */
+
+struct _AudiomanagerCommandinterfaceProxyPrivate
+{
+ GData *qdata;
+};
+
+static void audiomanager_commandinterface_proxy_iface_init (AudiomanagerCommandinterfaceIface *iface);
+
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerCommandinterfaceProxy, audiomanager_commandinterface_proxy, G_TYPE_DBUS_PROXY,
+ G_ADD_PRIVATE (AudiomanagerCommandinterfaceProxy)
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_COMMANDINTERFACE, audiomanager_commandinterface_proxy_iface_init));
+
+#else
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerCommandinterfaceProxy, audiomanager_commandinterface_proxy, G_TYPE_DBUS_PROXY,
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_COMMANDINTERFACE, audiomanager_commandinterface_proxy_iface_init));
+
+#endif
+static void
+audiomanager_commandinterface_proxy_finalize (GObject *object)
+{
+ AudiomanagerCommandinterfaceProxy *proxy = AUDIOMANAGER_COMMANDINTERFACE_PROXY (object);
+ g_datalist_clear (&proxy->priv->qdata);
+ G_OBJECT_CLASS (audiomanager_commandinterface_proxy_parent_class)->finalize (object);
+}
+
+static void
+audiomanager_commandinterface_proxy_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec G_GNUC_UNUSED)
+{
+}
+
+static void
+audiomanager_commandinterface_proxy_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec G_GNUC_UNUSED)
+{
+}
+
+static void
+audiomanager_commandinterface_proxy_g_signal (GDBusProxy *proxy,
+ const gchar *sender_name G_GNUC_UNUSED,
+ const gchar *signal_name,
+ GVariant *parameters)
+{
+ _ExtendedGDBusSignalInfo *info;
+ GVariantIter iter;
+ GVariant *child;
+ GValue *paramv;
+ guint num_params;
+ guint n;
+ guint signal_id;
+ info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct, signal_name);
+ if (info == NULL)
+ return;
+ num_params = g_variant_n_children (parameters);
+ paramv = g_new0 (GValue, num_params + 1);
+ g_value_init (&paramv[0], TYPE_AUDIOMANAGER_COMMANDINTERFACE);
+ g_value_set_object (&paramv[0], proxy);
+ g_variant_iter_init (&iter, parameters);
+ n = 1;
+ while ((child = g_variant_iter_next_value (&iter)) != NULL)
+ {
+ _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
+ if (arg_info->use_gvariant)
+ {
+ g_value_init (&paramv[n], G_TYPE_VARIANT);
+ g_value_set_variant (&paramv[n], child);
+ n++;
+ }
+ else
+ g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
+ g_variant_unref (child);
+ }
+ signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_COMMANDINTERFACE);
+ g_signal_emitv (paramv, signal_id, 0, NULL);
+ for (n = 0; n < num_params + 1; n++)
+ g_value_unset (&paramv[n]);
+ g_free (paramv);
+}
+
+static void
+audiomanager_commandinterface_proxy_g_properties_changed (GDBusProxy *_proxy,
+ GVariant *changed_properties,
+ const gchar *const *invalidated_properties)
+{
+ AudiomanagerCommandinterfaceProxy *proxy = AUDIOMANAGER_COMMANDINTERFACE_PROXY (_proxy);
+ guint n;
+ const gchar *key;
+ GVariantIter *iter;
+ _ExtendedGDBusPropertyInfo *info;
+ g_variant_get (changed_properties, "a{sv}", &iter);
+ while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
+ {
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct, key);
+ g_datalist_remove_data (&proxy->priv->qdata, key);
+ if (info != NULL)
+ g_object_notify (G_OBJECT (proxy), info->hyphen_name);
+ }
+ g_variant_iter_free (iter);
+ for (n = 0; invalidated_properties[n] != NULL; n++)
+ {
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct, invalidated_properties[n]);
+ g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
+ if (info != NULL)
+ g_object_notify (G_OBJECT (proxy), info->hyphen_name);
+ }
+}
+
+static void
+audiomanager_commandinterface_proxy_init (AudiomanagerCommandinterfaceProxy *proxy)
+{
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+ proxy->priv = audiomanager_commandinterface_proxy_get_instance_private (proxy);
+#else
+ proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_AUDIOMANAGER_COMMANDINTERFACE_PROXY, AudiomanagerCommandinterfaceProxyPrivate);
+#endif
+
+ g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), audiomanager_commandinterface_interface_info ());
+}
+
+static void
+audiomanager_commandinterface_proxy_class_init (AudiomanagerCommandinterfaceProxyClass *klass)
+{
+ GObjectClass *gobject_class;
+ GDBusProxyClass *proxy_class;
+
+ gobject_class = G_OBJECT_CLASS (klass);
+ gobject_class->finalize = audiomanager_commandinterface_proxy_finalize;
+ gobject_class->get_property = audiomanager_commandinterface_proxy_get_property;
+ gobject_class->set_property = audiomanager_commandinterface_proxy_set_property;
+
+ proxy_class = G_DBUS_PROXY_CLASS (klass);
+ proxy_class->g_signal = audiomanager_commandinterface_proxy_g_signal;
+ proxy_class->g_properties_changed = audiomanager_commandinterface_proxy_g_properties_changed;
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
+ g_type_class_add_private (klass, sizeof (AudiomanagerCommandinterfaceProxyPrivate));
+#endif
+}
+
+static void
+audiomanager_commandinterface_proxy_iface_init (AudiomanagerCommandinterfaceIface *iface)
+{
+}
+
+/**
+ * audiomanager_commandinterface_proxy_new:
+ * @connection: A #GDBusConnection.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-commandinterface.top_of_page">org.genivi.audiomanager.commandinterface</link>. See g_dbus_proxy_new() for more details.
+ *
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_commandinterface_proxy_new_finish() to get the result of the operation.
+ *
+ * See audiomanager_commandinterface_proxy_new_sync() for the synchronous, blocking version of this constructor.
+ */
+void
+audiomanager_commandinterface_proxy_new (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ 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);
+}
+
+/**
+ * audiomanager_commandinterface_proxy_new_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_commandinterface_proxy_new().
+ * @error: Return location for error or %NULL
+ *
+ * Finishes an operation started with audiomanager_commandinterface_proxy_new().
+ *
+ * Returns: (transfer full) (type AudiomanagerCommandinterfaceProxy): The constructed proxy object or %NULL if @error is set.
+ */
+AudiomanagerCommandinterface *
+audiomanager_commandinterface_proxy_new_finish (
+ GAsyncResult *res,
+ GError **error)
+{
+ GObject *ret;
+ GObject *source_object;
+ source_object = g_async_result_get_source_object (res);
+ ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
+ g_object_unref (source_object);
+ if (ret != NULL)
+ return AUDIOMANAGER_COMMANDINTERFACE (ret);
+ else
+ return NULL;
+}
+
+/**
+ * audiomanager_commandinterface_proxy_new_sync:
+ * @connection: A #GDBusConnection.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL
+ *
+ * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-commandinterface.top_of_page">org.genivi.audiomanager.commandinterface</link>. See g_dbus_proxy_new_sync() for more details.
+ *
+ * The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_commandinterface_proxy_new() for the asynchronous version of this constructor.
+ *
+ * Returns: (transfer full) (type AudiomanagerCommandinterfaceProxy): The constructed proxy object or %NULL if @error is set.
+ */
+AudiomanagerCommandinterface *
+audiomanager_commandinterface_proxy_new_sync (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GInitable *ret;
+ 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);
+ if (ret != NULL)
+ return AUDIOMANAGER_COMMANDINTERFACE (ret);
+ else
+ return NULL;
+}
+
+
+/**
+ * audiomanager_commandinterface_proxy_new_for_bus:
+ * @bus_type: A #GBusType.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: A bus name (well-known or unique).
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
+ * @user_data: User data to pass to @callback.
+ *
+ * Like audiomanager_commandinterface_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
+ *
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_commandinterface_proxy_new_for_bus_finish() to get the result of the operation.
+ *
+ * See audiomanager_commandinterface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
+ */
+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)
+{
+ 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);
+}
+
+/**
+ * audiomanager_commandinterface_proxy_new_for_bus_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_commandinterface_proxy_new_for_bus().
+ * @error: Return location for error or %NULL
+ *
+ * Finishes an operation started with audiomanager_commandinterface_proxy_new_for_bus().
+ *
+ * Returns: (transfer full) (type AudiomanagerCommandinterfaceProxy): The constructed proxy object or %NULL if @error is set.
+ */
+AudiomanagerCommandinterface *
+audiomanager_commandinterface_proxy_new_for_bus_finish (
+ GAsyncResult *res,
+ GError **error)
+{
+ GObject *ret;
+ GObject *source_object;
+ source_object = g_async_result_get_source_object (res);
+ ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
+ g_object_unref (source_object);
+ if (ret != NULL)
+ return AUDIOMANAGER_COMMANDINTERFACE (ret);
+ else
+ return NULL;
+}
+
+/**
+ * audiomanager_commandinterface_proxy_new_for_bus_sync:
+ * @bus_type: A #GBusType.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: A bus name (well-known or unique).
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL
+ *
+ * Like audiomanager_commandinterface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
+ *
+ * The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_commandinterface_proxy_new_for_bus() for the asynchronous version of this constructor.
+ *
+ * Returns: (transfer full) (type AudiomanagerCommandinterfaceProxy): The constructed proxy object or %NULL if @error is set.
+ */
+AudiomanagerCommandinterface *
+audiomanager_commandinterface_proxy_new_for_bus_sync (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GInitable *ret;
+ 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);
+ if (ret != NULL)
+ return AUDIOMANAGER_COMMANDINTERFACE (ret);
+ else
+ return NULL;
+}
+
+
+/* ------------------------------------------------------------------------ */
+
+/**
+ * AudiomanagerCommandinterfaceSkeleton:
+ *
+ * The #AudiomanagerCommandinterfaceSkeleton structure contains only private data and should only be accessed using the provided API.
+ */
+
+/**
+ * AudiomanagerCommandinterfaceSkeletonClass:
+ * @parent_class: The parent class.
+ *
+ * Class structure for #AudiomanagerCommandinterfaceSkeleton.
+ */
+
+struct _AudiomanagerCommandinterfaceSkeletonPrivate
+{
+ GValue *properties;
+ GList *changed_properties;
+ GSource *changed_properties_idle_source;
+ GMainContext *context;
+ GMutex lock;
+};
+
+static void
+_audiomanager_commandinterface_skeleton_handle_method_call (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name,
+ const gchar *method_name,
+ GVariant *parameters,
+ GDBusMethodInvocation *invocation,
+ gpointer user_data)
+{
+ AudiomanagerCommandinterfaceSkeleton *skeleton = AUDIOMANAGER_COMMANDINTERFACE_SKELETON (user_data);
+ _ExtendedGDBusMethodInfo *info;
+ GVariantIter iter;
+ GVariant *child;
+ GValue *paramv;
+ guint num_params;
+ guint num_extra;
+ guint n;
+ guint signal_id;
+ GValue return_value = G_VALUE_INIT;
+ info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
+ g_assert (info != NULL);
+ num_params = g_variant_n_children (parameters);
+ num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
+ n = 0;
+ g_value_init (&paramv[n], TYPE_AUDIOMANAGER_COMMANDINTERFACE);
+ g_value_set_object (&paramv[n++], skeleton);
+ g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
+ g_value_set_object (&paramv[n++], invocation);
+ if (info->pass_fdlist)
+ {
+#ifdef G_OS_UNIX
+ g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
+ g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
+#else
+ g_assert_not_reached ();
+#endif
+ }
+ g_variant_iter_init (&iter, parameters);
+ while ((child = g_variant_iter_next_value (&iter)) != NULL)
+ {
+ _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
+ if (arg_info->use_gvariant)
+ {
+ g_value_init (&paramv[n], G_TYPE_VARIANT);
+ g_value_set_variant (&paramv[n], child);
+ n++;
+ }
+ else
+ g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
+ g_variant_unref (child);
+ }
+ signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_COMMANDINTERFACE);
+ g_value_init (&return_value, G_TYPE_BOOLEAN);
+ g_signal_emitv (paramv, signal_id, 0, &return_value);
+ if (!g_value_get_boolean (&return_value))
+ 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);
+ g_value_unset (&return_value);
+ for (n = 0; n < num_params + num_extra; n++)
+ g_value_unset (&paramv[n]);
+ g_free (paramv);
+}
+
+static GVariant *
+_audiomanager_commandinterface_skeleton_handle_get_property (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name G_GNUC_UNUSED,
+ const gchar *property_name,
+ GError **error,
+ gpointer user_data)
+{
+ AudiomanagerCommandinterfaceSkeleton *skeleton = AUDIOMANAGER_COMMANDINTERFACE_SKELETON (user_data);
+ GValue value = G_VALUE_INIT;
+ GParamSpec *pspec;
+ _ExtendedGDBusPropertyInfo *info;
+ GVariant *ret;
+ ret = NULL;
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct, property_name);
+ g_assert (info != NULL);
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
+ if (pspec == NULL)
+ {
+ g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
+ }
+ else
+ {
+ g_value_init (&value, pspec->value_type);
+ g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
+ ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
+ g_value_unset (&value);
+ }
+ return ret;
+}
+
+static gboolean
+_audiomanager_commandinterface_skeleton_handle_set_property (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name G_GNUC_UNUSED,
+ const gchar *property_name,
+ GVariant *variant,
+ GError **error,
+ gpointer user_data)
+{
+ AudiomanagerCommandinterfaceSkeleton *skeleton = AUDIOMANAGER_COMMANDINTERFACE_SKELETON (user_data);
+ GValue value = G_VALUE_INIT;
+ GParamSpec *pspec;
+ _ExtendedGDBusPropertyInfo *info;
+ gboolean ret;
+ ret = FALSE;
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_commandinterface_interface_info.parent_struct, property_name);
+ g_assert (info != NULL);
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
+ if (pspec == NULL)
+ {
+ g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
+ }
+ else
+ {
+ if (info->use_gvariant)
+ g_value_set_variant (&value, variant);
+ else
+ g_dbus_gvariant_to_gvalue (variant, &value);
+ g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
+ g_value_unset (&value);
+ ret = TRUE;
+ }
+ return ret;
+}
+
+static const GDBusInterfaceVTable _audiomanager_commandinterface_skeleton_vtable =
+{
+ _audiomanager_commandinterface_skeleton_handle_method_call,
+ _audiomanager_commandinterface_skeleton_handle_get_property,
+ _audiomanager_commandinterface_skeleton_handle_set_property,
+ {NULL}
+};
+
+static GDBusInterfaceInfo *
+audiomanager_commandinterface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
+{
+ return audiomanager_commandinterface_interface_info ();
+}
+
+static GDBusInterfaceVTable *
+audiomanager_commandinterface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
+{
+ return (GDBusInterfaceVTable *) &_audiomanager_commandinterface_skeleton_vtable;
+}
+
+static GVariant *
+audiomanager_commandinterface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
+{
+ AudiomanagerCommandinterfaceSkeleton *skeleton = AUDIOMANAGER_COMMANDINTERFACE_SKELETON (_skeleton);
+
+ GVariantBuilder builder;
+ guint n;
+ g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
+ if (_audiomanager_commandinterface_interface_info.parent_struct.properties == NULL)
+ goto out;
+ for (n = 0; _audiomanager_commandinterface_interface_info.parent_struct.properties[n] != NULL; n++)
+ {
+ GDBusPropertyInfo *info = _audiomanager_commandinterface_interface_info.parent_struct.properties[n];
+ if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
+ {
+ GVariant *value;
+ 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);
+ if (value != NULL)
+ {
+ g_variant_take_ref (value);
+ g_variant_builder_add (&builder, "{sv}", info->name, value);
+ g_variant_unref (value);
+ }
+ }
+ }
+out:
+ return g_variant_builder_end (&builder);
+}
+
+static void
+audiomanager_commandinterface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
+{
+}
+
+static void
+_audiomanager_commandinterface_on_signal_new_main_connection (
+ AudiomanagerCommandinterface *object,
+ GVariant *arg_mainConnection)
+{
+ AudiomanagerCommandinterfaceSkeleton *skeleton = AUDIOMANAGER_COMMANDINTERFACE_SKELETON (object);
+
+ GList *connections, *l;
+ GVariant *signal_variant;
+ connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
+
+ signal_variant = g_variant_ref_sink (g_variant_new ("(@(qqqnn))",
+ arg_mainConnection));
+ for (l = connections; l != NULL; l = l->next)
+ {
+ GDBusConnection *connection = l->data;
+ g_dbus_connection_emit_signal (connection,
+ NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "NewMainConnection",
+ signal_variant, NULL);
+ }
+ g_variant_unref (signal_variant);
+ g_list_free_full (connections, g_object_unref);
+}
+
+static void
+_audiomanager_commandinterface_on_signal_removed_main_connection (
+ AudiomanagerCommandinterface *object,
+ guint16 arg_mainConnectionId)
+{
+ AudiomanagerCommandinterfaceSkeleton *skeleton = AUDIOMANAGER_COMMANDINTERFACE_SKELETON (object);
+
+ GList *connections, *l;
+ GVariant *signal_variant;
+ connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
+
+ signal_variant = g_variant_ref_sink (g_variant_new ("(q)",
+ arg_mainConnectionId));
+ for (l = connections; l != NULL; l = l->next)
+ {
+ GDBusConnection *connection = l->data;
+ g_dbus_connection_emit_signal (connection,
+ NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "RemovedMainConnection",
+ signal_variant, NULL);
+ }
+ g_variant_unref (signal_variant);
+ g_list_free_full (connections, g_object_unref);
+}
+
+static void
+_audiomanager_commandinterface_on_signal_main_connection_state_changed (
+ AudiomanagerCommandinterface *object,
+ guint16 arg_connectionID,
+ gint16 arg_connectionState)
+{
+ AudiomanagerCommandinterfaceSkeleton *skeleton = AUDIOMANAGER_COMMANDINTERFACE_SKELETON (object);
+
+ GList *connections, *l;
+ GVariant *signal_variant;
+ connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
+
+ signal_variant = g_variant_ref_sink (g_variant_new ("(qn)",
+ arg_connectionID,
+ arg_connectionState));
+ for (l = connections; l != NULL; l = l->next)
+ {
+ GDBusConnection *connection = l->data;
+ g_dbus_connection_emit_signal (connection,
+ NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "MainConnectionStateChanged",
+ signal_variant, NULL);
+ }
+ g_variant_unref (signal_variant);
+ g_list_free_full (connections, g_object_unref);
+}
+
+static void
+_audiomanager_commandinterface_on_signal_volume_changed (
+ AudiomanagerCommandinterface *object,
+ guint16 arg_sinkID,
+ gint16 arg_volume)
+{
+ AudiomanagerCommandinterfaceSkeleton *skeleton = AUDIOMANAGER_COMMANDINTERFACE_SKELETON (object);
+
+ GList *connections, *l;
+ GVariant *signal_variant;
+ connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
+
+ signal_variant = g_variant_ref_sink (g_variant_new ("(qn)",
+ arg_sinkID,
+ arg_volume));
+ for (l = connections; l != NULL; l = l->next)
+ {
+ GDBusConnection *connection = l->data;
+ g_dbus_connection_emit_signal (connection,
+ NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "VolumeChanged",
+ signal_variant, NULL);
+ }
+ g_variant_unref (signal_variant);
+ g_list_free_full (connections, g_object_unref);
+}
+
+static void
+_audiomanager_commandinterface_on_signal_sink_mute_state_changed (
+ AudiomanagerCommandinterface *object,
+ guint16 arg_sinkID,
+ gint16 arg_muteState)
+{
+ AudiomanagerCommandinterfaceSkeleton *skeleton = AUDIOMANAGER_COMMANDINTERFACE_SKELETON (object);
+
+ GList *connections, *l;
+ GVariant *signal_variant;
+ connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
+
+ signal_variant = g_variant_ref_sink (g_variant_new ("(qn)",
+ arg_sinkID,
+ arg_muteState));
+ for (l = connections; l != NULL; l = l->next)
+ {
+ GDBusConnection *connection = l->data;
+ g_dbus_connection_emit_signal (connection,
+ NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "SinkMuteStateChanged",
+ signal_variant, NULL);
+ }
+ g_variant_unref (signal_variant);
+ g_list_free_full (connections, g_object_unref);
+}
+
+static void
+_audiomanager_commandinterface_on_signal_system_property_changed (
+ AudiomanagerCommandinterface *object,
+ GVariant *arg_SystemProperty)
+{
+ AudiomanagerCommandinterfaceSkeleton *skeleton = AUDIOMANAGER_COMMANDINTERFACE_SKELETON (object);
+
+ GList *connections, *l;
+ GVariant *signal_variant;
+ connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
+
+ signal_variant = g_variant_ref_sink (g_variant_new ("(@(nn))",
+ arg_SystemProperty));
+ for (l = connections; l != NULL; l = l->next)
+ {
+ GDBusConnection *connection = l->data;
+ g_dbus_connection_emit_signal (connection,
+ NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.commandinterface", "SystemPropertyChanged",
+ signal_variant, NULL);
+ }
+ g_variant_unref (signal_variant);
+ g_list_free_full (connections, g_object_unref);
+}
+
+static void audiomanager_commandinterface_skeleton_iface_init (AudiomanagerCommandinterfaceIface *iface);
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerCommandinterfaceSkeleton, audiomanager_commandinterface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
+ G_ADD_PRIVATE (AudiomanagerCommandinterfaceSkeleton)
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_COMMANDINTERFACE, audiomanager_commandinterface_skeleton_iface_init));
+
+#else
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerCommandinterfaceSkeleton, audiomanager_commandinterface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_COMMANDINTERFACE, audiomanager_commandinterface_skeleton_iface_init));
+
+#endif
+static void
+audiomanager_commandinterface_skeleton_finalize (GObject *object)
+{
+ AudiomanagerCommandinterfaceSkeleton *skeleton = AUDIOMANAGER_COMMANDINTERFACE_SKELETON (object);
+ g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
+ if (skeleton->priv->changed_properties_idle_source != NULL)
+ g_source_destroy (skeleton->priv->changed_properties_idle_source);
+ g_main_context_unref (skeleton->priv->context);
+ g_mutex_clear (&skeleton->priv->lock);
+ G_OBJECT_CLASS (audiomanager_commandinterface_skeleton_parent_class)->finalize (object);
+}
+
+static void
+audiomanager_commandinterface_skeleton_init (AudiomanagerCommandinterfaceSkeleton *skeleton)
+{
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+ skeleton->priv = audiomanager_commandinterface_skeleton_get_instance_private (skeleton);
+#else
+ skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_AUDIOMANAGER_COMMANDINTERFACE_SKELETON, AudiomanagerCommandinterfaceSkeletonPrivate);
+#endif
+
+ g_mutex_init (&skeleton->priv->lock);
+ skeleton->priv->context = g_main_context_ref_thread_default ();
+}
+
+static void
+audiomanager_commandinterface_skeleton_class_init (AudiomanagerCommandinterfaceSkeletonClass *klass)
+{
+ GObjectClass *gobject_class;
+ GDBusInterfaceSkeletonClass *skeleton_class;
+
+ gobject_class = G_OBJECT_CLASS (klass);
+ gobject_class->finalize = audiomanager_commandinterface_skeleton_finalize;
+
+ skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
+ skeleton_class->get_info = audiomanager_commandinterface_skeleton_dbus_interface_get_info;
+ skeleton_class->get_properties = audiomanager_commandinterface_skeleton_dbus_interface_get_properties;
+ skeleton_class->flush = audiomanager_commandinterface_skeleton_dbus_interface_flush;
+ skeleton_class->get_vtable = audiomanager_commandinterface_skeleton_dbus_interface_get_vtable;
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
+ g_type_class_add_private (klass, sizeof (AudiomanagerCommandinterfaceSkeletonPrivate));
+#endif
+}
+
+static void
+audiomanager_commandinterface_skeleton_iface_init (AudiomanagerCommandinterfaceIface *iface)
+{
+ iface->new_main_connection = _audiomanager_commandinterface_on_signal_new_main_connection;
+ iface->removed_main_connection = _audiomanager_commandinterface_on_signal_removed_main_connection;
+ iface->main_connection_state_changed = _audiomanager_commandinterface_on_signal_main_connection_state_changed;
+ iface->volume_changed = _audiomanager_commandinterface_on_signal_volume_changed;
+ iface->sink_mute_state_changed = _audiomanager_commandinterface_on_signal_sink_mute_state_changed;
+ iface->system_property_changed = _audiomanager_commandinterface_on_signal_system_property_changed;
+}
+
+/**
+ * audiomanager_commandinterface_skeleton_new:
+ *
+ * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-commandinterface.top_of_page">org.genivi.audiomanager.commandinterface</link>.
+ *
+ * Returns: (transfer full) (type AudiomanagerCommandinterfaceSkeleton): The skeleton object.
+ */
+AudiomanagerCommandinterface *
+audiomanager_commandinterface_skeleton_new (void)
+{
+ return AUDIOMANAGER_COMMANDINTERFACE (g_object_new (TYPE_AUDIOMANAGER_COMMANDINTERFACE_SKELETON, NULL));
+}
+
+/* ------------------------------------------------------------------------
+ * Code for interface org.genivi.audiomanager.routinginterface
+ * ------------------------------------------------------------------------
+ */
+
+/**
+ * SECTION:AudiomanagerRoutinginterface
+ * @title: AudiomanagerRoutinginterface
+ * @short_description: Generated C code for the org.genivi.audiomanager.routinginterface D-Bus interface
+ *
+ * This section contains code for working with the <link linkend="gdbus-interface-org-genivi-audiomanager-routinginterface.top_of_page">org.genivi.audiomanager.routinginterface</link> D-Bus interface in C.
+ */
+
+/* ---- Introspection data for org.genivi.audiomanager.routinginterface ---- */
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_connect_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_connect_IN_ARG_connectionID =
+{
+ {
+ -1,
+ (gchar *) "connectionID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_connect_IN_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_connect_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_ack_connect_IN_ARG_handle,
+ &_audiomanager_routinginterface_method_info_ack_connect_IN_ARG_connectionID,
+ &_audiomanager_routinginterface_method_info_ack_connect_IN_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_connect =
+{
+ {
+ -1,
+ (gchar *) "ackConnect",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_connect_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-ack-connect",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_connectionID =
+{
+ {
+ -1,
+ (gchar *) "connectionID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_handle,
+ &_audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_connectionID,
+ &_audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_disconnect =
+{
+ {
+ -1,
+ (gchar *) "ackDisconnect",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_disconnect_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-ack-disconnect",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_handle,
+ &_audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_set_source_state =
+{
+ {
+ -1,
+ (gchar *) "ackSetSourceState",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_set_source_state_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-ack-set-source-state",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_volume =
+{
+ {
+ -1,
+ (gchar *) "volume",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_handle,
+ &_audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_volume,
+ &_audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_set_sink_volume =
+{
+ {
+ -1,
+ (gchar *) "ackSetSinkVolume",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_set_sink_volume_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-ack-set-sink-volume",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_sink_IN_ARG_sinkData =
+{
+ {
+ -1,
+ (gchar *) "sinkData",
+ (gchar *) "(qsqinb(ii)nna(in)aia(in)a(iin)a(iin))",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_sink_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_register_sink_IN_ARG_sinkData,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_sink_OUT_ARG_sinkID =
+{
+ {
+ -1,
+ (gchar *) "sinkID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_sink_OUT_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_sink_OUT_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_register_sink_OUT_ARG_sinkID,
+ &_audiomanager_routinginterface_method_info_register_sink_OUT_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_register_sink =
+{
+ {
+ -1,
+ (gchar *) "registerSink",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_sink_IN_ARG_pointers,
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_sink_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-register-sink",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_deregister_sink_IN_ARG_sinkID =
+{
+ {
+ -1,
+ (gchar *) "sinkID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_deregister_sink_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_deregister_sink_IN_ARG_sinkID,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_deregister_sink_OUT_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "i",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_deregister_sink_OUT_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_deregister_sink_OUT_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_deregister_sink =
+{
+ {
+ -1,
+ (gchar *) "deregisterSink",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_deregister_sink_IN_ARG_pointers,
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_deregister_sink_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-deregister-sink",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_source_IN_ARG_sourceData =
+{
+ {
+ -1,
+ (gchar *) "sourceData",
+ (gchar *) "(qqsqinb(ii)qa(in)aia(in)a(iin)a(iin))",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_source_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_register_source_IN_ARG_sourceData,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_source_OUT_ARG_sourceID =
+{
+ {
+ -1,
+ (gchar *) "sourceID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_source_OUT_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_source_OUT_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_register_source_OUT_ARG_sourceID,
+ &_audiomanager_routinginterface_method_info_register_source_OUT_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_register_source =
+{
+ {
+ -1,
+ (gchar *) "registerSource",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_source_IN_ARG_pointers,
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_source_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-register-source",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_deregister_source_IN_ARG_sourceID =
+{
+ {
+ -1,
+ (gchar *) "sourceID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_deregister_source_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_deregister_source_IN_ARG_sourceID,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_deregister_source_OUT_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_deregister_source_OUT_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_deregister_source_OUT_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_deregister_source =
+{
+ {
+ -1,
+ (gchar *) "deregisterSource",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_deregister_source_IN_ARG_pointers,
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_deregister_source_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-deregister-source",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_sourceID =
+{
+ {
+ -1,
+ (gchar *) "sourceID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_interruptState =
+{
+ {
+ -1,
+ (gchar *) "interruptState",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_sourceID,
+ &_audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_interruptState,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_hook_interrupt_status_change =
+{
+ {
+ -1,
+ (gchar *) "hookInterruptStatusChange",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_hook_interrupt_status_change_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-hook-interrupt-status-change",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_sourceID =
+{
+ {
+ -1,
+ (gchar *) "sourceID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_availability =
+{
+ {
+ -1,
+ (gchar *) "availability",
+ (gchar *) "(nn)",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_sourceID,
+ &_audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_availability,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_hook_source_availablity_status_change =
+{
+ {
+ -1,
+ (gchar *) "hookSourceAvailablityStatusChange",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_hook_source_availablity_status_change_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-hook-source-availablity-status-change",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_confirm_routing_ready_IN_ARG_domainID =
+{
+ {
+ -1,
+ (gchar *) "domainID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_confirm_routing_ready_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_confirm_routing_ready_IN_ARG_domainID,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_confirm_routing_ready =
+{
+ {
+ -1,
+ (gchar *) "confirmRoutingReady",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_confirm_routing_ready_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-confirm-routing-ready",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_confirm_routing_rundown_IN_ARG_domainID =
+{
+ {
+ -1,
+ (gchar *) "domainID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_confirm_routing_rundown_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_confirm_routing_rundown_IN_ARG_domainID,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_confirm_routing_rundown =
+{
+ {
+ -1,
+ (gchar *) "confirmRoutingRundown",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_confirm_routing_rundown_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-confirm-routing-rundown",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_listvolumes =
+{
+ {
+ -1,
+ (gchar *) "listvolumes",
+ (gchar *) "a(nqqnq)",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_handle,
+ &_audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_listvolumes,
+ &_audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_set_volumes =
+{
+ {
+ -1,
+ (gchar *) "ackSetVolumes",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_set_volumes_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-ack-set-volumes",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_handle,
+ &_audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_sink_notification_configuration =
+{
+ {
+ -1,
+ (gchar *) "ackSinkNotificationConfiguration",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_sink_notification_configuration_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-ack-sink-notification-configuration",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_handle,
+ &_audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_ack_source_notification_configuration =
+{
+ {
+ -1,
+ (gchar *) "ackSourceNotificationConfiguration",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_ack_source_notification_configuration_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-ack-source-notification-configuration",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_IN_ARG_domaindata =
+{
+ {
+ -1,
+ (gchar *) "domaindata",
+ (gchar *) "(qsssbbn)",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnBusname =
+{
+ {
+ -1,
+ (gchar *) "returnBusname",
+ (gchar *) "s",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnPath =
+{
+ {
+ -1,
+ (gchar *) "returnPath",
+ (gchar *) "s",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnInterface =
+{
+ {
+ -1,
+ (gchar *) "returnInterface",
+ (gchar *) "s",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_domain_IN_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_register_domain_IN_ARG_domaindata,
+ &_audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnBusname,
+ &_audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnPath,
+ &_audiomanager_routinginterface_method_info_register_domain_IN_ARG_returnInterface,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_OUT_ARG_domainid =
+{
+ {
+ -1,
+ (gchar *) "domainid",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routinginterface_method_info_register_domain_OUT_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routinginterface_method_info_register_domain_OUT_ARG_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_register_domain_OUT_ARG_domainid,
+ &_audiomanager_routinginterface_method_info_register_domain_OUT_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routinginterface_method_info_register_domain =
+{
+ {
+ -1,
+ (gchar *) "registerDomain",
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_domain_IN_ARG_pointers,
+ (GDBusArgInfo **) &_audiomanager_routinginterface_method_info_register_domain_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-register-domain",
+ FALSE
+};
+
+static const _ExtendedGDBusMethodInfo * const _audiomanager_routinginterface_method_info_pointers[] =
+{
+ &_audiomanager_routinginterface_method_info_ack_connect,
+ &_audiomanager_routinginterface_method_info_ack_disconnect,
+ &_audiomanager_routinginterface_method_info_ack_set_source_state,
+ &_audiomanager_routinginterface_method_info_ack_set_sink_volume,
+ &_audiomanager_routinginterface_method_info_register_sink,
+ &_audiomanager_routinginterface_method_info_deregister_sink,
+ &_audiomanager_routinginterface_method_info_register_source,
+ &_audiomanager_routinginterface_method_info_deregister_source,
+ &_audiomanager_routinginterface_method_info_hook_interrupt_status_change,
+ &_audiomanager_routinginterface_method_info_hook_source_availablity_status_change,
+ &_audiomanager_routinginterface_method_info_confirm_routing_ready,
+ &_audiomanager_routinginterface_method_info_confirm_routing_rundown,
+ &_audiomanager_routinginterface_method_info_ack_set_volumes,
+ &_audiomanager_routinginterface_method_info_ack_sink_notification_configuration,
+ &_audiomanager_routinginterface_method_info_ack_source_notification_configuration,
+ &_audiomanager_routinginterface_method_info_register_domain,
+ NULL
+};
+
+static const _ExtendedGDBusSignalInfo _audiomanager_routinginterface_signal_info_set_routing_ready =
+{
+ {
+ -1,
+ (gchar *) "setRoutingReady",
+ NULL,
+ NULL
+ },
+ "set-routing-ready"
+};
+
+static const _ExtendedGDBusSignalInfo _audiomanager_routinginterface_signal_info_set_routing_rundown =
+{
+ {
+ -1,
+ (gchar *) "setRoutingRundown",
+ NULL,
+ NULL
+ },
+ "set-routing-rundown"
+};
+
+static const _ExtendedGDBusSignalInfo * const _audiomanager_routinginterface_signal_info_pointers[] =
+{
+ &_audiomanager_routinginterface_signal_info_set_routing_ready,
+ &_audiomanager_routinginterface_signal_info_set_routing_rundown,
+ NULL
+};
+
+static const _ExtendedGDBusInterfaceInfo _audiomanager_routinginterface_interface_info =
+{
+ {
+ -1,
+ (gchar *) "org.genivi.audiomanager.routinginterface",
+ (GDBusMethodInfo **) &_audiomanager_routinginterface_method_info_pointers,
+ (GDBusSignalInfo **) &_audiomanager_routinginterface_signal_info_pointers,
+ NULL,
+ NULL
+ },
+ "audiomanager-routinginterface",
+};
+
+
+/**
+ * audiomanager_routinginterface_interface_info:
+ *
+ * Gets a machine-readable description of the <link linkend="gdbus-interface-org-genivi-audiomanager-routinginterface.top_of_page">org.genivi.audiomanager.routinginterface</link> D-Bus interface.
+ *
+ * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
+ */
+GDBusInterfaceInfo *
+audiomanager_routinginterface_interface_info (void)
+{
+ return (GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct;
+}
+
+/**
+ * audiomanager_routinginterface_override_properties:
+ * @klass: The class structure for a #GObject<!-- -->-derived class.
+ * @property_id_begin: The property id to assign to the first overridden property.
+ *
+ * Overrides all #GObject properties in the #AudiomanagerRoutinginterface interface for a concrete class.
+ * The properties are overridden in the order they are defined.
+ *
+ * Returns: The last property id.
+ */
+guint
+audiomanager_routinginterface_override_properties (GObjectClass *klass, guint property_id_begin)
+{
+ return property_id_begin - 1;
+}
+
+
+
+/**
+ * AudiomanagerRoutinginterface:
+ *
+ * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routinginterface.top_of_page">org.genivi.audiomanager.routinginterface</link>.
+ */
+
+/**
+ * AudiomanagerRoutinginterfaceIface:
+ * @parent_iface: The parent interface.
+ * @handle_ack_connect: Handler for the #AudiomanagerRoutinginterface::handle-ack-connect signal.
+ * @handle_ack_disconnect: Handler for the #AudiomanagerRoutinginterface::handle-ack-disconnect signal.
+ * @handle_ack_set_sink_volume: Handler for the #AudiomanagerRoutinginterface::handle-ack-set-sink-volume signal.
+ * @handle_ack_set_source_state: Handler for the #AudiomanagerRoutinginterface::handle-ack-set-source-state signal.
+ * @handle_ack_set_volumes: Handler for the #AudiomanagerRoutinginterface::handle-ack-set-volumes signal.
+ * @handle_ack_sink_notification_configuration: Handler for the #AudiomanagerRoutinginterface::handle-ack-sink-notification-configuration signal.
+ * @handle_ack_source_notification_configuration: Handler for the #AudiomanagerRoutinginterface::handle-ack-source-notification-configuration signal.
+ * @handle_confirm_routing_ready: Handler for the #AudiomanagerRoutinginterface::handle-confirm-routing-ready signal.
+ * @handle_confirm_routing_rundown: Handler for the #AudiomanagerRoutinginterface::handle-confirm-routing-rundown signal.
+ * @handle_deregister_sink: Handler for the #AudiomanagerRoutinginterface::handle-deregister-sink signal.
+ * @handle_deregister_source: Handler for the #AudiomanagerRoutinginterface::handle-deregister-source signal.
+ * @handle_hook_interrupt_status_change: Handler for the #AudiomanagerRoutinginterface::handle-hook-interrupt-status-change signal.
+ * @handle_hook_source_availablity_status_change: Handler for the #AudiomanagerRoutinginterface::handle-hook-source-availablity-status-change signal.
+ * @handle_register_domain: Handler for the #AudiomanagerRoutinginterface::handle-register-domain signal.
+ * @handle_register_sink: Handler for the #AudiomanagerRoutinginterface::handle-register-sink signal.
+ * @handle_register_source: Handler for the #AudiomanagerRoutinginterface::handle-register-source signal.
+ * @set_routing_ready: Handler for the #AudiomanagerRoutinginterface::set-routing-ready signal.
+ * @set_routing_rundown: Handler for the #AudiomanagerRoutinginterface::set-routing-rundown signal.
+ *
+ * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routinginterface.top_of_page">org.genivi.audiomanager.routinginterface</link>.
+ */
+
+typedef AudiomanagerRoutinginterfaceIface AudiomanagerRoutinginterfaceInterface;
+G_DEFINE_INTERFACE (AudiomanagerRoutinginterface, audiomanager_routinginterface, G_TYPE_OBJECT);
+
+static void
+audiomanager_routinginterface_default_init (AudiomanagerRoutinginterfaceIface *iface)
+{
+ /* GObject signals for incoming D-Bus method calls: */
+ /**
+ * AudiomanagerRoutinginterface::handle-ack-connect:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ * @arg_connectionID: Argument passed by remote caller.
+ * @arg_error: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackConnect">ackConnect()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_ack_connect() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-ack-connect",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_connect),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 4,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-ack-disconnect:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ * @arg_connectionID: Argument passed by remote caller.
+ * @arg_error: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackDisconnect">ackDisconnect()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_ack_disconnect() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-ack-disconnect",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_disconnect),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 4,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-ack-set-source-state:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ * @arg_error: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetSourceState">ackSetSourceState()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_ack_set_source_state() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-ack-set-source-state",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_set_source_state),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 3,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-ack-set-sink-volume:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ * @arg_volume: Argument passed by remote caller.
+ * @arg_error: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetSinkVolume">ackSetSinkVolume()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_ack_set_sink_volume() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-ack-set-sink-volume",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_set_sink_volume),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 4,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_INT, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-register-sink:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_sinkData: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerSink">registerSink()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_register_sink() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-register-sink",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_register_sink),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 2,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-deregister-sink:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_sinkID: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.deregisterSink">deregisterSink()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_deregister_sink() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-deregister-sink",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_deregister_sink),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 2,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-register-source:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_sourceData: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerSource">registerSource()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_register_source() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-register-source",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_register_source),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 2,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-deregister-source:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_sourceID: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.deregisterSource">deregisterSource()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_deregister_source() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-deregister-source",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_deregister_source),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 2,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-hook-interrupt-status-change:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_sourceID: Argument passed by remote caller.
+ * @arg_interruptState: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.hookInterruptStatusChange">hookInterruptStatusChange()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_hook_interrupt_status_change() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-hook-interrupt-status-change",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_hook_interrupt_status_change),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 3,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-hook-source-availablity-status-change:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_sourceID: Argument passed by remote caller.
+ * @arg_availability: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.hookSourceAvailablityStatusChange">hookSourceAvailablityStatusChange()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_hook_source_availablity_status_change() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-hook-source-availablity-status-change",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_hook_source_availablity_status_change),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 3,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_VARIANT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-confirm-routing-ready:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_domainID: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.confirmRoutingReady">confirmRoutingReady()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_confirm_routing_ready() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-confirm-routing-ready",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_confirm_routing_ready),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 2,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-confirm-routing-rundown:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_domainID: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.confirmRoutingRundown">confirmRoutingRundown()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_confirm_routing_rundown() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-confirm-routing-rundown",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_confirm_routing_rundown),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 2,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-ack-set-volumes:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ * @arg_listvolumes: Argument passed by remote caller.
+ * @arg_error: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetVolumes">ackSetVolumes()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_ack_set_volumes() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-ack-set-volumes",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_set_volumes),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 4,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_VARIANT, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-ack-sink-notification-configuration:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ * @arg_error: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSinkNotificationConfiguration">ackSinkNotificationConfiguration()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_ack_sink_notification_configuration() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-ack-sink-notification-configuration",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_sink_notification_configuration),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 3,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-ack-source-notification-configuration:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ * @arg_error: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSourceNotificationConfiguration">ackSourceNotificationConfiguration()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_ack_source_notification_configuration() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-ack-source-notification-configuration",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_ack_source_notification_configuration),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 3,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutinginterface::handle-register-domain:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_domaindata: Argument passed by remote caller.
+ * @arg_returnBusname: Argument passed by remote caller.
+ * @arg_returnPath: Argument passed by remote caller.
+ * @arg_returnInterface: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerDomain">registerDomain()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routinginterface_complete_register_domain() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-register-domain",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, handle_register_domain),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 5,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
+
+ /* GObject signals for received D-Bus signals: */
+ /**
+ * AudiomanagerRoutinginterface::set-routing-ready:
+ * @object: A #AudiomanagerRoutinginterface.
+ *
+ * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-genivi-audiomanager-routinginterface.setRoutingReady">"setRoutingReady"</link> is received.
+ *
+ * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
+ */
+ g_signal_new ("set-routing-ready",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, set_routing_ready),
+ NULL,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_NONE,
+ 0);
+
+ /**
+ * AudiomanagerRoutinginterface::set-routing-rundown:
+ * @object: A #AudiomanagerRoutinginterface.
+ *
+ * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-genivi-audiomanager-routinginterface.setRoutingRundown">"setRoutingRundown"</link> is received.
+ *
+ * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
+ */
+ g_signal_new ("set-routing-rundown",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutinginterfaceIface, set_routing_rundown),
+ NULL,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_NONE,
+ 0);
+
+}
+
+/**
+ * audiomanager_routinginterface_emit_set_routing_ready:
+ * @object: A #AudiomanagerRoutinginterface.
+ *
+ * Emits the <link linkend="gdbus-signal-org-genivi-audiomanager-routinginterface.setRoutingReady">"setRoutingReady"</link> D-Bus signal.
+ */
+void
+audiomanager_routinginterface_emit_set_routing_ready (
+ AudiomanagerRoutinginterface *object)
+{
+ g_signal_emit_by_name (object, "set-routing-ready");
+}
+
+/**
+ * audiomanager_routinginterface_emit_set_routing_rundown:
+ * @object: A #AudiomanagerRoutinginterface.
+ *
+ * Emits the <link linkend="gdbus-signal-org-genivi-audiomanager-routinginterface.setRoutingRundown">"setRoutingRundown"</link> D-Bus signal.
+ */
+void
+audiomanager_routinginterface_emit_set_routing_rundown (
+ AudiomanagerRoutinginterface *object)
+{
+ g_signal_emit_by_name (object, "set-routing-rundown");
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_connect:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_connectionID: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackConnect">ackConnect()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_ack_connect_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_ack_connect_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_ack_connect (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ guint16 arg_connectionID,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "ackConnect",
+ g_variant_new ("(qqq)",
+ arg_handle,
+ arg_connectionID,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_connect_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_ack_connect().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_ack_connect().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_connect_finish (
+ AudiomanagerRoutinginterface *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_connect_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_connectionID: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackConnect">ackConnect()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_ack_connect() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_connect_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ guint16 arg_connectionID,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "ackConnect",
+ g_variant_new ("(qqq)",
+ arg_handle,
+ arg_connectionID,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_disconnect:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_connectionID: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackDisconnect">ackDisconnect()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_ack_disconnect_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_ack_disconnect_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_ack_disconnect (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ guint16 arg_connectionID,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "ackDisconnect",
+ g_variant_new ("(qqq)",
+ arg_handle,
+ arg_connectionID,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_disconnect_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_ack_disconnect().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_ack_disconnect().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_disconnect_finish (
+ AudiomanagerRoutinginterface *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_disconnect_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_connectionID: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackDisconnect">ackDisconnect()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_ack_disconnect() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_disconnect_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ guint16 arg_connectionID,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "ackDisconnect",
+ g_variant_new ("(qqq)",
+ arg_handle,
+ arg_connectionID,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_set_source_state:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetSourceState">ackSetSourceState()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_ack_set_source_state_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_ack_set_source_state_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_ack_set_source_state (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "ackSetSourceState",
+ g_variant_new ("(qq)",
+ arg_handle,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_set_source_state_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_ack_set_source_state().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_ack_set_source_state().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_set_source_state_finish (
+ AudiomanagerRoutinginterface *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_set_source_state_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetSourceState">ackSetSourceState()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_ack_set_source_state() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_set_source_state_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "ackSetSourceState",
+ g_variant_new ("(qq)",
+ arg_handle,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_set_sink_volume:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_volume: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetSinkVolume">ackSetSinkVolume()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_ack_set_sink_volume_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_ack_set_sink_volume_sync() for the synchronous, blocking version of this method.
+ */
+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)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "ackSetSinkVolume",
+ g_variant_new ("(qnq)",
+ arg_handle,
+ arg_volume,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_set_sink_volume_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_ack_set_sink_volume().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_ack_set_sink_volume().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_set_sink_volume_finish (
+ AudiomanagerRoutinginterface *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_set_sink_volume_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_volume: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetSinkVolume">ackSetSinkVolume()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_ack_set_sink_volume() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_set_sink_volume_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ gint16 arg_volume,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "ackSetSinkVolume",
+ g_variant_new ("(qnq)",
+ arg_handle,
+ arg_volume,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_register_sink:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sinkData: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerSink">registerSink()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_register_sink_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_register_sink_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_register_sink (
+ AudiomanagerRoutinginterface *proxy,
+ GVariant *arg_sinkData,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "registerSink",
+ g_variant_new ("(@(qsqinb(ii)nna(in)aia(in)a(iin)a(iin)))",
+ arg_sinkData),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_register_sink_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @out_sinkID: (out): Return location for return parameter or %NULL to ignore.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_register_sink().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_register_sink().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_register_sink_finish (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 *out_sinkID,
+ guint16 *out_error,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(qq)",
+ out_sinkID,
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_register_sink_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sinkData: Argument to pass with the method invocation.
+ * @out_sinkID: (out): Return location for return parameter or %NULL to ignore.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerSink">registerSink()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_register_sink() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_register_sink_sync (
+ AudiomanagerRoutinginterface *proxy,
+ GVariant *arg_sinkData,
+ guint16 *out_sinkID,
+ guint16 *out_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "registerSink",
+ g_variant_new ("(@(qsqinb(ii)nna(in)aia(in)a(iin)a(iin)))",
+ arg_sinkData),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(qq)",
+ out_sinkID,
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_deregister_sink:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.deregisterSink">deregisterSink()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_deregister_sink_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_deregister_sink_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_deregister_sink (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_sinkID,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "deregisterSink",
+ g_variant_new ("(q)",
+ arg_sinkID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_deregister_sink_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_deregister_sink().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_deregister_sink().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_deregister_sink_finish (
+ AudiomanagerRoutinginterface *proxy,
+ gint *out_error,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(i)",
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_deregister_sink_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.deregisterSink">deregisterSink()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_deregister_sink() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_deregister_sink_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_sinkID,
+ gint *out_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "deregisterSink",
+ g_variant_new ("(q)",
+ arg_sinkID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(i)",
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_register_source:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sourceData: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerSource">registerSource()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_register_source_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_register_source_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_register_source (
+ AudiomanagerRoutinginterface *proxy,
+ GVariant *arg_sourceData,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "registerSource",
+ g_variant_new ("(@(qqsqinb(ii)qa(in)aia(in)a(iin)a(iin)))",
+ arg_sourceData),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_register_source_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @out_sourceID: (out): Return location for return parameter or %NULL to ignore.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_register_source().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_register_source().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_register_source_finish (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 *out_sourceID,
+ guint16 *out_error,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(qq)",
+ out_sourceID,
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_register_source_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sourceData: Argument to pass with the method invocation.
+ * @out_sourceID: (out): Return location for return parameter or %NULL to ignore.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerSource">registerSource()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_register_source() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_register_source_sync (
+ AudiomanagerRoutinginterface *proxy,
+ GVariant *arg_sourceData,
+ guint16 *out_sourceID,
+ guint16 *out_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "registerSource",
+ g_variant_new ("(@(qqsqinb(ii)qa(in)aia(in)a(iin)a(iin)))",
+ arg_sourceData),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(qq)",
+ out_sourceID,
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_deregister_source:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.deregisterSource">deregisterSource()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_deregister_source_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_deregister_source_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_deregister_source (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_sourceID,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "deregisterSource",
+ g_variant_new ("(q)",
+ arg_sourceID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_deregister_source_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_deregister_source().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_deregister_source().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_deregister_source_finish (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 *out_error,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(q)",
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_deregister_source_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.deregisterSource">deregisterSource()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_deregister_source() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_deregister_source_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_sourceID,
+ guint16 *out_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "deregisterSource",
+ g_variant_new ("(q)",
+ arg_sourceID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(q)",
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_hook_interrupt_status_change:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @arg_interruptState: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.hookInterruptStatusChange">hookInterruptStatusChange()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_hook_interrupt_status_change_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_hook_interrupt_status_change_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_hook_interrupt_status_change (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_sourceID,
+ guint16 arg_interruptState,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "hookInterruptStatusChange",
+ g_variant_new ("(qq)",
+ arg_sourceID,
+ arg_interruptState),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_hook_interrupt_status_change_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_hook_interrupt_status_change().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_hook_interrupt_status_change().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_hook_interrupt_status_change_finish (
+ AudiomanagerRoutinginterface *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_hook_interrupt_status_change_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @arg_interruptState: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.hookInterruptStatusChange">hookInterruptStatusChange()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_hook_interrupt_status_change() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_hook_interrupt_status_change_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_sourceID,
+ guint16 arg_interruptState,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "hookInterruptStatusChange",
+ g_variant_new ("(qq)",
+ arg_sourceID,
+ arg_interruptState),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_hook_source_availablity_status_change:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @arg_availability: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.hookSourceAvailablityStatusChange">hookSourceAvailablityStatusChange()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_hook_source_availablity_status_change_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_hook_source_availablity_status_change_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_hook_source_availablity_status_change (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_sourceID,
+ GVariant *arg_availability,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "hookSourceAvailablityStatusChange",
+ g_variant_new ("(q@(nn))",
+ arg_sourceID,
+ arg_availability),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_hook_source_availablity_status_change_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_hook_source_availablity_status_change().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_hook_source_availablity_status_change().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_hook_source_availablity_status_change_finish (
+ AudiomanagerRoutinginterface *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_hook_source_availablity_status_change_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @arg_availability: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.hookSourceAvailablityStatusChange">hookSourceAvailablityStatusChange()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_hook_source_availablity_status_change() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_hook_source_availablity_status_change_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_sourceID,
+ GVariant *arg_availability,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "hookSourceAvailablityStatusChange",
+ g_variant_new ("(q@(nn))",
+ arg_sourceID,
+ arg_availability),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_confirm_routing_ready:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_domainID: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.confirmRoutingReady">confirmRoutingReady()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_confirm_routing_ready_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_confirm_routing_ready_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_confirm_routing_ready (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_domainID,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "confirmRoutingReady",
+ g_variant_new ("(q)",
+ arg_domainID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_confirm_routing_ready_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_confirm_routing_ready().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_confirm_routing_ready().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_confirm_routing_ready_finish (
+ AudiomanagerRoutinginterface *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_confirm_routing_ready_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_domainID: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.confirmRoutingReady">confirmRoutingReady()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_confirm_routing_ready() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_confirm_routing_ready_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_domainID,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "confirmRoutingReady",
+ g_variant_new ("(q)",
+ arg_domainID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_confirm_routing_rundown:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_domainID: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.confirmRoutingRundown">confirmRoutingRundown()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_confirm_routing_rundown_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_confirm_routing_rundown_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_confirm_routing_rundown (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_domainID,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "confirmRoutingRundown",
+ g_variant_new ("(q)",
+ arg_domainID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_confirm_routing_rundown_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_confirm_routing_rundown().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_confirm_routing_rundown().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_confirm_routing_rundown_finish (
+ AudiomanagerRoutinginterface *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_confirm_routing_rundown_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_domainID: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.confirmRoutingRundown">confirmRoutingRundown()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_confirm_routing_rundown() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_confirm_routing_rundown_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_domainID,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "confirmRoutingRundown",
+ g_variant_new ("(q)",
+ arg_domainID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_set_volumes:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_listvolumes: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetVolumes">ackSetVolumes()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_ack_set_volumes_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_ack_set_volumes_sync() for the synchronous, blocking version of this method.
+ */
+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)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "ackSetVolumes",
+ g_variant_new ("(q@a(nqqnq)q)",
+ arg_handle,
+ arg_listvolumes,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_set_volumes_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_ack_set_volumes().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_ack_set_volumes().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_set_volumes_finish (
+ AudiomanagerRoutinginterface *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_set_volumes_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_listvolumes: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetVolumes">ackSetVolumes()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_ack_set_volumes() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_set_volumes_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ GVariant *arg_listvolumes,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "ackSetVolumes",
+ g_variant_new ("(q@a(nqqnq)q)",
+ arg_handle,
+ arg_listvolumes,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_sink_notification_configuration:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSinkNotificationConfiguration">ackSinkNotificationConfiguration()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_ack_sink_notification_configuration_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_ack_sink_notification_configuration_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_ack_sink_notification_configuration (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "ackSinkNotificationConfiguration",
+ g_variant_new ("(qq)",
+ arg_handle,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_sink_notification_configuration_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_ack_sink_notification_configuration().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_ack_sink_notification_configuration().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_sink_notification_configuration_finish (
+ AudiomanagerRoutinginterface *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_sink_notification_configuration_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSinkNotificationConfiguration">ackSinkNotificationConfiguration()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_ack_sink_notification_configuration() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_sink_notification_configuration_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "ackSinkNotificationConfiguration",
+ g_variant_new ("(qq)",
+ arg_handle,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_source_notification_configuration:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSourceNotificationConfiguration">ackSourceNotificationConfiguration()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_ack_source_notification_configuration_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_ack_source_notification_configuration_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routinginterface_call_ack_source_notification_configuration (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "ackSourceNotificationConfiguration",
+ g_variant_new ("(qq)",
+ arg_handle,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_source_notification_configuration_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_ack_source_notification_configuration().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_ack_source_notification_configuration().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_source_notification_configuration_finish (
+ AudiomanagerRoutinginterface *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_ack_source_notification_configuration_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_error: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSourceNotificationConfiguration">ackSourceNotificationConfiguration()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_ack_source_notification_configuration() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_ack_source_notification_configuration_sync (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 arg_handle,
+ guint16 arg_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "ackSourceNotificationConfiguration",
+ g_variant_new ("(qq)",
+ arg_handle,
+ arg_error),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_register_domain:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_domaindata: Argument to pass with the method invocation.
+ * @arg_returnBusname: Argument to pass with the method invocation.
+ * @arg_returnPath: Argument to pass with the method invocation.
+ * @arg_returnInterface: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerDomain">registerDomain()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_call_register_domain_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_call_register_domain_sync() for the synchronous, blocking version of this method.
+ */
+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)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "registerDomain",
+ g_variant_new ("(@(qsssbbn)sss)",
+ arg_domaindata,
+ arg_returnBusname,
+ arg_returnPath,
+ arg_returnInterface),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routinginterface_call_register_domain_finish:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @out_domainid: (out): Return location for return parameter or %NULL to ignore.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_call_register_domain().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routinginterface_call_register_domain().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routinginterface_call_register_domain_finish (
+ AudiomanagerRoutinginterface *proxy,
+ guint16 *out_domainid,
+ guint16 *out_error,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(qq)",
+ out_domainid,
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_call_register_domain_sync:
+ * @proxy: A #AudiomanagerRoutinginterfaceProxy.
+ * @arg_domaindata: Argument to pass with the method invocation.
+ * @arg_returnBusname: Argument to pass with the method invocation.
+ * @arg_returnPath: Argument to pass with the method invocation.
+ * @arg_returnInterface: Argument to pass with the method invocation.
+ * @out_domainid: (out): Return location for return parameter or %NULL to ignore.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerDomain">registerDomain()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_call_register_domain() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+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)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "registerDomain",
+ g_variant_new ("(@(qsssbbn)sss)",
+ arg_domaindata,
+ arg_returnBusname,
+ arg_returnPath,
+ arg_returnInterface),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(qq)",
+ out_domainid,
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routinginterface_complete_ack_connect:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackConnect">ackConnect()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_ack_connect (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routinginterface_complete_ack_disconnect:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackDisconnect">ackDisconnect()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_ack_disconnect (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routinginterface_complete_ack_set_source_state:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetSourceState">ackSetSourceState()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_ack_set_source_state (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routinginterface_complete_ack_set_sink_volume:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetSinkVolume">ackSetSinkVolume()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_ack_set_sink_volume (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routinginterface_complete_register_sink:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @sinkID: Parameter to return.
+ * @error: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerSink">registerSink()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_register_sink (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation,
+ guint16 sinkID,
+ guint16 error)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(qq)",
+ sinkID,
+ error));
+}
+
+/**
+ * audiomanager_routinginterface_complete_deregister_sink:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @error: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.deregisterSink">deregisterSink()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_deregister_sink (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation,
+ gint error)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(i)",
+ error));
+}
+
+/**
+ * audiomanager_routinginterface_complete_register_source:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @sourceID: Parameter to return.
+ * @error: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerSource">registerSource()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_register_source (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation,
+ guint16 sourceID,
+ guint16 error)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(qq)",
+ sourceID,
+ error));
+}
+
+/**
+ * audiomanager_routinginterface_complete_deregister_source:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @error: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.deregisterSource">deregisterSource()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_deregister_source (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation,
+ guint16 error)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(q)",
+ error));
+}
+
+/**
+ * audiomanager_routinginterface_complete_hook_interrupt_status_change:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.hookInterruptStatusChange">hookInterruptStatusChange()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_hook_interrupt_status_change (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routinginterface_complete_hook_source_availablity_status_change:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.hookSourceAvailablityStatusChange">hookSourceAvailablityStatusChange()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_hook_source_availablity_status_change (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routinginterface_complete_confirm_routing_ready:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.confirmRoutingReady">confirmRoutingReady()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_confirm_routing_ready (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routinginterface_complete_confirm_routing_rundown:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.confirmRoutingRundown">confirmRoutingRundown()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_confirm_routing_rundown (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routinginterface_complete_ack_set_volumes:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSetVolumes">ackSetVolumes()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_ack_set_volumes (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routinginterface_complete_ack_sink_notification_configuration:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSinkNotificationConfiguration">ackSinkNotificationConfiguration()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_ack_sink_notification_configuration (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routinginterface_complete_ack_source_notification_configuration:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.ackSourceNotificationConfiguration">ackSourceNotificationConfiguration()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_ack_source_notification_configuration (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routinginterface_complete_register_domain:
+ * @object: A #AudiomanagerRoutinginterface.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @domainid: Parameter to return.
+ * @error: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routinginterface.registerDomain">registerDomain()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routinginterface_complete_register_domain (
+ AudiomanagerRoutinginterface *object,
+ GDBusMethodInvocation *invocation,
+ guint16 domainid,
+ guint16 error)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(qq)",
+ domainid,
+ error));
+}
+
+/* ------------------------------------------------------------------------ */
+
+/**
+ * AudiomanagerRoutinginterfaceProxy:
+ *
+ * The #AudiomanagerRoutinginterfaceProxy structure contains only private data and should only be accessed using the provided API.
+ */
+
+/**
+ * AudiomanagerRoutinginterfaceProxyClass:
+ * @parent_class: The parent class.
+ *
+ * Class structure for #AudiomanagerRoutinginterfaceProxy.
+ */
+
+struct _AudiomanagerRoutinginterfaceProxyPrivate
+{
+ GData *qdata;
+};
+
+static void audiomanager_routinginterface_proxy_iface_init (AudiomanagerRoutinginterfaceIface *iface);
+
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutinginterfaceProxy, audiomanager_routinginterface_proxy, G_TYPE_DBUS_PROXY,
+ G_ADD_PRIVATE (AudiomanagerRoutinginterfaceProxy)
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTINGINTERFACE, audiomanager_routinginterface_proxy_iface_init));
+
+#else
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutinginterfaceProxy, audiomanager_routinginterface_proxy, G_TYPE_DBUS_PROXY,
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTINGINTERFACE, audiomanager_routinginterface_proxy_iface_init));
+
+#endif
+static void
+audiomanager_routinginterface_proxy_finalize (GObject *object)
+{
+ AudiomanagerRoutinginterfaceProxy *proxy = AUDIOMANAGER_ROUTINGINTERFACE_PROXY (object);
+ g_datalist_clear (&proxy->priv->qdata);
+ G_OBJECT_CLASS (audiomanager_routinginterface_proxy_parent_class)->finalize (object);
+}
+
+static void
+audiomanager_routinginterface_proxy_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec G_GNUC_UNUSED)
+{
+}
+
+static void
+audiomanager_routinginterface_proxy_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec G_GNUC_UNUSED)
+{
+}
+
+static void
+audiomanager_routinginterface_proxy_g_signal (GDBusProxy *proxy,
+ const gchar *sender_name G_GNUC_UNUSED,
+ const gchar *signal_name,
+ GVariant *parameters)
+{
+ _ExtendedGDBusSignalInfo *info;
+ GVariantIter iter;
+ GVariant *child;
+ GValue *paramv;
+ guint num_params;
+ guint n;
+ guint signal_id;
+ info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct, signal_name);
+ if (info == NULL)
+ return;
+ num_params = g_variant_n_children (parameters);
+ paramv = g_new0 (GValue, num_params + 1);
+ g_value_init (&paramv[0], TYPE_AUDIOMANAGER_ROUTINGINTERFACE);
+ g_value_set_object (&paramv[0], proxy);
+ g_variant_iter_init (&iter, parameters);
+ n = 1;
+ while ((child = g_variant_iter_next_value (&iter)) != NULL)
+ {
+ _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
+ if (arg_info->use_gvariant)
+ {
+ g_value_init (&paramv[n], G_TYPE_VARIANT);
+ g_value_set_variant (&paramv[n], child);
+ n++;
+ }
+ else
+ g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
+ g_variant_unref (child);
+ }
+ signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_ROUTINGINTERFACE);
+ g_signal_emitv (paramv, signal_id, 0, NULL);
+ for (n = 0; n < num_params + 1; n++)
+ g_value_unset (&paramv[n]);
+ g_free (paramv);
+}
+
+static void
+audiomanager_routinginterface_proxy_g_properties_changed (GDBusProxy *_proxy,
+ GVariant *changed_properties,
+ const gchar *const *invalidated_properties)
+{
+ AudiomanagerRoutinginterfaceProxy *proxy = AUDIOMANAGER_ROUTINGINTERFACE_PROXY (_proxy);
+ guint n;
+ const gchar *key;
+ GVariantIter *iter;
+ _ExtendedGDBusPropertyInfo *info;
+ g_variant_get (changed_properties, "a{sv}", &iter);
+ while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
+ {
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct, key);
+ g_datalist_remove_data (&proxy->priv->qdata, key);
+ if (info != NULL)
+ g_object_notify (G_OBJECT (proxy), info->hyphen_name);
+ }
+ g_variant_iter_free (iter);
+ for (n = 0; invalidated_properties[n] != NULL; n++)
+ {
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct, invalidated_properties[n]);
+ g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
+ if (info != NULL)
+ g_object_notify (G_OBJECT (proxy), info->hyphen_name);
+ }
+}
+
+static void
+audiomanager_routinginterface_proxy_init (AudiomanagerRoutinginterfaceProxy *proxy)
+{
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+ proxy->priv = audiomanager_routinginterface_proxy_get_instance_private (proxy);
+#else
+ proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_AUDIOMANAGER_ROUTINGINTERFACE_PROXY, AudiomanagerRoutinginterfaceProxyPrivate);
+#endif
+
+ g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), audiomanager_routinginterface_interface_info ());
+}
+
+static void
+audiomanager_routinginterface_proxy_class_init (AudiomanagerRoutinginterfaceProxyClass *klass)
+{
+ GObjectClass *gobject_class;
+ GDBusProxyClass *proxy_class;
+
+ gobject_class = G_OBJECT_CLASS (klass);
+ gobject_class->finalize = audiomanager_routinginterface_proxy_finalize;
+ gobject_class->get_property = audiomanager_routinginterface_proxy_get_property;
+ gobject_class->set_property = audiomanager_routinginterface_proxy_set_property;
+
+ proxy_class = G_DBUS_PROXY_CLASS (klass);
+ proxy_class->g_signal = audiomanager_routinginterface_proxy_g_signal;
+ proxy_class->g_properties_changed = audiomanager_routinginterface_proxy_g_properties_changed;
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
+ g_type_class_add_private (klass, sizeof (AudiomanagerRoutinginterfaceProxyPrivate));
+#endif
+}
+
+static void
+audiomanager_routinginterface_proxy_iface_init (AudiomanagerRoutinginterfaceIface *iface)
+{
+}
+
+/**
+ * audiomanager_routinginterface_proxy_new:
+ * @connection: A #GDBusConnection.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routinginterface.top_of_page">org.genivi.audiomanager.routinginterface</link>. See g_dbus_proxy_new() for more details.
+ *
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_proxy_new_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_proxy_new_sync() for the synchronous, blocking version of this constructor.
+ */
+void
+audiomanager_routinginterface_proxy_new (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ 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);
+}
+
+/**
+ * audiomanager_routinginterface_proxy_new_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_proxy_new().
+ * @error: Return location for error or %NULL
+ *
+ * Finishes an operation started with audiomanager_routinginterface_proxy_new().
+ *
+ * Returns: (transfer full) (type AudiomanagerRoutinginterfaceProxy): The constructed proxy object or %NULL if @error is set.
+ */
+AudiomanagerRoutinginterface *
+audiomanager_routinginterface_proxy_new_finish (
+ GAsyncResult *res,
+ GError **error)
+{
+ GObject *ret;
+ GObject *source_object;
+ source_object = g_async_result_get_source_object (res);
+ ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
+ g_object_unref (source_object);
+ if (ret != NULL)
+ return AUDIOMANAGER_ROUTINGINTERFACE (ret);
+ else
+ return NULL;
+}
+
+/**
+ * audiomanager_routinginterface_proxy_new_sync:
+ * @connection: A #GDBusConnection.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL
+ *
+ * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routinginterface.top_of_page">org.genivi.audiomanager.routinginterface</link>. See g_dbus_proxy_new_sync() for more details.
+ *
+ * The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_proxy_new() for the asynchronous version of this constructor.
+ *
+ * Returns: (transfer full) (type AudiomanagerRoutinginterfaceProxy): The constructed proxy object or %NULL if @error is set.
+ */
+AudiomanagerRoutinginterface *
+audiomanager_routinginterface_proxy_new_sync (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GInitable *ret;
+ 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);
+ if (ret != NULL)
+ return AUDIOMANAGER_ROUTINGINTERFACE (ret);
+ else
+ return NULL;
+}
+
+
+/**
+ * audiomanager_routinginterface_proxy_new_for_bus:
+ * @bus_type: A #GBusType.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: A bus name (well-known or unique).
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
+ * @user_data: User data to pass to @callback.
+ *
+ * Like audiomanager_routinginterface_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
+ *
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routinginterface_proxy_new_for_bus_finish() to get the result of the operation.
+ *
+ * See audiomanager_routinginterface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
+ */
+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)
+{
+ 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);
+}
+
+/**
+ * audiomanager_routinginterface_proxy_new_for_bus_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routinginterface_proxy_new_for_bus().
+ * @error: Return location for error or %NULL
+ *
+ * Finishes an operation started with audiomanager_routinginterface_proxy_new_for_bus().
+ *
+ * Returns: (transfer full) (type AudiomanagerRoutinginterfaceProxy): The constructed proxy object or %NULL if @error is set.
+ */
+AudiomanagerRoutinginterface *
+audiomanager_routinginterface_proxy_new_for_bus_finish (
+ GAsyncResult *res,
+ GError **error)
+{
+ GObject *ret;
+ GObject *source_object;
+ source_object = g_async_result_get_source_object (res);
+ ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
+ g_object_unref (source_object);
+ if (ret != NULL)
+ return AUDIOMANAGER_ROUTINGINTERFACE (ret);
+ else
+ return NULL;
+}
+
+/**
+ * audiomanager_routinginterface_proxy_new_for_bus_sync:
+ * @bus_type: A #GBusType.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: A bus name (well-known or unique).
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL
+ *
+ * Like audiomanager_routinginterface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
+ *
+ * The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routinginterface_proxy_new_for_bus() for the asynchronous version of this constructor.
+ *
+ * Returns: (transfer full) (type AudiomanagerRoutinginterfaceProxy): The constructed proxy object or %NULL if @error is set.
+ */
+AudiomanagerRoutinginterface *
+audiomanager_routinginterface_proxy_new_for_bus_sync (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GInitable *ret;
+ 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);
+ if (ret != NULL)
+ return AUDIOMANAGER_ROUTINGINTERFACE (ret);
+ else
+ return NULL;
+}
+
+
+/* ------------------------------------------------------------------------ */
+
+/**
+ * AudiomanagerRoutinginterfaceSkeleton:
+ *
+ * The #AudiomanagerRoutinginterfaceSkeleton structure contains only private data and should only be accessed using the provided API.
+ */
+
+/**
+ * AudiomanagerRoutinginterfaceSkeletonClass:
+ * @parent_class: The parent class.
+ *
+ * Class structure for #AudiomanagerRoutinginterfaceSkeleton.
+ */
+
+struct _AudiomanagerRoutinginterfaceSkeletonPrivate
+{
+ GValue *properties;
+ GList *changed_properties;
+ GSource *changed_properties_idle_source;
+ GMainContext *context;
+ GMutex lock;
+};
+
+static void
+_audiomanager_routinginterface_skeleton_handle_method_call (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name,
+ const gchar *method_name,
+ GVariant *parameters,
+ GDBusMethodInvocation *invocation,
+ gpointer user_data)
+{
+ AudiomanagerRoutinginterfaceSkeleton *skeleton = AUDIOMANAGER_ROUTINGINTERFACE_SKELETON (user_data);
+ _ExtendedGDBusMethodInfo *info;
+ GVariantIter iter;
+ GVariant *child;
+ GValue *paramv;
+ guint num_params;
+ guint num_extra;
+ guint n;
+ guint signal_id;
+ GValue return_value = G_VALUE_INIT;
+ info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
+ g_assert (info != NULL);
+ num_params = g_variant_n_children (parameters);
+ num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
+ n = 0;
+ g_value_init (&paramv[n], TYPE_AUDIOMANAGER_ROUTINGINTERFACE);
+ g_value_set_object (&paramv[n++], skeleton);
+ g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
+ g_value_set_object (&paramv[n++], invocation);
+ if (info->pass_fdlist)
+ {
+#ifdef G_OS_UNIX
+ g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
+ g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
+#else
+ g_assert_not_reached ();
+#endif
+ }
+ g_variant_iter_init (&iter, parameters);
+ while ((child = g_variant_iter_next_value (&iter)) != NULL)
+ {
+ _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
+ if (arg_info->use_gvariant)
+ {
+ g_value_init (&paramv[n], G_TYPE_VARIANT);
+ g_value_set_variant (&paramv[n], child);
+ n++;
+ }
+ else
+ g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
+ g_variant_unref (child);
+ }
+ signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_ROUTINGINTERFACE);
+ g_value_init (&return_value, G_TYPE_BOOLEAN);
+ g_signal_emitv (paramv, signal_id, 0, &return_value);
+ if (!g_value_get_boolean (&return_value))
+ 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);
+ g_value_unset (&return_value);
+ for (n = 0; n < num_params + num_extra; n++)
+ g_value_unset (&paramv[n]);
+ g_free (paramv);
+}
+
+static GVariant *
+_audiomanager_routinginterface_skeleton_handle_get_property (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name G_GNUC_UNUSED,
+ const gchar *property_name,
+ GError **error,
+ gpointer user_data)
+{
+ AudiomanagerRoutinginterfaceSkeleton *skeleton = AUDIOMANAGER_ROUTINGINTERFACE_SKELETON (user_data);
+ GValue value = G_VALUE_INIT;
+ GParamSpec *pspec;
+ _ExtendedGDBusPropertyInfo *info;
+ GVariant *ret;
+ ret = NULL;
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct, property_name);
+ g_assert (info != NULL);
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
+ if (pspec == NULL)
+ {
+ g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
+ }
+ else
+ {
+ g_value_init (&value, pspec->value_type);
+ g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
+ ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
+ g_value_unset (&value);
+ }
+ return ret;
+}
+
+static gboolean
+_audiomanager_routinginterface_skeleton_handle_set_property (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name G_GNUC_UNUSED,
+ const gchar *property_name,
+ GVariant *variant,
+ GError **error,
+ gpointer user_data)
+{
+ AudiomanagerRoutinginterfaceSkeleton *skeleton = AUDIOMANAGER_ROUTINGINTERFACE_SKELETON (user_data);
+ GValue value = G_VALUE_INIT;
+ GParamSpec *pspec;
+ _ExtendedGDBusPropertyInfo *info;
+ gboolean ret;
+ ret = FALSE;
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routinginterface_interface_info.parent_struct, property_name);
+ g_assert (info != NULL);
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
+ if (pspec == NULL)
+ {
+ g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
+ }
+ else
+ {
+ if (info->use_gvariant)
+ g_value_set_variant (&value, variant);
+ else
+ g_dbus_gvariant_to_gvalue (variant, &value);
+ g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
+ g_value_unset (&value);
+ ret = TRUE;
+ }
+ return ret;
+}
+
+static const GDBusInterfaceVTable _audiomanager_routinginterface_skeleton_vtable =
+{
+ _audiomanager_routinginterface_skeleton_handle_method_call,
+ _audiomanager_routinginterface_skeleton_handle_get_property,
+ _audiomanager_routinginterface_skeleton_handle_set_property,
+ {NULL}
+};
+
+static GDBusInterfaceInfo *
+audiomanager_routinginterface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
+{
+ return audiomanager_routinginterface_interface_info ();
+}
+
+static GDBusInterfaceVTable *
+audiomanager_routinginterface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
+{
+ return (GDBusInterfaceVTable *) &_audiomanager_routinginterface_skeleton_vtable;
+}
+
+static GVariant *
+audiomanager_routinginterface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
+{
+ AudiomanagerRoutinginterfaceSkeleton *skeleton = AUDIOMANAGER_ROUTINGINTERFACE_SKELETON (_skeleton);
+
+ GVariantBuilder builder;
+ guint n;
+ g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
+ if (_audiomanager_routinginterface_interface_info.parent_struct.properties == NULL)
+ goto out;
+ for (n = 0; _audiomanager_routinginterface_interface_info.parent_struct.properties[n] != NULL; n++)
+ {
+ GDBusPropertyInfo *info = _audiomanager_routinginterface_interface_info.parent_struct.properties[n];
+ if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
+ {
+ GVariant *value;
+ 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);
+ if (value != NULL)
+ {
+ g_variant_take_ref (value);
+ g_variant_builder_add (&builder, "{sv}", info->name, value);
+ g_variant_unref (value);
+ }
+ }
+ }
+out:
+ return g_variant_builder_end (&builder);
+}
+
+static void
+audiomanager_routinginterface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
+{
+}
+
+static void
+_audiomanager_routinginterface_on_signal_set_routing_ready (
+ AudiomanagerRoutinginterface *object)
+{
+ AudiomanagerRoutinginterfaceSkeleton *skeleton = AUDIOMANAGER_ROUTINGINTERFACE_SKELETON (object);
+
+ GList *connections, *l;
+ GVariant *signal_variant;
+ connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
+
+ signal_variant = g_variant_ref_sink (g_variant_new ("()"));
+ for (l = connections; l != NULL; l = l->next)
+ {
+ GDBusConnection *connection = l->data;
+ g_dbus_connection_emit_signal (connection,
+ NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.routinginterface", "setRoutingReady",
+ signal_variant, NULL);
+ }
+ g_variant_unref (signal_variant);
+ g_list_free_full (connections, g_object_unref);
+}
+
+static void
+_audiomanager_routinginterface_on_signal_set_routing_rundown (
+ AudiomanagerRoutinginterface *object)
+{
+ AudiomanagerRoutinginterfaceSkeleton *skeleton = AUDIOMANAGER_ROUTINGINTERFACE_SKELETON (object);
+
+ GList *connections, *l;
+ GVariant *signal_variant;
+ connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
+
+ signal_variant = g_variant_ref_sink (g_variant_new ("()"));
+ for (l = connections; l != NULL; l = l->next)
+ {
+ GDBusConnection *connection = l->data;
+ g_dbus_connection_emit_signal (connection,
+ NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.genivi.audiomanager.routinginterface", "setRoutingRundown",
+ signal_variant, NULL);
+ }
+ g_variant_unref (signal_variant);
+ g_list_free_full (connections, g_object_unref);
+}
+
+static void audiomanager_routinginterface_skeleton_iface_init (AudiomanagerRoutinginterfaceIface *iface);
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutinginterfaceSkeleton, audiomanager_routinginterface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
+ G_ADD_PRIVATE (AudiomanagerRoutinginterfaceSkeleton)
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTINGINTERFACE, audiomanager_routinginterface_skeleton_iface_init));
+
+#else
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutinginterfaceSkeleton, audiomanager_routinginterface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTINGINTERFACE, audiomanager_routinginterface_skeleton_iface_init));
+
+#endif
+static void
+audiomanager_routinginterface_skeleton_finalize (GObject *object)
+{
+ AudiomanagerRoutinginterfaceSkeleton *skeleton = AUDIOMANAGER_ROUTINGINTERFACE_SKELETON (object);
+ g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
+ if (skeleton->priv->changed_properties_idle_source != NULL)
+ g_source_destroy (skeleton->priv->changed_properties_idle_source);
+ g_main_context_unref (skeleton->priv->context);
+ g_mutex_clear (&skeleton->priv->lock);
+ G_OBJECT_CLASS (audiomanager_routinginterface_skeleton_parent_class)->finalize (object);
+}
+
+static void
+audiomanager_routinginterface_skeleton_init (AudiomanagerRoutinginterfaceSkeleton *skeleton)
+{
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+ skeleton->priv = audiomanager_routinginterface_skeleton_get_instance_private (skeleton);
+#else
+ skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_AUDIOMANAGER_ROUTINGINTERFACE_SKELETON, AudiomanagerRoutinginterfaceSkeletonPrivate);
+#endif
+
+ g_mutex_init (&skeleton->priv->lock);
+ skeleton->priv->context = g_main_context_ref_thread_default ();
+}
+
+static void
+audiomanager_routinginterface_skeleton_class_init (AudiomanagerRoutinginterfaceSkeletonClass *klass)
+{
+ GObjectClass *gobject_class;
+ GDBusInterfaceSkeletonClass *skeleton_class;
+
+ gobject_class = G_OBJECT_CLASS (klass);
+ gobject_class->finalize = audiomanager_routinginterface_skeleton_finalize;
+
+ skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
+ skeleton_class->get_info = audiomanager_routinginterface_skeleton_dbus_interface_get_info;
+ skeleton_class->get_properties = audiomanager_routinginterface_skeleton_dbus_interface_get_properties;
+ skeleton_class->flush = audiomanager_routinginterface_skeleton_dbus_interface_flush;
+ skeleton_class->get_vtable = audiomanager_routinginterface_skeleton_dbus_interface_get_vtable;
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
+ g_type_class_add_private (klass, sizeof (AudiomanagerRoutinginterfaceSkeletonPrivate));
+#endif
+}
+
+static void
+audiomanager_routinginterface_skeleton_iface_init (AudiomanagerRoutinginterfaceIface *iface)
+{
+ iface->set_routing_ready = _audiomanager_routinginterface_on_signal_set_routing_ready;
+ iface->set_routing_rundown = _audiomanager_routinginterface_on_signal_set_routing_rundown;
+}
+
+/**
+ * audiomanager_routinginterface_skeleton_new:
+ *
+ * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routinginterface.top_of_page">org.genivi.audiomanager.routinginterface</link>.
+ *
+ * Returns: (transfer full) (type AudiomanagerRoutinginterfaceSkeleton): The skeleton object.
+ */
+AudiomanagerRoutinginterface *
+audiomanager_routinginterface_skeleton_new (void)
+{
+ return AUDIOMANAGER_ROUTINGINTERFACE (g_object_new (TYPE_AUDIOMANAGER_ROUTINGINTERFACE_SKELETON, NULL));
+}
+
+/* ------------------------------------------------------------------------
+ * Code for interface org.genivi.audiomanager.routing.soundmanager
+ * ------------------------------------------------------------------------
+ */
+
+/**
+ * SECTION:AudiomanagerRoutingSoundmanager
+ * @title: AudiomanagerRoutingSoundmanager
+ * @short_description: Generated C code for the org.genivi.audiomanager.routing.soundmanager D-Bus interface
+ *
+ * This section contains code for working with the <link linkend="gdbus-interface-org-genivi-audiomanager-routing-soundmanager.top_of_page">org.genivi.audiomanager.routing.soundmanager</link> D-Bus interface in C.
+ */
+
+/* ---- Introspection data for org.genivi.audiomanager.routing.soundmanager ---- */
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_abort_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_abort_IN_ARG_pointers[] =
+{
+ &_audiomanager_routing_soundmanager_method_info_async_abort_IN_ARG_handle,
+ NULL
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_abort_OUT_ARG_error =
+{
+ {
+ -1,
+ (gchar *) "error",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_abort_OUT_ARG_pointers[] =
+{
+ &_audiomanager_routing_soundmanager_method_info_async_abort_OUT_ARG_error,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routing_soundmanager_method_info_async_abort =
+{
+ {
+ -1,
+ (gchar *) "asyncAbort",
+ (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_abort_IN_ARG_pointers,
+ (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_abort_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-async-abort",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_connectionID =
+{
+ {
+ -1,
+ (gchar *) "connectionID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_sourceID =
+{
+ {
+ -1,
+ (gchar *) "sourceID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_sinkID =
+{
+ {
+ -1,
+ (gchar *) "sinkID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_connectionFormat =
+{
+ {
+ -1,
+ (gchar *) "connectionFormat",
+ (gchar *) "i",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_pointers[] =
+{
+ &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_handle,
+ &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_connectionID,
+ &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_sourceID,
+ &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_sinkID,
+ &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_connectionFormat,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routing_soundmanager_method_info_async_connect =
+{
+ {
+ -1,
+ (gchar *) "asyncConnect",
+ (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_connect_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-async-connect",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_connectionID =
+{
+ {
+ -1,
+ (gchar *) "connectionID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_pointers[] =
+{
+ &_audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_handle,
+ &_audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_connectionID,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routing_soundmanager_method_info_async_disconnect =
+{
+ {
+ -1,
+ (gchar *) "asyncDisconnect",
+ (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_disconnect_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-async-disconnect",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_sinkID =
+{
+ {
+ -1,
+ (gchar *) "sinkID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_volume =
+{
+ {
+ -1,
+ (gchar *) "volume",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_ramp =
+{
+ {
+ -1,
+ (gchar *) "ramp",
+ (gchar *) "n",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_time =
+{
+ {
+ -1,
+ (gchar *) "time",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_pointers[] =
+{
+ &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_handle,
+ &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_sinkID,
+ &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_volume,
+ &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_ramp,
+ &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_time,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routing_soundmanager_method_info_async_set_sink_volume =
+{
+ {
+ -1,
+ (gchar *) "asyncSetSinkVolume",
+ (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-async-set-sink-volume",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_handle =
+{
+ {
+ -1,
+ (gchar *) "handle",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_sourceID =
+{
+ {
+ -1,
+ (gchar *) "sourceID",
+ (gchar *) "q",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_sourceState =
+{
+ {
+ -1,
+ (gchar *) "sourceState",
+ (gchar *) "i",
+ NULL
+ },
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo * const _audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_pointers[] =
+{
+ &_audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_handle,
+ &_audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_sourceID,
+ &_audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_sourceState,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _audiomanager_routing_soundmanager_method_info_async_set_source_state =
+{
+ {
+ -1,
+ (gchar *) "asyncSetSourceState",
+ (GDBusArgInfo **) &_audiomanager_routing_soundmanager_method_info_async_set_source_state_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-async-set-source-state",
+ FALSE
+};
+
+static const _ExtendedGDBusMethodInfo * const _audiomanager_routing_soundmanager_method_info_pointers[] =
+{
+ &_audiomanager_routing_soundmanager_method_info_async_abort,
+ &_audiomanager_routing_soundmanager_method_info_async_connect,
+ &_audiomanager_routing_soundmanager_method_info_async_disconnect,
+ &_audiomanager_routing_soundmanager_method_info_async_set_sink_volume,
+ &_audiomanager_routing_soundmanager_method_info_async_set_source_state,
+ NULL
+};
+
+static const _ExtendedGDBusInterfaceInfo _audiomanager_routing_soundmanager_interface_info =
+{
+ {
+ -1,
+ (gchar *) "org.genivi.audiomanager.routing.soundmanager",
+ (GDBusMethodInfo **) &_audiomanager_routing_soundmanager_method_info_pointers,
+ NULL,
+ NULL,
+ NULL
+ },
+ "audiomanager-routing-soundmanager",
+};
+
+
+/**
+ * audiomanager_routing_soundmanager_interface_info:
+ *
+ * Gets a machine-readable description of the <link linkend="gdbus-interface-org-genivi-audiomanager-routing-soundmanager.top_of_page">org.genivi.audiomanager.routing.soundmanager</link> D-Bus interface.
+ *
+ * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
+ */
+GDBusInterfaceInfo *
+audiomanager_routing_soundmanager_interface_info (void)
+{
+ return (GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct;
+}
+
+/**
+ * audiomanager_routing_soundmanager_override_properties:
+ * @klass: The class structure for a #GObject<!-- -->-derived class.
+ * @property_id_begin: The property id to assign to the first overridden property.
+ *
+ * Overrides all #GObject properties in the #AudiomanagerRoutingSoundmanager interface for a concrete class.
+ * The properties are overridden in the order they are defined.
+ *
+ * Returns: The last property id.
+ */
+guint
+audiomanager_routing_soundmanager_override_properties (GObjectClass *klass, guint property_id_begin)
+{
+ return property_id_begin - 1;
+}
+
+
+
+/**
+ * AudiomanagerRoutingSoundmanager:
+ *
+ * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routing-soundmanager.top_of_page">org.genivi.audiomanager.routing.soundmanager</link>.
+ */
+
+/**
+ * AudiomanagerRoutingSoundmanagerIface:
+ * @parent_iface: The parent interface.
+ * @handle_async_abort: Handler for the #AudiomanagerRoutingSoundmanager::handle-async-abort signal.
+ * @handle_async_connect: Handler for the #AudiomanagerRoutingSoundmanager::handle-async-connect signal.
+ * @handle_async_disconnect: Handler for the #AudiomanagerRoutingSoundmanager::handle-async-disconnect signal.
+ * @handle_async_set_sink_volume: Handler for the #AudiomanagerRoutingSoundmanager::handle-async-set-sink-volume signal.
+ * @handle_async_set_source_state: Handler for the #AudiomanagerRoutingSoundmanager::handle-async-set-source-state signal.
+ *
+ * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routing-soundmanager.top_of_page">org.genivi.audiomanager.routing.soundmanager</link>.
+ */
+
+typedef AudiomanagerRoutingSoundmanagerIface AudiomanagerRoutingSoundmanagerInterface;
+G_DEFINE_INTERFACE (AudiomanagerRoutingSoundmanager, audiomanager_routing_soundmanager, G_TYPE_OBJECT);
+
+static void
+audiomanager_routing_soundmanager_default_init (AudiomanagerRoutingSoundmanagerIface *iface)
+{
+ /* GObject signals for incoming D-Bus method calls: */
+ /**
+ * AudiomanagerRoutingSoundmanager::handle-async-abort:
+ * @object: A #AudiomanagerRoutingSoundmanager.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncAbort">asyncAbort()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routing_soundmanager_complete_async_abort() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-async-abort",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutingSoundmanagerIface, handle_async_abort),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 2,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutingSoundmanager::handle-async-connect:
+ * @object: A #AudiomanagerRoutingSoundmanager.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ * @arg_connectionID: Argument passed by remote caller.
+ * @arg_sourceID: Argument passed by remote caller.
+ * @arg_sinkID: Argument passed by remote caller.
+ * @arg_connectionFormat: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncConnect">asyncConnect()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routing_soundmanager_complete_async_connect() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-async-connect",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutingSoundmanagerIface, handle_async_connect),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 6,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INT);
+
+ /**
+ * AudiomanagerRoutingSoundmanager::handle-async-disconnect:
+ * @object: A #AudiomanagerRoutingSoundmanager.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ * @arg_connectionID: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncDisconnect">asyncDisconnect()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routing_soundmanager_complete_async_disconnect() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-async-disconnect",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutingSoundmanagerIface, handle_async_disconnect),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 3,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutingSoundmanager::handle-async-set-sink-volume:
+ * @object: A #AudiomanagerRoutingSoundmanager.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ * @arg_sinkID: Argument passed by remote caller.
+ * @arg_volume: Argument passed by remote caller.
+ * @arg_ramp: Argument passed by remote caller.
+ * @arg_time: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncSetSinkVolume">asyncSetSinkVolume()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routing_soundmanager_complete_async_set_sink_volume() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-async-set-sink-volume",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutingSoundmanagerIface, handle_async_set_sink_volume),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 6,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INT, G_TYPE_INT, G_TYPE_UINT);
+
+ /**
+ * AudiomanagerRoutingSoundmanager::handle-async-set-source-state:
+ * @object: A #AudiomanagerRoutingSoundmanager.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_handle: Argument passed by remote caller.
+ * @arg_sourceID: Argument passed by remote caller.
+ * @arg_sourceState: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncSetSourceState">asyncSetSourceState()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call audiomanager_routing_soundmanager_complete_async_set_source_state() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-async-set-source-state",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (AudiomanagerRoutingSoundmanagerIface, handle_async_set_source_state),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 4,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INT);
+
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_abort:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncAbort">asyncAbort()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routing_soundmanager_call_async_abort_finish() to get the result of the operation.
+ *
+ * See audiomanager_routing_soundmanager_call_async_abort_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routing_soundmanager_call_async_abort (
+ AudiomanagerRoutingSoundmanager *proxy,
+ guint16 arg_handle,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "asyncAbort",
+ g_variant_new ("(q)",
+ arg_handle),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_abort_finish:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routing_soundmanager_call_async_abort().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routing_soundmanager_call_async_abort().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routing_soundmanager_call_async_abort_finish (
+ AudiomanagerRoutingSoundmanager *proxy,
+ gint16 *out_error,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n)",
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_abort_sync:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @out_error: (out): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncAbort">asyncAbort()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routing_soundmanager_call_async_abort() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routing_soundmanager_call_async_abort_sync (
+ AudiomanagerRoutingSoundmanager *proxy,
+ guint16 arg_handle,
+ gint16 *out_error,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "asyncAbort",
+ g_variant_new ("(q)",
+ arg_handle),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(n)",
+ out_error);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_connect:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_connectionID: Argument to pass with the method invocation.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @arg_connectionFormat: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncConnect">asyncConnect()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routing_soundmanager_call_async_connect_finish() to get the result of the operation.
+ *
+ * See audiomanager_routing_soundmanager_call_async_connect_sync() for the synchronous, blocking version of this method.
+ */
+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)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "asyncConnect",
+ g_variant_new ("(qqqqi)",
+ arg_handle,
+ arg_connectionID,
+ arg_sourceID,
+ arg_sinkID,
+ arg_connectionFormat),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_connect_finish:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routing_soundmanager_call_async_connect().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routing_soundmanager_call_async_connect().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routing_soundmanager_call_async_connect_finish (
+ AudiomanagerRoutingSoundmanager *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_connect_sync:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_connectionID: Argument to pass with the method invocation.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @arg_connectionFormat: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncConnect">asyncConnect()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routing_soundmanager_call_async_connect() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+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)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "asyncConnect",
+ g_variant_new ("(qqqqi)",
+ arg_handle,
+ arg_connectionID,
+ arg_sourceID,
+ arg_sinkID,
+ arg_connectionFormat),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_disconnect:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_connectionID: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncDisconnect">asyncDisconnect()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routing_soundmanager_call_async_disconnect_finish() to get the result of the operation.
+ *
+ * See audiomanager_routing_soundmanager_call_async_disconnect_sync() for the synchronous, blocking version of this method.
+ */
+void
+audiomanager_routing_soundmanager_call_async_disconnect (
+ AudiomanagerRoutingSoundmanager *proxy,
+ guint16 arg_handle,
+ guint16 arg_connectionID,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "asyncDisconnect",
+ g_variant_new ("(qq)",
+ arg_handle,
+ arg_connectionID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_disconnect_finish:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routing_soundmanager_call_async_disconnect().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routing_soundmanager_call_async_disconnect().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routing_soundmanager_call_async_disconnect_finish (
+ AudiomanagerRoutingSoundmanager *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_disconnect_sync:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_connectionID: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncDisconnect">asyncDisconnect()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routing_soundmanager_call_async_disconnect() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routing_soundmanager_call_async_disconnect_sync (
+ AudiomanagerRoutingSoundmanager *proxy,
+ guint16 arg_handle,
+ guint16 arg_connectionID,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "asyncDisconnect",
+ g_variant_new ("(qq)",
+ arg_handle,
+ arg_connectionID),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_set_sink_volume:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @arg_volume: Argument to pass with the method invocation.
+ * @arg_ramp: Argument to pass with the method invocation.
+ * @arg_time: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncSetSinkVolume">asyncSetSinkVolume()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routing_soundmanager_call_async_set_sink_volume_finish() to get the result of the operation.
+ *
+ * See audiomanager_routing_soundmanager_call_async_set_sink_volume_sync() for the synchronous, blocking version of this method.
+ */
+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)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "asyncSetSinkVolume",
+ g_variant_new ("(qqnnq)",
+ arg_handle,
+ arg_sinkID,
+ arg_volume,
+ arg_ramp,
+ arg_time),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_set_sink_volume_finish:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routing_soundmanager_call_async_set_sink_volume().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routing_soundmanager_call_async_set_sink_volume().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routing_soundmanager_call_async_set_sink_volume_finish (
+ AudiomanagerRoutingSoundmanager *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_set_sink_volume_sync:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_sinkID: Argument to pass with the method invocation.
+ * @arg_volume: Argument to pass with the method invocation.
+ * @arg_ramp: Argument to pass with the method invocation.
+ * @arg_time: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncSetSinkVolume">asyncSetSinkVolume()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routing_soundmanager_call_async_set_sink_volume() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+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)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "asyncSetSinkVolume",
+ g_variant_new ("(qqnnq)",
+ arg_handle,
+ arg_sinkID,
+ arg_volume,
+ arg_ramp,
+ arg_time),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_set_source_state:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @arg_sourceState: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncSetSourceState">asyncSetSourceState()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routing_soundmanager_call_async_set_source_state_finish() to get the result of the operation.
+ *
+ * See audiomanager_routing_soundmanager_call_async_set_source_state_sync() for the synchronous, blocking version of this method.
+ */
+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)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "asyncSetSourceState",
+ g_variant_new ("(qqi)",
+ arg_handle,
+ arg_sourceID,
+ arg_sourceState),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_set_source_state_finish:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routing_soundmanager_call_async_set_source_state().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with audiomanager_routing_soundmanager_call_async_set_source_state().
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+gboolean
+audiomanager_routing_soundmanager_call_async_set_source_state_finish (
+ AudiomanagerRoutingSoundmanager *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_call_async_set_source_state_sync:
+ * @proxy: A #AudiomanagerRoutingSoundmanagerProxy.
+ * @arg_handle: Argument to pass with the method invocation.
+ * @arg_sourceID: Argument to pass with the method invocation.
+ * @arg_sourceState: Argument to pass with the method invocation.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncSetSourceState">asyncSetSourceState()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routing_soundmanager_call_async_set_source_state() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
+ */
+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)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "asyncSetSourceState",
+ g_variant_new ("(qqi)",
+ arg_handle,
+ arg_sourceID,
+ arg_sourceState),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_complete_async_abort:
+ * @object: A #AudiomanagerRoutingSoundmanager.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @error: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncAbort">asyncAbort()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routing_soundmanager_complete_async_abort (
+ AudiomanagerRoutingSoundmanager *object,
+ GDBusMethodInvocation *invocation,
+ gint16 error)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(n)",
+ error));
+}
+
+/**
+ * audiomanager_routing_soundmanager_complete_async_connect:
+ * @object: A #AudiomanagerRoutingSoundmanager.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncConnect">asyncConnect()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routing_soundmanager_complete_async_connect (
+ AudiomanagerRoutingSoundmanager *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routing_soundmanager_complete_async_disconnect:
+ * @object: A #AudiomanagerRoutingSoundmanager.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncDisconnect">asyncDisconnect()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routing_soundmanager_complete_async_disconnect (
+ AudiomanagerRoutingSoundmanager *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routing_soundmanager_complete_async_set_sink_volume:
+ * @object: A #AudiomanagerRoutingSoundmanager.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncSetSinkVolume">asyncSetSinkVolume()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routing_soundmanager_complete_async_set_sink_volume (
+ AudiomanagerRoutingSoundmanager *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * audiomanager_routing_soundmanager_complete_async_set_source_state:
+ * @object: A #AudiomanagerRoutingSoundmanager.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-genivi-audiomanager-routing-soundmanager.asyncSetSourceState">asyncSetSourceState()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+audiomanager_routing_soundmanager_complete_async_set_source_state (
+ AudiomanagerRoutingSoundmanager *object,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/* ------------------------------------------------------------------------ */
+
+/**
+ * AudiomanagerRoutingSoundmanagerProxy:
+ *
+ * The #AudiomanagerRoutingSoundmanagerProxy structure contains only private data and should only be accessed using the provided API.
+ */
+
+/**
+ * AudiomanagerRoutingSoundmanagerProxyClass:
+ * @parent_class: The parent class.
+ *
+ * Class structure for #AudiomanagerRoutingSoundmanagerProxy.
+ */
+
+struct _AudiomanagerRoutingSoundmanagerProxyPrivate
+{
+ GData *qdata;
+};
+
+static void audiomanager_routing_soundmanager_proxy_iface_init (AudiomanagerRoutingSoundmanagerIface *iface);
+
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutingSoundmanagerProxy, audiomanager_routing_soundmanager_proxy, G_TYPE_DBUS_PROXY,
+ G_ADD_PRIVATE (AudiomanagerRoutingSoundmanagerProxy)
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER, audiomanager_routing_soundmanager_proxy_iface_init));
+
+#else
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutingSoundmanagerProxy, audiomanager_routing_soundmanager_proxy, G_TYPE_DBUS_PROXY,
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER, audiomanager_routing_soundmanager_proxy_iface_init));
+
+#endif
+static void
+audiomanager_routing_soundmanager_proxy_finalize (GObject *object)
+{
+ AudiomanagerRoutingSoundmanagerProxy *proxy = AUDIOMANAGER_ROUTING_SOUNDMANAGER_PROXY (object);
+ g_datalist_clear (&proxy->priv->qdata);
+ G_OBJECT_CLASS (audiomanager_routing_soundmanager_proxy_parent_class)->finalize (object);
+}
+
+static void
+audiomanager_routing_soundmanager_proxy_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec G_GNUC_UNUSED)
+{
+}
+
+static void
+audiomanager_routing_soundmanager_proxy_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec G_GNUC_UNUSED)
+{
+}
+
+static void
+audiomanager_routing_soundmanager_proxy_g_signal (GDBusProxy *proxy,
+ const gchar *sender_name G_GNUC_UNUSED,
+ const gchar *signal_name,
+ GVariant *parameters)
+{
+ _ExtendedGDBusSignalInfo *info;
+ GVariantIter iter;
+ GVariant *child;
+ GValue *paramv;
+ guint num_params;
+ guint n;
+ guint signal_id;
+ info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct, signal_name);
+ if (info == NULL)
+ return;
+ num_params = g_variant_n_children (parameters);
+ paramv = g_new0 (GValue, num_params + 1);
+ g_value_init (&paramv[0], TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER);
+ g_value_set_object (&paramv[0], proxy);
+ g_variant_iter_init (&iter, parameters);
+ n = 1;
+ while ((child = g_variant_iter_next_value (&iter)) != NULL)
+ {
+ _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
+ if (arg_info->use_gvariant)
+ {
+ g_value_init (&paramv[n], G_TYPE_VARIANT);
+ g_value_set_variant (&paramv[n], child);
+ n++;
+ }
+ else
+ g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
+ g_variant_unref (child);
+ }
+ signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER);
+ g_signal_emitv (paramv, signal_id, 0, NULL);
+ for (n = 0; n < num_params + 1; n++)
+ g_value_unset (&paramv[n]);
+ g_free (paramv);
+}
+
+static void
+audiomanager_routing_soundmanager_proxy_g_properties_changed (GDBusProxy *_proxy,
+ GVariant *changed_properties,
+ const gchar *const *invalidated_properties)
+{
+ AudiomanagerRoutingSoundmanagerProxy *proxy = AUDIOMANAGER_ROUTING_SOUNDMANAGER_PROXY (_proxy);
+ guint n;
+ const gchar *key;
+ GVariantIter *iter;
+ _ExtendedGDBusPropertyInfo *info;
+ g_variant_get (changed_properties, "a{sv}", &iter);
+ while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
+ {
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct, key);
+ g_datalist_remove_data (&proxy->priv->qdata, key);
+ if (info != NULL)
+ g_object_notify (G_OBJECT (proxy), info->hyphen_name);
+ }
+ g_variant_iter_free (iter);
+ for (n = 0; invalidated_properties[n] != NULL; n++)
+ {
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct, invalidated_properties[n]);
+ g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
+ if (info != NULL)
+ g_object_notify (G_OBJECT (proxy), info->hyphen_name);
+ }
+}
+
+static void
+audiomanager_routing_soundmanager_proxy_init (AudiomanagerRoutingSoundmanagerProxy *proxy)
+{
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+ proxy->priv = audiomanager_routing_soundmanager_proxy_get_instance_private (proxy);
+#else
+ proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER_PROXY, AudiomanagerRoutingSoundmanagerProxyPrivate);
+#endif
+
+ g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), audiomanager_routing_soundmanager_interface_info ());
+}
+
+static void
+audiomanager_routing_soundmanager_proxy_class_init (AudiomanagerRoutingSoundmanagerProxyClass *klass)
+{
+ GObjectClass *gobject_class;
+ GDBusProxyClass *proxy_class;
+
+ gobject_class = G_OBJECT_CLASS (klass);
+ gobject_class->finalize = audiomanager_routing_soundmanager_proxy_finalize;
+ gobject_class->get_property = audiomanager_routing_soundmanager_proxy_get_property;
+ gobject_class->set_property = audiomanager_routing_soundmanager_proxy_set_property;
+
+ proxy_class = G_DBUS_PROXY_CLASS (klass);
+ proxy_class->g_signal = audiomanager_routing_soundmanager_proxy_g_signal;
+ proxy_class->g_properties_changed = audiomanager_routing_soundmanager_proxy_g_properties_changed;
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
+ g_type_class_add_private (klass, sizeof (AudiomanagerRoutingSoundmanagerProxyPrivate));
+#endif
+}
+
+static void
+audiomanager_routing_soundmanager_proxy_iface_init (AudiomanagerRoutingSoundmanagerIface *iface)
+{
+}
+
+/**
+ * audiomanager_routing_soundmanager_proxy_new:
+ * @connection: A #GDBusConnection.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routing-soundmanager.top_of_page">org.genivi.audiomanager.routing.soundmanager</link>. See g_dbus_proxy_new() for more details.
+ *
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routing_soundmanager_proxy_new_finish() to get the result of the operation.
+ *
+ * See audiomanager_routing_soundmanager_proxy_new_sync() for the synchronous, blocking version of this constructor.
+ */
+void
+audiomanager_routing_soundmanager_proxy_new (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ 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);
+}
+
+/**
+ * audiomanager_routing_soundmanager_proxy_new_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routing_soundmanager_proxy_new().
+ * @error: Return location for error or %NULL
+ *
+ * Finishes an operation started with audiomanager_routing_soundmanager_proxy_new().
+ *
+ * Returns: (transfer full) (type AudiomanagerRoutingSoundmanagerProxy): The constructed proxy object or %NULL if @error is set.
+ */
+AudiomanagerRoutingSoundmanager *
+audiomanager_routing_soundmanager_proxy_new_finish (
+ GAsyncResult *res,
+ GError **error)
+{
+ GObject *ret;
+ GObject *source_object;
+ source_object = g_async_result_get_source_object (res);
+ ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
+ g_object_unref (source_object);
+ if (ret != NULL)
+ return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
+ else
+ return NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_proxy_new_sync:
+ * @connection: A #GDBusConnection.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL
+ *
+ * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routing-soundmanager.top_of_page">org.genivi.audiomanager.routing.soundmanager</link>. See g_dbus_proxy_new_sync() for more details.
+ *
+ * The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routing_soundmanager_proxy_new() for the asynchronous version of this constructor.
+ *
+ * Returns: (transfer full) (type AudiomanagerRoutingSoundmanagerProxy): The constructed proxy object or %NULL if @error is set.
+ */
+AudiomanagerRoutingSoundmanager *
+audiomanager_routing_soundmanager_proxy_new_sync (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GInitable *ret;
+ 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);
+ if (ret != NULL)
+ return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
+ else
+ return NULL;
+}
+
+
+/**
+ * audiomanager_routing_soundmanager_proxy_new_for_bus:
+ * @bus_type: A #GBusType.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: A bus name (well-known or unique).
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
+ * @user_data: User data to pass to @callback.
+ *
+ * Like audiomanager_routing_soundmanager_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
+ *
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call audiomanager_routing_soundmanager_proxy_new_for_bus_finish() to get the result of the operation.
+ *
+ * See audiomanager_routing_soundmanager_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
+ */
+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)
+{
+ 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);
+}
+
+/**
+ * audiomanager_routing_soundmanager_proxy_new_for_bus_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to audiomanager_routing_soundmanager_proxy_new_for_bus().
+ * @error: Return location for error or %NULL
+ *
+ * Finishes an operation started with audiomanager_routing_soundmanager_proxy_new_for_bus().
+ *
+ * Returns: (transfer full) (type AudiomanagerRoutingSoundmanagerProxy): The constructed proxy object or %NULL if @error is set.
+ */
+AudiomanagerRoutingSoundmanager *
+audiomanager_routing_soundmanager_proxy_new_for_bus_finish (
+ GAsyncResult *res,
+ GError **error)
+{
+ GObject *ret;
+ GObject *source_object;
+ source_object = g_async_result_get_source_object (res);
+ ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
+ g_object_unref (source_object);
+ if (ret != NULL)
+ return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
+ else
+ return NULL;
+}
+
+/**
+ * audiomanager_routing_soundmanager_proxy_new_for_bus_sync:
+ * @bus_type: A #GBusType.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: A bus name (well-known or unique).
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL
+ *
+ * Like audiomanager_routing_soundmanager_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
+ *
+ * The calling thread is blocked until a reply is received.
+ *
+ * See audiomanager_routing_soundmanager_proxy_new_for_bus() for the asynchronous version of this constructor.
+ *
+ * Returns: (transfer full) (type AudiomanagerRoutingSoundmanagerProxy): The constructed proxy object or %NULL if @error is set.
+ */
+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)
+{
+ GInitable *ret;
+ 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);
+ if (ret != NULL)
+ return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
+ else
+ return NULL;
+}
+
+
+/* ------------------------------------------------------------------------ */
+
+/**
+ * AudiomanagerRoutingSoundmanagerSkeleton:
+ *
+ * The #AudiomanagerRoutingSoundmanagerSkeleton structure contains only private data and should only be accessed using the provided API.
+ */
+
+/**
+ * AudiomanagerRoutingSoundmanagerSkeletonClass:
+ * @parent_class: The parent class.
+ *
+ * Class structure for #AudiomanagerRoutingSoundmanagerSkeleton.
+ */
+
+struct _AudiomanagerRoutingSoundmanagerSkeletonPrivate
+{
+ GValue *properties;
+ GList *changed_properties;
+ GSource *changed_properties_idle_source;
+ GMainContext *context;
+ GMutex lock;
+};
+
+static void
+_audiomanager_routing_soundmanager_skeleton_handle_method_call (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name,
+ const gchar *method_name,
+ GVariant *parameters,
+ GDBusMethodInvocation *invocation,
+ gpointer user_data)
+{
+ AudiomanagerRoutingSoundmanagerSkeleton *skeleton = AUDIOMANAGER_ROUTING_SOUNDMANAGER_SKELETON (user_data);
+ _ExtendedGDBusMethodInfo *info;
+ GVariantIter iter;
+ GVariant *child;
+ GValue *paramv;
+ guint num_params;
+ guint num_extra;
+ guint n;
+ guint signal_id;
+ GValue return_value = G_VALUE_INIT;
+ info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
+ g_assert (info != NULL);
+ num_params = g_variant_n_children (parameters);
+ num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
+ n = 0;
+ g_value_init (&paramv[n], TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER);
+ g_value_set_object (&paramv[n++], skeleton);
+ g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
+ g_value_set_object (&paramv[n++], invocation);
+ if (info->pass_fdlist)
+ {
+#ifdef G_OS_UNIX
+ g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
+ g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
+#else
+ g_assert_not_reached ();
+#endif
+ }
+ g_variant_iter_init (&iter, parameters);
+ while ((child = g_variant_iter_next_value (&iter)) != NULL)
+ {
+ _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
+ if (arg_info->use_gvariant)
+ {
+ g_value_init (&paramv[n], G_TYPE_VARIANT);
+ g_value_set_variant (&paramv[n], child);
+ n++;
+ }
+ else
+ g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
+ g_variant_unref (child);
+ }
+ signal_id = g_signal_lookup (info->signal_name, TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER);
+ g_value_init (&return_value, G_TYPE_BOOLEAN);
+ g_signal_emitv (paramv, signal_id, 0, &return_value);
+ if (!g_value_get_boolean (&return_value))
+ 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);
+ g_value_unset (&return_value);
+ for (n = 0; n < num_params + num_extra; n++)
+ g_value_unset (&paramv[n]);
+ g_free (paramv);
+}
+
+static GVariant *
+_audiomanager_routing_soundmanager_skeleton_handle_get_property (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name G_GNUC_UNUSED,
+ const gchar *property_name,
+ GError **error,
+ gpointer user_data)
+{
+ AudiomanagerRoutingSoundmanagerSkeleton *skeleton = AUDIOMANAGER_ROUTING_SOUNDMANAGER_SKELETON (user_data);
+ GValue value = G_VALUE_INIT;
+ GParamSpec *pspec;
+ _ExtendedGDBusPropertyInfo *info;
+ GVariant *ret;
+ ret = NULL;
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct, property_name);
+ g_assert (info != NULL);
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
+ if (pspec == NULL)
+ {
+ g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
+ }
+ else
+ {
+ g_value_init (&value, pspec->value_type);
+ g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
+ ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
+ g_value_unset (&value);
+ }
+ return ret;
+}
+
+static gboolean
+_audiomanager_routing_soundmanager_skeleton_handle_set_property (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name G_GNUC_UNUSED,
+ const gchar *property_name,
+ GVariant *variant,
+ GError **error,
+ gpointer user_data)
+{
+ AudiomanagerRoutingSoundmanagerSkeleton *skeleton = AUDIOMANAGER_ROUTING_SOUNDMANAGER_SKELETON (user_data);
+ GValue value = G_VALUE_INIT;
+ GParamSpec *pspec;
+ _ExtendedGDBusPropertyInfo *info;
+ gboolean ret;
+ ret = FALSE;
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_audiomanager_routing_soundmanager_interface_info.parent_struct, property_name);
+ g_assert (info != NULL);
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
+ if (pspec == NULL)
+ {
+ g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
+ }
+ else
+ {
+ if (info->use_gvariant)
+ g_value_set_variant (&value, variant);
+ else
+ g_dbus_gvariant_to_gvalue (variant, &value);
+ g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
+ g_value_unset (&value);
+ ret = TRUE;
+ }
+ return ret;
+}
+
+static const GDBusInterfaceVTable _audiomanager_routing_soundmanager_skeleton_vtable =
+{
+ _audiomanager_routing_soundmanager_skeleton_handle_method_call,
+ _audiomanager_routing_soundmanager_skeleton_handle_get_property,
+ _audiomanager_routing_soundmanager_skeleton_handle_set_property,
+ {NULL}
+};
+
+static GDBusInterfaceInfo *
+audiomanager_routing_soundmanager_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
+{
+ return audiomanager_routing_soundmanager_interface_info ();
+}
+
+static GDBusInterfaceVTable *
+audiomanager_routing_soundmanager_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
+{
+ return (GDBusInterfaceVTable *) &_audiomanager_routing_soundmanager_skeleton_vtable;
+}
+
+static GVariant *
+audiomanager_routing_soundmanager_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
+{
+ AudiomanagerRoutingSoundmanagerSkeleton *skeleton = AUDIOMANAGER_ROUTING_SOUNDMANAGER_SKELETON (_skeleton);
+
+ GVariantBuilder builder;
+ guint n;
+ g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
+ if (_audiomanager_routing_soundmanager_interface_info.parent_struct.properties == NULL)
+ goto out;
+ for (n = 0; _audiomanager_routing_soundmanager_interface_info.parent_struct.properties[n] != NULL; n++)
+ {
+ GDBusPropertyInfo *info = _audiomanager_routing_soundmanager_interface_info.parent_struct.properties[n];
+ if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
+ {
+ GVariant *value;
+ 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);
+ if (value != NULL)
+ {
+ g_variant_take_ref (value);
+ g_variant_builder_add (&builder, "{sv}", info->name, value);
+ g_variant_unref (value);
+ }
+ }
+ }
+out:
+ return g_variant_builder_end (&builder);
+}
+
+static void
+audiomanager_routing_soundmanager_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
+{
+}
+
+static void audiomanager_routing_soundmanager_skeleton_iface_init (AudiomanagerRoutingSoundmanagerIface *iface);
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutingSoundmanagerSkeleton, audiomanager_routing_soundmanager_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
+ G_ADD_PRIVATE (AudiomanagerRoutingSoundmanagerSkeleton)
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER, audiomanager_routing_soundmanager_skeleton_iface_init));
+
+#else
+G_DEFINE_TYPE_WITH_CODE (AudiomanagerRoutingSoundmanagerSkeleton, audiomanager_routing_soundmanager_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
+ G_IMPLEMENT_INTERFACE (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER, audiomanager_routing_soundmanager_skeleton_iface_init));
+
+#endif
+static void
+audiomanager_routing_soundmanager_skeleton_finalize (GObject *object)
+{
+ AudiomanagerRoutingSoundmanagerSkeleton *skeleton = AUDIOMANAGER_ROUTING_SOUNDMANAGER_SKELETON (object);
+ g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
+ if (skeleton->priv->changed_properties_idle_source != NULL)
+ g_source_destroy (skeleton->priv->changed_properties_idle_source);
+ g_main_context_unref (skeleton->priv->context);
+ g_mutex_clear (&skeleton->priv->lock);
+ G_OBJECT_CLASS (audiomanager_routing_soundmanager_skeleton_parent_class)->finalize (object);
+}
+
+static void
+audiomanager_routing_soundmanager_skeleton_init (AudiomanagerRoutingSoundmanagerSkeleton *skeleton)
+{
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+ skeleton->priv = audiomanager_routing_soundmanager_skeleton_get_instance_private (skeleton);
+#else
+ skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER_SKELETON, AudiomanagerRoutingSoundmanagerSkeletonPrivate);
+#endif
+
+ g_mutex_init (&skeleton->priv->lock);
+ skeleton->priv->context = g_main_context_ref_thread_default ();
+}
+
+static void
+audiomanager_routing_soundmanager_skeleton_class_init (AudiomanagerRoutingSoundmanagerSkeletonClass *klass)
+{
+ GObjectClass *gobject_class;
+ GDBusInterfaceSkeletonClass *skeleton_class;
+
+ gobject_class = G_OBJECT_CLASS (klass);
+ gobject_class->finalize = audiomanager_routing_soundmanager_skeleton_finalize;
+
+ skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
+ skeleton_class->get_info = audiomanager_routing_soundmanager_skeleton_dbus_interface_get_info;
+ skeleton_class->get_properties = audiomanager_routing_soundmanager_skeleton_dbus_interface_get_properties;
+ skeleton_class->flush = audiomanager_routing_soundmanager_skeleton_dbus_interface_flush;
+ skeleton_class->get_vtable = audiomanager_routing_soundmanager_skeleton_dbus_interface_get_vtable;
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
+ g_type_class_add_private (klass, sizeof (AudiomanagerRoutingSoundmanagerSkeletonPrivate));
+#endif
+}
+
+static void
+audiomanager_routing_soundmanager_skeleton_iface_init (AudiomanagerRoutingSoundmanagerIface *iface)
+{
+}
+
+/**
+ * audiomanager_routing_soundmanager_skeleton_new:
+ *
+ * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routing-soundmanager.top_of_page">org.genivi.audiomanager.routing.soundmanager</link>.
+ *
+ * Returns: (transfer full) (type AudiomanagerRoutingSoundmanagerSkeleton): The skeleton object.
+ */
+AudiomanagerRoutingSoundmanager *
+audiomanager_routing_soundmanager_skeleton_new (void)
+{
+ return AUDIOMANAGER_ROUTING_SOUNDMANAGER (g_object_new (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER_SKELETON, NULL));
+}
+
+/* ------------------------------------------------------------------------
+ * Code for Object, ObjectProxy and ObjectSkeleton
+ * ------------------------------------------------------------------------
+ */
+
+/**
+ * SECTION:Object
+ * @title: Object
+ * @short_description: Specialized GDBusObject types
+ *
+ * This section contains the #Object, #ObjectProxy, and #ObjectSkeleton types which make it easier to work with objects implementing generated types for D-Bus interfaces.
+ */
+
+/**
+ * Object:
+ *
+ * The #Object type is a specialized container of interfaces.
+ */
+
+/**
+ * ObjectIface:
+ * @parent_iface: The parent interface.
+ *
+ * Virtual table for the #Object interface.
+ */
+
+typedef ObjectIface ObjectInterface;
+G_DEFINE_INTERFACE_WITH_CODE (Object, object, G_TYPE_OBJECT, g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_DBUS_OBJECT));
+
+static void
+object_default_init (ObjectIface *iface)
+{
+ /**
+ * Object:audiomanager-commandinterface:
+ *
+ * The #AudiomanagerCommandinterface instance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-commandinterface.top_of_page">org.genivi.audiomanager.commandinterface</link>, if any.
+ *
+ * Connect to the #GObject::notify signal to get informed of property changes.
+ */
+ 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));
+
+ /**
+ * Object:audiomanager-routinginterface:
+ *
+ * The #AudiomanagerRoutinginterface instance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routinginterface.top_of_page">org.genivi.audiomanager.routinginterface</link>, if any.
+ *
+ * Connect to the #GObject::notify signal to get informed of property changes.
+ */
+ 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));
+
+ /**
+ * Object:audiomanager-routing-soundmanager:
+ *
+ * The #AudiomanagerRoutingSoundmanager instance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routing-soundmanager.top_of_page">org.genivi.audiomanager.routing.soundmanager</link>, if any.
+ *
+ * Connect to the #GObject::notify signal to get informed of property changes.
+ */
+ 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));
+
+}
+
+/**
+ * object_get_audiomanager_commandinterface:
+ * @object: A #Object.
+ *
+ * Gets the #AudiomanagerCommandinterface instance for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-commandinterface.top_of_page">org.genivi.audiomanager.commandinterface</link> on @object, if any.
+ *
+ * Returns: (transfer full): A #AudiomanagerCommandinterface that must be freed with g_object_unref() or %NULL if @object does not implement the interface.
+ */
+AudiomanagerCommandinterface *object_get_audiomanager_commandinterface (Object *object)
+{
+ GDBusInterface *ret;
+ ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.commandinterface");
+ if (ret == NULL)
+ return NULL;
+ return AUDIOMANAGER_COMMANDINTERFACE (ret);
+}
+
+/**
+ * object_get_audiomanager_routinginterface:
+ * @object: A #Object.
+ *
+ * Gets the #AudiomanagerRoutinginterface instance for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routinginterface.top_of_page">org.genivi.audiomanager.routinginterface</link> on @object, if any.
+ *
+ * Returns: (transfer full): A #AudiomanagerRoutinginterface that must be freed with g_object_unref() or %NULL if @object does not implement the interface.
+ */
+AudiomanagerRoutinginterface *object_get_audiomanager_routinginterface (Object *object)
+{
+ GDBusInterface *ret;
+ ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routinginterface");
+ if (ret == NULL)
+ return NULL;
+ return AUDIOMANAGER_ROUTINGINTERFACE (ret);
+}
+
+/**
+ * object_get_audiomanager_routing_soundmanager:
+ * @object: A #Object.
+ *
+ * Gets the #AudiomanagerRoutingSoundmanager instance for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routing-soundmanager.top_of_page">org.genivi.audiomanager.routing.soundmanager</link> on @object, if any.
+ *
+ * Returns: (transfer full): A #AudiomanagerRoutingSoundmanager that must be freed with g_object_unref() or %NULL if @object does not implement the interface.
+ */
+AudiomanagerRoutingSoundmanager *object_get_audiomanager_routing_soundmanager (Object *object)
+{
+ GDBusInterface *ret;
+ ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routing.soundmanager");
+ if (ret == NULL)
+ return NULL;
+ return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
+}
+
+
+/**
+ * object_peek_audiomanager_commandinterface: (skip)
+ * @object: A #Object.
+ *
+ * Like object_get_audiomanager_commandinterface() but doesn't increase the reference count on the returned object.
+ *
+ * <warning>It is not safe to use the returned object if you are on another thread than the one where the #GDBusObjectManagerClient or #GDBusObjectManagerServer for @object is running.</warning>
+ *
+ * Returns: (transfer none): A #AudiomanagerCommandinterface or %NULL if @object does not implement the interface. Do not free the returned object, it is owned by @object.
+ */
+AudiomanagerCommandinterface *object_peek_audiomanager_commandinterface (Object *object)
+{
+ GDBusInterface *ret;
+ ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.commandinterface");
+ if (ret == NULL)
+ return NULL;
+ g_object_unref (ret);
+ return AUDIOMANAGER_COMMANDINTERFACE (ret);
+}
+
+/**
+ * object_peek_audiomanager_routinginterface: (skip)
+ * @object: A #Object.
+ *
+ * Like object_get_audiomanager_routinginterface() but doesn't increase the reference count on the returned object.
+ *
+ * <warning>It is not safe to use the returned object if you are on another thread than the one where the #GDBusObjectManagerClient or #GDBusObjectManagerServer for @object is running.</warning>
+ *
+ * Returns: (transfer none): A #AudiomanagerRoutinginterface or %NULL if @object does not implement the interface. Do not free the returned object, it is owned by @object.
+ */
+AudiomanagerRoutinginterface *object_peek_audiomanager_routinginterface (Object *object)
+{
+ GDBusInterface *ret;
+ ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routinginterface");
+ if (ret == NULL)
+ return NULL;
+ g_object_unref (ret);
+ return AUDIOMANAGER_ROUTINGINTERFACE (ret);
+}
+
+/**
+ * object_peek_audiomanager_routing_soundmanager: (skip)
+ * @object: A #Object.
+ *
+ * Like object_get_audiomanager_routing_soundmanager() but doesn't increase the reference count on the returned object.
+ *
+ * <warning>It is not safe to use the returned object if you are on another thread than the one where the #GDBusObjectManagerClient or #GDBusObjectManagerServer for @object is running.</warning>
+ *
+ * Returns: (transfer none): A #AudiomanagerRoutingSoundmanager or %NULL if @object does not implement the interface. Do not free the returned object, it is owned by @object.
+ */
+AudiomanagerRoutingSoundmanager *object_peek_audiomanager_routing_soundmanager (Object *object)
+{
+ GDBusInterface *ret;
+ ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routing.soundmanager");
+ if (ret == NULL)
+ return NULL;
+ g_object_unref (ret);
+ return AUDIOMANAGER_ROUTING_SOUNDMANAGER (ret);
+}
+
+
+static void
+object_notify (GDBusObject *object, GDBusInterface *interface)
+{
+ _ExtendedGDBusInterfaceInfo *info = (_ExtendedGDBusInterfaceInfo *) g_dbus_interface_get_info (interface);
+ /* info can be NULL if the other end is using a D-Bus interface we don't know
+ * anything about, for example old generated code in this process talking to
+ * newer generated code in the other process. */
+ if (info != NULL)
+ g_object_notify (G_OBJECT (object), info->hyphen_name);
+}
+
+/**
+ * ObjectProxy:
+ *
+ * The #ObjectProxy structure contains only private data and should only be accessed using the provided API.
+ */
+
+/**
+ * ObjectProxyClass:
+ * @parent_class: The parent class.
+ *
+ * Class structure for #ObjectProxy.
+ */
+
+static void
+object_proxy__object_iface_init (ObjectIface *iface G_GNUC_UNUSED)
+{
+}
+
+static void
+object_proxy__g_dbus_object_iface_init (GDBusObjectIface *iface)
+{
+ iface->interface_added = object_notify;
+ iface->interface_removed = object_notify;
+}
+
+
+G_DEFINE_TYPE_WITH_CODE (ObjectProxy, object_proxy, G_TYPE_DBUS_OBJECT_PROXY,
+ G_IMPLEMENT_INTERFACE (TYPE_OBJECT, object_proxy__object_iface_init)
+ G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, object_proxy__g_dbus_object_iface_init));
+
+static void
+object_proxy_init (ObjectProxy *object G_GNUC_UNUSED)
+{
+}
+
+static void
+object_proxy_set_property (GObject *gobject,
+ guint prop_id,
+ const GValue *value G_GNUC_UNUSED,
+ GParamSpec *pspec)
+{
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
+}
+
+static void
+object_proxy_get_property (GObject *gobject,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
+{
+ ObjectProxy *object = OBJECT_PROXY (gobject);
+ GDBusInterface *interface;
+
+ switch (prop_id)
+ {
+ case 1:
+ interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.commandinterface");
+ g_value_take_object (value, interface);
+ break;
+
+ case 2:
+ interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routinginterface");
+ g_value_take_object (value, interface);
+ break;
+
+ case 3:
+ interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routing.soundmanager");
+ g_value_take_object (value, interface);
+ break;
+
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
+ break;
+ }
+}
+
+static void
+object_proxy_class_init (ObjectProxyClass *klass)
+{
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+
+ gobject_class->set_property = object_proxy_set_property;
+ gobject_class->get_property = object_proxy_get_property;
+
+ g_object_class_override_property (gobject_class, 1, "audiomanager-commandinterface");
+ g_object_class_override_property (gobject_class, 2, "audiomanager-routinginterface");
+ g_object_class_override_property (gobject_class, 3, "audiomanager-routing-soundmanager");
+}
+
+/**
+ * object_proxy_new:
+ * @connection: A #GDBusConnection.
+ * @object_path: An object path.
+ *
+ * Creates a new proxy object.
+ *
+ * Returns: (transfer full): The proxy object.
+ */
+ObjectProxy *
+object_proxy_new (GDBusConnection *connection,
+ const gchar *object_path)
+{
+ g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), NULL);
+ g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);
+ return OBJECT_PROXY (g_object_new (TYPE_OBJECT_PROXY, "g-connection", connection, "g-object-path", object_path, NULL));
+}
+
+/**
+ * ObjectSkeleton:
+ *
+ * The #ObjectSkeleton structure contains only private data and should only be accessed using the provided API.
+ */
+
+/**
+ * ObjectSkeletonClass:
+ * @parent_class: The parent class.
+ *
+ * Class structure for #ObjectSkeleton.
+ */
+
+static void
+object_skeleton__object_iface_init (ObjectIface *iface G_GNUC_UNUSED)
+{
+}
+
+
+static void
+object_skeleton__g_dbus_object_iface_init (GDBusObjectIface *iface)
+{
+ iface->interface_added = object_notify;
+ iface->interface_removed = object_notify;
+}
+
+G_DEFINE_TYPE_WITH_CODE (ObjectSkeleton, object_skeleton, G_TYPE_DBUS_OBJECT_SKELETON,
+ G_IMPLEMENT_INTERFACE (TYPE_OBJECT, object_skeleton__object_iface_init)
+ G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, object_skeleton__g_dbus_object_iface_init));
+
+static void
+object_skeleton_init (ObjectSkeleton *object G_GNUC_UNUSED)
+{
+}
+
+static void
+object_skeleton_set_property (GObject *gobject,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
+{
+ ObjectSkeleton *object = OBJECT_SKELETON (gobject);
+ GDBusInterfaceSkeleton *interface;
+
+ switch (prop_id)
+ {
+ case 1:
+ interface = g_value_get_object (value);
+ if (interface != NULL)
+ {
+ g_warn_if_fail (IS_AUDIOMANAGER_COMMANDINTERFACE (interface));
+ g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object), interface);
+ }
+ else
+ {
+ g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object), "org.genivi.audiomanager.commandinterface");
+ }
+ break;
+
+ case 2:
+ interface = g_value_get_object (value);
+ if (interface != NULL)
+ {
+ g_warn_if_fail (IS_AUDIOMANAGER_ROUTINGINTERFACE (interface));
+ g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object), interface);
+ }
+ else
+ {
+ g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object), "org.genivi.audiomanager.routinginterface");
+ }
+ break;
+
+ case 3:
+ interface = g_value_get_object (value);
+ if (interface != NULL)
+ {
+ g_warn_if_fail (IS_AUDIOMANAGER_ROUTING_SOUNDMANAGER (interface));
+ g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object), interface);
+ }
+ else
+ {
+ g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object), "org.genivi.audiomanager.routing.soundmanager");
+ }
+ break;
+
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
+ break;
+ }
+}
+
+static void
+object_skeleton_get_property (GObject *gobject,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
+{
+ ObjectSkeleton *object = OBJECT_SKELETON (gobject);
+ GDBusInterface *interface;
+
+ switch (prop_id)
+ {
+ case 1:
+ interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.commandinterface");
+ g_value_take_object (value, interface);
+ break;
+
+ case 2:
+ interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routinginterface");
+ g_value_take_object (value, interface);
+ break;
+
+ case 3:
+ interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.genivi.audiomanager.routing.soundmanager");
+ g_value_take_object (value, interface);
+ break;
+
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
+ break;
+ }
+}
+
+static void
+object_skeleton_class_init (ObjectSkeletonClass *klass)
+{
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+
+ gobject_class->set_property = object_skeleton_set_property;
+ gobject_class->get_property = object_skeleton_get_property;
+
+ g_object_class_override_property (gobject_class, 1, "audiomanager-commandinterface");
+ g_object_class_override_property (gobject_class, 2, "audiomanager-routinginterface");
+ g_object_class_override_property (gobject_class, 3, "audiomanager-routing-soundmanager");
+}
+
+/**
+ * object_skeleton_new:
+ * @object_path: An object path.
+ *
+ * Creates a new skeleton object.
+ *
+ * Returns: (transfer full): The skeleton object.
+ */
+ObjectSkeleton *
+object_skeleton_new (const gchar *object_path)
+{
+ g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);
+ return OBJECT_SKELETON (g_object_new (TYPE_OBJECT_SKELETON, "g-object-path", object_path, NULL));
+}
+
+/**
+ * object_skeleton_set_audiomanager_commandinterface:
+ * @object: A #ObjectSkeleton.
+ * @interface_: (allow-none): A #AudiomanagerCommandinterface or %NULL to clear the interface.
+ *
+ * Sets the #AudiomanagerCommandinterface instance for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-commandinterface.top_of_page">org.genivi.audiomanager.commandinterface</link> on @object.
+ */
+void object_skeleton_set_audiomanager_commandinterface (ObjectSkeleton *object, AudiomanagerCommandinterface *interface_)
+{
+ g_object_set (G_OBJECT (object), "audiomanager-commandinterface", interface_, NULL);
+}
+
+/**
+ * object_skeleton_set_audiomanager_routinginterface:
+ * @object: A #ObjectSkeleton.
+ * @interface_: (allow-none): A #AudiomanagerRoutinginterface or %NULL to clear the interface.
+ *
+ * Sets the #AudiomanagerRoutinginterface instance for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routinginterface.top_of_page">org.genivi.audiomanager.routinginterface</link> on @object.
+ */
+void object_skeleton_set_audiomanager_routinginterface (ObjectSkeleton *object, AudiomanagerRoutinginterface *interface_)
+{
+ g_object_set (G_OBJECT (object), "audiomanager-routinginterface", interface_, NULL);
+}
+
+/**
+ * object_skeleton_set_audiomanager_routing_soundmanager:
+ * @object: A #ObjectSkeleton.
+ * @interface_: (allow-none): A #AudiomanagerRoutingSoundmanager or %NULL to clear the interface.
+ *
+ * Sets the #AudiomanagerRoutingSoundmanager instance for the D-Bus interface <link linkend="gdbus-interface-org-genivi-audiomanager-routing-soundmanager.top_of_page">org.genivi.audiomanager.routing.soundmanager</link> on @object.
+ */
+void object_skeleton_set_audiomanager_routing_soundmanager (ObjectSkeleton *object, AudiomanagerRoutingSoundmanager *interface_)
+{
+ g_object_set (G_OBJECT (object), "audiomanager-routing-soundmanager", interface_, NULL);
+}
+
+
+/* ------------------------------------------------------------------------
+ * Code for ObjectManager client
+ * ------------------------------------------------------------------------
+ */
+
+/**
+ * SECTION:ObjectManagerClient
+ * @title: ObjectManagerClient
+ * @short_description: Generated GDBusObjectManagerClient type
+ *
+ * This section contains a #GDBusObjectManagerClient that uses object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc.
+ */
+
+/**
+ * ObjectManagerClient:
+ *
+ * The #ObjectManagerClient structure contains only private data and should only be accessed using the provided API.
+ */
+
+/**
+ * ObjectManagerClientClass:
+ * @parent_class: The parent class.
+ *
+ * Class structure for #ObjectManagerClient.
+ */
+
+G_DEFINE_TYPE (ObjectManagerClient, object_manager_client, G_TYPE_DBUS_OBJECT_MANAGER_CLIENT);
+
+static void
+object_manager_client_init (ObjectManagerClient *manager G_GNUC_UNUSED)
+{
+}
+
+static void
+object_manager_client_class_init (ObjectManagerClientClass *klass G_GNUC_UNUSED)
+{
+}
+
+/**
+ * object_manager_client_get_proxy_type:
+ * @manager: A #GDBusObjectManagerClient.
+ * @object_path: The object path of the remote object (unused).
+ * @interface_name: (allow-none): Interface name of the remote object or %NULL to get the object proxy #GType.
+ * @user_data: User data (unused).
+ *
+ * A #GDBusProxyTypeFunc that maps @interface_name to the generated #GDBusObjectProxy<!-- -->- and #GDBusProxy<!-- -->-derived types.
+ *
+ * Returns: A #GDBusProxy<!-- -->-derived #GType if @interface_name is not %NULL, otherwise the #GType for #ObjectProxy.
+ */
+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)
+{
+ static gsize once_init_value = 0;
+ static GHashTable *lookup_hash;
+ GType ret;
+
+ if (interface_name == NULL)
+ return TYPE_OBJECT_PROXY;
+ if (g_once_init_enter (&once_init_value))
+ {
+ lookup_hash = g_hash_table_new (g_str_hash, g_str_equal);
+ g_hash_table_insert (lookup_hash, (gpointer) "org.genivi.audiomanager.commandinterface", GSIZE_TO_POINTER (TYPE_AUDIOMANAGER_COMMANDINTERFACE_PROXY));
+ g_hash_table_insert (lookup_hash, (gpointer) "org.genivi.audiomanager.routinginterface", GSIZE_TO_POINTER (TYPE_AUDIOMANAGER_ROUTINGINTERFACE_PROXY));
+ g_hash_table_insert (lookup_hash, (gpointer) "org.genivi.audiomanager.routing.soundmanager", GSIZE_TO_POINTER (TYPE_AUDIOMANAGER_ROUTING_SOUNDMANAGER_PROXY));
+ g_once_init_leave (&once_init_value, 1);
+ }
+ ret = (GType) GPOINTER_TO_SIZE (g_hash_table_lookup (lookup_hash, interface_name));
+ if (ret == (GType) 0)
+ ret = G_TYPE_DBUS_PROXY;
+ return ret;
+}
+
+/**
+ * object_manager_client_new:
+ * @connection: A #GDBusConnection.
+ * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
+ * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously creates #GDBusObjectManagerClient using object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new() for more details.
+ *
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call object_manager_client_new_finish() to get the result of the operation.
+ *
+ * See object_manager_client_new_sync() for the synchronous, blocking version of this constructor.
+ */
+void
+object_manager_client_new (
+ GDBusConnection *connection,
+ GDBusObjectManagerClientFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ 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);
+}
+
+/**
+ * object_manager_client_new_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to object_manager_client_new().
+ * @error: Return location for error or %NULL
+ *
+ * Finishes an operation started with object_manager_client_new().
+ *
+ * Returns: (transfer full) (type ObjectManagerClient): The constructed object manager client or %NULL if @error is set.
+ */
+GDBusObjectManager *
+object_manager_client_new_finish (
+ GAsyncResult *res,
+ GError **error)
+{
+ GObject *ret;
+ GObject *source_object;
+ source_object = g_async_result_get_source_object (res);
+ ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
+ g_object_unref (source_object);
+ if (ret != NULL)
+ return G_DBUS_OBJECT_MANAGER (ret);
+ else
+ return NULL;
+}
+
+/**
+ * object_manager_client_new_sync:
+ * @connection: A #GDBusConnection.
+ * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
+ * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL
+ *
+ * Synchronously creates #GDBusObjectManagerClient using object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new_sync() for more details.
+ *
+ * The calling thread is blocked until a reply is received.
+ *
+ * See object_manager_client_new() for the asynchronous version of this constructor.
+ *
+ * Returns: (transfer full) (type ObjectManagerClient): The constructed object manager client or %NULL if @error is set.
+ */
+GDBusObjectManager *
+object_manager_client_new_sync (
+ GDBusConnection *connection,
+ GDBusObjectManagerClientFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GInitable *ret;
+ 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);
+ if (ret != NULL)
+ return G_DBUS_OBJECT_MANAGER (ret);
+ else
+ return NULL;
+}
+
+
+/**
+ * object_manager_client_new_for_bus:
+ * @bus_type: A #GBusType.
+ * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
+ * @name: A bus name (well-known or unique).
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
+ * @user_data: User data to pass to @callback.
+ *
+ * Like object_manager_client_new() but takes a #GBusType instead of a #GDBusConnection.
+ *
+ * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
+ * You can then call object_manager_client_new_for_bus_finish() to get the result of the operation.
+ *
+ * See object_manager_client_new_for_bus_sync() for the synchronous, blocking version of this constructor.
+ */
+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)
+{
+ 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);
+}
+
+/**
+ * object_manager_client_new_for_bus_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to object_manager_client_new_for_bus().
+ * @error: Return location for error or %NULL
+ *
+ * Finishes an operation started with object_manager_client_new_for_bus().
+ *
+ * Returns: (transfer full) (type ObjectManagerClient): The constructed object manager client or %NULL if @error is set.
+ */
+GDBusObjectManager *
+object_manager_client_new_for_bus_finish (
+ GAsyncResult *res,
+ GError **error)
+{
+ GObject *ret;
+ GObject *source_object;
+ source_object = g_async_result_get_source_object (res);
+ ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
+ g_object_unref (source_object);
+ if (ret != NULL)
+ return G_DBUS_OBJECT_MANAGER (ret);
+ else
+ return NULL;
+}
+
+/**
+ * object_manager_client_new_for_bus_sync:
+ * @bus_type: A #GBusType.
+ * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
+ * @name: A bus name (well-known or unique).
+ * @object_path: An object path.
+ * @cancellable: (allow-none): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL
+ *
+ * Like object_manager_client_new_sync() but takes a #GBusType instead of a #GDBusConnection.
+ *
+ * The calling thread is blocked until a reply is received.
+ *
+ * See object_manager_client_new_for_bus() for the asynchronous version of this constructor.
+ *
+ * Returns: (transfer full) (type ObjectManagerClient): The constructed object manager client or %NULL if @error is set.
+ */
+GDBusObjectManager *
+object_manager_client_new_for_bus_sync (
+ GBusType bus_type,
+ GDBusObjectManagerClientFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GInitable *ret;
+ 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);
+ if (ret != NULL)
+ return G_DBUS_OBJECT_MANAGER (ret);
+ else
+ return NULL;
+}
+
+