/* rygel-free-desktop-interfaces.c generated by valac 0.17.4.16-52707, the Vala compiler
 * generated from rygel-free-desktop-interfaces.vala, do not modify */

/*
 * Copyright (C) 2009,2010 Nokia Corporation.
 *
 * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
 *                               <zeeshan.ali@nokia.com>
 *
 * This file is part of Rygel.
 *
 * Rygel is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Rygel 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 Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser 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.
 */

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


#define FREE_DESKTOP_TYPE_DBUS_REQUEST_NAME_REPLY (free_desktop_dbus_request_name_reply_get_type ())

#define FREE_DESKTOP_TYPE_DBUS_OBJECT (free_desktop_dbus_object_get_type ())
#define FREE_DESKTOP_DBUS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FREE_DESKTOP_TYPE_DBUS_OBJECT, FreeDesktopDBusObject))
#define FREE_DESKTOP_IS_DBUS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FREE_DESKTOP_TYPE_DBUS_OBJECT))
#define FREE_DESKTOP_DBUS_OBJECT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FREE_DESKTOP_TYPE_DBUS_OBJECT, FreeDesktopDBusObjectIface))

typedef struct _FreeDesktopDBusObject FreeDesktopDBusObject;
typedef struct _FreeDesktopDBusObjectIface FreeDesktopDBusObjectIface;

#define FREE_DESKTOP_TYPE_DBUS_OBJECT_PROXY (free_desktop_dbus_object_proxy_get_type ())
typedef GDBusProxy FreeDesktopDBusObjectProxy;
typedef GDBusProxyClass FreeDesktopDBusObjectProxyClass;
#define _g_free0(var) (var = (g_free (var), NULL))

#define FREE_DESKTOP_TYPE_PROPERTIES (free_desktop_properties_get_type ())
#define FREE_DESKTOP_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FREE_DESKTOP_TYPE_PROPERTIES, FreeDesktopProperties))
#define FREE_DESKTOP_IS_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FREE_DESKTOP_TYPE_PROPERTIES))
#define FREE_DESKTOP_PROPERTIES_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FREE_DESKTOP_TYPE_PROPERTIES, FreeDesktopPropertiesIface))

typedef struct _FreeDesktopProperties FreeDesktopProperties;
typedef struct _FreeDesktopPropertiesIface FreeDesktopPropertiesIface;

#define FREE_DESKTOP_TYPE_PROPERTIES_PROXY (free_desktop_properties_proxy_get_type ())
typedef GDBusProxy FreeDesktopPropertiesProxy;
typedef GDBusProxyClass FreeDesktopPropertiesProxyClass;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))

typedef enum  {
	FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER = 1,
	FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_IN_QUEUE,
	FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_EXISTS,
	FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER
} FreeDesktopDBusRequestNameReply;

