/* dbus-service.c generated by valac 0.56.19, the Vala compiler
 * generated from dbus-service.vala, do not modify */

/*
* Copyright (c) 2010 Michal Hruby <michal.mhr@gmail.com>
*               2017 elementary LLC.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* Authored by: Michal Hruby <michal.mhr@gmail.com>
*/

#include "slingshot.h"
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <gee.h>
#include <glib-object.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

enum  {
	SYNAPSE_FREE_DESKTOP_DBUS_NAME_OWNER_CHANGED_SIGNAL,
	SYNAPSE_FREE_DESKTOP_DBUS_NUM_SIGNALS
};
static guint synapse_free_desktop_dbus_signals[SYNAPSE_FREE_DESKTOP_DBUS_NUM_SIGNALS] = {0};
typedef GDBusProxy SynapseFreeDesktopDBusProxy;
typedef GDBusProxyClass SynapseFreeDesktopDBusProxyClass;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _SynapseFreeDesktopDbusListQueuedOwnersReadyData SynapseFreeDesktopDbusListQueuedOwnersReadyData;
typedef struct _SynapseFreeDesktopDbusListNamesReadyData SynapseFreeDesktopDbusListNamesReadyData;
typedef struct _SynapseFreeDesktopDbusListActivatableNamesReadyData SynapseFreeDesktopDbusListActivatableNamesReadyData;
typedef struct _SynapseFreeDesktopDbusNameHasOwnerReadyData SynapseFreeDesktopDbusNameHasOwnerReadyData;
typedef struct _SynapseFreeDesktopDbusStartServiceByNameReadyData SynapseFreeDesktopDbusStartServiceByNameReadyData;
typedef struct _SynapseFreeDesktopDbusGetNameOwnerReadyData SynapseFreeDesktopDbusGetNameOwnerReadyData;
enum  {
	SYNAPSE_DBUS_SERVICE_0_PROPERTY,
	SYNAPSE_DBUS_SERVICE_NUM_PROPERTIES
};
static GParamSpec* synapse_dbus_service_properties[SYNAPSE_DBUS_SERVICE_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _synapse_utils_async_once_unref0(var) ((var == NULL) ? NULL : (var = (synapse_utils_async_once_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _SynapseDbusServiceInitializeData SynapseDbusServiceInitializeData;
enum  {
	SYNAPSE_DBUS_SERVICE_OWNER_CHANGED_SIGNAL,
	SYNAPSE_DBUS_SERVICE_NUM_SIGNALS
};
static guint synapse_dbus_service_signals[SYNAPSE_DBUS_SERVICE_NUM_SIGNALS] = {0};

struct _SynapseFreeDesktopDbusListQueuedOwnersReadyData {
	GDBusMethodInvocation* _invocation_;
	gchar* name;
};

struct _SynapseFreeDesktopDbusListNamesReadyData {
	GDBusMethodInvocation* _invocation_;
};

struct _SynapseFreeDesktopDbusListActivatableNamesReadyData {
	GDBusMethodInvocation* _invocation_;
};

struct _SynapseFreeDesktopDbusNameHasOwnerReadyData {
	GDBusMethodInvocation* _invocation_;
	gchar* name;
};

struct _SynapseFreeDesktopDbusStartServiceByNameReadyData {
	GDBusMethodInvocation* _invocation_;
	gchar* name;
	guint32 flags;
};

struct _SynapseFreeDesktopDbusGetNameOwnerReadyData {
	GDBusMethodInvocation* _invocation_;
	gchar* name;
};

struct _SynapseDBusServicePrivate {
	SynapseFreeDesktopDBus* proxy;
	GeeSet* owned_names;
	GeeSet* activatable_names;
	GeeSet* system_activatable_names;
	SynapseUtilsAsyncOnce* init_once;
};

struct _SynapseDbusServiceInitializeData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	SynapseDBusService* self;
	SynapseUtilsAsyncOnce* _tmp0_;
	gboolean is_locked;
	SynapseUtilsAsyncOnce* _tmp1_;
	gchar** names;
	gint names_length1;
	gint _names_size_;
	SynapseFreeDesktopDBus* _tmp2_;
	SynapseFreeDesktopDBus* _tmp3_;
	SynapseFreeDesktopDBus* _tmp4_;
	SynapseFreeDesktopDBus* _tmp5_;
	gchar** _tmp6_;
	SynapseFreeDesktopDBus* _tmp7_;
	gint _tmp8_;
	gchar** _tmp9_;
	gint _tmp6__length1;
	gint __tmp6__size_;
	gchar** _tmp10_;
	gint _tmp10__length1;
	gchar** _tmp11_;
	gint _tmp11__length1;
	gchar** name_collection;
	gint name_collection_length1;
	gint _name_collection_size_;
	gint name_it;
	const gchar* name;
	const gchar* _tmp12_;
	GeeSet* _tmp13_;
	const gchar* _tmp14_;
	gchar** _tmp15_;
	SynapseFreeDesktopDBus* _tmp16_;
	gint _tmp17_;
	gchar** _tmp18_;
	gint _tmp15__length1;
	gint __tmp15__size_;
	gchar** _tmp19_;
	gint _tmp19__length1;
	gchar** _tmp20_;
	gint _tmp20__length1;
	gchar** session_act_collection;
	gint session_act_collection_length1;
	gint _session_act_collection_size_;
	gint session_act_it;
	const gchar* session_act;
	GeeSet* _tmp21_;
	const gchar* _tmp22_;
	GError* err;
	GError* _tmp23_;
	const gchar* _tmp24_;
	SynapseFreeDesktopDBus* sys_proxy;
	SynapseFreeDesktopDBus* _tmp25_;
	gchar** _tmp26_;
	SynapseFreeDesktopDBus* _tmp27_;
	gint _tmp28_;
	gchar** _tmp29_;
	gint _tmp26__length1;
	gint __tmp26__size_;
	gchar** _tmp30_;
	gint _tmp30__length1;
	gchar** _tmp31_;
	gint _tmp31__length1;
	gchar** system_act_collection;
	gint system_act_collection_length1;
	gint _system_act_collection_size_;
	gint system_act_it;
	const gchar* system_act;
	GeeSet* _tmp32_;
	const gchar* _tmp33_;
	GError* sys_err;
	GError* _tmp34_;
	const gchar* _tmp35_;
	SynapseUtilsAsyncOnce* _tmp36_;
	GError* _inner_error0_;
};

static GType synapse_free_desktop_dbus_type_id = 0;
static gint SynapseDBusService_private_offset;
static gpointer synapse_dbus_service_parent_class = NULL;
static SynapseDBusService* synapse_dbus_service_instance;
static SynapseDBusService* synapse_dbus_service_instance = NULL;
static GType synapse_dbus_service_type_id = 0;

static void g_cclosure_user_marshal_VOID__STRING_STRING_STRING (GClosure * closure,
                                                         GValue * return_value,
                                                         guint n_param_values,
                                                         const GValue * param_values,
                                                         gpointer invocation_hint,
                                                         gpointer marshal_data);
static void synapse_free_desktop_dbus_proxy_g_signal (GDBusProxy* proxy,
                                               const gchar* sender_name,
                                               const gchar* signal_name,
                                               GVariant* parameters);
static void _dbus_handle_synapse_free_desktop_dbus_name_owner_changed (SynapseFreeDesktopDBus* self,
                                                                GVariant* parameters);
static void _vala_g_async_ready_callback (GObject *source_object,
                                   GAsyncResult *res,
                                   void *user_data);
static void synapse_free_desktop_dbus_proxy_list_queued_owners_async (SynapseFreeDesktopDBus* self,
                                                               const gchar* name,
                                                               GAsyncReadyCallback _callback_,
                                                               gpointer _user_data_);
static gchar** synapse_free_desktop_dbus_proxy_list_queued_owners_finish (SynapseFreeDesktopDBus* self,
                                                                   GAsyncResult* _res_,
                                                                   gint* result_length1,
                                                                   GError** error);
static void synapse_free_desktop_dbus_proxy_list_names_async (SynapseFreeDesktopDBus* self,
                                                       GAsyncReadyCallback _callback_,
                                                       gpointer _user_data_);
static gchar** synapse_free_desktop_dbus_proxy_list_names_finish (SynapseFreeDesktopDBus* self,
                                                           GAsyncResult* _res_,
                                                           gint* result_length1,
                                                           GError** error);
static void synapse_free_desktop_dbus_proxy_list_activatable_names_async (SynapseFreeDesktopDBus* self,
                                                                   GAsyncReadyCallback _callback_,
                                                                   gpointer _user_data_);
static gchar** synapse_free_desktop_dbus_proxy_list_activatable_names_finish (SynapseFreeDesktopDBus* self,
                                                                       GAsyncResult* _res_,
                                                                       gint* result_length1,
                                                                       GError** error);
static void synapse_free_desktop_dbus_proxy_name_has_owner_async (SynapseFreeDesktopDBus* self,
                                                           const gchar* name,
                                                           GAsyncReadyCallback _callback_,
                                                           gpointer _user_data_);
static gboolean synapse_free_desktop_dbus_proxy_name_has_owner_finish (SynapseFreeDesktopDBus* self,
                                                                GAsyncResult* _res_,
                                                                GError** error);
static void synapse_free_desktop_dbus_proxy_start_service_by_name_async (SynapseFreeDesktopDBus* self,
                                                                  const gchar* name,
                                                                  guint32 flags,
                                                                  GAsyncReadyCallback _callback_,
                                                                  gpointer _user_data_);
static guint32 synapse_free_desktop_dbus_proxy_start_service_by_name_finish (SynapseFreeDesktopDBus* self,
                                                                      GAsyncResult* _res_,
                                                                      GError** error);
static void synapse_free_desktop_dbus_proxy_get_name_owner_async (SynapseFreeDesktopDBus* self,
                                                           const gchar* name,
                                                           GAsyncReadyCallback _callback_,
                                                           gpointer _user_data_);
static gchar* synapse_free_desktop_dbus_proxy_get_name_owner_finish (SynapseFreeDesktopDBus* self,
                                                              GAsyncResult* _res_,
                                                              GError** error);
static void synapse_free_desktop_dbus_proxy_synapse_free_desktop_dbus_interface_init (SynapseFreeDesktopDBusIface* iface);
static void _dbus_synapse_free_desktop_dbus_list_queued_owners (SynapseFreeDesktopDBus* self,
                                                         GVariant* _parameters_,
                                                         GDBusMethodInvocation* invocation);
static void _dbus_synapse_free_desktop_dbus_list_queued_owners_ready (GObject * source_object,
                                                               GAsyncResult * _res_,
                                                               gpointer _user_data_);
static void _dbus_synapse_free_desktop_dbus_list_names (SynapseFreeDesktopDBus* self,
                                                 GVariant* _parameters_,
                                                 GDBusMethodInvocation* invocation);
static void _dbus_synapse_free_desktop_dbus_list_names_ready (GObject * source_object,
                                                       GAsyncResult * _res_,
                                                       gpointer _user_data_);
static void _dbus_synapse_free_desktop_dbus_list_activatable_names (SynapseFreeDesktopDBus* self,
                                                             GVariant* _parameters_,
                                                             GDBusMethodInvocation* invocation);
static void _dbus_synapse_free_desktop_dbus_list_activatable_names_ready (GObject * source_object,
                                                                   GAsyncResult * _res_,
                                                                   gpointer _user_data_);
static void _dbus_synapse_free_desktop_dbus_name_has_owner (SynapseFreeDesktopDBus* self,
                                                     GVariant* _parameters_,
                                                     GDBusMethodInvocation* invocation);
static void _dbus_synapse_free_desktop_dbus_name_has_owner_ready (GObject * source_object,
                                                           GAsyncResult * _res_,
                                                           gpointer _user_data_);
static void _dbus_synapse_free_desktop_dbus_start_service_by_name (SynapseFreeDesktopDBus* self,
                                                            GVariant* _parameters_,
                                                            GDBusMethodInvocation* invocation);
static void _dbus_synapse_free_desktop_dbus_start_service_by_name_ready (GObject * source_object,
                                                                  GAsyncResult * _res_,
                                                                  gpointer _user_data_);
static void _dbus_synapse_free_desktop_dbus_get_name_owner (SynapseFreeDesktopDBus* self,
                                                     GVariant* _parameters_,
                                                     GDBusMethodInvocation* invocation);
static void _dbus_synapse_free_desktop_dbus_get_name_owner_ready (GObject * source_object,
                                                           GAsyncResult * _res_,
                                                           gpointer _user_data_);
static void synapse_free_desktop_dbus_dbus_interface_method_call (GDBusConnection* connection,
                                                           const gchar* sender,
                                                           const gchar* object_path,
                                                           const gchar* interface_name,
                                                           const gchar* method_name,
                                                           GVariant* parameters,
                                                           GDBusMethodInvocation* invocation,
                                                           gpointer user_data);
static GVariant* synapse_free_desktop_dbus_dbus_interface_get_property (GDBusConnection* connection,
                                                                 const gchar* sender,
                                                                 const gchar* object_path,
                                                                 const gchar* interface_name,
                                                                 const gchar* property_name,
                                                                 GError** error,
                                                                 gpointer user_data);
static gboolean synapse_free_desktop_dbus_dbus_interface_set_property (GDBusConnection* connection,
                                                                const gchar* sender,
                                                                const gchar* object_path,
                                                                const gchar* interface_name,
                                                                const gchar* property_name,
                                                                GVariant* value,
                                                                GError** error,
                                                                gpointer user_data);
static void _dbus_synapse_free_desktop_dbus_name_owner_changed (GObject* _sender,
                                                         const gchar* name,
                                                         const gchar* old_owner,
                                                         const gchar* new_owner,
                                                         gpointer* _data);
static void _synapse_free_desktop_dbus_unregister_object (gpointer user_data);
static SynapseDBusService* synapse_dbus_service_new (void);
static SynapseDBusService* synapse_dbus_service_construct (GType object_type);
static void synapse_dbus_service_name_owner_changed (SynapseDBusService* self,
                                              SynapseFreeDesktopDBus* sender,
                                              const gchar* name,
                                              const gchar* old_owner,
                                              const gchar* new_owner);
static void synapse_dbus_service_initialize_data_free (gpointer _data);
static gboolean synapse_dbus_service_initialize_co (SynapseDbusServiceInitializeData* _data_);
static void synapse_dbus_service_initialize_ready (GObject* source_object,
                                            GAsyncResult* _res_,
                                            gpointer _user_data_);
static void _synapse_dbus_service_name_owner_changed_synapse_free_desktop_dbus_name_owner_changed (SynapseFreeDesktopDBus* _sender,
                                                                                            const gchar* name,
                                                                                            const gchar* old_owner,
                                                                                            const gchar* new_owner,
                                                                                            gpointer self);
static void g_cclosure_user_marshal_VOID__STRING_BOOLEAN (GClosure * closure,
                                                   GValue * return_value,
                                                   guint n_param_values,
                                                   const GValue * param_values,
                                                   gpointer invocation_hint,
                                                   gpointer marshal_data);
static GObject * synapse_dbus_service_constructor (GType type,
                                            guint n_construct_properties,
                                            GObjectConstructParam * construct_properties);
static void synapse_dbus_service_finalize (GObject * obj);
static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);

static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_list_queued_owners_name = {-1, "name", "s", NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_list_queued_owners_result = {-1, "result", "as", NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_list_queued_owners_in[] = {&_synapse_free_desktop_dbus_dbus_arg_info_list_queued_owners_name, NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_list_queued_owners_out[] = {&_synapse_free_desktop_dbus_dbus_arg_info_list_queued_owners_result, NULL};
static const GDBusMethodInfo _synapse_free_desktop_dbus_dbus_method_info_list_queued_owners = {-1, "ListQueuedOwners", (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_list_queued_owners_in), (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_list_queued_owners_out), NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_list_names_result = {-1, "result", "as", NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_list_names_in[] = {NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_list_names_out[] = {&_synapse_free_desktop_dbus_dbus_arg_info_list_names_result, NULL};
static const GDBusMethodInfo _synapse_free_desktop_dbus_dbus_method_info_list_names = {-1, "ListNames", (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_list_names_in), (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_list_names_out), NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_list_activatable_names_result = {-1, "result", "as", NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_list_activatable_names_in[] = {NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_list_activatable_names_out[] = {&_synapse_free_desktop_dbus_dbus_arg_info_list_activatable_names_result, NULL};
static const GDBusMethodInfo _synapse_free_desktop_dbus_dbus_method_info_list_activatable_names = {-1, "ListActivatableNames", (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_list_activatable_names_in), (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_list_activatable_names_out), NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_name_has_owner_name = {-1, "name", "s", NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_name_has_owner_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_name_has_owner_in[] = {&_synapse_free_desktop_dbus_dbus_arg_info_name_has_owner_name, NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_name_has_owner_out[] = {&_synapse_free_desktop_dbus_dbus_arg_info_name_has_owner_result, NULL};
static const GDBusMethodInfo _synapse_free_desktop_dbus_dbus_method_info_name_has_owner = {-1, "NameHasOwner", (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_name_has_owner_in), (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_name_has_owner_out), NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_start_service_by_name_name = {-1, "name", "s", NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_start_service_by_name_flags = {-1, "flags", "u", NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_start_service_by_name_result = {-1, "result", "u", NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_start_service_by_name_in[] = {&_synapse_free_desktop_dbus_dbus_arg_info_start_service_by_name_name, &_synapse_free_desktop_dbus_dbus_arg_info_start_service_by_name_flags, NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_start_service_by_name_out[] = {&_synapse_free_desktop_dbus_dbus_arg_info_start_service_by_name_result, NULL};
static const GDBusMethodInfo _synapse_free_desktop_dbus_dbus_method_info_start_service_by_name = {-1, "StartServiceByName", (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_start_service_by_name_in), (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_start_service_by_name_out), NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_get_name_owner_name = {-1, "name", "s", NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_get_name_owner_result = {-1, "result", "s", NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_get_name_owner_in[] = {&_synapse_free_desktop_dbus_dbus_arg_info_get_name_owner_name, NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_get_name_owner_out[] = {&_synapse_free_desktop_dbus_dbus_arg_info_get_name_owner_result, NULL};
static const GDBusMethodInfo _synapse_free_desktop_dbus_dbus_method_info_get_name_owner = {-1, "GetNameOwner", (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_get_name_owner_in), (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_get_name_owner_out), NULL};
static const GDBusMethodInfo * const _synapse_free_desktop_dbus_dbus_method_info[] = {&_synapse_free_desktop_dbus_dbus_method_info_list_queued_owners, &_synapse_free_desktop_dbus_dbus_method_info_list_names, &_synapse_free_desktop_dbus_dbus_method_info_list_activatable_names, &_synapse_free_desktop_dbus_dbus_method_info_name_has_owner, &_synapse_free_desktop_dbus_dbus_method_info_start_service_by_name, &_synapse_free_desktop_dbus_dbus_method_info_get_name_owner, NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_name_owner_changed_name = {-1, "name", "s", NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_name_owner_changed_old_owner = {-1, "old_owner", "s", NULL};
static const GDBusArgInfo _synapse_free_desktop_dbus_dbus_arg_info_name_owner_changed_new_owner = {-1, "new_owner", "s", NULL};
static const GDBusArgInfo * const _synapse_free_desktop_dbus_dbus_arg_info_name_owner_changed[] = {&_synapse_free_desktop_dbus_dbus_arg_info_name_owner_changed_name, &_synapse_free_desktop_dbus_dbus_arg_info_name_owner_changed_old_owner, &_synapse_free_desktop_dbus_dbus_arg_info_name_owner_changed_new_owner, NULL};
static const GDBusSignalInfo _synapse_free_desktop_dbus_dbus_signal_info_name_owner_changed = {-1, "NameOwnerChanged", (GDBusArgInfo **) (&_synapse_free_desktop_dbus_dbus_arg_info_name_owner_changed), NULL};
static const GDBusSignalInfo * const _synapse_free_desktop_dbus_dbus_signal_info[] = {&_synapse_free_desktop_dbus_dbus_signal_info_name_owner_changed, NULL};
static const GDBusPropertyInfo * const _synapse_free_desktop_dbus_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _synapse_free_desktop_dbus_dbus_interface_info = {-1, "org.freedesktop.DBus", (GDBusMethodInfo **) (&_synapse_free_desktop_dbus_dbus_method_info), (GDBusSignalInfo **) (&_synapse_free_desktop_dbus_dbus_signal_info), (GDBusPropertyInfo **) (&_synapse_free_desktop_dbus_dbus_property_info), NULL};
static const GDBusInterfaceVTable _synapse_free_desktop_dbus_dbus_interface_vtable = {synapse_free_desktop_dbus_dbus_interface_method_call, synapse_free_desktop_dbus_dbus_interface_get_property, synapse_free_desktop_dbus_dbus_interface_set_property};

void
synapse_free_desktop_dbus_list_queued_owners (SynapseFreeDesktopDBus* self,
                                              const gchar* name,
                                              GAsyncReadyCallback _callback_,
                                              gpointer _user_data_)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->list_queued_owners) {
		_iface_->list_queued_owners (self, name, _callback_, _user_data_);
	}
}

gchar**
synapse_free_desktop_dbus_list_queued_owners_finish (SynapseFreeDesktopDBus* self,
                                                     GAsyncResult* _res_,
                                                     gint* result_length1,
                                                     GError** error)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->list_queued_owners_finish) {
		return _iface_->list_queued_owners_finish (self, _res_, result_length1, error);
	}
	return NULL;
}

void
synapse_free_desktop_dbus_list_names (SynapseFreeDesktopDBus* self,
                                      GAsyncReadyCallback _callback_,
                                      gpointer _user_data_)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->list_names) {
		_iface_->list_names (self, _callback_, _user_data_);
	}
}

gchar**
synapse_free_desktop_dbus_list_names_finish (SynapseFreeDesktopDBus* self,
                                             GAsyncResult* _res_,
                                             gint* result_length1,
                                             GError** error)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->list_names_finish) {
		return _iface_->list_names_finish (self, _res_, result_length1, error);
	}
	return NULL;
}

void
synapse_free_desktop_dbus_list_activatable_names (SynapseFreeDesktopDBus* self,
                                                  GAsyncReadyCallback _callback_,
                                                  gpointer _user_data_)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->list_activatable_names) {
		_iface_->list_activatable_names (self, _callback_, _user_data_);
	}
}

gchar**
synapse_free_desktop_dbus_list_activatable_names_finish (SynapseFreeDesktopDBus* self,
                                                         GAsyncResult* _res_,
                                                         gint* result_length1,
                                                         GError** error)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->list_activatable_names_finish) {
		return _iface_->list_activatable_names_finish (self, _res_, result_length1, error);
	}
	return NULL;
}

void
synapse_free_desktop_dbus_name_has_owner (SynapseFreeDesktopDBus* self,
                                          const gchar* name,
                                          GAsyncReadyCallback _callback_,
                                          gpointer _user_data_)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->name_has_owner) {
		_iface_->name_has_owner (self, name, _callback_, _user_data_);
	}
}

gboolean
synapse_free_desktop_dbus_name_has_owner_finish (SynapseFreeDesktopDBus* self,
                                                 GAsyncResult* _res_,
                                                 GError** error)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->name_has_owner_finish) {
		return _iface_->name_has_owner_finish (self, _res_, error);
	}
	return FALSE;
}

void
synapse_free_desktop_dbus_start_service_by_name (SynapseFreeDesktopDBus* self,
                                                 const gchar* name,
                                                 guint32 flags,
                                                 GAsyncReadyCallback _callback_,
                                                 gpointer _user_data_)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->start_service_by_name) {
		_iface_->start_service_by_name (self, name, flags, _callback_, _user_data_);
	}
}

guint32
synapse_free_desktop_dbus_start_service_by_name_finish (SynapseFreeDesktopDBus* self,
                                                        GAsyncResult* _res_,
                                                        GError** error)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->start_service_by_name_finish) {
		return _iface_->start_service_by_name_finish (self, _res_, error);
	}
	return 0U;
}

void
synapse_free_desktop_dbus_get_name_owner (SynapseFreeDesktopDBus* self,
                                          const gchar* name,
                                          GAsyncReadyCallback _callback_,
                                          gpointer _user_data_)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->get_name_owner) {
		_iface_->get_name_owner (self, name, _callback_, _user_data_);
	}
}

gchar*
synapse_free_desktop_dbus_get_name_owner_finish (SynapseFreeDesktopDBus* self,
                                                 GAsyncResult* _res_,
                                                 GError** error)
{
	SynapseFreeDesktopDBusIface* _iface_;
	_iface_ = SYNAPSE_FREE_DESKTOP_DBUS_GET_INTERFACE (self);
	if (_iface_->get_name_owner_finish) {
		return _iface_->get_name_owner_finish (self, _res_, error);
	}
	return NULL;
}

static void
g_cclosure_user_marshal_VOID__STRING_STRING_STRING (GClosure * closure,
                                                    GValue * return_value,
                                                    guint n_param_values,
                                                    const GValue * param_values,
                                                    gpointer invocation_hint,
                                                    gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__STRING_STRING_STRING) (gpointer data1, const char* arg_1, const char* arg_2, const char* arg_3, gpointer data2);
	register GMarshalFunc_VOID__STRING_STRING_STRING callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	cc = (GCClosure *) closure;
	g_return_if_fail (n_param_values == 4);
	if (G_CCLOSURE_SWAP_DATA (closure)) {
		data1 = closure->data;
		data2 = param_values->data[0].v_pointer;
	} else {
		data1 = param_values->data[0].v_pointer;
		data2 = closure->data;
	}
	callback = (GMarshalFunc_VOID__STRING_STRING_STRING) (marshal_data ? marshal_data : cc->callback);
	callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), g_value_get_string (param_values + 3), data2);
}

