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

/*
 * Copyright (C) 2008-2010 Nokia Corporation.
 * Copyright (C) 2008 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
 *
 * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
 *                               <zeeshan.ali@nokia.com>
 *
 * This file is part of Rygel.
 *
 * Rygel is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Rygel is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <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_ENVIRONMENT_CONFIG (rygel_environment_config_get_type ())
#define RYGEL_ENVIRONMENT_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_ENVIRONMENT_CONFIG, RygelEnvironmentConfig))
#define RYGEL_ENVIRONMENT_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_ENVIRONMENT_CONFIG, RygelEnvironmentConfigClass))
#define RYGEL_IS_ENVIRONMENT_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_ENVIRONMENT_CONFIG))
#define RYGEL_IS_ENVIRONMENT_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_ENVIRONMENT_CONFIG))
#define RYGEL_ENVIRONMENT_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_ENVIRONMENT_CONFIG, RygelEnvironmentConfigClass))

typedef struct _RygelEnvironmentConfig RygelEnvironmentConfig;
typedef struct _RygelEnvironmentConfigClass RygelEnvironmentConfigClass;
typedef struct _RygelEnvironmentConfigPrivate RygelEnvironmentConfigPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

struct _RygelConfigurationIface {
	GTypeInterface parent_iface;
	gboolean (*get_upnp_enabled) (RygelConfiguration* self, GError** error);
	gchar* (*get_interface) (RygelConfiguration* self, GError** error);
	gint (*get_port) (RygelConfiguration* self, GError** error);
	gboolean (*get_transcoding) (RygelConfiguration* self, GError** error);
	gboolean (*get_mp3_transcoder) (RygelConfiguration* self, GError** error);
	gboolean (*get_mp2ts_transcoder) (RygelConfiguration* self, GError** error);
	gboolean (*get_lpcm_transcoder) (RygelConfiguration* self, GError** error);
	gboolean (*get_wmv_transcoder) (RygelConfiguration* self, GError** error);
	gboolean (*get_aac_transcoder) (RygelConfiguration* self, GError** error);
	gboolean (*get_avc_transcoder) (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_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 _RygelEnvironmentConfig {
	GObject parent_instance;
	RygelEnvironmentConfigPrivate * priv;
};

struct _RygelEnvironmentConfigClass {
	GObjectClass parent_class;
};

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_environment_config_parent_class = NULL;
static gchar* rygel_environment_config_RYGEL_PREFIX;
static gchar* rygel_environment_config_RYGEL_PREFIX = NULL;
static gchar* rygel_environment_config_TITLE_KEY;
static gchar* rygel_environment_config_TITLE_KEY = NULL;
static gchar* rygel_environment_config_DISABLE_PREFIX;
static gchar* rygel_environment_config_DISABLE_PREFIX = NULL;
static gchar* rygel_environment_config_ENABLED_KEY;
static gchar* rygel_environment_config_ENABLED_KEY = NULL;
static gchar* rygel_environment_config_INTERFACE_ENV;
static gchar* rygel_environment_config_INTERFACE_ENV = NULL;
static gchar* rygel_environment_config_PORT_ENV;
static gchar* rygel_environment_config_PORT_ENV = NULL;
static gchar* rygel_environment_config_DISABLE_UPNP_ENV;
static gchar* rygel_environment_config_DISABLE_UPNP_ENV = NULL;
static gchar* rygel_environment_config_TRANSCODING_ENV;
static gchar* rygel_environment_config_TRANSCODING_ENV = NULL;
static gchar* rygel_environment_config_MP3_TRANSCODING_ENV;
static gchar* rygel_environment_config_MP3_TRANSCODING_ENV = NULL;
static gchar* rygel_environment_config_LPCM_TRANSCODING_ENV;
static gchar* rygel_environment_config_LPCM_TRANSCODING_ENV = NULL;
static gchar* rygel_environment_config_MP2TS_TRANSCODING_ENV;
static gchar* rygel_environment_config_MP2TS_TRANSCODING_ENV = NULL;
static gchar* rygel_environment_config_WMV_TRANSCODING_ENV;
static gchar* rygel_environment_config_WMV_TRANSCODING_ENV = NULL;
static gchar* rygel_environment_config_AAC_TRANSCODING_ENV;
static gchar* rygel_environment_config_AAC_TRANSCODING_ENV = NULL;
static gchar* rygel_environment_config_AVC_TRANSCODING_ENV;
static gchar* rygel_environment_config_AVC_TRANSCODING_ENV = NULL;
static gchar* rygel_environment_config_DISALLOW_UPLOAD_ENV;
static gchar* rygel_environment_config_DISALLOW_UPLOAD_ENV = NULL;
static gchar* rygel_environment_config_DISALLOW_DELETION_ENV;
static gchar* rygel_environment_config_DISALLOW_DELETION_ENV = NULL;
static gchar* rygel_environment_config_LOG_LEVELS_ENV;
static gchar* rygel_environment_config_LOG_LEVELS_ENV = NULL;
static gchar* rygel_environment_config_PLUGIN_PATH_ENV;
static gchar* rygel_environment_config_PLUGIN_PATH_ENV = NULL;
static RygelEnvironmentConfig* rygel_environment_config_config;
static RygelEnvironmentConfig* rygel_environment_config_config = NULL;
static RygelConfigurationIface* rygel_environment_config_rygel_configuration_parent_iface = NULL;

GType rygel_configuration_get_type (void) G_GNUC_CONST;
GType rygel_environment_config_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_ENVIRONMENT_CONFIG_DUMMY_PROPERTY
};
RygelEnvironmentConfig* rygel_environment_config_get_default (void);
RygelEnvironmentConfig* rygel_environment_config_new (void);
RygelEnvironmentConfig* rygel_environment_config_construct (GType object_type);
static gboolean rygel_environment_config_real_get_upnp_enabled (RygelConfiguration* base, GError** error);
static gboolean rygel_environment_config_get_bool_variable (RygelEnvironmentConfig* self, const gchar* variable, GError** error);
static gchar* rygel_environment_config_real_get_interface (RygelConfiguration* base, GError** error);
static gchar* rygel_environment_config_get_string_variable (RygelEnvironmentConfig* self, const gchar* variable, GError** error);
static gint rygel_environment_config_real_get_port (RygelConfiguration* base, GError** error);
static gint rygel_environment_config_get_int_variable (RygelEnvironmentConfig* self, const gchar* variable, gint min, gint max, GError** error);
static gboolean rygel_environment_config_real_get_transcoding (RygelConfiguration* base, GError** error);
static gboolean rygel_environment_config_real_get_mp3_transcoder (RygelConfiguration* base, GError** error);
static gboolean rygel_environment_config_real_get_mp2ts_transcoder (RygelConfiguration* base, GError** error);
static gboolean rygel_environment_config_real_get_wmv_transcoder (RygelConfiguration* base, GError** error);
static gboolean rygel_environment_config_real_get_aac_transcoder (RygelConfiguration* base, GError** error);
static gboolean rygel_environment_config_real_get_avc_transcoder (RygelConfiguration* base, GError** error);
static gboolean rygel_environment_config_real_get_lpcm_transcoder (RygelConfiguration* base, GError** error);
static gboolean rygel_environment_config_real_get_allow_upload (RygelConfiguration* base, GError** error);
static gboolean rygel_environment_config_real_get_allow_deletion (RygelConfiguration* base, GError** error);
static gchar* rygel_environment_config_real_get_log_levels (RygelConfiguration* base, GError** error);
static gchar* rygel_environment_config_real_get_plugin_path (RygelConfiguration* base, GError** error);
static gchar* rygel_environment_config_real_get_video_upload_folder (RygelConfiguration* base, GError** error);
GQuark rygel_configuration_error_quark (void);
static gchar* rygel_environment_config_real_get_music_upload_folder (RygelConfiguration* base, GError** error);
static gchar* rygel_environment_config_real_get_picture_upload_folder (RygelConfiguration* base, GError** error);
static gboolean rygel_environment_config_real_get_enabled (RygelConfiguration* base, const gchar* section, GError** error);
gboolean rygel_configuration_get_bool (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
static gchar* rygel_environment_config_real_get_title (RygelConfiguration* base, const gchar* section, GError** error);
gchar* rygel_configuration_get_string (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
static gchar* rygel_environment_config_real_get_string (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error);
static GeeArrayList* rygel_environment_config_real_get_string_list (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error);
static gint rygel_environment_config_real_get_int (RygelConfiguration* base, const gchar* section, const gchar* key, gint min, gint max, GError** error);
static GeeArrayList* rygel_environment_config_real_get_int_list (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error);
static gboolean rygel_environment_config_real_get_bool (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error);
static void rygel_environment_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 gpointer _g_object_ref0 (gpointer self) {
#line 59 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return self ? g_object_ref (self) : NULL;
#line 189 "rygel-environment-config.c"
}


RygelEnvironmentConfig* rygel_environment_config_get_default (void) {
	RygelEnvironmentConfig* result = NULL;
	RygelEnvironmentConfig* _tmp0_;
	RygelEnvironmentConfig* _tmp2_;
	RygelEnvironmentConfig* _tmp3_;
#line 55 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_config;
#line 55 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_tmp0_ == NULL) {
#line 202 "rygel-environment-config.c"
		RygelEnvironmentConfig* _tmp1_;
#line 56 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		_tmp1_ = rygel_environment_config_new ();
#line 56 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		_g_object_unref0 (rygel_environment_config_config);
#line 56 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		rygel_environment_config_config = _tmp1_;
#line 210 "rygel-environment-config.c"
	}
#line 59 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = rygel_environment_config_config;
#line 59 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 59 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = _tmp3_;
#line 59 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 220 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_upnp_enabled (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
#line 62 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 63 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_DISABLE_UPNP_ENV;
#line 63 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_bool_variable (self, _tmp0_, &_inner_error_);
#line 63 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 63 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 63 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 63 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 245 "rygel-environment-config.c"
	}
#line 63 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = !_tmp2_;
#line 63 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 251 "rygel-environment-config.c"
}


static gchar* rygel_environment_config_real_get_interface (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
	GError * _inner_error_ = NULL;
#line 66 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 67 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_INTERFACE_ENV;
#line 67 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_string_variable (self, _tmp0_, &_inner_error_);
#line 67 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 67 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 67 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 67 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return NULL;
#line 276 "rygel-environment-config.c"
	}
#line 67 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = _tmp2_;
#line 67 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 282 "rygel-environment-config.c"
}


static gint rygel_environment_config_real_get_port (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gint result = 0;
	const gchar* _tmp0_;
	gint16 _tmp1_;
	gint _tmp2_ = 0;
	gint _tmp3_;
	GError * _inner_error_ = NULL;
#line 70 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 71 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_PORT_ENV;
#line 71 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = G_MAXINT16;
#line 71 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = rygel_environment_config_get_int_variable (self, _tmp0_, 0, (gint) _tmp1_, &_inner_error_);
#line 71 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = _tmp2_;
#line 71 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 71 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 71 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return 0;
#line 310 "rygel-environment-config.c"
	}
#line 71 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = _tmp3_;
#line 71 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 316 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_transcoding (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
#line 74 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 75 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_TRANSCODING_ENV;
#line 75 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_bool_variable (self, _tmp0_, &_inner_error_);
#line 75 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 75 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 75 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 75 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 341 "rygel-environment-config.c"
	}
#line 75 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = !_tmp2_;
#line 75 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 347 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_mp3_transcoder (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
#line 78 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 79 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_MP3_TRANSCODING_ENV;
#line 79 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_bool_variable (self, _tmp0_, &_inner_error_);
#line 79 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 79 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 79 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 79 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 372 "rygel-environment-config.c"
	}
#line 79 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = !_tmp2_;
#line 79 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 378 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_mp2ts_transcoder (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
#line 82 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 83 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_MP2TS_TRANSCODING_ENV;
#line 83 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_bool_variable (self, _tmp0_, &_inner_error_);
#line 83 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 83 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 83 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 83 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 403 "rygel-environment-config.c"
	}
#line 83 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = !_tmp2_;
#line 83 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 409 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_wmv_transcoder (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
#line 86 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 87 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_WMV_TRANSCODING_ENV;
#line 87 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_bool_variable (self, _tmp0_, &_inner_error_);
#line 87 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 87 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 87 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 87 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 434 "rygel-environment-config.c"
	}
#line 87 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = !_tmp2_;
#line 87 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 440 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_aac_transcoder (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
#line 90 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 91 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_AAC_TRANSCODING_ENV;
#line 91 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_bool_variable (self, _tmp0_, &_inner_error_);
#line 91 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 91 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 91 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 91 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 465 "rygel-environment-config.c"
	}
#line 91 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = !_tmp2_;
#line 91 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 471 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_avc_transcoder (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
#line 94 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 95 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_AVC_TRANSCODING_ENV;
#line 95 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_bool_variable (self, _tmp0_, &_inner_error_);
#line 95 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 95 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 95 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 95 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 496 "rygel-environment-config.c"
	}
#line 95 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = !_tmp2_;
#line 95 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 502 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_lpcm_transcoder (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
#line 98 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 99 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_LPCM_TRANSCODING_ENV;
#line 99 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_bool_variable (self, _tmp0_, &_inner_error_);
#line 99 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 99 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 99 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 99 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 527 "rygel-environment-config.c"
	}
#line 99 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = !_tmp2_;
#line 99 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 533 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_allow_upload (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
#line 102 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 103 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_DISALLOW_UPLOAD_ENV;
#line 103 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_bool_variable (self, _tmp0_, &_inner_error_);
#line 103 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 103 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 103 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 103 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 558 "rygel-environment-config.c"
	}
#line 103 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = !_tmp2_;
#line 103 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 564 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_allow_deletion (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
#line 106 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 107 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_DISALLOW_DELETION_ENV;
#line 107 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_bool_variable (self, _tmp0_, &_inner_error_);
#line 107 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 107 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 107 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 107 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 589 "rygel-environment-config.c"
	}
#line 107 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = !_tmp2_;
#line 107 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 595 "rygel-environment-config.c"
}


static gchar* rygel_environment_config_real_get_log_levels (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
	GError * _inner_error_ = NULL;
#line 110 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 111 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_LOG_LEVELS_ENV;
#line 111 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_string_variable (self, _tmp0_, &_inner_error_);
#line 111 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 111 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 111 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 111 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return NULL;
#line 620 "rygel-environment-config.c"
	}
#line 111 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = _tmp2_;
#line 111 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 626 "rygel-environment-config.c"
}


static gchar* rygel_environment_config_real_get_plugin_path (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
	GError * _inner_error_ = NULL;
#line 114 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 115 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_PLUGIN_PATH_ENV;
#line 115 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_get_string_variable (self, _tmp0_, &_inner_error_);
#line 115 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 115 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 115 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 115 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return NULL;
#line 651 "rygel-environment-config.c"
	}
#line 115 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = _tmp2_;
#line 115 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 657 "rygel-environment-config.c"
}


static gchar* rygel_environment_config_real_get_video_upload_folder (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	GError* _tmp1_;
	GError * _inner_error_ = NULL;
#line 118 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 119 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = _ ("No value available");
#line 119 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp0_);
#line 119 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_inner_error_ = _tmp1_;
#line 119 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_propagate_error (error, _inner_error_);
#line 119 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return NULL;
#line 118 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 681 "rygel-environment-config.c"
}


static gchar* rygel_environment_config_real_get_music_upload_folder (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	GError* _tmp1_;
	GError * _inner_error_ = NULL;
#line 122 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 123 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = _ ("No value available");
#line 123 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp0_);
#line 123 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_inner_error_ = _tmp1_;
#line 123 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_propagate_error (error, _inner_error_);
#line 123 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return NULL;
#line 122 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 705 "rygel-environment-config.c"
}


static gchar* rygel_environment_config_real_get_picture_upload_folder (RygelConfiguration* base, GError** error) {
	RygelEnvironmentConfig * self;
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	GError* _tmp1_;
	GError * _inner_error_ = NULL;
#line 126 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 127 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = _ ("No value available");
#line 127 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, _tmp0_);
#line 127 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_inner_error_ = _tmp1_;
#line 127 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_propagate_error (error, _inner_error_);
#line 127 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return NULL;
#line 126 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 729 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_enabled (RygelConfiguration* base, const gchar* section, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_;
	GError * _inner_error_ = NULL;
#line 130 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 130 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (section != NULL, FALSE);
#line 131 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = section;
#line 131 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_ENABLED_KEY;
#line 131 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = rygel_configuration_get_bool ((RygelConfiguration*) self, _tmp0_, _tmp1_, &_inner_error_);
#line 131 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = _tmp2_;
#line 131 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 131 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 131 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 759 "rygel-environment-config.c"
	}
#line 131 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = _tmp3_;
#line 131 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 765 "rygel-environment-config.c"
}


static gchar* rygel_environment_config_real_get_title (RygelConfiguration* base, const gchar* section, GError** error) {
	RygelEnvironmentConfig * self;
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_;
	gchar* _tmp9_;
	GError * _inner_error_ = NULL;
#line 134 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 134 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (section != NULL, NULL);
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_RYGEL_PREFIX;
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = g_strconcat (_tmp0_, "_", NULL);
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = section;
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp4_ = g_strconcat (_tmp2_, _tmp3_, NULL);
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp5_ = _tmp4_;
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp6_ = rygel_environment_config_TITLE_KEY;
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp7_ = rygel_configuration_get_string ((RygelConfiguration*) self, _tmp5_, _tmp6_, &_inner_error_);
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp8_ = _tmp7_;
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp5_);
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp2_);
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp9_ = _tmp8_;
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return NULL;
#line 817 "rygel-environment-config.c"
	}
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = _tmp9_;
#line 135 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 823 "rygel-environment-config.c"
}


static gchar* rygel_environment_config_real_get_string (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error) {
	RygelEnvironmentConfig * self;
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_ = NULL;
	gchar* _tmp16_;
	gchar* _tmp17_;
	GError * _inner_error_ = NULL;
#line 138 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 138 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (section != NULL, NULL);
#line 138 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (key != NULL, NULL);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_RYGEL_PREFIX;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = g_strconcat (_tmp0_, "_", NULL);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = section;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp4_ = g_utf8_strup (_tmp3_, (gssize) (-1));
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp5_ = _tmp4_;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp6_ = g_strconcat (_tmp2_, _tmp5_, NULL);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp7_ = _tmp6_;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp8_ = g_strconcat (_tmp7_, "_", NULL);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp9_ = _tmp8_;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp10_ = key;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp11_ = g_utf8_strup (_tmp10_, (gssize) (-1));
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp12_ = _tmp11_;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp13_ = g_strconcat (_tmp9_, _tmp12_, NULL);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp14_ = _tmp13_;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp15_ = rygel_environment_config_get_string_variable (self, _tmp14_, &_inner_error_);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp16_ = _tmp15_;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp14_);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp12_);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp9_);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp7_);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp5_);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp2_);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp17_ = _tmp16_;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return NULL;
#line 909 "rygel-environment-config.c"
	}
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = _tmp17_;
#line 140 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 915 "rygel-environment-config.c"
}


static GeeArrayList* rygel_environment_config_real_get_string_list (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error) {
	RygelEnvironmentConfig * self;
	GeeArrayList* result = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_ = NULL;
	gchar* str;
	GeeArrayList* _tmp3_;
	GeeArrayList* value;
	gchar** _tmp4_;
	gchar** _tmp5_ = NULL;
	GError * _inner_error_ = NULL;
#line 145 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 145 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (section != NULL, NULL);
#line 145 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (key != NULL, NULL);
#line 148 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = section;
#line 148 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = key;
#line 148 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = rygel_configuration_get_string ((RygelConfiguration*) self, _tmp0_, _tmp1_, &_inner_error_);
#line 148 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	str = _tmp2_;
#line 148 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 148 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 148 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return NULL;
#line 951 "rygel-environment-config.c"
	}
#line 149 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL);
#line 149 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	value = _tmp3_;
#line 150 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp5_ = _tmp4_ = g_strsplit (str, ",", -1);
#line 959 "rygel-environment-config.c"
	{
		gchar** token_collection = NULL;
		gint token_collection_length1 = 0;
		gint _token_collection_size_ = 0;
		gint token_it = 0;
#line 150 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		token_collection = _tmp5_;
#line 150 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		token_collection_length1 = _vala_array_length (_tmp4_);
#line 150 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		for (token_it = 0; token_it < _vala_array_length (_tmp4_); token_it = token_it + 1) {
#line 971 "rygel-environment-config.c"
			gchar* _tmp6_;
			gchar* token = NULL;
#line 150 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
			_tmp6_ = g_strdup (token_collection[token_it]);
#line 150 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
			token = _tmp6_;
#line 978 "rygel-environment-config.c"
			{
				GeeArrayList* _tmp7_;
				const gchar* _tmp8_;
#line 151 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
				_tmp7_ = value;
#line 151 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
				_tmp8_ = token;
#line 151 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp7_, _tmp8_);
#line 150 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
				_g_free0 (token);
#line 990 "rygel-environment-config.c"
			}
		}
#line 150 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		token_collection = (_vala_array_free (token_collection, token_collection_length1, (GDestroyNotify) g_free), NULL);
#line 995 "rygel-environment-config.c"
	}
#line 154 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = value;
#line 154 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (str);
#line 154 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 1003 "rygel-environment-config.c"
}


static gint rygel_environment_config_real_get_int (RygelConfiguration* base, const gchar* section, const gchar* key, gint min, gint max, GError** error) {
	RygelEnvironmentConfig * self;
	gint result = 0;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	gint _tmp13_;
	gint _tmp14_;
	gint _tmp15_ = 0;
	gint _tmp16_;
	gint _tmp17_;
	GError * _inner_error_ = NULL;
#line 157 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 157 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (section != NULL, 0);
#line 157 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (key != NULL, 0);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_RYGEL_PREFIX;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = g_strconcat (_tmp0_, "_", NULL);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = section;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp4_ = g_utf8_strup (_tmp3_, (gssize) (-1));
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp5_ = _tmp4_;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp6_ = g_strconcat (_tmp2_, _tmp5_, NULL);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp7_ = _tmp6_;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp8_ = g_strconcat (_tmp7_, "_", NULL);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp9_ = _tmp8_;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp10_ = key;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp11_ = g_strconcat (_tmp9_, _tmp10_, NULL);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp12_ = _tmp11_;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp13_ = min;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp14_ = max;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp15_ = rygel_environment_config_get_int_variable (self, _tmp12_, _tmp13_, _tmp14_, &_inner_error_);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp16_ = _tmp15_;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp12_);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp9_);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp7_);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp5_);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp2_);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp17_ = _tmp16_;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return 0;
#line 1087 "rygel-environment-config.c"
	}
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = _tmp17_;
#line 162 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 1093 "rygel-environment-config.c"
}


static GeeArrayList* rygel_environment_config_real_get_int_list (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error) {
	RygelEnvironmentConfig * self;
	GeeArrayList* result = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_ = NULL;
	gchar* str;
	GeeArrayList* _tmp3_;
	GeeArrayList* value;
	gchar** _tmp4_;
	gchar** _tmp5_ = NULL;
	GError * _inner_error_ = NULL;
#line 168 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 168 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (section != NULL, NULL);
#line 168 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (key != NULL, NULL);
#line 171 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = section;
#line 171 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = key;
#line 171 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = rygel_configuration_get_string ((RygelConfiguration*) self, _tmp0_, _tmp1_, &_inner_error_);
#line 171 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	str = _tmp2_;
#line 171 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 171 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 171 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return NULL;
#line 1129 "rygel-environment-config.c"
	}
#line 172 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = gee_array_list_new (G_TYPE_INT, NULL, NULL, NULL);
#line 172 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	value = _tmp3_;
#line 173 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp5_ = _tmp4_ = g_strsplit (str, ",", -1);
#line 1137 "rygel-environment-config.c"
	{
		gchar** token_collection = NULL;
		gint token_collection_length1 = 0;
		gint _token_collection_size_ = 0;
		gint token_it = 0;
#line 173 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		token_collection = _tmp5_;
#line 173 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		token_collection_length1 = _vala_array_length (_tmp4_);
#line 173 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		for (token_it = 0; token_it < _vala_array_length (_tmp4_); token_it = token_it + 1) {
#line 1149 "rygel-environment-config.c"
			gchar* _tmp6_;
			gchar* token = NULL;
#line 173 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
			_tmp6_ = g_strdup (token_collection[token_it]);
#line 173 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
			token = _tmp6_;
#line 1156 "rygel-environment-config.c"
			{
				GeeArrayList* _tmp7_;
				const gchar* _tmp8_;
				gint _tmp9_ = 0;
#line 174 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
				_tmp7_ = value;
#line 174 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
				_tmp8_ = token;
#line 174 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
				_tmp9_ = atoi (_tmp8_);
#line 174 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp7_, (gpointer) ((gintptr) _tmp9_));
#line 173 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
				_g_free0 (token);
#line 1171 "rygel-environment-config.c"
			}
		}
#line 173 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		token_collection = (_vala_array_free (token_collection, token_collection_length1, (GDestroyNotify) g_free), NULL);
#line 1176 "rygel-environment-config.c"
	}
#line 177 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = value;
#line 177 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (str);
#line 177 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 1184 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_real_get_bool (RygelConfiguration* base, const gchar* section, const gchar* key, GError** error) {
	RygelEnvironmentConfig * self;
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	gboolean _tmp13_ = FALSE;
	gboolean _tmp14_;
	gboolean _tmp15_;
	GError * _inner_error_ = NULL;
#line 180 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) base;
#line 180 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (section != NULL, FALSE);
#line 180 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (key != NULL, FALSE);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = rygel_environment_config_RYGEL_PREFIX;
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = g_strconcat (_tmp0_, "_", NULL);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = _tmp1_;
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = section;
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp4_ = g_utf8_strup (_tmp3_, (gssize) (-1));
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp5_ = _tmp4_;
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp6_ = g_strconcat (_tmp2_, _tmp5_, NULL);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp7_ = _tmp6_;
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp8_ = g_strconcat (_tmp7_, "_", NULL);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp9_ = _tmp8_;
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp10_ = key;
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp11_ = g_strconcat (_tmp9_, _tmp10_, NULL);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp12_ = _tmp11_;
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp13_ = rygel_environment_config_get_bool_variable (self, _tmp12_, &_inner_error_);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp14_ = _tmp13_;
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp12_);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp9_);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp7_);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp5_);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (_tmp2_);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp15_ = _tmp14_;
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_inner_error_ != NULL) {
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 1262 "rygel-environment-config.c"
	}
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = _tmp15_;
#line 183 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 1268 "rygel-environment-config.c"
}


static gchar* rygel_environment_config_get_string_variable (RygelEnvironmentConfig* self, const gchar* variable, GError** error) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
	gchar* str;
	const gchar* _tmp3_;
	GError * _inner_error_ = NULL;
#line 188 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 188 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (variable != NULL, NULL);
#line 189 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = variable;
#line 189 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = g_getenv (_tmp0_);
#line 189 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 189 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	str = _tmp2_;
#line 190 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = str;
#line 190 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_tmp3_ == NULL) {
#line 1296 "rygel-environment-config.c"
		GError* _tmp4_;
#line 191 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		_tmp4_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, "No value available");
#line 191 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		_inner_error_ = _tmp4_;
#line 191 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 191 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		_g_free0 (str);
#line 191 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return NULL;
#line 1308 "rygel-environment-config.c"
	}
#line 194 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = str;
#line 194 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 1314 "rygel-environment-config.c"
}


static gint rygel_environment_config_get_int_variable (RygelEnvironmentConfig* self, const gchar* variable, gint min, gint max, GError** error) {
	gint result = 0;
	const gchar* _tmp0_;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
	gchar* val;
	const gchar* _tmp3_;
	const gchar* _tmp5_;
	gint _tmp6_ = 0;
	gint _tmp7_;
	gint _tmp8_;
	gint _tmp9_ = 0;
	GError * _inner_error_ = NULL;
#line 197 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 197 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (variable != NULL, 0);
#line 200 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = variable;
#line 200 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = g_getenv (_tmp0_);
#line 200 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 200 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	val = _tmp2_;
#line 201 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = val;
#line 201 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_tmp3_ == NULL) {
#line 1347 "rygel-environment-config.c"
		GError* _tmp4_;
#line 202 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		_tmp4_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, "No value available");
#line 202 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		_inner_error_ = _tmp4_;
#line 202 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 202 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		_g_free0 (val);
#line 202 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return 0;
#line 1359 "rygel-environment-config.c"
	}
#line 205 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp5_ = val;
#line 205 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp6_ = atoi (_tmp5_);
#line 205 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp7_ = min;
#line 205 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp8_ = max;
#line 205 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp9_ = CLAMP (_tmp6_, _tmp7_, _tmp8_);
#line 205 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = _tmp9_;
#line 205 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (val);
#line 205 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 1377 "rygel-environment-config.c"
}


static gboolean rygel_environment_config_get_bool_variable (RygelEnvironmentConfig* self, const gchar* variable, GError** error) {
	gboolean result = FALSE;
	const gchar* _tmp0_;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
	gchar* enabled;
	const gchar* _tmp3_;
	GError * _inner_error_ = NULL;
#line 208 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 208 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	g_return_val_if_fail (variable != NULL, FALSE);
#line 209 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = variable;
#line 209 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = g_getenv (_tmp0_);
#line 209 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 209 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	enabled = _tmp2_;
#line 210 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = enabled;
#line 210 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	if (_tmp3_ == NULL) {
#line 1405 "rygel-environment-config.c"
		GError* _tmp4_;
#line 211 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		_tmp4_ = g_error_new_literal (RYGEL_CONFIGURATION_ERROR, RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET, "No value available");
#line 211 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		_inner_error_ = _tmp4_;
#line 211 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		g_propagate_error (error, _inner_error_);
#line 211 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		_g_free0 (enabled);
#line 211 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
		return FALSE;
#line 1417 "rygel-environment-config.c"
	}
#line 214 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	result = TRUE;
#line 214 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_g_free0 (enabled);
#line 214 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return result;
#line 1425 "rygel-environment-config.c"
}


RygelEnvironmentConfig* rygel_environment_config_construct (GType object_type) {
	RygelEnvironmentConfig * self = NULL;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = (RygelEnvironmentConfig*) g_object_new (object_type, NULL);
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return self;
#line 1435 "rygel-environment-config.c"
}


RygelEnvironmentConfig* rygel_environment_config_new (void) {
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	return rygel_environment_config_construct (RYGEL_TYPE_ENVIRONMENT_CONFIG);
#line 1442 "rygel-environment-config.c"
}


static void rygel_environment_config_class_init (RygelEnvironmentConfigClass * klass) {
	gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	const gchar* _tmp14_;
	gchar* _tmp15_;
	const gchar* _tmp16_;
	gchar* _tmp17_;
	const gchar* _tmp18_;
	gchar* _tmp19_;
	const gchar* _tmp20_;
	gchar* _tmp21_;
	const gchar* _tmp22_;
	gchar* _tmp23_;
	const gchar* _tmp24_;
	gchar* _tmp25_;
	const gchar* _tmp26_;
	gchar* _tmp27_;
	const gchar* _tmp28_;
	gchar* _tmp29_;
	const gchar* _tmp30_;
	gchar* _tmp31_;
	const gchar* _tmp32_;
	gchar* _tmp33_;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_parent_class = g_type_class_peek_parent (klass);
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_environment_config_finalize;
#line 31 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp0_ = g_strdup ("RYGEL");
#line 31 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_RYGEL_PREFIX = _tmp0_;
#line 32 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp1_ = rygel_environment_config_RYGEL_PREFIX;
#line 32 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp2_ = g_strconcat (_tmp1_, "_TITLE", NULL);
#line 32 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_TITLE_KEY = _tmp2_;
#line 33 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp3_ = rygel_environment_config_RYGEL_PREFIX;
#line 33 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp4_ = g_strconcat (_tmp3_, "_DISABLE", NULL);
#line 33 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_DISABLE_PREFIX = _tmp4_;
#line 34 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp5_ = g_strdup ("ENABLED");
#line 34 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_ENABLED_KEY = _tmp5_;
#line 35 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp6_ = rygel_environment_config_RYGEL_PREFIX;
#line 35 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp7_ = g_strconcat (_tmp6_, "_IFACE", NULL);
#line 35 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_INTERFACE_ENV = _tmp7_;
#line 36 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp8_ = rygel_environment_config_RYGEL_PREFIX;
#line 36 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp9_ = g_strconcat (_tmp8_, "_PORT", NULL);
#line 36 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_PORT_ENV = _tmp9_;
#line 37 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp10_ = rygel_environment_config_DISABLE_PREFIX;
#line 37 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp11_ = g_strconcat (_tmp10_, "_UPNP", NULL);
#line 37 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_DISABLE_UPNP_ENV = _tmp11_;
#line 38 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp12_ = rygel_environment_config_DISABLE_PREFIX;
#line 38 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp13_ = g_strconcat (_tmp12_, "_TRANSCODING", NULL);
#line 38 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_TRANSCODING_ENV = _tmp13_;
#line 39 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp14_ = rygel_environment_config_DISABLE_PREFIX;
#line 39 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp15_ = g_strconcat (_tmp14_, "_MP3_TRANS", NULL);
#line 39 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_MP3_TRANSCODING_ENV = _tmp15_;
#line 40 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp16_ = rygel_environment_config_DISABLE_PREFIX;
#line 40 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp17_ = g_strconcat (_tmp16_, "_LPCM_TRANS", NULL);
#line 40 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_LPCM_TRANSCODING_ENV = _tmp17_;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp18_ = rygel_environment_config_DISABLE_PREFIX;
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp19_ = g_strconcat (_tmp18_, "_MP2TS_TRANS", NULL);
#line 41 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_MP2TS_TRANSCODING_ENV = _tmp19_;
#line 43 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp20_ = rygel_environment_config_DISABLE_PREFIX;
#line 43 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp21_ = g_strconcat (_tmp20_, "_WMV_TRANS", NULL);
#line 43 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_WMV_TRANSCODING_ENV = _tmp21_;
#line 44 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp22_ = rygel_environment_config_DISABLE_PREFIX;
#line 44 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp23_ = g_strconcat (_tmp22_, "_AAC_TRANS", NULL);
#line 44 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_AAC_TRANSCODING_ENV = _tmp23_;
#line 45 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp24_ = rygel_environment_config_DISABLE_PREFIX;
#line 45 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp25_ = g_strconcat (_tmp24_, "_AVC_TRANS", NULL);
#line 45 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_AVC_TRANSCODING_ENV = _tmp25_;
#line 46 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp26_ = rygel_environment_config_DISABLE_PREFIX;
#line 46 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp27_ = g_strconcat (_tmp26_, "_UPLOAD", NULL);
#line 46 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_DISALLOW_UPLOAD_ENV = _tmp27_;
#line 47 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp28_ = rygel_environment_config_DISABLE_PREFIX;
#line 47 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp29_ = g_strconcat (_tmp28_, "_DELETION", NULL);
#line 47 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_DISALLOW_DELETION_ENV = _tmp29_;
#line 48 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp30_ = rygel_environment_config_RYGEL_PREFIX;
#line 48 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp31_ = g_strconcat (_tmp30_, "_LOG", NULL);
#line 48 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_LOG_LEVELS_ENV = _tmp31_;
#line 49 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp32_ = rygel_environment_config_RYGEL_PREFIX;
#line 49 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	_tmp33_ = g_strconcat (_tmp32_, "_PLUGIN_PATH", NULL);
#line 49 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_PLUGIN_PATH_ENV = _tmp33_;
#line 1589 "rygel-environment-config.c"
}


static void rygel_environment_config_rygel_configuration_interface_init (RygelConfigurationIface * iface) {
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	rygel_environment_config_rygel_configuration_parent_iface = g_type_interface_peek_parent (iface);
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_upnp_enabled = (gboolean (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_upnp_enabled;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_interface = (gchar* (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_interface;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_port = (gint (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_port;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_transcoding = (gboolean (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_transcoding;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_mp3_transcoder = (gboolean (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_mp3_transcoder;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_mp2ts_transcoder = (gboolean (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_mp2ts_transcoder;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_wmv_transcoder = (gboolean (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_wmv_transcoder;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_aac_transcoder = (gboolean (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_aac_transcoder;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_avc_transcoder = (gboolean (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_avc_transcoder;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_lpcm_transcoder = (gboolean (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_lpcm_transcoder;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_allow_upload = (gboolean (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_allow_upload;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_allow_deletion = (gboolean (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_allow_deletion;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_log_levels = (gchar* (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_log_levels;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_plugin_path = (gchar* (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_plugin_path;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_video_upload_folder = (gchar* (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_video_upload_folder;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_music_upload_folder = (gchar* (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_music_upload_folder;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_picture_upload_folder = (gchar* (*)(RygelConfiguration*, GError**)) rygel_environment_config_real_get_picture_upload_folder;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_enabled = (gboolean (*)(RygelConfiguration*, const gchar*, GError**)) rygel_environment_config_real_get_enabled;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_title = (gchar* (*)(RygelConfiguration*, const gchar*, GError**)) rygel_environment_config_real_get_title;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_string = (gchar* (*)(RygelConfiguration*, const gchar*, const gchar*, GError**)) rygel_environment_config_real_get_string;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_string_list = (GeeArrayList* (*)(RygelConfiguration*, const gchar*, const gchar*, GError**)) rygel_environment_config_real_get_string_list;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_int = (gint (*)(RygelConfiguration*, const gchar*, const gchar*, gint, gint, GError**)) rygel_environment_config_real_get_int;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_int_list = (GeeArrayList* (*)(RygelConfiguration*, const gchar*, const gchar*, GError**)) rygel_environment_config_real_get_int_list;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	iface->get_bool = (gboolean (*)(RygelConfiguration*, const gchar*, const gchar*, GError**)) rygel_environment_config_real_get_bool;
#line 1644 "rygel-environment-config.c"
}


static void rygel_environment_config_instance_init (RygelEnvironmentConfig * self) {
}


static void rygel_environment_config_finalize (GObject* obj) {
	RygelEnvironmentConfig * self;
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_ENVIRONMENT_CONFIG, RygelEnvironmentConfig);
#line 30 "/home/jens/Source/rygel/src/librygel-core/rygel-environment-config.vala"
	G_OBJECT_CLASS (rygel_environment_config_parent_class)->finalize (obj);
#line 1658 "rygel-environment-config.c"
}


/**
 * Manages configuration from Environment.
 */
GType rygel_environment_config_get_type (void) {
	static volatile gsize rygel_environment_config_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_environment_config_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelEnvironmentConfigClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_environment_config_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelEnvironmentConfig), 0, (GInstanceInitFunc) rygel_environment_config_instance_init, NULL };
		static const GInterfaceInfo rygel_configuration_info = { (GInterfaceInitFunc) rygel_environment_config_rygel_configuration_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType rygel_environment_config_type_id;
		rygel_environment_config_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelEnvironmentConfig", &g_define_type_info, 0);
		g_type_add_interface_static (rygel_environment_config_type_id, RYGEL_TYPE_CONFIGURATION, &rygel_configuration_info);
		g_once_init_leave (&rygel_environment_config_type_id__volatile, rygel_environment_config_type_id);
	}
	return rygel_environment_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;
}