struct _FreeDesktopDBusObjectIface {
	GTypeInterface parent_iface;
	guint32 (*request_name) (FreeDesktopDBusObject* self, const gchar* name, guint32 flags, GError** error);
	guint32 (*start_service_by_name) (FreeDesktopDBusObject* self, const gchar* name, guint32 flags, GError** error);
	void (*list_names) (FreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gchar** (*list_names_finish) (FreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error);
	void (*list_activatable_names) (FreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gchar** (*list_activatable_names_finish) (FreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error);
};

struct _FreeDesktopPropertiesIface {
	GTypeInterface parent_iface;
	void (*get_all) (FreeDesktopProperties* self, const gchar* iface, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GHashTable* (*get_all_finish) (FreeDesktopProperties* self, GAsyncResult* _res_, GError** error);
};



#define FREE_DESKTOP_DBUS_SERVICE "org.freedesktop.DBus"
#define FREE_DESKTOP_DBUS_OBJECT_PATH "/org/freedesktop/DBus"
GType free_desktop_dbus_request_name_reply_get_type (void) G_GNUC_CONST;
GType free_desktop_dbus_object_proxy_get_type (void) G_GNUC_CONST;
guint free_desktop_dbus_object_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType free_desktop_dbus_object_get_type (void) G_GNUC_CONST;
guint32 free_desktop_dbus_object_request_name (FreeDesktopDBusObject* self, const gchar* name, guint32 flags, GError** error);
guint32 free_desktop_dbus_object_start_service_by_name (FreeDesktopDBusObject* self, const gchar* name, guint32 flags, GError** error);
void free_desktop_dbus_object_list_names (FreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
gchar** free_desktop_dbus_object_list_names_finish (FreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error);
void free_desktop_dbus_object_list_activatable_names (FreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
gchar** free_desktop_dbus_object_list_activatable_names_finish (FreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error);
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 free_desktop_dbus_object_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters);
static void _dbus_handle_free_desktop_dbus_object_name_owner_changed (FreeDesktopDBusObject* self, GVariant* parameters);
static guint32 free_desktop_dbus_object_proxy_request_name (FreeDesktopDBusObject* self, const gchar* name, guint32 flags, GError** error);
static guint32 free_desktop_dbus_object_proxy_start_service_by_name (FreeDesktopDBusObject* self, const gchar* name, guint32 flags, GError** error);
static void _vala_g_async_ready_callback (GObject *source_object, GAsyncResult *res, void *user_data);
static void free_desktop_dbus_object_proxy_list_names_async (FreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gchar** free_desktop_dbus_object_proxy_list_names_finish (FreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error);
static void free_desktop_dbus_object_proxy_list_activatable_names_async (FreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gchar** free_desktop_dbus_object_proxy_list_activatable_names_finish (FreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error);
static void free_desktop_dbus_object_proxy_free_desktop_dbus_object_interface_init (FreeDesktopDBusObjectIface* iface);
static void _dbus_free_desktop_dbus_object_request_name (FreeDesktopDBusObject* self, GVariant* parameters, GDBusMethodInvocation* invocation);
static void _dbus_free_desktop_dbus_object_start_service_by_name (FreeDesktopDBusObject* self, GVariant* parameters, GDBusMethodInvocation* invocation);
static void _dbus_free_desktop_dbus_object_list_names (FreeDesktopDBusObject* self, GVariant* parameters, GDBusMethodInvocation* invocation);
static void _dbus_free_desktop_dbus_object_list_names_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_free_desktop_dbus_object_list_activatable_names (FreeDesktopDBusObject* self, GVariant* parameters, GDBusMethodInvocation* invocation);
static void _dbus_free_desktop_dbus_object_list_activatable_names_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void free_desktop_dbus_object_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* free_desktop_dbus_object_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 free_desktop_dbus_object_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_free_desktop_dbus_object_name_owner_changed (GObject* _sender, const gchar* name, const gchar* old_owner, const gchar* new_owner, gpointer* _data);
static void _free_desktop_dbus_object_unregister_object (gpointer user_data);
GType free_desktop_properties_proxy_get_type (void) G_GNUC_CONST;
guint free_desktop_properties_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType free_desktop_properties_get_type (void) G_GNUC_CONST;
void free_desktop_properties_get_all (FreeDesktopProperties* self, const gchar* iface, GAsyncReadyCallback _callback_, gpointer _user_data_);
GHashTable* free_desktop_properties_get_all_finish (FreeDesktopProperties* self, GAsyncResult* _res_, GError** error);
static void free_desktop_properties_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters);
static void free_desktop_properties_proxy_get_all_async (FreeDesktopProperties* self, const gchar* iface, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GHashTable* free_desktop_properties_proxy_get_all_finish (FreeDesktopProperties* self, GAsyncResult* _res_, GError** error);
static void free_desktop_properties_proxy_free_desktop_properties_interface_init (FreeDesktopPropertiesIface* iface);
static void _dbus_free_desktop_properties_get_all (FreeDesktopProperties* self, GVariant* parameters, GDBusMethodInvocation* invocation);
static void _dbus_free_desktop_properties_get_all_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void free_desktop_properties_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* free_desktop_properties_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 free_desktop_properties_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 _free_desktop_properties_unregister_object (gpointer user_data);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);

static const GDBusArgInfo _free_desktop_dbus_object_dbus_arg_info_request_name_name = {-1, "name", "s"};
static const GDBusArgInfo _free_desktop_dbus_object_dbus_arg_info_request_name_flags = {-1, "flags", "u"};
static const GDBusArgInfo _free_desktop_dbus_object_dbus_arg_info_request_name_result = {-1, "result", "u"};
static const GDBusArgInfo * const _free_desktop_dbus_object_dbus_arg_info_request_name_in[] = {&_free_desktop_dbus_object_dbus_arg_info_request_name_name, &_free_desktop_dbus_object_dbus_arg_info_request_name_flags, NULL};
static const GDBusArgInfo * const _free_desktop_dbus_object_dbus_arg_info_request_name_out[] = {&_free_desktop_dbus_object_dbus_arg_info_request_name_result, NULL};
static const GDBusMethodInfo _free_desktop_dbus_object_dbus_method_info_request_name = {-1, "RequestName", (GDBusArgInfo **) (&_free_desktop_dbus_object_dbus_arg_info_request_name_in), (GDBusArgInfo **) (&_free_desktop_dbus_object_dbus_arg_info_request_name_out)};
static const GDBusArgInfo _free_desktop_dbus_object_dbus_arg_info_start_service_by_name_name = {-1, "name", "s"};
static const GDBusArgInfo _free_desktop_dbus_object_dbus_arg_info_start_service_by_name_flags = {-1, "flags", "u"};
static const GDBusArgInfo _free_desktop_dbus_object_dbus_arg_info_start_service_by_name_result = {-1, "result", "u"};
static const GDBusArgInfo * const _free_desktop_dbus_object_dbus_arg_info_start_service_by_name_in[] = {&_free_desktop_dbus_object_dbus_arg_info_start_service_by_name_name, &_free_desktop_dbus_object_dbus_arg_info_start_service_by_name_flags, NULL};
static const GDBusArgInfo * const _free_desktop_dbus_object_dbus_arg_info_start_service_by_name_out[] = {&_free_desktop_dbus_object_dbus_arg_info_start_service_by_name_result, NULL};
static const GDBusMethodInfo _free_desktop_dbus_object_dbus_method_info_start_service_by_name = {-1, "StartServiceByName", (GDBusArgInfo **) (&_free_desktop_dbus_object_dbus_arg_info_start_service_by_name_in), (GDBusArgInfo **) (&_free_desktop_dbus_object_dbus_arg_info_start_service_by_name_out)};
static const GDBusArgInfo _free_desktop_dbus_object_dbus_arg_info_list_names_result = {-1, "result", "as"};
static const GDBusArgInfo * const _free_desktop_dbus_object_dbus_arg_info_list_names_in[] = {NULL};
static const GDBusArgInfo * const _free_desktop_dbus_object_dbus_arg_info_list_names_out[] = {&_free_desktop_dbus_object_dbus_arg_info_list_names_result, NULL};
static const GDBusMethodInfo _free_desktop_dbus_object_dbus_method_info_list_names = {-1, "ListNames", (GDBusArgInfo **) (&_free_desktop_dbus_object_dbus_arg_info_list_names_in), (GDBusArgInfo **) (&_free_desktop_dbus_object_dbus_arg_info_list_names_out)};
static const GDBusArgInfo _free_desktop_dbus_object_dbus_arg_info_list_activatable_names_result = {-1, "result", "as"};
static const GDBusArgInfo * const _free_desktop_dbus_object_dbus_arg_info_list_activatable_names_in[] = {NULL};
static const GDBusArgInfo * const _free_desktop_dbus_object_dbus_arg_info_list_activatable_names_out[] = {&_free_desktop_dbus_object_dbus_arg_info_list_activatable_names_result, NULL};
static const GDBusMethodInfo _free_desktop_dbus_object_dbus_method_info_list_activatable_names = {-1, "ListActivatableNames", (GDBusArgInfo **) (&_free_desktop_dbus_object_dbus_arg_info_list_activatable_names_in), (GDBusArgInfo **) (&_free_desktop_dbus_object_dbus_arg_info_list_activatable_names_out)};
static const GDBusMethodInfo * const _free_desktop_dbus_object_dbus_method_info[] = {&_free_desktop_dbus_object_dbus_method_info_request_name, &_free_desktop_dbus_object_dbus_method_info_start_service_by_name, &_free_desktop_dbus_object_dbus_method_info_list_names, &_free_desktop_dbus_object_dbus_method_info_list_activatable_names, NULL};
static const GDBusArgInfo _free_desktop_dbus_object_dbus_arg_info_name_owner_changed_name = {-1, "name", "s"};
static const GDBusArgInfo _free_desktop_dbus_object_dbus_arg_info_name_owner_changed_old_owner = {-1, "old_owner", "s"};
static const GDBusArgInfo _free_desktop_dbus_object_dbus_arg_info_name_owner_changed_new_owner = {-1, "new_owner", "s"};
static const GDBusArgInfo * const _free_desktop_dbus_object_dbus_arg_info_name_owner_changed[] = {&_free_desktop_dbus_object_dbus_arg_info_name_owner_changed_name, &_free_desktop_dbus_object_dbus_arg_info_name_owner_changed_old_owner, &_free_desktop_dbus_object_dbus_arg_info_name_owner_changed_new_owner, NULL};
static const GDBusSignalInfo _free_desktop_dbus_object_dbus_signal_info_name_owner_changed = {-1, "NameOwnerChanged", (GDBusArgInfo **) (&_free_desktop_dbus_object_dbus_arg_info_name_owner_changed)};
static const GDBusSignalInfo * const _free_desktop_dbus_object_dbus_signal_info[] = {&_free_desktop_dbus_object_dbus_signal_info_name_owner_changed, NULL};
static const GDBusPropertyInfo * const _free_desktop_dbus_object_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _free_desktop_dbus_object_dbus_interface_info = {-1, "org.freedesktop.DBus", (GDBusMethodInfo **) (&_free_desktop_dbus_object_dbus_method_info), (GDBusSignalInfo **) (&_free_desktop_dbus_object_dbus_signal_info), (GDBusPropertyInfo **) (&_free_desktop_dbus_object_dbus_property_info)};
static const GDBusInterfaceVTable _free_desktop_dbus_object_dbus_interface_vtable = {free_desktop_dbus_object_dbus_interface_method_call, free_desktop_dbus_object_dbus_interface_get_property, free_desktop_dbus_object_dbus_interface_set_property};
static const GDBusArgInfo _free_desktop_properties_dbus_arg_info_get_all_iface = {-1, "iface", "s"};
static const GDBusArgInfo _free_desktop_properties_dbus_arg_info_get_all_result = {-1, "result", "a{sv}"};
static const GDBusArgInfo * const _free_desktop_properties_dbus_arg_info_get_all_in[] = {&_free_desktop_properties_dbus_arg_info_get_all_iface, NULL};
static const GDBusArgInfo * const _free_desktop_properties_dbus_arg_info_get_all_out[] = {&_free_desktop_properties_dbus_arg_info_get_all_result, NULL};
static const GDBusMethodInfo _free_desktop_properties_dbus_method_info_get_all = {-1, "GetAll", (GDBusArgInfo **) (&_free_desktop_properties_dbus_arg_info_get_all_in), (GDBusArgInfo **) (&_free_desktop_properties_dbus_arg_info_get_all_out)};
static const GDBusMethodInfo * const _free_desktop_properties_dbus_method_info[] = {&_free_desktop_properties_dbus_method_info_get_all, NULL};
static const GDBusSignalInfo * const _free_desktop_properties_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo * const _free_desktop_properties_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _free_desktop_properties_dbus_interface_info = {-1, "org.freedesktop.DBus.Properties", (GDBusMethodInfo **) (&_free_desktop_properties_dbus_method_info), (GDBusSignalInfo **) (&_free_desktop_properties_dbus_signal_info), (GDBusPropertyInfo **) (&_free_desktop_properties_dbus_property_info)};
static const GDBusInterfaceVTable _free_desktop_properties_dbus_interface_vtable = {free_desktop_properties_dbus_interface_method_call, free_desktop_properties_dbus_interface_get_property, free_desktop_properties_dbus_interface_set_property};

GType free_desktop_dbus_request_name_reply_get_type (void) {
	static volatile gsize free_desktop_dbus_request_name_reply_type_id__volatile = 0;
	if (g_once_init_enter (&free_desktop_dbus_request_name_reply_type_id__volatile)) {
		static const GEnumValue values[] = {{FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER, "FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER", "primary-owner"}, {FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_IN_QUEUE, "FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_IN_QUEUE", "in-queue"}, {FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_EXISTS, "FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_EXISTS", "exists"}, {FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER, "FREE_DESKTOP_DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER", "already-owner"}, {0, NULL, NULL}};
		GType free_desktop_dbus_request_name_reply_type_id;
		free_desktop_dbus_request_name_reply_type_id = g_enum_register_static ("FreeDesktopDBusRequestNameReply", values);
		g_once_init_leave (&free_desktop_dbus_request_name_reply_type_id__volatile, free_desktop_dbus_request_name_reply_type_id);
	}
	return free_desktop_dbus_request_name_reply_type_id__volatile;
}


guint32 free_desktop_dbus_object_request_name (FreeDesktopDBusObject* self, const gchar* name, guint32 flags, GError** error) {
	g_return_val_if_fail (self != NULL, 0U);
	return FREE_DESKTOP_DBUS_OBJECT_GET_INTERFACE (self)->request_name (self, name, flags, error);
}


guint32 free_desktop_dbus_object_start_service_by_name (FreeDesktopDBusObject* self, const gchar* name, guint32 flags, GError** error) {
	g_return_val_if_fail (self != NULL, 0U);
	return FREE_DESKTOP_DBUS_OBJECT_GET_INTERFACE (self)->start_service_by_name (self, name, flags, error);
}


void free_desktop_dbus_object_list_names (FreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FREE_DESKTOP_DBUS_OBJECT_GET_INTERFACE (self)->list_names (self, _callback_, _user_data_);
}


gchar** free_desktop_dbus_object_list_names_finish (FreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	return FREE_DESKTOP_DBUS_OBJECT_GET_INTERFACE (self)->list_names_finish (self, _res_, result_length1, error);
}


void free_desktop_dbus_object_list_activatable_names (FreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FREE_DESKTOP_DBUS_OBJECT_GET_INTERFACE (self)->list_activatable_names (self, _callback_, _user_data_);
}


gchar** free_desktop_dbus_object_list_activatable_names_finish (FreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	return FREE_DESKTOP_DBUS_OBJECT_GET_INTERFACE (self)->list_activatable_names_finish (self, _res_, result_length1, error);
}


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 free_desktop_dbus_object_base_init (FreeDesktopDBusObjectIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
		g_signal_new ("name_owner_changed", FREE_DESKTOP_TYPE_DBUS_OBJECT, 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 free_desktop_dbus_object_get_type (void) {
	static volatile gsize free_desktop_dbus_object_type_id__volatile = 0;
	if (g_once_init_enter (&free_desktop_dbus_object_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FreeDesktopDBusObjectIface), (GBaseInitFunc) free_desktop_dbus_object_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType free_desktop_dbus_object_type_id;
		free_desktop_dbus_object_type_id = g_type_register_static (G_TYPE_INTERFACE, "FreeDesktopDBusObject", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (free_desktop_dbus_object_type_id, G_TYPE_OBJECT);
		g_type_set_qdata (free_desktop_dbus_object_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) free_desktop_dbus_object_proxy_get_type);
		g_type_set_qdata (free_desktop_dbus_object_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.freedesktop.DBus");
		g_type_set_qdata (free_desktop_dbus_object_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) free_desktop_dbus_object_register_object);
		g_once_init_leave (&free_desktop_dbus_object_type_id__volatile, free_desktop_dbus_object_type_id);
	}
	return free_desktop_dbus_object_type_id__volatile;
}


G_DEFINE_TYPE_EXTENDED (FreeDesktopDBusObjectProxy, free_desktop_dbus_object_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (FREE_DESKTOP_TYPE_DBUS_OBJECT, free_desktop_dbus_object_proxy_free_desktop_dbus_object_interface_init) )
static void free_desktop_dbus_object_proxy_class_init (FreeDesktopDBusObjectProxyClass* klass) {
	G_DBUS_PROXY_CLASS (klass)->g_signal = free_desktop_dbus_object_proxy_g_signal;
}


static void _dbus_handle_free_desktop_dbus_object_name_owner_changed (FreeDesktopDBusObject* self, GVariant* parameters) {
	GVariantIter _arguments_iter;
	gchar* name = NULL;
	GVariant* _tmp0_;
	gchar* old_owner = NULL;
	GVariant* _tmp1_;
	gchar* new_owner = NULL;
	GVariant* _tmp2_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp0_ = g_variant_iter_next_value (&_arguments_iter);
	name = g_variant_dup_string (_tmp0_, NULL);
	g_variant_unref (_tmp0_);
	_tmp1_ = g_variant_iter_next_value (&_arguments_iter);
	old_owner = g_variant_dup_string (_tmp1_, NULL);
	g_variant_unref (_tmp1_);
	_tmp2_ = g_variant_iter_next_value (&_arguments_iter);
	new_owner = g_variant_dup_string (_tmp2_, NULL);
	g_variant_unref (_tmp2_);
	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 free_desktop_dbus_object_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters) {
	if (strcmp (signal_name, "NameOwnerChanged") == 0) {
		_dbus_handle_free_desktop_dbus_object_name_owner_changed ((FreeDesktopDBusObject*) proxy, parameters);
	}
}


static void free_desktop_dbus_object_proxy_init (FreeDesktopDBusObjectProxy* self) {
}


static guint32 free_desktop_dbus_object_proxy_request_name (FreeDesktopDBusObject* self, const gchar* name, guint32 flags, GError** error) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	guint32 _result;
	GVariant* _tmp3_;
	G_DBUS_ERROR;
	_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", "RequestName");
	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);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return 0U;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return 0U;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_tmp3_ = g_variant_iter_next_value (&_reply_iter);
	_result = g_variant_get_uint32 (_tmp3_);
	g_variant_unref (_tmp3_);
	g_object_unref (_reply_message);
	return _result;
}


static guint32 free_desktop_dbus_object_proxy_start_service_by_name (FreeDesktopDBusObject* self, const gchar* name, guint32 flags, GError** error) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	guint32 _result;
	GVariant* _tmp4_;
	G_DBUS_ERROR;
	_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);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return 0U;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return 0U;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_tmp4_ = g_variant_iter_next_value (&_reply_iter);
	_result = g_variant_get_uint32 (_tmp4_);
	g_variant_unref (_tmp4_);
	g_object_unref (_reply_message);
	return _result;
}


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


static void free_desktop_dbus_object_proxy_list_names_async (FreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	G_DBUS_ERROR;
	_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);
	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_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static gchar** free_desktop_dbus_object_proxy_list_names_finish (FreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gchar** _result;
	int _result_length1;
	GVariant* _tmp5_;
	gchar** _tmp6_;
	int _tmp6__length;
	int _tmp6__size;
	int _tmp6__length1;
	GVariantIter _tmp7_;
	GVariant* _tmp8_;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	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;
	_tmp5_ = g_variant_iter_next_value (&_reply_iter);
	_tmp6_ = g_new (gchar*, 5);
	_tmp6__length = 0;
	_tmp6__size = 4;
	_tmp6__length1 = 0;
	g_variant_iter_init (&_tmp7_, _tmp5_);
	for (; (_tmp8_ = g_variant_iter_next_value (&_tmp7_)) != NULL; _tmp6__length1++) {
		if (_tmp6__size == _tmp6__length) {
			_tmp6__size = 2 * _tmp6__size;
			_tmp6_ = g_renew (gchar*, _tmp6_, _tmp6__size + 1);
		}
		_tmp6_[_tmp6__length++] = g_variant_dup_string (_tmp8_, NULL);
		g_variant_unref (_tmp8_);
	}
	_result_length1 = _tmp6__length1;
	_tmp6_[_tmp6__length] = NULL;
	_result = _tmp6_;
	g_variant_unref (_tmp5_);
	*result_length1 = _result_length1;
	g_object_unref (_reply_message);
	return _result;
}


static void free_desktop_dbus_object_proxy_list_activatable_names_async (FreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	G_DBUS_ERROR;
	_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);
	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_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static gchar** free_desktop_dbus_object_proxy_list_activatable_names_finish (FreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gchar** _result;
	int _result_length1;
	GVariant* _tmp9_;
	gchar** _tmp10_;
	int _tmp10__length;
	int _tmp10__size;
	int _tmp10__length1;
	GVariantIter _tmp11_;
	GVariant* _tmp12_;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	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;
	_tmp9_ = g_variant_iter_next_value (&_reply_iter);
	_tmp10_ = g_new (gchar*, 5);
	_tmp10__length = 0;
	_tmp10__size = 4;
	_tmp10__length1 = 0;
	g_variant_iter_init (&_tmp11_, _tmp9_);
	for (; (_tmp12_ = g_variant_iter_next_value (&_tmp11_)) != NULL; _tmp10__length1++) {
		if (_tmp10__size == _tmp10__length) {
			_tmp10__size = 2 * _tmp10__size;
			_tmp10_ = g_renew (gchar*, _tmp10_, _tmp10__size + 1);
		}
		_tmp10_[_tmp10__length++] = g_variant_dup_string (_tmp12_, NULL);
		g_variant_unref (_tmp12_);
	}
	_result_length1 = _tmp10__length1;
	_tmp10_[_tmp10__length] = NULL;
	_result = _tmp10_;
	g_variant_unref (_tmp9_);
	*result_length1 = _result_length1;
	g_object_unref (_reply_message);
	return _result;
}


static void free_desktop_dbus_object_proxy_free_desktop_dbus_object_interface_init (FreeDesktopDBusObjectIface* iface) {
	iface->request_name = free_desktop_dbus_object_proxy_request_name;
	iface->start_service_by_name = free_desktop_dbus_object_proxy_start_service_by_name;
	iface->list_names = free_desktop_dbus_object_proxy_list_names_async;
	iface->list_names_finish = free_desktop_dbus_object_proxy_list_names_finish;
	iface->list_activatable_names = free_desktop_dbus_object_proxy_list_activatable_names_async;
	iface->list_activatable_names_finish = free_desktop_dbus_object_proxy_list_activatable_names_finish;
}


static void _dbus_free_desktop_dbus_object_request_name (FreeDesktopDBusObject* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* name = NULL;
	GVariant* _tmp13_;
	guint32 flags = 0U;
	GVariant* _tmp14_;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	guint32 result;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp13_ = g_variant_iter_next_value (&_arguments_iter);
	name = g_variant_dup_string (_tmp13_, NULL);
	g_variant_unref (_tmp13_);
	_tmp14_ = g_variant_iter_next_value (&_arguments_iter);
	flags = g_variant_get_uint32 (_tmp14_);
	g_variant_unref (_tmp14_);
	result = free_desktop_dbus_object_request_name (self, name, flags, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_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_free0 (name);
	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);
}


static void _dbus_free_desktop_dbus_object_start_service_by_name (FreeDesktopDBusObject* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* name = NULL;
	GVariant* _tmp15_;
	guint32 flags = 0U;
	GVariant* _tmp16_;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	guint32 result;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp15_ = g_variant_iter_next_value (&_arguments_iter);
	name = g_variant_dup_string (_tmp15_, NULL);
	g_variant_unref (_tmp15_);
	_tmp16_ = g_variant_iter_next_value (&_arguments_iter);
	flags = g_variant_get_uint32 (_tmp16_);
	g_variant_unref (_tmp16_);
	result = free_desktop_dbus_object_start_service_by_name (self, name, flags, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_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_free0 (name);
	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);
}


static void _dbus_free_desktop_dbus_object_list_names (FreeDesktopDBusObject* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	g_variant_iter_init (&_arguments_iter, parameters);
	free_desktop_dbus_object_list_names (self, (GAsyncReadyCallback) _dbus_free_desktop_dbus_object_list_names_ready, invocation);
}


static void _dbus_free_desktop_dbus_object_list_names_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar** result;
	int result_length1 = 0;
	gchar** _tmp17_;
	GVariantBuilder _tmp18_;
	int _tmp19_;
	invocation = _user_data_;
	result = free_desktop_dbus_object_list_names_finish ((FreeDesktopDBusObject*) source_object, _res_, &result_length1, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_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);
	_tmp17_ = result;
	g_variant_builder_init (&_tmp18_, G_VARIANT_TYPE ("as"));
	for (_tmp19_ = 0; _tmp19_ < result_length1; _tmp19_++) {
		g_variant_builder_add_value (&_tmp18_, g_variant_new_string (*_tmp17_));
		_tmp17_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp18_));
	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);
}