static void
synapse_free_desktop_dbus_default_init (SynapseFreeDesktopDBusIface * iface,
                                        gpointer iface_data)
{
	synapse_free_desktop_dbus_signals[SYNAPSE_FREE_DESKTOP_DBUS_NAME_OWNER_CHANGED_SIGNAL] = g_signal_new ("name-owner-changed", SYNAPSE_TYPE_FREE_DESKTOP_DBUS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING_STRING, G_TYPE_NONE, 3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
}

GType
synapse_free_desktop_dbus_get_type (void)
{
	return synapse_free_desktop_dbus_type_id;
}

GType
synapse_free_desktop_dbus_register_type (GTypeModule * module)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseFreeDesktopDBusIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_free_desktop_dbus_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	synapse_free_desktop_dbus_type_id = g_type_module_register_type (module, G_TYPE_INTERFACE, "SynapseFreeDesktopDBus", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (synapse_free_desktop_dbus_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (synapse_free_desktop_dbus_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) synapse_free_desktop_dbus_proxy_get_type);
	g_type_set_qdata (synapse_free_desktop_dbus_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.freedesktop.DBus");
	g_type_set_qdata (synapse_free_desktop_dbus_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_synapse_free_desktop_dbus_dbus_interface_info));
	g_type_set_qdata (synapse_free_desktop_dbus_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) synapse_free_desktop_dbus_register_object);
	return synapse_free_desktop_dbus_type_id;
}

