/* rygel-free-desktop-interfaces.c generated by valac 0.25.1.16-16e7a, 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 RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_DBUS_OBJECT (rygel_external_free_desktop_dbus_object_get_type ())
#define RYGEL_EXTERNAL_FREE_DESKTOP_DBUS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_DBUS_OBJECT, RygelExternalFreeDesktopDBusObject))
#define RYGEL_EXTERNAL_FREE_DESKTOP_IS_DBUS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_DBUS_OBJECT))
#define RYGEL_EXTERNAL_FREE_DESKTOP_DBUS_OBJECT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_DBUS_OBJECT, RygelExternalFreeDesktopDBusObjectIface))

typedef struct _RygelExternalFreeDesktopDBusObject RygelExternalFreeDesktopDBusObject;
typedef struct _RygelExternalFreeDesktopDBusObjectIface RygelExternalFreeDesktopDBusObjectIface;

#define RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_DBUS_OBJECT_PROXY (rygel_external_free_desktop_dbus_object_proxy_get_type ())
typedef GDBusProxy RygelExternalFreeDesktopDBusObjectProxy;
typedef GDBusProxyClass RygelExternalFreeDesktopDBusObjectProxyClass;

#define RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_PROPERTIES (rygel_external_free_desktop_properties_get_type ())
#define RYGEL_EXTERNAL_FREE_DESKTOP_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_PROPERTIES, RygelExternalFreeDesktopProperties))
#define RYGEL_EXTERNAL_FREE_DESKTOP_IS_PROPERTIES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_PROPERTIES))
#define RYGEL_EXTERNAL_FREE_DESKTOP_PROPERTIES_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_PROPERTIES, RygelExternalFreeDesktopPropertiesIface))

typedef struct _RygelExternalFreeDesktopProperties RygelExternalFreeDesktopProperties;
typedef struct _RygelExternalFreeDesktopPropertiesIface RygelExternalFreeDesktopPropertiesIface;

#define RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_PROPERTIES_PROXY (rygel_external_free_desktop_properties_proxy_get_type ())
typedef GDBusProxy RygelExternalFreeDesktopPropertiesProxy;
typedef GDBusProxyClass RygelExternalFreeDesktopPropertiesProxyClass;

struct _RygelExternalFreeDesktopDBusObjectIface {
	GTypeInterface parent_iface;
	void (*list_names) (RygelExternalFreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gchar** (*list_names_finish) (RygelExternalFreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error);
	void (*list_activatable_names) (RygelExternalFreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gchar** (*list_activatable_names_finish) (RygelExternalFreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error);
};

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



#define RYGEL_EXTERNAL_FREE_DESKTOP_DBUS_SERVICE "org.freedesktop.DBus"
#define RYGEL_EXTERNAL_FREE_DESKTOP_DBUS_OBJECT_PATH "/org/freedesktop/DBus"
GType rygel_external_free_desktop_dbus_object_proxy_get_type (void) G_GNUC_CONST;
guint rygel_external_free_desktop_dbus_object_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType rygel_external_free_desktop_dbus_object_get_type (void) G_GNUC_CONST;
void rygel_external_free_desktop_dbus_object_list_names (RygelExternalFreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
gchar** rygel_external_free_desktop_dbus_object_list_names_finish (RygelExternalFreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error);
void rygel_external_free_desktop_dbus_object_list_activatable_names (RygelExternalFreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
gchar** rygel_external_free_desktop_dbus_object_list_activatable_names_finish (RygelExternalFreeDesktopDBusObject* 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 rygel_external_free_desktop_dbus_object_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters);
static void _vala_g_async_ready_callback (GObject *source_object, GAsyncResult *res, void *user_data);
static void rygel_external_free_desktop_dbus_object_proxy_list_names_async (RygelExternalFreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gchar** rygel_external_free_desktop_dbus_object_proxy_list_names_finish (RygelExternalFreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error);
static void rygel_external_free_desktop_dbus_object_proxy_list_activatable_names_async (RygelExternalFreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gchar** rygel_external_free_desktop_dbus_object_proxy_list_activatable_names_finish (RygelExternalFreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error);
static void rygel_external_free_desktop_dbus_object_proxy_rygel_external_free_desktop_dbus_object_interface_init (RygelExternalFreeDesktopDBusObjectIface* iface);
static void rygel_external_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* rygel_external_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 rygel_external_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 _rygel_external_free_desktop_dbus_object_unregister_object (gpointer user_data);
GType rygel_external_free_desktop_properties_proxy_get_type (void) G_GNUC_CONST;
guint rygel_external_free_desktop_properties_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType rygel_external_free_desktop_properties_get_type (void) G_GNUC_CONST;
void rygel_external_free_desktop_properties_get_all (RygelExternalFreeDesktopProperties* self, const gchar* iface, GAsyncReadyCallback _callback_, gpointer _user_data_);
GHashTable* rygel_external_free_desktop_properties_get_all_finish (RygelExternalFreeDesktopProperties* self, GAsyncResult* _res_, GError** error);
static void rygel_external_free_desktop_properties_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters);
static void rygel_external_free_desktop_properties_proxy_get_all_async (RygelExternalFreeDesktopProperties* self, const gchar* iface, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GHashTable* rygel_external_free_desktop_properties_proxy_get_all_finish (RygelExternalFreeDesktopProperties* self, GAsyncResult* _res_, GError** error);
static void rygel_external_free_desktop_properties_proxy_rygel_external_free_desktop_properties_interface_init (RygelExternalFreeDesktopPropertiesIface* iface);
static void rygel_external_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* rygel_external_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 rygel_external_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 _rygel_external_free_desktop_properties_unregister_object (gpointer user_data);

static const GDBusMethodInfo * const _rygel_external_free_desktop_dbus_object_dbus_method_info[] = {NULL};
static const GDBusSignalInfo * const _rygel_external_free_desktop_dbus_object_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo * const _rygel_external_free_desktop_dbus_object_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _rygel_external_free_desktop_dbus_object_dbus_interface_info = {-1, "org.freedesktop.DBus", (GDBusMethodInfo **) (&_rygel_external_free_desktop_dbus_object_dbus_method_info), (GDBusSignalInfo **) (&_rygel_external_free_desktop_dbus_object_dbus_signal_info), (GDBusPropertyInfo **) (&_rygel_external_free_desktop_dbus_object_dbus_property_info)};
static const GDBusInterfaceVTable _rygel_external_free_desktop_dbus_object_dbus_interface_vtable = {rygel_external_free_desktop_dbus_object_dbus_interface_method_call, rygel_external_free_desktop_dbus_object_dbus_interface_get_property, rygel_external_free_desktop_dbus_object_dbus_interface_set_property};
static const GDBusMethodInfo * const _rygel_external_free_desktop_properties_dbus_method_info[] = {NULL};
static const GDBusSignalInfo * const _rygel_external_free_desktop_properties_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo * const _rygel_external_free_desktop_properties_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _rygel_external_free_desktop_properties_dbus_interface_info = {-1, "org.freedesktop.DBus.Properties", (GDBusMethodInfo **) (&_rygel_external_free_desktop_properties_dbus_method_info), (GDBusSignalInfo **) (&_rygel_external_free_desktop_properties_dbus_signal_info), (GDBusPropertyInfo **) (&_rygel_external_free_desktop_properties_dbus_property_info)};
static const GDBusInterfaceVTable _rygel_external_free_desktop_properties_dbus_interface_vtable = {rygel_external_free_desktop_properties_dbus_interface_method_call, rygel_external_free_desktop_properties_dbus_interface_get_property, rygel_external_free_desktop_properties_dbus_interface_set_property};

void rygel_external_free_desktop_dbus_object_list_names (RygelExternalFreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RYGEL_EXTERNAL_FREE_DESKTOP_DBUS_OBJECT_GET_INTERFACE (self)->list_names (self, _callback_, _user_data_);
}


gchar** rygel_external_free_desktop_dbus_object_list_names_finish (RygelExternalFreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	return RYGEL_EXTERNAL_FREE_DESKTOP_DBUS_OBJECT_GET_INTERFACE (self)->list_names_finish (self, _res_, result_length1, error);
}


void rygel_external_free_desktop_dbus_object_list_activatable_names (RygelExternalFreeDesktopDBusObject* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RYGEL_EXTERNAL_FREE_DESKTOP_DBUS_OBJECT_GET_INTERFACE (self)->list_activatable_names (self, _callback_, _user_data_);
}


gchar** rygel_external_free_desktop_dbus_object_list_activatable_names_finish (RygelExternalFreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	return RYGEL_EXTERNAL_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 rygel_external_free_desktop_dbus_object_base_init (RygelExternalFreeDesktopDBusObjectIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
		g_signal_new ("name_owner_changed", RYGEL_EXTERNAL_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 rygel_external_free_desktop_dbus_object_get_type (void) {
	static volatile gsize rygel_external_free_desktop_dbus_object_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_external_free_desktop_dbus_object_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelExternalFreeDesktopDBusObjectIface), (GBaseInitFunc) rygel_external_free_desktop_dbus_object_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType rygel_external_free_desktop_dbus_object_type_id;
		rygel_external_free_desktop_dbus_object_type_id = g_type_register_static (G_TYPE_INTERFACE, "RygelExternalFreeDesktopDBusObject", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (rygel_external_free_desktop_dbus_object_type_id, G_TYPE_OBJECT);
		g_type_set_qdata (rygel_external_free_desktop_dbus_object_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) rygel_external_free_desktop_dbus_object_proxy_get_type);
		g_type_set_qdata (rygel_external_free_desktop_dbus_object_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.freedesktop.DBus");
		g_type_set_qdata (rygel_external_free_desktop_dbus_object_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) rygel_external_free_desktop_dbus_object_register_object);
		g_once_init_leave (&rygel_external_free_desktop_dbus_object_type_id__volatile, rygel_external_free_desktop_dbus_object_type_id);
	}
	return rygel_external_free_desktop_dbus_object_type_id__volatile;
}


G_DEFINE_TYPE_EXTENDED (RygelExternalFreeDesktopDBusObjectProxy, rygel_external_free_desktop_dbus_object_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_DBUS_OBJECT, rygel_external_free_desktop_dbus_object_proxy_rygel_external_free_desktop_dbus_object_interface_init) )
static void rygel_external_free_desktop_dbus_object_proxy_class_init (RygelExternalFreeDesktopDBusObjectProxyClass* klass) {
	G_DBUS_PROXY_CLASS (klass)->g_signal = rygel_external_free_desktop_dbus_object_proxy_g_signal;
}


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


static void rygel_external_free_desktop_dbus_object_proxy_init (RygelExternalFreeDesktopDBusObjectProxy* self) {
}


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 rygel_external_free_desktop_dbus_object_proxy_list_names_async (RygelExternalFreeDesktopDBusObject* 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** rygel_external_free_desktop_dbus_object_proxy_list_names_finish (RygelExternalFreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gchar** _result;
	int _result_length1;
	GVariant* _tmp109_;
	gchar** _tmp110_;
	int _tmp110__length;
	int _tmp110__size;
	int _tmp110__length1;
	GVariantIter _tmp111_;
	GVariant* _tmp112_;
	_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;
	_tmp109_ = g_variant_iter_next_value (&_reply_iter);
	_tmp110_ = g_new (gchar*, 5);
	_tmp110__length = 0;
	_tmp110__size = 4;
	_tmp110__length1 = 0;
	g_variant_iter_init (&_tmp111_, _tmp109_);
	for (; (_tmp112_ = g_variant_iter_next_value (&_tmp111_)) != NULL; _tmp110__length1++) {
		if (_tmp110__size == _tmp110__length) {
			_tmp110__size = 2 * _tmp110__size;
			_tmp110_ = g_renew (gchar*, _tmp110_, _tmp110__size + 1);
		}
		_tmp110_[_tmp110__length++] = g_variant_dup_string (_tmp112_, NULL);
		g_variant_unref (_tmp112_);
	}
	_result_length1 = _tmp110__length1;
	_tmp110_[_tmp110__length] = NULL;
	_result = _tmp110_;
	g_variant_unref (_tmp109_);
	*result_length1 = _result_length1;
	g_object_unref (_reply_message);
	return _result;
}


static void rygel_external_free_desktop_dbus_object_proxy_list_activatable_names_async (RygelExternalFreeDesktopDBusObject* 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** rygel_external_free_desktop_dbus_object_proxy_list_activatable_names_finish (RygelExternalFreeDesktopDBusObject* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gchar** _result;
	int _result_length1;
	GVariant* _tmp113_;
	gchar** _tmp114_;
	int _tmp114__length;
	int _tmp114__size;
	int _tmp114__length1;
	GVariantIter _tmp115_;
	GVariant* _tmp116_;
	_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;
	_tmp113_ = g_variant_iter_next_value (&_reply_iter);
	_tmp114_ = g_new (gchar*, 5);
	_tmp114__length = 0;
	_tmp114__size = 4;
	_tmp114__length1 = 0;
	g_variant_iter_init (&_tmp115_, _tmp113_);
	for (; (_tmp116_ = g_variant_iter_next_value (&_tmp115_)) != NULL; _tmp114__length1++) {
		if (_tmp114__size == _tmp114__length) {
			_tmp114__size = 2 * _tmp114__size;
			_tmp114_ = g_renew (gchar*, _tmp114_, _tmp114__size + 1);
		}
		_tmp114_[_tmp114__length++] = g_variant_dup_string (_tmp116_, NULL);
		g_variant_unref (_tmp116_);
	}
	_result_length1 = _tmp114__length1;
	_tmp114_[_tmp114__length] = NULL;
	_result = _tmp114_;
	g_variant_unref (_tmp113_);
	*result_length1 = _result_length1;
	g_object_unref (_reply_message);
	return _result;
}


static void rygel_external_free_desktop_dbus_object_proxy_rygel_external_free_desktop_dbus_object_interface_init (RygelExternalFreeDesktopDBusObjectIface* iface) {
	iface->list_names = rygel_external_free_desktop_dbus_object_proxy_list_names_async;
	iface->list_names_finish = rygel_external_free_desktop_dbus_object_proxy_list_names_finish;
	iface->list_activatable_names = rygel_external_free_desktop_dbus_object_proxy_list_activatable_names_async;
	iface->list_activatable_names_finish = rygel_external_free_desktop_dbus_object_proxy_list_activatable_names_finish;
}


static void rygel_external_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];
	g_object_unref (invocation);
}


static GVariant* rygel_external_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 rygel_external_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;
}


guint rygel_external_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 *) (&_rygel_external_free_desktop_dbus_object_dbus_interface_info), &_rygel_external_free_desktop_dbus_object_dbus_interface_vtable, data, _rygel_external_free_desktop_dbus_object_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}


static void _rygel_external_free_desktop_dbus_object_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);
}


void rygel_external_free_desktop_properties_get_all (RygelExternalFreeDesktopProperties* self, const gchar* iface, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RYGEL_EXTERNAL_FREE_DESKTOP_PROPERTIES_GET_INTERFACE (self)->get_all (self, iface, _callback_, _user_data_);
}


GHashTable* rygel_external_free_desktop_properties_get_all_finish (RygelExternalFreeDesktopProperties* self, GAsyncResult* _res_, GError** error) {
	return RYGEL_EXTERNAL_FREE_DESKTOP_PROPERTIES_GET_INTERFACE (self)->get_all_finish (self, _res_, error);
}


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


GType rygel_external_free_desktop_properties_get_type (void) {
	static volatile gsize rygel_external_free_desktop_properties_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_external_free_desktop_properties_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelExternalFreeDesktopPropertiesIface), (GBaseInitFunc) rygel_external_free_desktop_properties_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType rygel_external_free_desktop_properties_type_id;
		rygel_external_free_desktop_properties_type_id = g_type_register_static (G_TYPE_INTERFACE, "RygelExternalFreeDesktopProperties", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (rygel_external_free_desktop_properties_type_id, G_TYPE_OBJECT);
		g_type_set_qdata (rygel_external_free_desktop_properties_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) rygel_external_free_desktop_properties_proxy_get_type);
		g_type_set_qdata (rygel_external_free_desktop_properties_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.freedesktop.DBus.Properties");
		g_type_set_qdata (rygel_external_free_desktop_properties_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) rygel_external_free_desktop_properties_register_object);
		g_once_init_leave (&rygel_external_free_desktop_properties_type_id__volatile, rygel_external_free_desktop_properties_type_id);
	}
	return rygel_external_free_desktop_properties_type_id__volatile;
}


G_DEFINE_TYPE_EXTENDED (RygelExternalFreeDesktopPropertiesProxy, rygel_external_free_desktop_properties_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (RYGEL_EXTERNAL_FREE_DESKTOP_TYPE_PROPERTIES, rygel_external_free_desktop_properties_proxy_rygel_external_free_desktop_properties_interface_init) )
static void rygel_external_free_desktop_properties_proxy_class_init (RygelExternalFreeDesktopPropertiesProxyClass* klass) {
	G_DBUS_PROXY_CLASS (klass)->g_signal = rygel_external_free_desktop_properties_proxy_g_signal;
}


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


static void rygel_external_free_desktop_properties_proxy_init (RygelExternalFreeDesktopPropertiesProxy* self) {
}


static void rygel_external_free_desktop_properties_proxy_get_all_async (RygelExternalFreeDesktopProperties* 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* rygel_external_free_desktop_properties_proxy_get_all_finish (RygelExternalFreeDesktopProperties* self, GAsyncResult* _res_, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	GHashTable* _result;
	GVariant* _tmp117_;
	GHashTable* _tmp118_;
	GVariantIter _tmp119_;
	GVariant* _tmp120_;
	GVariant* _tmp121_;
	_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);
	_tmp117_ = g_variant_iter_next_value (&_reply_iter);
	_tmp118_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_variant_unref);
	g_variant_iter_init (&_tmp119_, _tmp117_);
	while (g_variant_iter_loop (&_tmp119_, "{?*}", &_tmp120_, &_tmp121_)) {
		g_hash_table_insert (_tmp118_, g_variant_dup_string (_tmp120_, NULL), g_variant_get_variant (_tmp121_));
	}
	_result = _tmp118_;
	g_variant_unref (_tmp117_);
	g_object_unref (_reply_message);
	return _result;
}


static void rygel_external_free_desktop_properties_proxy_rygel_external_free_desktop_properties_interface_init (RygelExternalFreeDesktopPropertiesIface* iface) {
	iface->get_all = rygel_external_free_desktop_properties_proxy_get_all_async;
	iface->get_all_finish = rygel_external_free_desktop_properties_proxy_get_all_finish;
}


static void rygel_external_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];
	g_object_unref (invocation);
}


static GVariant* rygel_external_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 rygel_external_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 rygel_external_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 *) (&_rygel_external_free_desktop_properties_dbus_interface_info), &_rygel_external_free_desktop_properties_dbus_interface_vtable, data, _rygel_external_free_desktop_properties_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}


static void _rygel_external_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);
}