static void _dbus_free_desktop_dbus_object_list_activatable_names (FreeDesktopDBusObject* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	g_variant_iter_init (&_arguments_iter, parameters);
	free_desktop_dbus_object_list_activatable_names (self, (GAsyncReadyCallback) _dbus_free_desktop_dbus_object_list_activatable_names_ready, invocation);
}


static void _dbus_free_desktop_dbus_object_list_activatable_names_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar** result;
	int result_length1 = 0;
	gchar** _tmp20_;
	GVariantBuilder _tmp21_;
	int _tmp22_;
	invocation = _user_data_;
	result = free_desktop_dbus_object_list_activatable_names_finish ((FreeDesktopDBusObject*) source_object, _res_, &result_length1, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_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);
	_tmp20_ = result;
	g_variant_builder_init (&_tmp21_, G_VARIANT_TYPE ("as"));
	for (_tmp22_ = 0; _tmp22_ < result_length1; _tmp22_++) {
		g_variant_builder_add_value (&_tmp21_, g_variant_new_string (*_tmp20_));
		_tmp20_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp21_));
	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);
}


static void free_desktop_dbus_object_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, "RequestName") == 0) {
		_dbus_free_desktop_dbus_object_request_name (object, parameters, invocation);
	} else if (strcmp (method_name, "StartServiceByName") == 0) {
		_dbus_free_desktop_dbus_object_start_service_by_name (object, parameters, invocation);
	} else if (strcmp (method_name, "ListNames") == 0) {
		_dbus_free_desktop_dbus_object_list_names (object, parameters, invocation);
	} else if (strcmp (method_name, "ListActivatableNames") == 0) {
		_dbus_free_desktop_dbus_object_list_activatable_names (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}


static GVariant* free_desktop_dbus_object_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) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return NULL;
}