G_DEFINE_DYNAMIC_TYPE_EXTENDED (SynapseFreeDesktopDBusProxy, synapse_free_desktop_dbus_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE_DYNAMIC (SYNAPSE_TYPE_FREE_DESKTOP_DBUS, synapse_free_desktop_dbus_proxy_synapse_free_desktop_dbus_interface_init) )
static void
synapse_free_desktop_dbus_proxy_class_init (SynapseFreeDesktopDBusProxyClass* klass)
{
	G_DBUS_PROXY_CLASS (klass)->g_signal = synapse_free_desktop_dbus_proxy_g_signal;
}

static void
_dbus_handle_synapse_free_desktop_dbus_name_owner_changed (SynapseFreeDesktopDBus* self,
                                                           GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gchar* name = NULL;
	GVariant* _tmp34_;
	gchar* old_owner = NULL;
	GVariant* _tmp35_;
	gchar* new_owner = NULL;
	GVariant* _tmp36_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp34_ = g_variant_iter_next_value (&_arguments_iter);
	name = g_variant_dup_string (_tmp34_, NULL);
	g_variant_unref (_tmp34_);
	_tmp35_ = g_variant_iter_next_value (&_arguments_iter);
	old_owner = g_variant_dup_string (_tmp35_, NULL);
	g_variant_unref (_tmp35_);
	_tmp36_ = g_variant_iter_next_value (&_arguments_iter);
	new_owner = g_variant_dup_string (_tmp36_, NULL);
	g_variant_unref (_tmp36_);
	g_signal_emit_by_name (self, "name-owner-changed", name, old_owner, new_owner);
	_g_free0 (name);
	_g_free0 (old_owner);
	_g_free0 (new_owner);
}

static void
synapse_free_desktop_dbus_proxy_g_signal (GDBusProxy* proxy,
                                          const gchar* sender_name,
                                          const gchar* signal_name,
                                          GVariant* parameters)
{
	if (strcmp (signal_name, "NameOwnerChanged") == 0) {
		_dbus_handle_synapse_free_desktop_dbus_name_owner_changed ((SynapseFreeDesktopDBus*) proxy, parameters);
	}
}

static void
synapse_free_desktop_dbus_proxy_class_finalize (SynapseFreeDesktopDBusProxyClass* klass)
{
}

void
synapse_free_desktop_dbus_proxy_register_dynamic_type (GTypeModule* module)
{
	synapse_free_desktop_dbus_proxy_register_type (module);
}

