/* rygel-meta-config.c generated by valac 0.25.1.16-16e7a, the Vala compiler
 * generated from rygel-meta-config.vala, do not modify */

/*
 * Copyright (C) 2008,2009 Nokia Corporation.
 * Copyright (C) 2008,2009 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
 * Copyright (C) 2012 Intel Corporation.
 *
 * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
 *                               <zeeshan.ali@nokia.com>
 *         Krzesimir Nowak <krnowak@openismus.com>
 *         Jens Georg <jensg@openismus.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 <gee.h>
#include <glib/gi18n-lib.h>


#define RYGEL_TYPE_CONFIGURATION (rygel_configuration_get_type ())
#define RYGEL_CONFIGURATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_CONFIGURATION, RygelConfiguration))
#define RYGEL_IS_CONFIGURATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_CONFIGURATION))
#define RYGEL_CONFIGURATION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), RYGEL_TYPE_CONFIGURATION, RygelConfigurationIface))

typedef struct _RygelConfiguration RygelConfiguration;
typedef struct _RygelConfigurationIface RygelConfigurationIface;

#define RYGEL_TYPE_META_CONFIG (rygel_meta_config_get_type ())
#define RYGEL_META_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_META_CONFIG, RygelMetaConfig))
#define RYGEL_META_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_META_CONFIG, RygelMetaConfigClass))
#define RYGEL_IS_META_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_META_CONFIG))
#define RYGEL_IS_META_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_META_CONFIG))
#define RYGEL_META_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_META_CONFIG, RygelMetaConfigClass))

typedef struct _RygelMetaConfig RygelMetaConfig;
typedef struct _RygelMetaConfigClass RygelMetaConfigClass;
typedef struct _RygelMetaConfigPrivate RygelMetaConfigPrivate;

#define RYGEL_TYPE_CONFIGURATION_ENTRY (rygel_configuration_entry_get_type ())

#define RYGEL_TYPE_SECTION_ENTRY (rygel_section_entry_get_type ())
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))

struct _RygelConfigurationIface {
	GTypeInterface parent_iface;
	gboolean (*get_upnp_enabled) (RygelConfiguration* self, GError** error);
	gchar* (*get_interface) (RygelConfiguration* self, GError** error);
	gchar** (*get_interfaces) (RygelConfiguration* self, GError** error);
	gint (*get_port) (RygelConfiguration* self, GError** error);
	gboolean (*get_transcoding) (RygelConfiguration* self, GError** error);
	gboolean (*get_allow_upload) (RygelConfiguration* self, GError** error);
	gboolean (*get_allow_deletion) (RygelConfiguration* self, GError** error);
	gchar* (*get_log_levels) (RygelConfiguration* self, GError** error);
	gchar* (*get_plugin_path) (RygelConfiguration* self, GError** error);
	gchar* (*get_engine_path) (RygelConfiguration* self, GError** error);
	gchar* (*get_media_engine) (RygelConfiguration* self, GError** error);
	gchar* (*get_video_upload_folder) (RygelConfiguration* self, GError** error);
	gchar* (*get_music_upload_folder) (RygelConfiguration* self, GError** error);
	gchar* (*get_picture_upload_folder) (RygelConfiguration* self, GError** error);
	gboolean (*get_enabled) (RygelConfiguration* self, const gchar* section, GError** error);
	gchar* (*get_title) (RygelConfiguration* self, const gchar* section, GError** error);
	gchar* (*get_string) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
	GeeArrayList* (*get_string_list) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
	gint (*get_int) (RygelConfiguration* self, const gchar* section, const gchar* key, gint min, gint max, GError** error);
	GeeArrayList* (*get_int_list) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
	gboolean (*get_bool) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
};

struct _RygelMetaConfig {
	GObject parent_instance;
	RygelMetaConfigPrivate * priv;
};

struct _RygelMetaConfigClass {
	GObjectClass parent_class;
};

typedef enum  {
	RYGEL_CONFIGURATION_ENTRY_UPNP_ENABLED,
	RYGEL_CONFIGURATION_ENTRY_INTERFACE,
	RYGEL_CONFIGURATION_ENTRY_PORT,
	RYGEL_CONFIGURATION_ENTRY_TRANSCODING,
	RYGEL_CONFIGURATION_ENTRY_ALLOW_UPLOAD,
	RYGEL_CONFIGURATION_ENTRY_ALLOW_DELETION,
	RYGEL_CONFIGURATION_ENTRY_LOG_LEVELS,
	RYGEL_CONFIGURATION_ENTRY_PLUGIN_PATH,
	RYGEL_CONFIGURATION_ENTRY_VIDEO_UPLOAD_FOLDER,
	RYGEL_CONFIGURATION_ENTRY_MUSIC_UPLOAD_FOLDER,
	RYGEL_CONFIGURATION_ENTRY_PICTURE_UPLOAD_FOLDER
} RygelConfigurationEntry;

typedef enum  {
	RYGEL_SECTION_ENTRY_TITLE,
	RYGEL_SECTION_ENTRY_ENABLED
} RygelSectionEntry;

typedef enum  {
	RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET,
	RYGEL_CONFIGURATION_ERROR_VALUE_OUT_OF_RANGE
} RygelConfigurationError;
#define RYGEL_CONFIGURATION_ERROR rygel_configuration_error_quark ()

static gpointer rygel_meta_config_parent_class = NULL;
static RygelMetaConfig* rygel_meta_config_meta_config;
static RygelMetaConfig* rygel_meta_config_meta_config = NULL;
static GeeArrayList* rygel_meta_config_configs;
static GeeArrayList* rygel_meta_config_configs = NULL;
static RygelConfigurationIface* rygel_meta_config_rygel_configuration_parent_iface = NULL;

GType rygel_configuration_get_type (void) G_GNUC_CONST;
GType rygel_meta_config_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_META_CONFIG_DUMMY_PROPERTY
};
static void rygel_meta_config_connect_signals (RygelMetaConfig* self, RygelConfiguration* config);
GType rygel_configuration_entry_get_type (void) G_GNUC_CONST;
static void rygel_meta_config_on_configuration_changed (RygelMetaConfig* self, RygelConfiguration* affected_config, RygelConfigurationEntry entry);
static void _rygel_meta_config_on_configuration_changed_rygel_configuration_configuration_changed (RygelConfiguration* _sender, RygelConfigurationEntry entry, gpointer self);
GType rygel_section_entry_get_type (void) G_GNUC_CONST;
static void rygel_meta_config_on_section_changed (RygelMetaConfig* self, RygelConfiguration* affected_config, const gchar* section, RygelSectionEntry entry);
static void _rygel_meta_config_on_section_changed_rygel_configuration_section_changed (RygelConfiguration* _sender, const gchar* section, RygelSectionEntry entry, gpointer self);
static void rygel_meta_config_on_setting_changed (RygelMetaConfig* self, RygelConfiguration* affected_config, const gchar* section, const gchar* key);
static void _rygel_meta_config_on_setting_changed_rygel_configuration_setting_changed (RygelConfiguration* _sender, const gchar* section, const gchar* key, gpointer self);
RygelMetaConfig* rygel_meta_config_get_default (void);
RygelMetaConfig* rygel_meta_config_new (void);
RygelMetaConfig* rygel_meta_config_construct (GType object_type);
void rygel_meta_config_register_configuration (RygelConfiguration* config);
static gboolean rygel_meta_config_real_get_upnp_enabled (RygelConfiguration* base, GError** error);
gboolean rygel_configuration_get_upnp_enabled (RygelConfiguration* self, GError** error);
GQuark rygel_configuration_error_quark (void);
static gchar* rygel_meta_config_real_get_interface (RygelConfiguration* base, GError** error);
gchar* rygel_configuration_get_interface (RygelConfiguration* self, GError** error) G_GNUC_DEPRECATED;
static gchar** rygel_meta_config_real_get_interfaces (RygelConfiguration* base, GError** error);
gchar** rygel_configuration_get_interfaces (RygelConfiguration* self, GError** error);
static gint rygel_meta_config_real_get_port (RygelConfiguration* base, GError** error);
gint rygel_configuration_get_port (RygelConfiguration* self, GError** error);
static gboolean rygel_meta_config_real_get_transcoding (RygelConfiguration* base, GError** error);
gboolean rygel_configuration_get_transcoding (RygelConfiguration* self, GError** error);
static gboolean rygel_meta_config_real_get_allow_upload (RygelConfiguration* base, GError** error);
gboolean rygel_configuration_get_allow_upload (RygelConfiguration* self, GError** error);
static gboolean rygel_meta_config_real_get_allow_deletion (RygelConfiguration* base, GError** error);
gboolean rygel_configuration_get_allow_deletion (RygelConfiguration* self, GError** error);
static gchar* rygel_meta_config_real_get_log_levels (RygelConfiguration* base, GError** error);
gchar* rygel_configuration_get_log_levels (RygelConfiguration* self, GError** error);
static gchar* rygel_meta_config_real_get_plugin_path (RygelConfiguration* base, GError** error);
gchar* rygel_configuration_get_plugin_path (RygelConfiguration* self, GError** error);
static gchar* rygel_meta_config_real_get_media_engine (RygelConfiguration* base, GError** error);
gchar* rygel_configuration_get_media_engine (RygelConfiguration* self, GError** error);
static gchar* rygel_meta_config_real_get_engine_path (RygelConfiguration* base, GError** error);
gchar* rygel_configuration_get_engine_path (RygelConfiguration* self, GError** error);
static gchar* rygel_meta_config_real_get_video_upload_folder (RygelConfiguration* base, GError** error);
gchar* rygel_configuration_get_video_upload_folder (RygelConfiguration* self, GError** error);
static gchar* rygel_meta_config_real_get_music_upload_folder (RygelConfiguration* base, GError** error);
gchar* rygel_configuration_get_music_upload_folder (RygelConfiguration* self, GError** error);
static gchar* rygel_meta_config_real_get_picture_upload_folder (RygelConfiguration* base, GError** error);
gchar* rygel_configuration_get_picture_upload_folder (RygelConfiguration* self, GError** error);
static gboolean rygel_meta_config_real_get_enabled (RygelConfiguration* base, const gchar* section, GError** error);
gboolean rygel_configuration_get_enabled (RygelConfiguration* self, const gchar* section, GError** error);
static gchar* rygel_meta_config_real_get_title (RygelConfiguration* base, const gchar* section, GError** error);
gchar* rygel_configuration_get_title (RygelConfiguration* self, const gchar* section, GError** error);
static gchar* rygel_meta_config_real_get_string (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error);
gchar* rygel_configuration_get_string (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
static GeeArrayList* rygel_meta_config_real_get_string_list (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error);
GeeArrayList* rygel_configuration_get_string_list (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
static gint rygel_meta_config_real_get_int (RygelConfiguration* base, const gchar* section, const gchar* key, gint min, gint max, GError** error);
gint rygel_configuration_get_int (RygelConfiguration* self, const gchar* section, const gchar* key, gint min, gint max, GError** error);
static GeeArrayList* rygel_meta_config_real_get_int_list (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error);
GeeArrayList* rygel_configuration_get_int_list (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
static gboolean rygel_meta_config_real_get_bool (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error);
gboolean rygel_configuration_get_bool (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
static gboolean rygel_meta_config_configuration_value_available (RygelMetaConfig* self, RygelConfiguration* config, RygelConfigurationEntry entry);
static gboolean rygel_meta_config_setting_value_available (RygelMetaConfig* self, RygelConfiguration* config, const gchar* section, RygelSectionEntry entry);
static void rygel_meta_config_finalize (GObject* obj);
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 gint _vala_array_length (gpointer array);


static void _rygel_meta_config_on_configuration_changed_rygel_configuration_configuration_changed (RygelConfiguration* _sender, RygelConfigurationEntry entry, gpointer self) {
	rygel_meta_config_on_configuration_changed ((RygelMetaConfig*) self, _sender, entry);
}


static void _rygel_meta_config_on_section_changed_rygel_configuration_section_changed (RygelConfiguration* _sender, const gchar* section, RygelSectionEntry entry, gpointer self) {
	rygel_meta_config_on_section_changed ((RygelMetaConfig*) self, _sender, section, entry);
}


static void _rygel_meta_config_on_setting_changed_rygel_configuration_setting_changed (RygelConfiguration* _sender, const gchar* section, const gchar* key, gpointer self) {
	rygel_meta_config_on_setting_changed ((RygelMetaConfig*) self, _sender, section, key);
}


static void rygel_meta_config_connect_signals (RygelMetaConfig* self, RygelConfiguration* config) {
	RygelConfiguration* _tmp0_ = NULL;
	RygelConfiguration* _tmp1_ = NULL;
	RygelConfiguration* _tmp2_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (config != NULL);
	_tmp0_ = config;
	g_signal_connect_object (_tmp0_, "configuration-changed", (GCallback) _rygel_meta_config_on_configuration_changed_rygel_configuration_configuration_changed, self, 0);
	_tmp1_ = config;
	g_signal_connect_object (_tmp1_, "section-changed", (GCallback) _rygel_meta_config_on_section_changed_rygel_configuration_section_changed, self, 0);
	_tmp2_ = config;
	g_signal_connect_object (_tmp2_, "setting-changed", (GCallback) _rygel_meta_config_on_setting_changed_rygel_configuration_setting_changed, self, 0);
}


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


RygelMetaConfig* rygel_meta_config_get_default (void) {
	RygelMetaConfig* result = NULL;
	GeeArrayList* _tmp0_ = NULL;
	RygelMetaConfig* _tmp2_ = NULL;
	RygelMetaConfig* _tmp17_ = NULL;
	RygelMetaConfig* _tmp18_ = NULL;
	_tmp0_ = rygel_meta_config_configs;
	if (_tmp0_ == NULL) {
		GeeArrayList* _tmp1_ = NULL;
		_tmp1_ = gee_array_list_new (RYGEL_TYPE_CONFIGURATION, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
		_g_object_unref0 (rygel_meta_config_configs);
		rygel_meta_config_configs = _tmp1_;
	}
	_tmp2_ = rygel_meta_config_meta_config;
	if (_tmp2_ == NULL) {
		RygelMetaConfig* _tmp3_ = NULL;
		_tmp3_ = rygel_meta_config_new ();
		_g_object_unref0 (rygel_meta_config_meta_config);
		rygel_meta_config_meta_config = _tmp3_;
		{
			GeeArrayList* _config_list = NULL;
			GeeArrayList* _tmp4_ = NULL;
			GeeArrayList* _tmp5_ = NULL;
			gint _config_size = 0;
			GeeArrayList* _tmp6_ = NULL;
			gint _tmp7_ = 0;
			gint _tmp8_ = 0;
			gint _config_index = 0;
			_tmp4_ = rygel_meta_config_configs;
			_tmp5_ = _g_object_ref0 (_tmp4_);
			_config_list = _tmp5_;
			_tmp6_ = _config_list;
			_tmp7_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp6_);
			_tmp8_ = _tmp7_;
			_config_size = _tmp8_;
			_config_index = -1;
			while (TRUE) {
				gint _tmp9_ = 0;
				gint _tmp10_ = 0;
				gint _tmp11_ = 0;
				RygelConfiguration* config = NULL;
				GeeArrayList* _tmp12_ = NULL;
				gint _tmp13_ = 0;
				gpointer _tmp14_ = NULL;
				RygelMetaConfig* _tmp15_ = NULL;
				RygelConfiguration* _tmp16_ = NULL;
				_tmp9_ = _config_index;
				_config_index = _tmp9_ + 1;
				_tmp10_ = _config_index;
				_tmp11_ = _config_size;
				if (!(_tmp10_ < _tmp11_)) {
					break;
				}
				_tmp12_ = _config_list;
				_tmp13_ = _config_index;
				_tmp14_ = gee_abstract_list_get ((GeeAbstractList*) _tmp12_, _tmp13_);
				config = (RygelConfiguration*) _tmp14_;
				_tmp15_ = rygel_meta_config_meta_config;
				_tmp16_ = config;
				rygel_meta_config_connect_signals (_tmp15_, _tmp16_);
				_g_object_unref0 (config);
			}
			_g_object_unref0 (_config_list);
		}
	}
	_tmp17_ = rygel_meta_config_meta_config;
	_tmp18_ = _g_object_ref0 (_tmp17_);
	result = _tmp18_;
	return result;
}


void rygel_meta_config_register_configuration (RygelConfiguration* config) {
	GeeArrayList* _tmp0_ = NULL;
	GeeArrayList* _tmp2_ = NULL;
	RygelConfiguration* _tmp3_ = NULL;
	RygelMetaConfig* _tmp4_ = NULL;
	g_return_if_fail (config != NULL);
	_tmp0_ = rygel_meta_config_configs;
	if (_tmp0_ == NULL) {
		GeeArrayList* _tmp1_ = NULL;
		_tmp1_ = gee_array_list_new (RYGEL_TYPE_CONFIGURATION, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
		_g_object_unref0 (rygel_meta_config_configs);
		rygel_meta_config_configs = _tmp1_;
	}
	_tmp2_ = rygel_meta_config_configs;
	_tmp3_ = config;
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp2_, _tmp3_);
	_tmp4_ = rygel_meta_config_meta_config;
	if (_tmp4_ != NULL) {
		RygelMetaConfig* _tmp5_ = NULL;
		RygelConfiguration* _tmp6_ = NULL;
		_tmp5_ = rygel_meta_config_meta_config;
		_tmp6_ = config;
		rygel_meta_config_connect_signals (_tmp5_, _tmp6_);
	}
}


static gboolean rygel_meta_config_real_get_upnp_enabled (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gboolean result = FALSE;
	gboolean val = FALSE;
	gboolean unavailable = FALSE;
	gboolean _tmp14_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	val = TRUE;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gboolean _tmp11_ = FALSE;
				RygelConfiguration* _tmp12_ = NULL;
				gboolean _tmp13_ = FALSE;
				_tmp12_ = config;
				_tmp13_ = rygel_configuration_get_upnp_enabled (_tmp12_, &_inner_error_);
				_tmp11_ = _tmp13_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch12_g_error;
				}
				val = _tmp11_;
				unavailable = FALSE;
				_g_object_unref0 (config);
				break;
			}
			goto __finally12;
			__catch12_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally12:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				return FALSE;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp14_ = unavailable;
	if (_tmp14_) {
		const gchar* _tmp15_ = NULL;
		GError* _tmp16_ = NULL;
		_tmp15_ = _ ("No value available");
		_tmp16_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp15_);
		_inner_error_ = _tmp16_;
		g_propagate_error (error, _inner_error_);
		return FALSE;
	}
	result = val;
	return result;
}


static gchar* rygel_meta_config_real_get_interface (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gchar* result = NULL;
	gchar* val = NULL;
	gboolean unavailable = FALSE;
	gboolean _tmp15_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	val = NULL;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gchar* _tmp11_ = NULL;
				RygelConfiguration* _tmp12_ = NULL;
				gchar* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
				_tmp12_ = config;
				_tmp13_ = rygel_configuration_get_interface (_tmp12_, &_inner_error_);
				_tmp11_ = _tmp13_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch13_g_error;
				}
				_tmp14_ = _tmp11_;
				_tmp11_ = NULL;
				_g_free0 (val);
				val = _tmp14_;
				unavailable = FALSE;
				_g_free0 (_tmp11_);
				_g_object_unref0 (config);
				break;
			}
			goto __finally13;
			__catch13_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally13:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_free0 (val);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp15_ = unavailable;
	if (_tmp15_) {
		const gchar* _tmp16_ = NULL;
		GError* _tmp17_ = NULL;
		_tmp16_ = _ ("No value available");
		_tmp17_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp16_);
		_inner_error_ = _tmp17_;
		g_propagate_error (error, _inner_error_);
		_g_free0 (val);
		return NULL;
	}
	result = val;
	return result;
}


static gchar** rygel_meta_config_real_get_interfaces (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gchar** result = NULL;
	gchar** val = NULL;
	gint val_length1 = 0;
	gint _val_size_ = 0;
	gboolean unavailable = FALSE;
	gboolean _tmp16_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	val = NULL;
	val_length1 = 0;
	_val_size_ = val_length1;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gchar** _tmp11_ = NULL;
				RygelConfiguration* _tmp12_ = NULL;
				gchar** _tmp13_ = NULL;
				gchar** _tmp14_ = NULL;
				gint _tmp11__length1 = 0;
				gint __tmp11__size_ = 0;
				gchar** _tmp15_ = NULL;
				gint _tmp15__length1 = 0;
				_tmp12_ = config;
				_tmp14_ = _tmp13_ = rygel_configuration_get_interfaces (_tmp12_, &_inner_error_);
				_tmp11_ = _tmp14_;
				_tmp11__length1 = _vala_array_length (_tmp13_);
				__tmp11__size_ = _tmp11__length1;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch14_g_error;
				}
				_tmp15_ = _tmp11_;
				_tmp15__length1 = _tmp11__length1;
				_tmp11_ = NULL;
				_tmp11__length1 = 0;
				val = (_vala_array_free (val, val_length1, (GDestroyNotify) g_free), NULL);
				val = _tmp15_;
				val_length1 = _tmp15__length1;
				_val_size_ = val_length1;
				unavailable = FALSE;
				_tmp11_ = (_vala_array_free (_tmp11_, _tmp11__length1, (GDestroyNotify) g_free), NULL);
				_g_object_unref0 (config);
				break;
			}
			goto __finally14;
			__catch14_g_error:
			{
				GError* _error_ = NULL;
				_error_ = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (_error_);
			}
			__finally14:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				val = (_vala_array_free (val, val_length1, (GDestroyNotify) g_free), NULL);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp16_ = unavailable;
	if (_tmp16_) {
		const gchar* _tmp17_ = NULL;
		GError* _tmp18_ = NULL;
		_tmp17_ = _ ("No value available");
		_tmp18_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp17_);
		_inner_error_ = _tmp18_;
		g_propagate_error (error, _inner_error_);
		val = (_vala_array_free (val, val_length1, (GDestroyNotify) g_free), NULL);
		return NULL;
	}
	result = val;
	return result;
}


static gint rygel_meta_config_real_get_port (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gint result = 0;
	gint val = 0;
	gboolean unavailable = FALSE;
	gboolean _tmp14_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	val = 0;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gint _tmp11_ = 0;
				RygelConfiguration* _tmp12_ = NULL;
				gint _tmp13_ = 0;
				_tmp12_ = config;
				_tmp13_ = rygel_configuration_get_port (_tmp12_, &_inner_error_);
				_tmp11_ = _tmp13_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch15_g_error;
				}
				val = _tmp11_;
				unavailable = FALSE;
				_g_object_unref0 (config);
				break;
			}
			goto __finally15;
			__catch15_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally15:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				return 0;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp14_ = unavailable;
	if (_tmp14_) {
		const gchar* _tmp15_ = NULL;
		GError* _tmp16_ = NULL;
		_tmp15_ = _ ("No value available");
		_tmp16_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp15_);
		_inner_error_ = _tmp16_;
		g_propagate_error (error, _inner_error_);
		return 0;
	}
	result = val;
	return result;
}


static gboolean rygel_meta_config_real_get_transcoding (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gboolean result = FALSE;
	gboolean val = FALSE;
	gboolean unavailable = FALSE;
	gboolean _tmp14_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	val = TRUE;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gboolean _tmp11_ = FALSE;
				RygelConfiguration* _tmp12_ = NULL;
				gboolean _tmp13_ = FALSE;
				_tmp12_ = config;
				_tmp13_ = rygel_configuration_get_transcoding (_tmp12_, &_inner_error_);
				_tmp11_ = _tmp13_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch16_g_error;
				}
				val = _tmp11_;
				unavailable = FALSE;
				_g_object_unref0 (config);
				break;
			}
			goto __finally16;
			__catch16_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally16:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				return FALSE;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp14_ = unavailable;
	if (_tmp14_) {
		const gchar* _tmp15_ = NULL;
		GError* _tmp16_ = NULL;
		_tmp15_ = _ ("No value available");
		_tmp16_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp15_);
		_inner_error_ = _tmp16_;
		g_propagate_error (error, _inner_error_);
		return FALSE;
	}
	result = val;
	return result;
}


static gboolean rygel_meta_config_real_get_allow_upload (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gboolean result = FALSE;
	gboolean val = FALSE;
	gboolean unavailable = FALSE;
	gboolean _tmp14_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	val = TRUE;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gboolean _tmp11_ = FALSE;
				RygelConfiguration* _tmp12_ = NULL;
				gboolean _tmp13_ = FALSE;
				_tmp12_ = config;
				_tmp13_ = rygel_configuration_get_allow_upload (_tmp12_, &_inner_error_);
				_tmp11_ = _tmp13_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch17_g_error;
				}
				val = _tmp11_;
				unavailable = FALSE;
				_g_object_unref0 (config);
				break;
			}
			goto __finally17;
			__catch17_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally17:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				return FALSE;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp14_ = unavailable;
	if (_tmp14_) {
		const gchar* _tmp15_ = NULL;
		GError* _tmp16_ = NULL;
		_tmp15_ = _ ("No value available");
		_tmp16_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp15_);
		_inner_error_ = _tmp16_;
		g_propagate_error (error, _inner_error_);
		return FALSE;
	}
	result = val;
	return result;
}


static gboolean rygel_meta_config_real_get_allow_deletion (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gboolean result = FALSE;
	gboolean val = FALSE;
	gboolean unavailable = FALSE;
	gboolean _tmp14_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	val = TRUE;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gboolean _tmp11_ = FALSE;
				RygelConfiguration* _tmp12_ = NULL;
				gboolean _tmp13_ = FALSE;
				_tmp12_ = config;
				_tmp13_ = rygel_configuration_get_allow_deletion (_tmp12_, &_inner_error_);
				_tmp11_ = _tmp13_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch18_g_error;
				}
				val = _tmp11_;
				unavailable = FALSE;
				_g_object_unref0 (config);
				break;
			}
			goto __finally18;
			__catch18_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally18:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				return FALSE;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp14_ = unavailable;
	if (_tmp14_) {
		const gchar* _tmp15_ = NULL;
		GError* _tmp16_ = NULL;
		_tmp15_ = _ ("No value available");
		_tmp16_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp15_);
		_inner_error_ = _tmp16_;
		g_propagate_error (error, _inner_error_);
		return FALSE;
	}
	result = val;
	return result;
}


static gchar* rygel_meta_config_real_get_log_levels (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gchar* result = NULL;
	gchar* val = NULL;
	gboolean unavailable = FALSE;
	gboolean _tmp15_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	val = NULL;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gchar* _tmp11_ = NULL;
				RygelConfiguration* _tmp12_ = NULL;
				gchar* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
				_tmp12_ = config;
				_tmp13_ = rygel_configuration_get_log_levels (_tmp12_, &_inner_error_);
				_tmp11_ = _tmp13_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch19_g_error;
				}
				_tmp14_ = _tmp11_;
				_tmp11_ = NULL;
				_g_free0 (val);
				val = _tmp14_;
				unavailable = FALSE;
				_g_free0 (_tmp11_);
				_g_object_unref0 (config);
				break;
			}
			goto __finally19;
			__catch19_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally19:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_free0 (val);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp15_ = unavailable;
	if (_tmp15_) {
		const gchar* _tmp16_ = NULL;
		GError* _tmp17_ = NULL;
		_tmp16_ = _ ("No value available");
		_tmp17_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp16_);
		_inner_error_ = _tmp17_;
		g_propagate_error (error, _inner_error_);
		_g_free0 (val);
		return NULL;
	}
	result = val;
	return result;
}


static gchar* rygel_meta_config_real_get_plugin_path (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gchar* result = NULL;
	gchar* val = NULL;
	gboolean unavailable = FALSE;
	gboolean _tmp15_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	val = NULL;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gchar* _tmp11_ = NULL;
				RygelConfiguration* _tmp12_ = NULL;
				gchar* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
				_tmp12_ = config;
				_tmp13_ = rygel_configuration_get_plugin_path (_tmp12_, &_inner_error_);
				_tmp11_ = _tmp13_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch20_g_error;
				}
				_tmp14_ = _tmp11_;
				_tmp11_ = NULL;
				_g_free0 (val);
				val = _tmp14_;
				unavailable = FALSE;
				_g_free0 (_tmp11_);
				_g_object_unref0 (config);
				break;
			}
			goto __finally20;
			__catch20_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally20:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_free0 (val);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp15_ = unavailable;
	if (_tmp15_) {
		const gchar* _tmp16_ = NULL;
		GError* _tmp17_ = NULL;
		_tmp16_ = _ ("No value available");
		_tmp17_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp16_);
		_inner_error_ = _tmp17_;
		g_propagate_error (error, _inner_error_);
		_g_free0 (val);
		return NULL;
	}
	result = val;
	return result;
}


static gchar* rygel_meta_config_real_get_media_engine (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gchar* result = NULL;
	gchar* val = NULL;
	gboolean unavailable = FALSE;
	gboolean _tmp15_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	val = NULL;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gchar* _tmp11_ = NULL;
				RygelConfiguration* _tmp12_ = NULL;
				gchar* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
				_tmp12_ = config;
				_tmp13_ = rygel_configuration_get_media_engine (_tmp12_, &_inner_error_);
				_tmp11_ = _tmp13_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch21_g_error;
				}
				_tmp14_ = _tmp11_;
				_tmp11_ = NULL;
				_g_free0 (val);
				val = _tmp14_;
				unavailable = FALSE;
				_g_free0 (_tmp11_);
				_g_object_unref0 (config);
				break;
			}
			goto __finally21;
			__catch21_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally21:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_free0 (val);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp15_ = unavailable;
	if (_tmp15_) {
		const gchar* _tmp16_ = NULL;
		GError* _tmp17_ = NULL;
		_tmp16_ = _ ("No value available");
		_tmp17_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp16_);
		_inner_error_ = _tmp17_;
		g_propagate_error (error, _inner_error_);
		_g_free0 (val);
		return NULL;
	}
	result = val;
	return result;
}


static gchar* rygel_meta_config_real_get_engine_path (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gchar* result = NULL;
	gchar* val = NULL;
	gboolean unavailable = FALSE;
	gboolean _tmp15_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	val = NULL;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gchar* _tmp11_ = NULL;
				RygelConfiguration* _tmp12_ = NULL;
				gchar* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
				_tmp12_ = config;
				_tmp13_ = rygel_configuration_get_engine_path (_tmp12_, &_inner_error_);
				_tmp11_ = _tmp13_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch22_g_error;
				}
				_tmp14_ = _tmp11_;
				_tmp11_ = NULL;
				_g_free0 (val);
				val = _tmp14_;
				unavailable = FALSE;
				_g_free0 (_tmp11_);
				_g_object_unref0 (config);
				break;
			}
			goto __finally22;
			__catch22_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally22:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_free0 (val);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp15_ = unavailable;
	if (_tmp15_) {
		const gchar* _tmp16_ = NULL;
		GError* _tmp17_ = NULL;
		_tmp16_ = _ ("No value available");
		_tmp17_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp16_);
		_inner_error_ = _tmp17_;
		g_propagate_error (error, _inner_error_);
		_g_free0 (val);
		return NULL;
	}
	result = val;
	return result;
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (old != NULL, NULL);
	g_return_val_if_fail (replacement != NULL, NULL);
	{
		GRegex* regex = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		GRegex* _tmp3_ = NULL;
		GRegex* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		GRegex* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		_tmp0_ = old;
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
		_tmp2_ = _tmp1_;
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
		_tmp4_ = _tmp3_;
		_g_free0 (_tmp2_);
		regex = _tmp4_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == G_REGEX_ERROR) {
				goto __catch24_g_regex_error;
			}
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
			g_clear_error (&_inner_error_);
			return NULL;
		}
		_tmp6_ = regex;
		_tmp7_ = replacement;
		_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) (-1), 0, _tmp7_, 0, &_inner_error_);
		_tmp5_ = _tmp8_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			_g_regex_unref0 (regex);
			if (_inner_error_->domain == G_REGEX_ERROR) {
				goto __catch24_g_regex_error;
			}
			_g_regex_unref0 (regex);
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
			g_clear_error (&_inner_error_);
			return NULL;
		}
		_tmp9_ = _tmp5_;
		_tmp5_ = NULL;
		result = _tmp9_;
		_g_free0 (_tmp5_);
		_g_regex_unref0 (regex);
		return result;
	}
	goto __finally24;
	__catch24_g_regex_error:
	{
		GError* e = NULL;
		e = _inner_error_;
		_inner_error_ = NULL;
		g_assert_not_reached ();
		_g_error_free0 (e);
	}
	__finally24:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return NULL;
	}
}


static gchar* rygel_meta_config_real_get_video_upload_folder (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gchar* result = NULL;
	const gchar* _default_ = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* value = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	_tmp0_ = g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS);
	_default_ = _tmp0_;
	_tmp1_ = _default_;
	_tmp2_ = g_strdup (_tmp1_);
	value = _tmp2_;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp3_ = NULL;
		GeeArrayList* _tmp4_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp5_ = NULL;
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
		gint _config_index = 0;
		_tmp3_ = rygel_meta_config_configs;
		_tmp4_ = _g_object_ref0 (_tmp3_);
		_config_list = _tmp4_;
		_tmp5_ = _config_list;
		_tmp6_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp5_);
		_tmp7_ = _tmp6_;
		_config_size = _tmp7_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp8_ = 0;
			gint _tmp9_ = 0;
			gint _tmp10_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp11_ = NULL;
			gint _tmp12_ = 0;
			gpointer _tmp13_ = NULL;
			_tmp8_ = _config_index;
			_config_index = _tmp8_ + 1;
			_tmp9_ = _config_index;
			_tmp10_ = _config_size;
			if (!(_tmp9_ < _tmp10_)) {
				break;
			}
			_tmp11_ = _config_list;
			_tmp12_ = _config_index;
			_tmp13_ = gee_abstract_list_get ((GeeAbstractList*) _tmp11_, _tmp12_);
			config = (RygelConfiguration*) _tmp13_;
			{
				gchar* _tmp14_ = NULL;
				RygelConfiguration* _tmp15_ = NULL;
				gchar* _tmp16_ = NULL;
				gchar* _tmp17_ = NULL;
				_tmp15_ = config;
				_tmp16_ = rygel_configuration_get_video_upload_folder (_tmp15_, &_inner_error_);
				_tmp14_ = _tmp16_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch23_g_error;
				}
				_tmp17_ = _tmp14_;
				_tmp14_ = NULL;
				_g_free0 (value);
				value = _tmp17_;
				_g_free0 (_tmp14_);
			}
			goto __finally23;
			__catch23_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally23:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_free0 (value);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp18_ = value;
	_tmp19_ = _default_;
	_tmp20_ = string_replace (_tmp18_, "@VIDEOS@", _tmp19_);
	result = _tmp20_;
	_g_free0 (value);
	return result;
}


static gchar* rygel_meta_config_real_get_music_upload_folder (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gchar* result = NULL;
	const gchar* _default_ = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* value = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	_tmp0_ = g_get_user_special_dir (G_USER_DIRECTORY_MUSIC);
	_default_ = _tmp0_;
	_tmp1_ = _default_;
	_tmp2_ = g_strdup (_tmp1_);
	value = _tmp2_;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp3_ = NULL;
		GeeArrayList* _tmp4_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp5_ = NULL;
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
		gint _config_index = 0;
		_tmp3_ = rygel_meta_config_configs;
		_tmp4_ = _g_object_ref0 (_tmp3_);
		_config_list = _tmp4_;
		_tmp5_ = _config_list;
		_tmp6_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp5_);
		_tmp7_ = _tmp6_;
		_config_size = _tmp7_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp8_ = 0;
			gint _tmp9_ = 0;
			gint _tmp10_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp11_ = NULL;
			gint _tmp12_ = 0;
			gpointer _tmp13_ = NULL;
			_tmp8_ = _config_index;
			_config_index = _tmp8_ + 1;
			_tmp9_ = _config_index;
			_tmp10_ = _config_size;
			if (!(_tmp9_ < _tmp10_)) {
				break;
			}
			_tmp11_ = _config_list;
			_tmp12_ = _config_index;
			_tmp13_ = gee_abstract_list_get ((GeeAbstractList*) _tmp11_, _tmp12_);
			config = (RygelConfiguration*) _tmp13_;
			{
				gchar* _tmp14_ = NULL;
				RygelConfiguration* _tmp15_ = NULL;
				gchar* _tmp16_ = NULL;
				gchar* _tmp17_ = NULL;
				_tmp15_ = config;
				_tmp16_ = rygel_configuration_get_music_upload_folder (_tmp15_, &_inner_error_);
				_tmp14_ = _tmp16_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch25_g_error;
				}
				_tmp17_ = _tmp14_;
				_tmp14_ = NULL;
				_g_free0 (value);
				value = _tmp17_;
				_g_free0 (_tmp14_);
			}
			goto __finally25;
			__catch25_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally25:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_free0 (value);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp18_ = value;
	_tmp19_ = _default_;
	_tmp20_ = string_replace (_tmp18_, "@MUSIC@", _tmp19_);
	result = _tmp20_;
	_g_free0 (value);
	return result;
}


static gchar* rygel_meta_config_real_get_picture_upload_folder (RygelConfiguration* base, GError** error) {
	RygelMetaConfig * self;
	gchar* result = NULL;
	const gchar* _default_ = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* value = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	_tmp0_ = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
	_default_ = _tmp0_;
	_tmp1_ = _default_;
	_tmp2_ = g_strdup (_tmp1_);
	value = _tmp2_;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp3_ = NULL;
		GeeArrayList* _tmp4_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp5_ = NULL;
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
		gint _config_index = 0;
		_tmp3_ = rygel_meta_config_configs;
		_tmp4_ = _g_object_ref0 (_tmp3_);
		_config_list = _tmp4_;
		_tmp5_ = _config_list;
		_tmp6_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp5_);
		_tmp7_ = _tmp6_;
		_config_size = _tmp7_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp8_ = 0;
			gint _tmp9_ = 0;
			gint _tmp10_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp11_ = NULL;
			gint _tmp12_ = 0;
			gpointer _tmp13_ = NULL;
			_tmp8_ = _config_index;
			_config_index = _tmp8_ + 1;
			_tmp9_ = _config_index;
			_tmp10_ = _config_size;
			if (!(_tmp9_ < _tmp10_)) {
				break;
			}
			_tmp11_ = _config_list;
			_tmp12_ = _config_index;
			_tmp13_ = gee_abstract_list_get ((GeeAbstractList*) _tmp11_, _tmp12_);
			config = (RygelConfiguration*) _tmp13_;
			{
				gchar* _tmp14_ = NULL;
				RygelConfiguration* _tmp15_ = NULL;
				gchar* _tmp16_ = NULL;
				gchar* _tmp17_ = NULL;
				_tmp15_ = config;
				_tmp16_ = rygel_configuration_get_picture_upload_folder (_tmp15_, &_inner_error_);
				_tmp14_ = _tmp16_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch26_g_error;
				}
				_tmp17_ = _tmp14_;
				_tmp14_ = NULL;
				_g_free0 (value);
				value = _tmp17_;
				_g_free0 (_tmp14_);
			}
			goto __finally26;
			__catch26_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally26:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_free0 (value);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp18_ = value;
	_tmp19_ = _default_;
	_tmp20_ = string_replace (_tmp18_, "@PICTURES@", _tmp19_);
	result = _tmp20_;
	_g_free0 (value);
	return result;
}


static gboolean rygel_meta_config_real_get_enabled (RygelConfiguration* base, const gchar* section, GError** error) {
	RygelMetaConfig * self;
	gboolean result = FALSE;
	gboolean val = FALSE;
	gboolean unavailable = FALSE;
	gboolean _tmp15_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	g_return_val_if_fail (section != NULL, FALSE);
	val = TRUE;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gboolean _tmp11_ = FALSE;
				RygelConfiguration* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				gboolean _tmp14_ = FALSE;
				_tmp12_ = config;
				_tmp13_ = section;
				_tmp14_ = rygel_configuration_get_enabled (_tmp12_, _tmp13_, &_inner_error_);
				_tmp11_ = _tmp14_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch27_g_error;
				}
				val = _tmp11_;
				unavailable = FALSE;
				_g_object_unref0 (config);
				break;
			}
			goto __finally27;
			__catch27_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally27:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				return FALSE;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp15_ = unavailable;
	if (_tmp15_) {
		gchar* msg = NULL;
		const gchar* _tmp16_ = NULL;
		gchar* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
		GError* _tmp20_ = NULL;
		_tmp16_ = _ ("No value set for '%s/enabled'");
		_tmp17_ = g_strdup (_tmp16_);
		msg = _tmp17_;
		_tmp18_ = msg;
		_tmp19_ = section;
		_tmp20_ = g_error_new (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp18_, _tmp19_);
		_inner_error_ = _tmp20_;
		g_propagate_error (error, _inner_error_);
		_g_free0 (msg);
		return FALSE;
	}
	result = val;
	return result;
}


static gchar* rygel_meta_config_real_get_title (RygelConfiguration* base, const gchar* section, GError** error) {
	RygelMetaConfig * self;
	gchar* result = NULL;
	gchar* val = NULL;
	const gchar* _tmp16_ = NULL;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	g_return_val_if_fail (section != NULL, NULL);
	val = NULL;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gchar* _tmp11_ = NULL;
				RygelConfiguration* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
				gchar* _tmp15_ = NULL;
				_tmp12_ = config;
				_tmp13_ = section;
				_tmp14_ = rygel_configuration_get_title (_tmp12_, _tmp13_, &_inner_error_);
				_tmp11_ = _tmp14_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch28_g_error;
				}
				_tmp15_ = _tmp11_;
				_tmp11_ = NULL;
				_g_free0 (val);
				val = _tmp15_;
				_g_free0 (_tmp11_);
				_g_object_unref0 (config);
				break;
			}
			goto __finally28;
			__catch28_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally28:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_free0 (val);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp16_ = val;
	if (_tmp16_ == NULL) {
		gchar* msg = NULL;
		const gchar* _tmp17_ = NULL;
		gchar* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
		GError* _tmp21_ = NULL;
		_tmp17_ = _ ("No value set for '%s/title'");
		_tmp18_ = g_strdup (_tmp17_);
		msg = _tmp18_;
		_tmp19_ = msg;
		_tmp20_ = section;
		_tmp21_ = g_error_new (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp19_, _tmp20_);
		_inner_error_ = _tmp21_;
		g_propagate_error (error, _inner_error_);
		_g_free0 (msg);
		_g_free0 (val);
		return NULL;
	}
	result = val;
	return result;
}


static gchar* rygel_meta_config_real_get_string (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error) {
	RygelMetaConfig * self;
	gchar* result = NULL;
	gchar* val = NULL;
	const gchar* _tmp17_ = NULL;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	g_return_val_if_fail (section != NULL, NULL);
	g_return_val_if_fail (key != NULL, NULL);
	val = NULL;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gchar* _tmp11_ = NULL;
				RygelConfiguration* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				const gchar* _tmp14_ = NULL;
				gchar* _tmp15_ = NULL;
				gchar* _tmp16_ = NULL;
				_tmp12_ = config;
				_tmp13_ = section;
				_tmp14_ = key;
				_tmp15_ = rygel_configuration_get_string (_tmp12_, _tmp13_, _tmp14_, &_inner_error_);
				_tmp11_ = _tmp15_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch29_g_error;
				}
				_tmp16_ = _tmp11_;
				_tmp11_ = NULL;
				_g_free0 (val);
				val = _tmp16_;
				_g_free0 (_tmp11_);
				_g_object_unref0 (config);
				break;
			}
			goto __finally29;
			__catch29_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally29:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_free0 (val);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp17_ = val;
	if (_tmp17_ == NULL) {
		const gchar* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
		GError* _tmp21_ = NULL;
		_tmp18_ = _ ("No value available for '%s/%s'");
		_tmp19_ = section;
		_tmp20_ = key;
		_tmp21_ = g_error_new (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp18_, _tmp19_, _tmp20_);
		_inner_error_ = _tmp21_;
		g_propagate_error (error, _inner_error_);
		_g_free0 (val);
		return NULL;
	}
	result = val;
	return result;
}


static GeeArrayList* rygel_meta_config_real_get_string_list (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error) {
	RygelMetaConfig * self;
	GeeArrayList* result = NULL;
	GeeArrayList* val = NULL;
	GeeArrayList* _tmp17_ = NULL;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	g_return_val_if_fail (section != NULL, NULL);
	g_return_val_if_fail (key != NULL, NULL);
	val = NULL;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				GeeArrayList* _tmp11_ = NULL;
				RygelConfiguration* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				const gchar* _tmp14_ = NULL;
				GeeArrayList* _tmp15_ = NULL;
				GeeArrayList* _tmp16_ = NULL;
				_tmp12_ = config;
				_tmp13_ = section;
				_tmp14_ = key;
				_tmp15_ = rygel_configuration_get_string_list (_tmp12_, _tmp13_, _tmp14_, &_inner_error_);
				_tmp11_ = _tmp15_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch30_g_error;
				}
				_tmp16_ = _tmp11_;
				_tmp11_ = NULL;
				_g_object_unref0 (val);
				val = _tmp16_;
				_g_object_unref0 (_tmp11_);
				_g_object_unref0 (config);
				break;
			}
			goto __finally30;
			__catch30_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally30:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_object_unref0 (val);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp17_ = val;
	if (_tmp17_ == NULL) {
		const gchar* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
		GError* _tmp21_ = NULL;
		_tmp18_ = _ ("No value available for '%s/%s'");
		_tmp19_ = section;
		_tmp20_ = key;
		_tmp21_ = g_error_new (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp18_, _tmp19_, _tmp20_);
		_inner_error_ = _tmp21_;
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (val);
		return NULL;
	}
	result = val;
	return result;
}


static gint rygel_meta_config_real_get_int (RygelConfiguration* base, const gchar* section, const gchar* key, gint min, gint max, GError** error) {
	RygelMetaConfig * self;
	gint result = 0;
	gint val = 0;
	gboolean unavailable = FALSE;
	gboolean _tmp18_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	g_return_val_if_fail (section != NULL, 0);
	g_return_val_if_fail (key != NULL, 0);
	val = 0;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gint _tmp11_ = 0;
				RygelConfiguration* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				const gchar* _tmp14_ = NULL;
				gint _tmp15_ = 0;
				gint _tmp16_ = 0;
				gint _tmp17_ = 0;
				_tmp12_ = config;
				_tmp13_ = section;
				_tmp14_ = key;
				_tmp15_ = min;
				_tmp16_ = max;
				_tmp17_ = rygel_configuration_get_int (_tmp12_, _tmp13_, _tmp14_, _tmp15_, _tmp16_, &_inner_error_);
				_tmp11_ = _tmp17_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch31_g_error;
				}
				val = _tmp11_;
				unavailable = FALSE;
				_g_object_unref0 (config);
				break;
			}
			goto __finally31;
			__catch31_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally31:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				return 0;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp18_ = unavailable;
	if (_tmp18_) {
		const gchar* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
		const gchar* _tmp21_ = NULL;
		GError* _tmp22_ = NULL;
		_tmp19_ = _ ("No value available for '%s/%s'");
		_tmp20_ = section;
		_tmp21_ = key;
		_tmp22_ = g_error_new (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp19_, _tmp20_, _tmp21_);
		_inner_error_ = _tmp22_;
		g_propagate_error (error, _inner_error_);
		return 0;
	}
	result = val;
	return result;
}


static GeeArrayList* rygel_meta_config_real_get_int_list (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error) {
	RygelMetaConfig * self;
	GeeArrayList* result = NULL;
	GeeArrayList* val = NULL;
	GeeArrayList* _tmp17_ = NULL;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	g_return_val_if_fail (section != NULL, NULL);
	g_return_val_if_fail (key != NULL, NULL);
	val = NULL;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				GeeArrayList* _tmp11_ = NULL;
				RygelConfiguration* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				const gchar* _tmp14_ = NULL;
				GeeArrayList* _tmp15_ = NULL;
				GeeArrayList* _tmp16_ = NULL;
				_tmp12_ = config;
				_tmp13_ = section;
				_tmp14_ = key;
				_tmp15_ = rygel_configuration_get_int_list (_tmp12_, _tmp13_, _tmp14_, &_inner_error_);
				_tmp11_ = _tmp15_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch32_g_error;
				}
				_tmp16_ = _tmp11_;
				_tmp11_ = NULL;
				_g_object_unref0 (val);
				val = _tmp16_;
				_g_object_unref0 (_tmp11_);
				_g_object_unref0 (config);
				break;
			}
			goto __finally32;
			__catch32_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally32:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				_g_object_unref0 (val);
				return NULL;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp17_ = val;
	if (_tmp17_ == NULL) {
		const gchar* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
		const gchar* _tmp20_ = NULL;
		GError* _tmp21_ = NULL;
		_tmp18_ = _ ("No value available for '%s/%s'");
		_tmp19_ = section;
		_tmp20_ = key;
		_tmp21_ = g_error_new (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp18_, _tmp19_, _tmp20_);
		_inner_error_ = _tmp21_;
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (val);
		return NULL;
	}
	result = val;
	return result;
}


static gboolean rygel_meta_config_real_get_bool (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error) {
	RygelMetaConfig * self;
	gboolean result = FALSE;
	gboolean val = FALSE;
	gboolean unavailable = FALSE;
	gboolean _tmp16_ = FALSE;
	GError * _inner_error_ = NULL;
	self = (RygelMetaConfig*) base;
	g_return_val_if_fail (section != NULL, FALSE);
	g_return_val_if_fail (key != NULL, FALSE);
	val = FALSE;
	unavailable = TRUE;
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			{
				gboolean _tmp11_ = FALSE;
				RygelConfiguration* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				const gchar* _tmp14_ = NULL;
				gboolean _tmp15_ = FALSE;
				_tmp12_ = config;
				_tmp13_ = section;
				_tmp14_ = key;
				_tmp15_ = rygel_configuration_get_bool (_tmp12_, _tmp13_, _tmp14_, &_inner_error_);
				_tmp11_ = _tmp15_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch33_g_error;
				}
				val = _tmp11_;
				unavailable = FALSE;
				_g_object_unref0 (config);
				break;
			}
			goto __finally33;
			__catch33_g_error:
			{
				GError* err = NULL;
				err = _inner_error_;
				_inner_error_ = NULL;
				_g_error_free0 (err);
			}
			__finally33:
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				g_propagate_error (error, _inner_error_);
				_g_object_unref0 (config);
				_g_object_unref0 (_config_list);
				return FALSE;
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
	_tmp16_ = unavailable;
	if (_tmp16_) {
		const gchar* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
		GError* _tmp20_ = NULL;
		_tmp17_ = _ ("No value available for '%s/%s'");
		_tmp18_ = section;
		_tmp19_ = key;
		_tmp20_ = g_error_new (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp17_, _tmp18_, _tmp19_);
		_inner_error_ = _tmp20_;
		g_propagate_error (error, _inner_error_);
		return FALSE;
	}
	result = val;
	return result;
}


static gboolean rygel_meta_config_configuration_value_available (RygelMetaConfig* self, RygelConfiguration* config, RygelConfigurationEntry entry) {
	gboolean result = FALSE;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (config != NULL, FALSE);
	{
		RygelConfigurationEntry _tmp0_ = 0;
		_tmp0_ = entry;
		switch (_tmp0_) {
			case RYGEL_CONFIGURATION_ENTRY_UPNP_ENABLED:
			{
				RygelConfiguration* _tmp1_ = NULL;
				_tmp1_ = config;
				rygel_configuration_get_upnp_enabled (_tmp1_, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch34_g_error;
				}
				break;
			}
			case RYGEL_CONFIGURATION_ENTRY_INTERFACE:
			{
				RygelConfiguration* _tmp2_ = NULL;
				gchar** _tmp3_ = NULL;
				gchar** _tmp4_ = NULL;
				gchar** _tmp5_ = NULL;
				gint _tmp5__length1 = 0;
				_tmp2_ = config;
				_tmp4_ = _tmp3_ = rygel_configuration_get_interfaces (_tmp2_, &_inner_error_);
				_tmp5_ = _tmp4_;
				_tmp5__length1 = _vala_array_length (_tmp3_);
				_tmp5_ = (_vala_array_free (_tmp5_, _tmp5__length1, (GDestroyNotify) g_free), NULL);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch34_g_error;
				}
				break;
			}
			case RYGEL_CONFIGURATION_ENTRY_PORT:
			{
				RygelConfiguration* _tmp6_ = NULL;
				_tmp6_ = config;
				rygel_configuration_get_port (_tmp6_, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch34_g_error;
				}
				break;
			}
			case RYGEL_CONFIGURATION_ENTRY_TRANSCODING:
			{
				RygelConfiguration* _tmp7_ = NULL;
				_tmp7_ = config;
				rygel_configuration_get_transcoding (_tmp7_, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch34_g_error;
				}
				break;
			}
			case RYGEL_CONFIGURATION_ENTRY_ALLOW_UPLOAD:
			{
				RygelConfiguration* _tmp8_ = NULL;
				_tmp8_ = config;
				rygel_configuration_get_allow_upload (_tmp8_, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch34_g_error;
				}
				break;
			}
			case RYGEL_CONFIGURATION_ENTRY_ALLOW_DELETION:
			{
				RygelConfiguration* _tmp9_ = NULL;
				_tmp9_ = config;
				rygel_configuration_get_allow_deletion (_tmp9_, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch34_g_error;
				}
				break;
			}
			case RYGEL_CONFIGURATION_ENTRY_LOG_LEVELS:
			{
				RygelConfiguration* _tmp10_ = NULL;
				gchar* _tmp11_ = NULL;
				gchar* _tmp12_ = NULL;
				_tmp10_ = config;
				_tmp11_ = rygel_configuration_get_log_levels (_tmp10_, &_inner_error_);
				_tmp12_ = _tmp11_;
				_g_free0 (_tmp12_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch34_g_error;
				}
				break;
			}
			case RYGEL_CONFIGURATION_ENTRY_PLUGIN_PATH:
			{
				RygelConfiguration* _tmp13_ = NULL;
				gchar* _tmp14_ = NULL;
				gchar* _tmp15_ = NULL;
				_tmp13_ = config;
				_tmp14_ = rygel_configuration_get_plugin_path (_tmp13_, &_inner_error_);
				_tmp15_ = _tmp14_;
				_g_free0 (_tmp15_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch34_g_error;
				}
				break;
			}
			case RYGEL_CONFIGURATION_ENTRY_VIDEO_UPLOAD_FOLDER:
			{
				RygelConfiguration* _tmp16_ = NULL;
				gchar* _tmp17_ = NULL;
				gchar* _tmp18_ = NULL;
				_tmp16_ = config;
				_tmp17_ = rygel_configuration_get_video_upload_folder (_tmp16_, &_inner_error_);
				_tmp18_ = _tmp17_;
				_g_free0 (_tmp18_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch34_g_error;
				}
				break;
			}
			case RYGEL_CONFIGURATION_ENTRY_MUSIC_UPLOAD_FOLDER:
			{
				RygelConfiguration* _tmp19_ = NULL;
				gchar* _tmp20_ = NULL;
				gchar* _tmp21_ = NULL;
				_tmp19_ = config;
				_tmp20_ = rygel_configuration_get_music_upload_folder (_tmp19_, &_inner_error_);
				_tmp21_ = _tmp20_;
				_g_free0 (_tmp21_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch34_g_error;
				}
				break;
			}
			case RYGEL_CONFIGURATION_ENTRY_PICTURE_UPLOAD_FOLDER:
			{
				RygelConfiguration* _tmp22_ = NULL;
				gchar* _tmp23_ = NULL;
				gchar* _tmp24_ = NULL;
				_tmp22_ = config;
				_tmp23_ = rygel_configuration_get_picture_upload_folder (_tmp22_, &_inner_error_);
				_tmp24_ = _tmp23_;
				_g_free0 (_tmp24_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch34_g_error;
				}
				break;
			}
			default:
			{
				g_assert_not_reached ();
			}
		}
	}
	goto __finally34;
	__catch34_g_error:
	{
		GError* e = NULL;
		e = _inner_error_;
		_inner_error_ = NULL;
		result = FALSE;
		_g_error_free0 (e);
		return result;
	}
	__finally34:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return FALSE;
	}
	result = TRUE;
	return result;
}


static void rygel_meta_config_on_configuration_changed (RygelMetaConfig* self, RygelConfiguration* affected_config, RygelConfigurationEntry entry) {
	g_return_if_fail (self != NULL);
	g_return_if_fail (affected_config != NULL);
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			RygelConfiguration* _tmp11_ = NULL;
			RygelConfiguration* _tmp12_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			_tmp11_ = config;
			_tmp12_ = affected_config;
			if (_tmp11_ == _tmp12_) {
				RygelConfigurationEntry _tmp13_ = 0;
				_tmp13_ = entry;
				g_signal_emit_by_name ((RygelConfiguration*) self, "configuration-changed", _tmp13_);
			} else {
				RygelConfiguration* _tmp14_ = NULL;
				RygelConfigurationEntry _tmp15_ = 0;
				gboolean _tmp16_ = FALSE;
				_tmp14_ = config;
				_tmp15_ = entry;
				_tmp16_ = rygel_meta_config_configuration_value_available (self, _tmp14_, _tmp15_);
				if (_tmp16_) {
					_g_object_unref0 (config);
					_g_object_unref0 (_config_list);
					return;
				}
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
}


static gboolean rygel_meta_config_setting_value_available (RygelMetaConfig* self, RygelConfiguration* config, const gchar* section, RygelSectionEntry entry) {
	gboolean result = FALSE;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (config != NULL, FALSE);
	g_return_val_if_fail (section != NULL, FALSE);
	{
		RygelSectionEntry _tmp0_ = 0;
		_tmp0_ = entry;
		switch (_tmp0_) {
			case RYGEL_SECTION_ENTRY_TITLE:
			{
				RygelConfiguration* _tmp1_ = NULL;
				const gchar* _tmp2_ = NULL;
				gchar* _tmp3_ = NULL;
				gchar* _tmp4_ = NULL;
				_tmp1_ = config;
				_tmp2_ = section;
				_tmp3_ = rygel_configuration_get_title (_tmp1_, _tmp2_, &_inner_error_);
				_tmp4_ = _tmp3_;
				_g_free0 (_tmp4_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch35_g_error;
				}
				break;
			}
			case RYGEL_SECTION_ENTRY_ENABLED:
			{
				RygelConfiguration* _tmp5_ = NULL;
				const gchar* _tmp6_ = NULL;
				_tmp5_ = config;
				_tmp6_ = section;
				rygel_configuration_get_enabled (_tmp5_, _tmp6_, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					goto __catch35_g_error;
				}
				break;
			}
			default:
			{
				g_assert_not_reached ();
			}
		}
	}
	goto __finally35;
	__catch35_g_error:
	{
		GError* e = NULL;
		e = _inner_error_;
		_inner_error_ = NULL;
		result = FALSE;
		_g_error_free0 (e);
		return result;
	}
	__finally35:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return FALSE;
	}
	result = TRUE;
	return result;
}


static void rygel_meta_config_on_section_changed (RygelMetaConfig* self, RygelConfiguration* affected_config, const gchar* section, RygelSectionEntry entry) {
	g_return_if_fail (self != NULL);
	g_return_if_fail (affected_config != NULL);
	g_return_if_fail (section != NULL);
	{
		GeeArrayList* _config_list = NULL;
		GeeArrayList* _tmp0_ = NULL;
		GeeArrayList* _tmp1_ = NULL;
		gint _config_size = 0;
		GeeArrayList* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		gint _config_index = 0;
		_tmp0_ = rygel_meta_config_configs;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_config_list = _tmp1_;
		_tmp2_ = _config_list;
		_tmp3_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp2_);
		_tmp4_ = _tmp3_;
		_config_size = _tmp4_;
		_config_index = -1;
		while (TRUE) {
			gint _tmp5_ = 0;
			gint _tmp6_ = 0;
			gint _tmp7_ = 0;
			RygelConfiguration* config = NULL;
			GeeArrayList* _tmp8_ = NULL;
			gint _tmp9_ = 0;
			gpointer _tmp10_ = NULL;
			RygelConfiguration* _tmp11_ = NULL;
			RygelConfiguration* _tmp12_ = NULL;
			_tmp5_ = _config_index;
			_config_index = _tmp5_ + 1;
			_tmp6_ = _config_index;
			_tmp7_ = _config_size;
			if (!(_tmp6_ < _tmp7_)) {
				break;
			}
			_tmp8_ = _config_list;
			_tmp9_ = _config_index;
			_tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);
			config = (RygelConfiguration*) _tmp10_;
			_tmp11_ = config;
			_tmp12_ = affected_config;
			if (_tmp11_ == _tmp12_) {
				const gchar* _tmp13_ = NULL;
				RygelSectionEntry _tmp14_ = 0;
				_tmp13_ = section;
				_tmp14_ = entry;
				g_signal_emit_by_name ((RygelConfiguration*) self, "section-changed", _tmp13_, _tmp14_);
			} else {
				RygelConfiguration* _tmp15_ = NULL;
				const gchar* _tmp16_ = NULL;
				RygelSectionEntry _tmp17_ = 0;
				gboolean _tmp18_ = FALSE;
				_tmp15_ = config;
				_tmp16_ = section;
				_tmp17_ = entry;
				_tmp18_ = rygel_meta_config_setting_value_available (self, _tmp15_, _tmp16_, _tmp17_);
				if (_tmp18_) {
					_g_object_unref0 (config);
					_g_object_unref0 (_config_list);
					return;
				}
			}
			_g_object_unref0 (config);
		}
		_g_object_unref0 (_config_list);
	}
}


static void rygel_meta_config_on_setting_changed (RygelMetaConfig* self, RygelConfiguration* affected_config, const gchar* section, const gchar* key) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (affected_config != NULL);
	g_return_if_fail (section != NULL);
	g_return_if_fail (key != NULL);
	_tmp0_ = section;
	_tmp1_ = key;
	g_signal_emit_by_name ((RygelConfiguration*) self, "setting-changed", _tmp0_, _tmp1_);
}


RygelMetaConfig* rygel_meta_config_construct (GType object_type) {
	RygelMetaConfig * self = NULL;
	self = (RygelMetaConfig*) g_object_new (object_type, NULL);
	return self;
}


RygelMetaConfig* rygel_meta_config_new (void) {
	return rygel_meta_config_construct (RYGEL_TYPE_META_CONFIG);
}


static void rygel_meta_config_class_init (RygelMetaConfigClass * klass) {
	rygel_meta_config_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->finalize = rygel_meta_config_finalize;
}


static void rygel_meta_config_rygel_configuration_interface_init (RygelConfigurationIface * iface) {
	rygel_meta_config_rygel_configuration_parent_iface = g_type_interface_peek_parent (iface);
	iface->get_upnp_enabled = (gboolean (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_upnp_enabled;
	iface->get_interface = (gchar* (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_interface;
	iface->get_interfaces = (gchar** (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_interfaces;
	iface->get_port = (gint (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_port;
	iface->get_transcoding = (gboolean (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_transcoding;
	iface->get_allow_upload = (gboolean (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_allow_upload;
	iface->get_allow_deletion = (gboolean (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_allow_deletion;
	iface->get_log_levels = (gchar* (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_log_levels;
	iface->get_plugin_path = (gchar* (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_plugin_path;
	iface->get_media_engine = (gchar* (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_media_engine;
	iface->get_engine_path = (gchar* (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_engine_path;
	iface->get_video_upload_folder = (gchar* (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_video_upload_folder;
	iface->get_music_upload_folder = (gchar* (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_music_upload_folder;
	iface->get_picture_upload_folder = (gchar* (*)(RygelConfiguration*, GError**)) rygel_meta_config_real_get_picture_upload_folder;
	iface->get_enabled = (gboolean (*)(RygelConfiguration*, const gchar*, GError**)) rygel_meta_config_real_get_enabled;
	iface->get_title = (gchar* (*)(RygelConfiguration*, const gchar*, GError**)) rygel_meta_config_real_get_title;
	iface->get_string = (gchar* (*)(RygelConfiguration*, const gchar*, const gchar*, GError**)) rygel_meta_config_real_get_string;
	iface->get_string_list = (GeeArrayList* (*)(RygelConfiguration*, const gchar*, const gchar*, GError**)) rygel_meta_config_real_get_string_list;
	iface->get_int = (gint (*)(RygelConfiguration*, const gchar*, const gchar*, gint, gint, GError**)) rygel_meta_config_real_get_int;
	iface->get_int_list = (GeeArrayList* (*)(RygelConfiguration*, const gchar*, const gchar*, GError**)) rygel_meta_config_real_get_int_list;
	iface->get_bool = (gboolean (*)(RygelConfiguration*, const gchar*, const gchar*, GError**)) rygel_meta_config_real_get_bool;
}


static void rygel_meta_config_instance_init (RygelMetaConfig * self) {
}


static void rygel_meta_config_finalize (GObject* obj) {
	RygelMetaConfig * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_META_CONFIG, RygelMetaConfig);
	G_OBJECT_CLASS (rygel_meta_config_parent_class)->finalize (obj);
}


/**
 * Manages all the configuration sources for Rygel.
 *
 * Abstracts Rygel and its plugins from Configuration implementations. It keeps
 * all real configuration sources in a list and returns the value provided by
 * the first one. If none of them provides the value, it emits an error.
 */
GType rygel_meta_config_get_type (void) {
	static volatile gsize rygel_meta_config_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_meta_config_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMetaConfigClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_meta_config_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMetaConfig), 0, (GInstanceInitFunc) rygel_meta_config_instance_init, NULL };
		static const GInterfaceInfo rygel_configuration_info = { (GInterfaceInitFunc) rygel_meta_config_rygel_configuration_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType rygel_meta_config_type_id;
		rygel_meta_config_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelMetaConfig", &g_define_type_info, 0);
		g_type_add_interface_static (rygel_meta_config_type_id, RYGEL_TYPE_CONFIGURATION, &rygel_configuration_info);
		g_once_init_leave (&rygel_meta_config_type_id__volatile, rygel_meta_config_type_id);
	}
	return rygel_meta_config_type_id__volatile;
}


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);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