static gboolean free_desktop_dbus_object_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) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return FALSE;
}


static void _dbus_free_desktop_dbus_object_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 free_desktop_dbus_object_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 *) (&_free_desktop_dbus_object_dbus_interface_info), &_free_desktop_dbus_object_dbus_interface_vtable, data, _free_desktop_dbus_object_unregister_object, error);
	if (!result) {
		return 0;
	}
	g_signal_connect (object, "name-owner-changed", (GCallback) _dbus_free_desktop_dbus_object_name_owner_changed, data);
	return result;
}


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


void free_desktop_properties_get_all (FreeDesktopProperties* self, const gchar* iface, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FREE_DESKTOP_PROPERTIES_GET_INTERFACE (self)->get_all (self, iface, _callback_, _user_data_);
}


GHashTable* free_desktop_properties_get_all_finish (FreeDesktopProperties* self, GAsyncResult* _res_, GError** error) {
	return FREE_DESKTOP_PROPERTIES_GET_INTERFACE (self)->get_all_finish (self, _res_, error);
}


static void free_desktop_properties_base_init (FreeDesktopPropertiesIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
	}
}


GType free_desktop_properties_get_type (void) {
	static volatile gsize free_desktop_properties_type_id__volatile = 0;
	if (g_once_init_enter (&free_desktop_properties_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FreeDesktopPropertiesIface), (GBaseInitFunc) free_desktop_properties_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType free_desktop_properties_type_id;
		free_desktop_properties_type_id = g_type_register_static (G_TYPE_INTERFACE, "FreeDesktopProperties", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (free_desktop_properties_type_id, G_TYPE_OBJECT);
		g_type_set_qdata (free_desktop_properties_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) free_desktop_properties_proxy_get_type);
		g_type_set_qdata (free_desktop_properties_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.freedesktop.DBus.Properties");
		g_type_set_qdata (free_desktop_properties_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) free_desktop_properties_register_object);
		g_once_init_leave (&free_desktop_properties_type_id__volatile, free_desktop_properties_type_id);
	}
	return free_desktop_properties_type_id__volatile;
}