static void
synapse_free_desktop_dbus_proxy_init (SynapseFreeDesktopDBusProxy* self)
{
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_synapse_free_desktop_dbus_dbus_interface_info));
}

static void
_vala_g_async_ready_callback (GObject *source_object,
                              GAsyncResult *res,
                              void *user_data)
{
	g_task_return_pointer (user_data, g_object_ref (res), g_object_unref);
	g_object_unref (user_data);
}

static void
synapse_free_desktop_dbus_proxy_list_queued_owners_async (SynapseFreeDesktopDBus* self,
                                                          const gchar* name,
                                                          GAsyncReadyCallback _callback_,
                                                          gpointer _user_data_)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.freedesktop.DBus", "ListQueuedOwners");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (name));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	if (_callback_ != NULL) {
		g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_task_new ((GObject *) self, NULL, _callback_, _user_data_));
	} else {
		g_dbus_message_set_flags (_message, G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED);
		g_dbus_connection_send_message (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	}
	g_object_unref (_message);
}

static gchar**
synapse_free_desktop_dbus_proxy_list_queued_owners_finish (SynapseFreeDesktopDBus* self,
                                                           GAsyncResult* _res_,
                                                           gint* result_length1,
                                                           GError** error)
{
	GAsyncResult *_inner_res;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gchar** _result = NULL;
	gint _result_length1;
	GVariant* _tmp37_;
	gchar** _tmp38_;
	gint _tmp38__length;
	gint _tmp38__size;
	gint _tmp38__length1;
	GVariantIter _tmp39_;
	GVariant* _tmp40_;
	_inner_res = g_task_propagate_pointer ((GTask *) _res_, NULL);
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), _inner_res, error);
	g_object_unref (_inner_res);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_result_length1 = 0;
	_tmp37_ = g_variant_iter_next_value (&_reply_iter);
	_tmp38_ = g_new (gchar*, 5);
	_tmp38__length = 0;
	_tmp38__size = 4;
	_tmp38__length1 = 0;
	g_variant_iter_init (&_tmp39_, _tmp37_);
	for (; (_tmp40_ = g_variant_iter_next_value (&_tmp39_)) != NULL; _tmp38__length1++) {
		if (_tmp38__size == _tmp38__length) {
			_tmp38__size = 2 * _tmp38__size;
			_tmp38_ = g_renew (gchar*, _tmp38_, _tmp38__size + 1);
		}
		_tmp38_[_tmp38__length++] = g_variant_dup_string (_tmp40_, NULL);
		g_variant_unref (_tmp40_);
	}
	_result_length1 = _tmp38__length1;
	_tmp38_[_tmp38__length] = NULL;
	_result = _tmp38_;
	g_variant_unref (_tmp37_);
	*result_length1 = _result_length1;
	g_object_unref (_reply_message);
	return _result;
}

static void
synapse_free_desktop_dbus_proxy_list_names_async (SynapseFreeDesktopDBus* self,
                                                  GAsyncReadyCallback _callback_,
                                                  gpointer _user_data_)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.freedesktop.DBus", "ListNames");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	if (_callback_ != NULL) {
		g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_task_new ((GObject *) self, NULL, _callback_, _user_data_));
	} else {
		g_dbus_message_set_flags (_message, G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED);
		g_dbus_connection_send_message (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	}
	g_object_unref (_message);
}

static gchar**
synapse_free_desktop_dbus_proxy_list_names_finish (SynapseFreeDesktopDBus* self,
                                                   GAsyncResult* _res_,
                                                   gint* result_length1,
                                                   GError** error)
{
	GAsyncResult *_inner_res;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gchar** _result = NULL;
	gint _result_length1;
	GVariant* _tmp41_;
	gchar** _tmp42_;
	gint _tmp42__length;
	gint _tmp42__size;
	gint _tmp42__length1;
	GVariantIter _tmp43_;
	GVariant* _tmp44_;
	_inner_res = g_task_propagate_pointer ((GTask *) _res_, NULL);
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), _inner_res, error);
	g_object_unref (_inner_res);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_result_length1 = 0;
	_tmp41_ = g_variant_iter_next_value (&_reply_iter);
	_tmp42_ = g_new (gchar*, 5);
	_tmp42__length = 0;
	_tmp42__size = 4;
	_tmp42__length1 = 0;
	g_variant_iter_init (&_tmp43_, _tmp41_);
	for (; (_tmp44_ = g_variant_iter_next_value (&_tmp43_)) != NULL; _tmp42__length1++) {
		if (_tmp42__size == _tmp42__length) {
			_tmp42__size = 2 * _tmp42__size;
			_tmp42_ = g_renew (gchar*, _tmp42_, _tmp42__size + 1);
		}
		_tmp42_[_tmp42__length++] = g_variant_dup_string (_tmp44_, NULL);
		g_variant_unref (_tmp44_);
	}
	_result_length1 = _tmp42__length1;
	_tmp42_[_tmp42__length] = NULL;
	_result = _tmp42_;
	g_variant_unref (_tmp41_);
	*result_length1 = _result_length1;
	g_object_unref (_reply_message);
	return _result;
}

static void
synapse_free_desktop_dbus_proxy_list_activatable_names_async (SynapseFreeDesktopDBus* self,
                                                              GAsyncReadyCallback _callback_,
                                                              gpointer _user_data_)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.freedesktop.DBus", "ListActivatableNames");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	if (_callback_ != NULL) {
		g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_task_new ((GObject *) self, NULL, _callback_, _user_data_));
	} else {
		g_dbus_message_set_flags (_message, G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED);
		g_dbus_connection_send_message (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	}
	g_object_unref (_message);
}

static gchar**
synapse_free_desktop_dbus_proxy_list_activatable_names_finish (SynapseFreeDesktopDBus* self,
                                                               GAsyncResult* _res_,
                                                               gint* result_length1,
                                                               GError** error)
{
	GAsyncResult *_inner_res;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gchar** _result = NULL;
	gint _result_length1;
	GVariant* _tmp45_;
	gchar** _tmp46_;
	gint _tmp46__length;
	gint _tmp46__size;
	gint _tmp46__length1;
	GVariantIter _tmp47_;
	GVariant* _tmp48_;
	_inner_res = g_task_propagate_pointer ((GTask *) _res_, NULL);
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), _inner_res, error);
	g_object_unref (_inner_res);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_result_length1 = 0;
	_tmp45_ = g_variant_iter_next_value (&_reply_iter);
	_tmp46_ = g_new (gchar*, 5);
	_tmp46__length = 0;
	_tmp46__size = 4;
	_tmp46__length1 = 0;
	g_variant_iter_init (&_tmp47_, _tmp45_);
	for (; (_tmp48_ = g_variant_iter_next_value (&_tmp47_)) != NULL; _tmp46__length1++) {
		if (_tmp46__size == _tmp46__length) {
			_tmp46__size = 2 * _tmp46__size;
			_tmp46_ = g_renew (gchar*, _tmp46_, _tmp46__size + 1);
		}
		_tmp46_[_tmp46__length++] = g_variant_dup_string (_tmp48_, NULL);
		g_variant_unref (_tmp48_);
	}
	_result_length1 = _tmp46__length1;
	_tmp46_[_tmp46__length] = NULL;
	_result = _tmp46_;
	g_variant_unref (_tmp45_);
	*result_length1 = _result_length1;
	g_object_unref (_reply_message);
	return _result;
}

static void
synapse_free_desktop_dbus_proxy_name_has_owner_async (SynapseFreeDesktopDBus* self,
                                                      const gchar* name,
                                                      GAsyncReadyCallback _callback_,
                                                      gpointer _user_data_)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.freedesktop.DBus", "NameHasOwner");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (name));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	if (_callback_ != NULL) {
		g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_task_new ((GObject *) self, NULL, _callback_, _user_data_));
	} else {
		g_dbus_message_set_flags (_message, G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED);
		g_dbus_connection_send_message (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	}
	g_object_unref (_message);
}

static gboolean
synapse_free_desktop_dbus_proxy_name_has_owner_finish (SynapseFreeDesktopDBus* self,
                                                       GAsyncResult* _res_,
                                                       GError** error)
{
	GAsyncResult *_inner_res;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gboolean _result = FALSE;
	GVariant* _tmp51_;
	_inner_res = g_task_propagate_pointer ((GTask *) _res_, NULL);
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), _inner_res, error);
	g_object_unref (_inner_res);
	if (!_reply_message) {
		gboolean _tmp49_ = FALSE;
		return _tmp49_;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		gboolean _tmp50_ = FALSE;
		g_object_unref (_reply_message);
		return _tmp50_;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_tmp51_ = g_variant_iter_next_value (&_reply_iter);
	_result = g_variant_get_boolean (_tmp51_);
	g_variant_unref (_tmp51_);
	g_object_unref (_reply_message);
	return _result;
}

static void
synapse_free_desktop_dbus_proxy_start_service_by_name_async (SynapseFreeDesktopDBus* self,
                                                             const gchar* name,
                                                             guint32 flags,
                                                             GAsyncReadyCallback _callback_,
                                                             gpointer _user_data_)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.freedesktop.DBus", "StartServiceByName");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (name));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (flags));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	if (_callback_ != NULL) {
		g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_task_new ((GObject *) self, NULL, _callback_, _user_data_));
	} else {
		g_dbus_message_set_flags (_message, G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED);
		g_dbus_connection_send_message (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	}
	g_object_unref (_message);
}

static guint32
synapse_free_desktop_dbus_proxy_start_service_by_name_finish (SynapseFreeDesktopDBus* self,
                                                              GAsyncResult* _res_,
                                                              GError** error)
{
	GAsyncResult *_inner_res;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	guint32 _result = 0U;
	GVariant* _tmp54_;
	_inner_res = g_task_propagate_pointer ((GTask *) _res_, NULL);
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), _inner_res, error);
	g_object_unref (_inner_res);
	if (!_reply_message) {
		guint32 _tmp52_ = 0U;
		return _tmp52_;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		guint32 _tmp53_ = 0U;
		g_object_unref (_reply_message);
		return _tmp53_;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_tmp54_ = g_variant_iter_next_value (&_reply_iter);
	_result = g_variant_get_uint32 (_tmp54_);
	g_variant_unref (_tmp54_);
	g_object_unref (_reply_message);
	return _result;
}

static void
synapse_free_desktop_dbus_proxy_get_name_owner_async (SynapseFreeDesktopDBus* self,
                                                      const gchar* name,
                                                      GAsyncReadyCallback _callback_,
                                                      gpointer _user_data_)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.freedesktop.DBus", "GetNameOwner");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (name));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	if (_callback_ != NULL) {
		g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_task_new ((GObject *) self, NULL, _callback_, _user_data_));
	} else {
		g_dbus_message_set_flags (_message, G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED);
		g_dbus_connection_send_message (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	}
	g_object_unref (_message);
}

static gchar*
synapse_free_desktop_dbus_proxy_get_name_owner_finish (SynapseFreeDesktopDBus* self,
                                                       GAsyncResult* _res_,
                                                       GError** error)
{
	GAsyncResult *_inner_res;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gchar* _result = NULL;
	GVariant* _tmp55_;
	_inner_res = g_task_propagate_pointer ((GTask *) _res_, NULL);
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), _inner_res, error);
	g_object_unref (_inner_res);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_tmp55_ = g_variant_iter_next_value (&_reply_iter);
	_result = g_variant_dup_string (_tmp55_, NULL);
	g_variant_unref (_tmp55_);
	g_object_unref (_reply_message);
	return _result;
}

static void
synapse_free_desktop_dbus_proxy_synapse_free_desktop_dbus_interface_init (SynapseFreeDesktopDBusIface* iface)
{
	iface->list_queued_owners = synapse_free_desktop_dbus_proxy_list_queued_owners_async;
	iface->list_queued_owners_finish = synapse_free_desktop_dbus_proxy_list_queued_owners_finish;
	iface->list_names = synapse_free_desktop_dbus_proxy_list_names_async;
	iface->list_names_finish = synapse_free_desktop_dbus_proxy_list_names_finish;
	iface->list_activatable_names = synapse_free_desktop_dbus_proxy_list_activatable_names_async;
	iface->list_activatable_names_finish = synapse_free_desktop_dbus_proxy_list_activatable_names_finish;
	iface->name_has_owner = synapse_free_desktop_dbus_proxy_name_has_owner_async;
	iface->name_has_owner_finish = synapse_free_desktop_dbus_proxy_name_has_owner_finish;
	iface->start_service_by_name = synapse_free_desktop_dbus_proxy_start_service_by_name_async;
	iface->start_service_by_name_finish = synapse_free_desktop_dbus_proxy_start_service_by_name_finish;
	iface->get_name_owner = synapse_free_desktop_dbus_proxy_get_name_owner_async;
	iface->get_name_owner_finish = synapse_free_desktop_dbus_proxy_get_name_owner_finish;
}

static void
_dbus_synapse_free_desktop_dbus_list_queued_owners (SynapseFreeDesktopDBus* self,
                                                    GVariant* _parameters_,
                                                    GDBusMethodInvocation* invocation)
{
	GVariantIter _arguments_iter;
	SynapseFreeDesktopDbusListQueuedOwnersReadyData* _ready_data;
	GVariant* _tmp56_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_ready_data = g_slice_new0 (SynapseFreeDesktopDbusListQueuedOwnersReadyData);
	_ready_data->_invocation_ = invocation;
	_tmp56_ = g_variant_iter_next_value (&_arguments_iter);
	_ready_data->name = g_variant_dup_string (_tmp56_, NULL);
	g_variant_unref (_tmp56_);
	synapse_free_desktop_dbus_list_queued_owners (self, _ready_data->name, (GAsyncReadyCallback) _dbus_synapse_free_desktop_dbus_list_queued_owners_ready, _ready_data);
	_error:
	;
}

static void
_dbus_synapse_free_desktop_dbus_list_queued_owners_ready (GObject * source_object,
                                                          GAsyncResult * _res_,
                                                          gpointer _user_data_)
{
	SynapseFreeDesktopDbusListQueuedOwnersReadyData* _ready_data;
	GDBusMethodInvocation* invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar** result;
	gint result_length1 = 0;
	gchar** _tmp57_;
	GVariantBuilder _tmp58_;
	gint _tmp59_;
	_ready_data = _user_data_;
	invocation = _ready_data->_invocation_;
	result = synapse_free_desktop_dbus_list_queued_owners_finish ((SynapseFreeDesktopDBus*) source_object, _res_, &result_length1, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_tmp57_ = result;
	g_variant_builder_init (&_tmp58_, G_VARIANT_TYPE ("as"));
	for (_tmp59_ = 0; _tmp59_ < result_length1; _tmp59_++) {
		g_variant_builder_add_value (&_tmp58_, g_variant_new_string (*_tmp57_));
		_tmp57_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp58_));
	result = (_vala_array_free (result, result_length1, (GDestroyNotify) g_free), NULL);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	_g_free0 (_ready_data->name);
	g_slice_free (SynapseFreeDesktopDbusListQueuedOwnersReadyData, _ready_data);
}

static void
_dbus_synapse_free_desktop_dbus_list_names (SynapseFreeDesktopDBus* self,
                                            GVariant* _parameters_,
                                            GDBusMethodInvocation* invocation)
{
	GVariantIter _arguments_iter;
	SynapseFreeDesktopDbusListNamesReadyData* _ready_data;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_ready_data = g_slice_new0 (SynapseFreeDesktopDbusListNamesReadyData);
	_ready_data->_invocation_ = invocation;
	synapse_free_desktop_dbus_list_names (self, (GAsyncReadyCallback) _dbus_synapse_free_desktop_dbus_list_names_ready, _ready_data);
}

static void
_dbus_synapse_free_desktop_dbus_list_names_ready (GObject * source_object,
                                                  GAsyncResult * _res_,
                                                  gpointer _user_data_)
{
	SynapseFreeDesktopDbusListNamesReadyData* _ready_data;
	GDBusMethodInvocation* invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar** result;
	gint result_length1 = 0;
	gchar** _tmp60_;
	GVariantBuilder _tmp61_;
	gint _tmp62_;
	_ready_data = _user_data_;
	invocation = _ready_data->_invocation_;
	result = synapse_free_desktop_dbus_list_names_finish ((SynapseFreeDesktopDBus*) source_object, _res_, &result_length1, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_tmp60_ = result;
	g_variant_builder_init (&_tmp61_, G_VARIANT_TYPE ("as"));
	for (_tmp62_ = 0; _tmp62_ < result_length1; _tmp62_++) {
		g_variant_builder_add_value (&_tmp61_, g_variant_new_string (*_tmp60_));
		_tmp60_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp61_));
	result = (_vala_array_free (result, result_length1, (GDestroyNotify) g_free), NULL);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	g_slice_free (SynapseFreeDesktopDbusListNamesReadyData, _ready_data);
}

static void
_dbus_synapse_free_desktop_dbus_list_activatable_names (SynapseFreeDesktopDBus* self,
                                                        GVariant* _parameters_,
                                                        GDBusMethodInvocation* invocation)
{
	GVariantIter _arguments_iter;
	SynapseFreeDesktopDbusListActivatableNamesReadyData* _ready_data;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_ready_data = g_slice_new0 (SynapseFreeDesktopDbusListActivatableNamesReadyData);
	_ready_data->_invocation_ = invocation;
	synapse_free_desktop_dbus_list_activatable_names (self, (GAsyncReadyCallback) _dbus_synapse_free_desktop_dbus_list_activatable_names_ready, _ready_data);
}

static void
_dbus_synapse_free_desktop_dbus_list_activatable_names_ready (GObject * source_object,
                                                              GAsyncResult * _res_,
                                                              gpointer _user_data_)
{
	SynapseFreeDesktopDbusListActivatableNamesReadyData* _ready_data;
	GDBusMethodInvocation* invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar** result;
	gint result_length1 = 0;
	gchar** _tmp63_;
	GVariantBuilder _tmp64_;
	gint _tmp65_;
	_ready_data = _user_data_;
	invocation = _ready_data->_invocation_;
	result = synapse_free_desktop_dbus_list_activatable_names_finish ((SynapseFreeDesktopDBus*) source_object, _res_, &result_length1, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_tmp63_ = result;
	g_variant_builder_init (&_tmp64_, G_VARIANT_TYPE ("as"));
	for (_tmp65_ = 0; _tmp65_ < result_length1; _tmp65_++) {
		g_variant_builder_add_value (&_tmp64_, g_variant_new_string (*_tmp63_));
		_tmp63_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp64_));
	result = (_vala_array_free (result, result_length1, (GDestroyNotify) g_free), NULL);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	g_slice_free (SynapseFreeDesktopDbusListActivatableNamesReadyData, _ready_data);
}

static void
_dbus_synapse_free_desktop_dbus_name_has_owner (SynapseFreeDesktopDBus* self,
                                                GVariant* _parameters_,
                                                GDBusMethodInvocation* invocation)
{
	GVariantIter _arguments_iter;
	SynapseFreeDesktopDbusNameHasOwnerReadyData* _ready_data;
	GVariant* _tmp66_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_ready_data = g_slice_new0 (SynapseFreeDesktopDbusNameHasOwnerReadyData);
	_ready_data->_invocation_ = invocation;
	_tmp66_ = g_variant_iter_next_value (&_arguments_iter);
	_ready_data->name = g_variant_dup_string (_tmp66_, NULL);
	g_variant_unref (_tmp66_);
	synapse_free_desktop_dbus_name_has_owner (self, _ready_data->name, (GAsyncReadyCallback) _dbus_synapse_free_desktop_dbus_name_has_owner_ready, _ready_data);
	_error:
	;
}