G_DEFINE_TYPE_EXTENDED (FreeDesktopPropertiesProxy, free_desktop_properties_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (FREE_DESKTOP_TYPE_PROPERTIES, free_desktop_properties_proxy_free_desktop_properties_interface_init) )
static void free_desktop_properties_proxy_class_init (FreeDesktopPropertiesProxyClass* klass) {
	G_DBUS_PROXY_CLASS (klass)->g_signal = free_desktop_properties_proxy_g_signal;
}


static void free_desktop_properties_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters) {
}


static void free_desktop_properties_proxy_init (FreeDesktopPropertiesProxy* self) {
}


static void free_desktop_properties_proxy_get_all_async (FreeDesktopProperties* self, const gchar* iface, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	G_DBUS_ERROR;
	_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.Properties", "GetAll");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (iface));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	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_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static GHashTable* free_desktop_properties_proxy_get_all_finish (FreeDesktopProperties* self, GAsyncResult* _res_, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	GHashTable* _result;
	GVariant* _tmp23_;
	GHashTable* _tmp24_;
	GVariantIter _tmp25_;
	GVariant* _tmp26_;
	GVariant* _tmp27_;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	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);
	_tmp23_ = g_variant_iter_next_value (&_reply_iter);
	_tmp24_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
	g_variant_iter_init (&_tmp25_, _tmp23_);
	while (g_variant_iter_loop (&_tmp25_, "{?*}", &_tmp26_, &_tmp27_)) {
		g_hash_table_insert (_tmp24_, g_variant_dup_string (_tmp26_, NULL), g_variant_get_variant (_tmp27_));
	}
	_result = _tmp24_;
	g_variant_unref (_tmp23_);
	g_object_unref (_reply_message);
	return _result;
}