static void
_dbus_synapse_free_desktop_dbus_name_has_owner_ready (GObject * source_object,
                                                      GAsyncResult * _res_,
                                                      gpointer _user_data_)
{
	SynapseFreeDesktopDbusNameHasOwnerReadyData* _ready_data;
	GDBusMethodInvocation* invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	_ready_data = _user_data_;
	invocation = _ready_data->_invocation_;
	result = synapse_free_desktop_dbus_name_has_owner_finish ((SynapseFreeDesktopDBus*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	_g_free0 (_ready_data->name);
	g_slice_free (SynapseFreeDesktopDbusNameHasOwnerReadyData, _ready_data);
}

static void
_dbus_synapse_free_desktop_dbus_start_service_by_name (SynapseFreeDesktopDBus* self,
                                                       GVariant* _parameters_,
                                                       GDBusMethodInvocation* invocation)
{
	GVariantIter _arguments_iter;
	SynapseFreeDesktopDbusStartServiceByNameReadyData* _ready_data;
	GVariant* _tmp67_;
	GVariant* _tmp68_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_ready_data = g_slice_new0 (SynapseFreeDesktopDbusStartServiceByNameReadyData);
	_ready_data->_invocation_ = invocation;
	_tmp67_ = g_variant_iter_next_value (&_arguments_iter);
	_ready_data->name = g_variant_dup_string (_tmp67_, NULL);
	g_variant_unref (_tmp67_);
	_tmp68_ = g_variant_iter_next_value (&_arguments_iter);
	_ready_data->flags = g_variant_get_uint32 (_tmp68_);
	g_variant_unref (_tmp68_);
	synapse_free_desktop_dbus_start_service_by_name (self, _ready_data->name, _ready_data->flags, (GAsyncReadyCallback) _dbus_synapse_free_desktop_dbus_start_service_by_name_ready, _ready_data);
	_error:
	;
}

static void
_dbus_synapse_free_desktop_dbus_start_service_by_name_ready (GObject * source_object,
                                                             GAsyncResult * _res_,
                                                             gpointer _user_data_)
{
	SynapseFreeDesktopDbusStartServiceByNameReadyData* _ready_data;
	GDBusMethodInvocation* invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	guint32 result;
	_ready_data = _user_data_;
	invocation = _ready_data->_invocation_;
	result = synapse_free_desktop_dbus_start_service_by_name_finish ((SynapseFreeDesktopDBus*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_uint32 (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	_g_free0 (_ready_data->name);
	g_slice_free (SynapseFreeDesktopDbusStartServiceByNameReadyData, _ready_data);
}

static void
_dbus_synapse_free_desktop_dbus_get_name_owner (SynapseFreeDesktopDBus* self,
                                                GVariant* _parameters_,
                                                GDBusMethodInvocation* invocation)
{
	GVariantIter _arguments_iter;
	SynapseFreeDesktopDbusGetNameOwnerReadyData* _ready_data;
	GVariant* _tmp69_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_ready_data = g_slice_new0 (SynapseFreeDesktopDbusGetNameOwnerReadyData);
	_ready_data->_invocation_ = invocation;
	_tmp69_ = g_variant_iter_next_value (&_arguments_iter);
	_ready_data->name = g_variant_dup_string (_tmp69_, NULL);
	g_variant_unref (_tmp69_);
	synapse_free_desktop_dbus_get_name_owner (self, _ready_data->name, (GAsyncReadyCallback) _dbus_synapse_free_desktop_dbus_get_name_owner_ready, _ready_data);
	_error:
	;
}

static void
_dbus_synapse_free_desktop_dbus_get_name_owner_ready (GObject * source_object,
                                                      GAsyncResult * _res_,
                                                      gpointer _user_data_)
{
	SynapseFreeDesktopDbusGetNameOwnerReadyData* _ready_data;
	GDBusMethodInvocation* invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar* result;
	_ready_data = _user_data_;
	invocation = _ready_data->_invocation_;
	result = synapse_free_desktop_dbus_get_name_owner_finish ((SynapseFreeDesktopDBus*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_string (result));
	_g_free0 (result);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	_g_free0 (_ready_data->name);
	g_slice_free (SynapseFreeDesktopDbusGetNameOwnerReadyData, _ready_data);
}

static void
synapse_free_desktop_dbus_dbus_interface_method_call (GDBusConnection* connection,
                                                      const gchar* sender,
                                                      const gchar* object_path,
                                                      const gchar* interface_name,
                                                      const gchar* method_name,
                                                      GVariant* parameters,
                                                      GDBusMethodInvocation* invocation,
                                                      gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "ListQueuedOwners") == 0) {
		_dbus_synapse_free_desktop_dbus_list_queued_owners (object, parameters, invocation);
	} else if (strcmp (method_name, "ListNames") == 0) {
		_dbus_synapse_free_desktop_dbus_list_names (object, parameters, invocation);
	} else if (strcmp (method_name, "ListActivatableNames") == 0) {
		_dbus_synapse_free_desktop_dbus_list_activatable_names (object, parameters, invocation);
	} else if (strcmp (method_name, "NameHasOwner") == 0) {
		_dbus_synapse_free_desktop_dbus_name_has_owner (object, parameters, invocation);
	} else if (strcmp (method_name, "StartServiceByName") == 0) {
		_dbus_synapse_free_desktop_dbus_start_service_by_name (object, parameters, invocation);
	} else if (strcmp (method_name, "GetNameOwner") == 0) {
		_dbus_synapse_free_desktop_dbus_get_name_owner (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}

static GVariant*
synapse_free_desktop_dbus_dbus_interface_get_property (GDBusConnection* connection,
                                                       const gchar* sender,
                                                       const gchar* object_path,
                                                       const gchar* interface_name,
                                                       const gchar* property_name,
                                                       GError** error,
                                                       gpointer user_data)
{
	return NULL;
}

static gboolean
synapse_free_desktop_dbus_dbus_interface_set_property (GDBusConnection* connection,
                                                       const gchar* sender,
                                                       const gchar* object_path,
                                                       const gchar* interface_name,
                                                       const gchar* property_name,
                                                       GVariant* value,
                                                       GError** error,
                                                       gpointer user_data)
{
	return FALSE;
}

static void
_dbus_synapse_free_desktop_dbus_name_owner_changed (GObject* _sender,
                                                    const gchar* name,
                                                    const gchar* old_owner,
                                                    const gchar* new_owner,
                                                    gpointer* _data)
{
	GDBusConnection * _connection;
	const gchar * _path;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_connection = _data[1];
	_path = _data[2];
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (name));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (old_owner));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (new_owner));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.freedesktop.DBus", "NameOwnerChanged", _arguments, NULL);
}

guint
synapse_free_desktop_dbus_register_object (gpointer object,
                                           GDBusConnection* connection,
                                           const gchar* path,
                                           GError** error)
{
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_synapse_free_desktop_dbus_dbus_interface_info), &_synapse_free_desktop_dbus_dbus_interface_vtable, data, _synapse_free_desktop_dbus_unregister_object, error);
	if (!result) {
		return 0;
	}
	g_signal_connect (object, "name-owner-changed", (GCallback) _dbus_synapse_free_desktop_dbus_name_owner_changed, data);
	return result;
}

static void
_synapse_free_desktop_dbus_unregister_object (gpointer user_data)
{
	gpointer* data;
	data = user_data;
	g_signal_handlers_disconnect_by_func (data[0], _dbus_synapse_free_desktop_dbus_name_owner_changed, data);
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}

static inline gpointer
synapse_dbus_service_get_instance_private (SynapseDBusService* self)
{
	return G_STRUCT_MEMBER_P (self, SynapseDBusService_private_offset);
}

static gpointer
_g_object_ref0 (gpointer self)
{
	return self ? g_object_ref (self) : NULL;
}

SynapseDBusService*
synapse_dbus_service_get_default (void)
{
	SynapseDBusService* _tmp0_ = NULL;
	SynapseDBusService* _tmp1_;
	SynapseDBusService* _tmp2_;
	SynapseDBusService* _tmp4_;
	SynapseDBusService* result;
	_tmp1_ = synapse_dbus_service_instance;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_tmp0_ = _tmp2_;
	if (_tmp0_ == NULL) {
		SynapseDBusService* _tmp3_;
		_tmp3_ = synapse_dbus_service_new ();
		_g_object_unref0 (_tmp0_);
		_tmp0_ = _tmp3_;
	}
	_tmp4_ = _tmp0_;
	_tmp0_ = NULL;
	result = _tmp4_;
	_g_object_unref0 (_tmp0_);
	return result;
}

static SynapseDBusService*
synapse_dbus_service_construct (GType object_type)
{
	SynapseDBusService * self = NULL;
	self = (SynapseDBusService*) g_object_new (object_type, NULL);
	return self;
}

static SynapseDBusService*
synapse_dbus_service_new (void)
{
	return synapse_dbus_service_construct (SYNAPSE_TYPE_DBUS_SERVICE);
}

static void
synapse_dbus_service_name_owner_changed (SynapseDBusService* self,
                                         SynapseFreeDesktopDBus* sender,
                                         const gchar* name,
                                         const gchar* old_owner,
                                         const gchar* new_owner)
{
	g_return_if_fail (self != NULL);
	g_return_if_fail (sender != NULL);
	g_return_if_fail (name != NULL);
	g_return_if_fail (old_owner != NULL);
	g_return_if_fail (new_owner != NULL);
	if (g_str_has_prefix (name, ":")) {
		return;
	}
	if (g_strcmp0 (old_owner, "") == 0) {
		GeeSet* _tmp0_;
		_tmp0_ = self->priv->owned_names;
		gee_collection_add ((GeeCollection*) _tmp0_, name);
		g_signal_emit (self, synapse_dbus_service_signals[SYNAPSE_DBUS_SERVICE_OWNER_CHANGED_SIGNAL], 0, name, TRUE);
	} else {
		if (g_strcmp0 (new_owner, "") == 0) {
			GeeSet* _tmp1_;
			_tmp1_ = self->priv->owned_names;
			gee_collection_remove ((GeeCollection*) _tmp1_, name);
			g_signal_emit (self, synapse_dbus_service_signals[SYNAPSE_DBUS_SERVICE_OWNER_CHANGED_SIGNAL], 0, name, FALSE);
		}
	}
}

gboolean
synapse_dbus_service_name_has_owner (SynapseDBusService* self,
                                     const gchar* name)
{
	GeeSet* _tmp0_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (name != NULL, FALSE);
	_tmp0_ = self->priv->owned_names;
	result = gee_collection_contains ((GeeCollection*) _tmp0_, name);
	return result;
}

gboolean
synapse_dbus_service_name_is_activatable (SynapseDBusService* self,
                                          const gchar* name)
{
	GeeSet* _tmp0_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (name != NULL, FALSE);
	_tmp0_ = self->priv->activatable_names;
	result = gee_collection_contains ((GeeCollection*) _tmp0_, name);
	return result;
}

gboolean
synapse_dbus_service_service_is_available (SynapseDBusService* self,
                                           const gchar* name)
{
	GeeSet* _tmp0_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (name != NULL, FALSE);
	_tmp0_ = self->priv->system_activatable_names;
	result = gee_collection_contains ((GeeCollection*) _tmp0_, name);
	return result;
}

static void
synapse_dbus_service_initialize_data_free (gpointer _data)
{
	SynapseDbusServiceInitializeData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (SynapseDbusServiceInitializeData, _data_);
}

void
synapse_dbus_service_initialize (SynapseDBusService* self,
                                 GAsyncReadyCallback _callback_,
                                 gpointer _user_data_)
{
	SynapseDbusServiceInitializeData* _data_;
	SynapseDBusService* _tmp0_;
	g_return_if_fail (self != NULL);
	_data_ = g_slice_new0 (SynapseDbusServiceInitializeData);
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
	g_task_set_task_data (_data_->_async_result, _data_, synapse_dbus_service_initialize_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	synapse_dbus_service_initialize_co (_data_);
}

void
synapse_dbus_service_initialize_finish (SynapseDBusService* self,
                                        GAsyncResult* _res_)
{
	SynapseDbusServiceInitializeData* _data_;
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
}

static void
synapse_dbus_service_initialize_ready (GObject* source_object,
                                       GAsyncResult* _res_,
                                       gpointer _user_data_)
{
	SynapseDbusServiceInitializeData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	synapse_dbus_service_initialize_co (_data_);
}

static void
_synapse_dbus_service_name_owner_changed_synapse_free_desktop_dbus_name_owner_changed (SynapseFreeDesktopDBus* _sender,
                                                                                       const gchar* name,
                                                                                       const gchar* old_owner,
                                                                                       const gchar* new_owner,
                                                                                       gpointer self)
{
	synapse_dbus_service_name_owner_changed ((SynapseDBusService*) self, _sender, name, old_owner, new_owner);
}

static gboolean
synapse_dbus_service_initialize_co (SynapseDbusServiceInitializeData* _data_)
{
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		case 3:
		goto _state_3;
		case 4:
		goto _state_4;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = _data_->self->priv->init_once;
	if (synapse_utils_async_once_is_initialized (_data_->_tmp0_)) {
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp1_ = _data_->self->priv->init_once;
	_data_->_state_ = 1;
	synapse_utils_async_once_enter (_data_->_tmp1_, synapse_dbus_service_initialize_ready, _data_);
	return FALSE;
	_state_1:
	_data_->is_locked = synapse_utils_async_once_enter_finish (_data_->_tmp1_, _data_->_res_);
	if (!_data_->is_locked) {
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
		if (_data_->_state_ != 0) {
			while (!g_task_get_completed (_data_->_async_result)) {
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
			}
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->names_length1 = 0;
	_data_->_names_size_ = 0;
	{
		_data_->_tmp3_ = (SynapseFreeDesktopDBus*) g_initable_new (SYNAPSE_TYPE_FREE_DESKTOP_DBUS_PROXY, NULL, &_data_->_inner_error0_, "g-flags", 0, "g-name", SYNAPSE_FREE_DESKTOP_DBUS_UNIQUE_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", SYNAPSE_FREE_DESKTOP_DBUS_OBJECT_PATH, "g-interface-name", "org.freedesktop.DBus", NULL);
		_data_->_tmp2_ = (SynapseFreeDesktopDBus*) _data_->_tmp3_;
		if (G_UNLIKELY (_data_->_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
		_data_->_tmp4_ = _data_->_tmp2_;
		_data_->_tmp2_ = NULL;
		_g_object_unref0 (_data_->self->priv->proxy);
		_data_->self->priv->proxy = _data_->_tmp4_;
		_data_->_tmp5_ = _data_->self->priv->proxy;
		g_signal_connect_object (_data_->_tmp5_, "name-owner-changed", (GCallback) _synapse_dbus_service_name_owner_changed_synapse_free_desktop_dbus_name_owner_changed, _data_->self, 0);
		_data_->_tmp7_ = _data_->self->priv->proxy;
		_data_->_tmp8_ = 0;
		_data_->_state_ = 2;
		synapse_free_desktop_dbus_list_names (_data_->_tmp7_, synapse_dbus_service_initialize_ready, _data_);
		return FALSE;
		_state_2:
		_data_->_tmp9_ = synapse_free_desktop_dbus_list_names_finish (_data_->_tmp7_, _data_->_res_, &_data_->_tmp8_, &_data_->_inner_error0_);
		_data_->_tmp6_ = _data_->_tmp9_;
		_data_->_tmp6__length1 = _data_->_tmp8_;
		_data_->__tmp6__size_ = _data_->_tmp6__length1;
		if (G_UNLIKELY (_data_->_inner_error0_ != NULL)) {
			_g_object_unref0 (_data_->_tmp2_);
			goto __catch0_g_error;
		}
		_data_->_tmp10_ = _data_->_tmp6_;
		_data_->_tmp10__length1 = _data_->_tmp6__length1;
		_data_->_tmp6_ = NULL;
		_data_->_tmp6__length1 = 0;
		_data_->names = (_vala_array_free (_data_->names, _data_->names_length1, (GDestroyNotify) g_free), NULL);
		_data_->names = _data_->_tmp10_;
		_data_->names_length1 = _data_->_tmp10__length1;
		_data_->_names_size_ = _data_->names_length1;
		_data_->_tmp11_ = _data_->names;
		_data_->_tmp11__length1 = _data_->names_length1;
		{
			_data_->name_collection_length1 = 0;
			_data_->_name_collection_size_ = 0;
			_data_->name_collection = _data_->_tmp11_;
			_data_->name_collection_length1 = _data_->_tmp11__length1;
			for (_data_->name_it = 0; _data_->name_it < _data_->name_collection_length1; _data_->name_it = _data_->name_it + 1) {
				_data_->name = _data_->name_collection[_data_->name_it];
				{
					_data_->_tmp12_ = _data_->name;
					if (g_str_has_prefix (_data_->_tmp12_, ":")) {
						continue;
					}
					_data_->_tmp13_ = _data_->self->priv->owned_names;
					_data_->_tmp14_ = _data_->name;
					gee_collection_add ((GeeCollection*) _data_->_tmp13_, _data_->_tmp14_);
				}
			}
		}
		_data_->_tmp16_ = _data_->self->priv->proxy;
		_data_->_tmp17_ = 0;
		_data_->_state_ = 3;
		synapse_free_desktop_dbus_list_activatable_names (_data_->_tmp16_, synapse_dbus_service_initialize_ready, _data_);
		return FALSE;
		_state_3:
		_data_->_tmp18_ = synapse_free_desktop_dbus_list_activatable_names_finish (_data_->_tmp16_, _data_->_res_, &_data_->_tmp17_, &_data_->_inner_error0_);
		_data_->_tmp15_ = _data_->_tmp18_;
		_data_->_tmp15__length1 = _data_->_tmp17_;
		_data_->__tmp15__size_ = _data_->_tmp15__length1;
		if (G_UNLIKELY (_data_->_inner_error0_ != NULL)) {
			_data_->_tmp6_ = (_vala_array_free (_data_->_tmp6_, _data_->_tmp6__length1, (GDestroyNotify) g_free), NULL);
			_g_object_unref0 (_data_->_tmp2_);
			goto __catch0_g_error;
		}
		_data_->_tmp19_ = _data_->_tmp15_;
		_data_->_tmp19__length1 = _data_->_tmp15__length1;
		_data_->_tmp15_ = NULL;
		_data_->_tmp15__length1 = 0;
		_data_->names = (_vala_array_free (_data_->names, _data_->names_length1, (GDestroyNotify) g_free), NULL);
		_data_->names = _data_->_tmp19_;
		_data_->names_length1 = _data_->_tmp19__length1;
		_data_->_names_size_ = _data_->names_length1;
		_data_->_tmp20_ = _data_->names;
		_data_->_tmp20__length1 = _data_->names_length1;
		{
			_data_->session_act_collection_length1 = 0;
			_data_->_session_act_collection_size_ = 0;
			_data_->session_act_collection = _data_->_tmp20_;
			_data_->session_act_collection_length1 = _data_->_tmp20__length1;
			for (_data_->session_act_it = 0; _data_->session_act_it < _data_->session_act_collection_length1; _data_->session_act_it = _data_->session_act_it + 1) {
				_data_->session_act = _data_->session_act_collection[_data_->session_act_it];
				{
					_data_->_tmp21_ = _data_->self->priv->activatable_names;
					_data_->_tmp22_ = _data_->session_act;
					gee_collection_add ((GeeCollection*) _data_->_tmp21_, _data_->_tmp22_);
				}
			}
		}
		_data_->_tmp15_ = (_vala_array_free (_data_->_tmp15_, _data_->_tmp15__length1, (GDestroyNotify) g_free), NULL);
		_data_->_tmp6_ = (_vala_array_free (_data_->_tmp6_, _data_->_tmp6__length1, (GDestroyNotify) g_free), NULL);
		_g_object_unref0 (_data_->_tmp2_);
	}
	goto __finally0;
	__catch0_g_error:
	{
		_data_->err = _data_->_inner_error0_;
		_data_->_inner_error0_ = NULL;
		_data_->_tmp23_ = _data_->err;
		_data_->_tmp24_ = _data_->_tmp23_->message;
		g_warning ("dbus-service.vala:126: %s", _data_->_tmp24_);
		_g_error_free0 (_data_->err);
	}
	__finally0:
	if (G_UNLIKELY (_data_->_inner_error0_ != NULL)) {
		_data_->names = (_vala_array_free (_data_->names, _data_->names_length1, (GDestroyNotify) g_free), NULL);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error0_->message, g_quark_to_string (_data_->_inner_error0_->domain), _data_->_inner_error0_->code);
		g_clear_error (&_data_->_inner_error0_);
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	{
		_data_->_tmp25_ = (SynapseFreeDesktopDBus*) g_initable_new (SYNAPSE_TYPE_FREE_DESKTOP_DBUS_PROXY, NULL, &_data_->_inner_error0_, "g-flags", 0, "g-name", SYNAPSE_FREE_DESKTOP_DBUS_UNIQUE_NAME, "g-bus-type", G_BUS_TYPE_SYSTEM, "g-object-path", SYNAPSE_FREE_DESKTOP_DBUS_OBJECT_PATH, "g-interface-name", "org.freedesktop.DBus", NULL);
		_data_->sys_proxy = (SynapseFreeDesktopDBus*) _data_->_tmp25_;
		if (G_UNLIKELY (_data_->_inner_error0_ != NULL)) {
			goto __catch1_g_error;
		}
		_data_->_tmp27_ = _data_->sys_proxy;
		_data_->_tmp28_ = 0;
		_data_->_state_ = 4;
		synapse_free_desktop_dbus_list_activatable_names (_data_->_tmp27_, synapse_dbus_service_initialize_ready, _data_);
		return FALSE;
		_state_4:
		_data_->_tmp29_ = synapse_free_desktop_dbus_list_activatable_names_finish (_data_->_tmp27_, _data_->_res_, &_data_->_tmp28_, &_data_->_inner_error0_);
		_data_->_tmp26_ = _data_->_tmp29_;
		_data_->_tmp26__length1 = _data_->_tmp28_;
		_data_->__tmp26__size_ = _data_->_tmp26__length1;
		if (G_UNLIKELY (_data_->_inner_error0_ != NULL)) {
			_g_object_unref0 (_data_->sys_proxy);
			goto __catch1_g_error;
		}
		_data_->_tmp30_ = _data_->_tmp26_;
		_data_->_tmp30__length1 = _data_->_tmp26__length1;
		_data_->_tmp26_ = NULL;
		_data_->_tmp26__length1 = 0;
		_data_->names = (_vala_array_free (_data_->names, _data_->names_length1, (GDestroyNotify) g_free), NULL);
		_data_->names = _data_->_tmp30_;
		_data_->names_length1 = _data_->_tmp30__length1;
		_data_->_names_size_ = _data_->names_length1;
		_data_->_tmp31_ = _data_->names;
		_data_->_tmp31__length1 = _data_->names_length1;
		{
			_data_->system_act_collection_length1 = 0;
			_data_->_system_act_collection_size_ = 0;
			_data_->system_act_collection = _data_->_tmp31_;
			_data_->system_act_collection_length1 = _data_->_tmp31__length1;
			for (_data_->system_act_it = 0; _data_->system_act_it < _data_->system_act_collection_length1; _data_->system_act_it = _data_->system_act_it + 1) {
				_data_->system_act = _data_->system_act_collection[_data_->system_act_it];
				{
					_data_->_tmp32_ = _data_->self->priv->system_activatable_names;
					_data_->_tmp33_ = _data_->system_act;
					gee_collection_add ((GeeCollection*) _data_->_tmp32_, _data_->_tmp33_);
				}
			}
		}
		_data_->_tmp26_ = (_vala_array_free (_data_->_tmp26_, _data_->_tmp26__length1, (GDestroyNotify) g_free), NULL);
		_g_object_unref0 (_data_->sys_proxy);
	}
	goto __finally1;
	__catch1_g_error:
	{
		_data_->sys_err = _data_->_inner_error0_;
		_data_->_inner_error0_ = NULL;
		_data_->_tmp34_ = _data_->sys_err;
		_data_->_tmp35_ = _data_->_tmp34_->message;
		g_warning ("dbus-service.vala:140: %s", _data_->_tmp35_);
		_g_error_free0 (_data_->sys_err);
	}
	__finally1:
	if (G_UNLIKELY (_data_->_inner_error0_ != NULL)) {
		_data_->names = (_vala_array_free (_data_->names, _data_->names_length1, (GDestroyNotify) g_free), NULL);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error0_->message, g_quark_to_string (_data_->_inner_error0_->domain), _data_->_inner_error0_->code);
		g_clear_error (&_data_->_inner_error0_);
		g_object_unref (_data_->_async_result);
		return FALSE;
	}
	_data_->_tmp36_ = _data_->self->priv->init_once;
	synapse_utils_async_once_leave (_data_->_tmp36_, (gpointer) ((gintptr) TRUE));
	_data_->names = (_vala_array_free (_data_->names, _data_->names_length1, (GDestroyNotify) g_free), NULL);
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
	if (_data_->_state_ != 0) {
		while (!g_task_get_completed (_data_->_async_result)) {
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
		}
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}

static void
g_cclosure_user_marshal_VOID__STRING_BOOLEAN (GClosure * closure,
                                              GValue * return_value,
                                              guint n_param_values,
                                              const GValue * param_values,
                                              gpointer invocation_hint,
                                              gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__STRING_BOOLEAN) (gpointer data1, const char* arg_1, gboolean arg_2, gpointer data2);
	register GMarshalFunc_VOID__STRING_BOOLEAN callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	cc = (GCClosure *) closure;
	g_return_if_fail (n_param_values == 3);
	if (G_CCLOSURE_SWAP_DATA (closure)) {
		data1 = closure->data;
		data2 = param_values->data[0].v_pointer;
	} else {
		data1 = param_values->data[0].v_pointer;
		data2 = closure->data;
	}
	callback = (GMarshalFunc_VOID__STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
	callback (data1, g_value_get_string (param_values + 1), g_value_get_boolean (param_values + 2), data2);
}

static GObject *
synapse_dbus_service_constructor (GType type,
                                  guint n_construct_properties,
                                  GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	SynapseDBusService * self;
	GeeHashSet* _tmp0_;
	GeeHashSet* _tmp1_;
	GeeHashSet* _tmp2_;
	SynapseUtilsAsyncOnce* _tmp3_;
	parent_class = G_OBJECT_CLASS (synapse_dbus_service_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SYNAPSE_TYPE_DBUS_SERVICE, SynapseDBusService);
	synapse_dbus_service_instance = self;
	_tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
	_g_object_unref0 (self->priv->owned_names);
	self->priv->owned_names = (GeeSet*) _tmp0_;
	_tmp1_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
	_g_object_unref0 (self->priv->activatable_names);
	self->priv->activatable_names = (GeeSet*) _tmp1_;
	_tmp2_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
	_g_object_unref0 (self->priv->system_activatable_names);
	self->priv->system_activatable_names = (GeeSet*) _tmp2_;
	_tmp3_ = synapse_utils_async_once_new (G_TYPE_BOOLEAN, NULL, NULL);
	_synapse_utils_async_once_unref0 (self->priv->init_once);
	self->priv->init_once = _tmp3_;
	synapse_dbus_service_initialize (self, NULL, NULL);
	return obj;
}

static void
synapse_dbus_service_class_init (SynapseDBusServiceClass * klass,
                                 gpointer klass_data)
{
	synapse_dbus_service_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &SynapseDBusService_private_offset);
	G_OBJECT_CLASS (klass)->constructor = synapse_dbus_service_constructor;
	G_OBJECT_CLASS (klass)->finalize = synapse_dbus_service_finalize;
	synapse_dbus_service_signals[SYNAPSE_DBUS_SERVICE_OWNER_CHANGED_SIGNAL] = g_signal_new ("owner-changed", SYNAPSE_TYPE_DBUS_SERVICE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_BOOLEAN, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_BOOLEAN);
}

static void
synapse_dbus_service_instance_init (SynapseDBusService * self,
                                    gpointer klass)
{
	self->priv = synapse_dbus_service_get_instance_private (self);
}

static void
synapse_dbus_service_finalize (GObject * obj)
{
	SynapseDBusService * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SYNAPSE_TYPE_DBUS_SERVICE, SynapseDBusService);
	synapse_dbus_service_instance = NULL;
	_g_object_unref0 (self->priv->proxy);
	_g_object_unref0 (self->priv->owned_names);
	_g_object_unref0 (self->priv->activatable_names);
	_g_object_unref0 (self->priv->system_activatable_names);
	_synapse_utils_async_once_unref0 (self->priv->init_once);
	G_OBJECT_CLASS (synapse_dbus_service_parent_class)->finalize (obj);
}

GType
synapse_dbus_service_get_type (void)
{
	return synapse_dbus_service_type_id;
}

GType
synapse_dbus_service_register_type (GTypeModule * module)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseDBusServiceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_dbus_service_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseDBusService), 0, (GInstanceInitFunc) synapse_dbus_service_instance_init, NULL };
	synapse_dbus_service_type_id = g_type_module_register_type (module, G_TYPE_OBJECT, "SynapseDBusService", &g_define_type_info, 0);
	SynapseDBusService_private_offset = sizeof (SynapseDBusServicePrivate);
	return synapse_dbus_service_type_id;
}

static void
_vala_array_destroy (gpointer array,
                     gssize array_length,
                     GDestroyNotify destroy_func)
{
	if ((array != NULL) && (destroy_func != NULL)) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}

static void
_vala_array_free (gpointer array,
                  gssize array_length,
                  GDestroyNotify destroy_func)
{
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}