static void free_desktop_properties_proxy_free_desktop_properties_interface_init (FreeDesktopPropertiesIface* iface) {
	iface->get_all = free_desktop_properties_proxy_get_all_async;
	iface->get_all_finish = free_desktop_properties_proxy_get_all_finish;
}


static void _dbus_free_desktop_properties_get_all (FreeDesktopProperties* self, GVariant* parameters, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	gchar* iface = NULL;
	GVariant* _tmp28_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp28_ = g_variant_iter_next_value (&_arguments_iter);
	iface = g_variant_dup_string (_tmp28_, NULL);
	g_variant_unref (_tmp28_);
	free_desktop_properties_get_all (self, iface, (GAsyncReadyCallback) _dbus_free_desktop_properties_get_all_ready, invocation);
	_g_free0 (iface);
}


static void _dbus_free_desktop_properties_get_all_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	GHashTable* result;
	GVariantBuilder _tmp29_;
	GHashTableIter _tmp30_;
	gpointer _tmp31_;
	gpointer _tmp32_;
	invocation = _user_data_;
	result = free_desktop_properties_get_all_finish ((FreeDesktopProperties*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_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_hash_table_iter_init (&_tmp30_, result);
	g_variant_builder_init (&_tmp29_, G_VARIANT_TYPE ("a{sv}"));
	while (g_hash_table_iter_next (&_tmp30_, &_tmp31_, &_tmp32_)) {
		gchar* _key;
		GVariant* _value;
		_key = (gchar*) _tmp31_;
		_value = (GVariant*) _tmp32_;
		g_variant_builder_add (&_tmp29_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp29_));
	_g_hash_table_unref0 (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);
}


static void free_desktop_properties_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, "GetAll") == 0) {
		_dbus_free_desktop_properties_get_all (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}


static GVariant* free_desktop_properties_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) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return NULL;
}


static gboolean free_desktop_properties_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) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return FALSE;
}


guint free_desktop_properties_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 *) (&_free_desktop_properties_dbus_interface_info), &_free_desktop_properties_dbus_interface_vtable, data, _free_desktop_properties_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}


static void _free_desktop_properties_unregister_object (gpointer user_data) {
	gpointer* data;
	data = user_data;
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int 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, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



