/* rygel-media-export-root-container.c generated by valac 0.17.4.16-52707, the Vala compiler
 * generated from rygel-media-export-root-container.vala, do not modify */

/*
 * Copyright (C) 2009,2010 Jens Georg <mail@jensge.org>.
 *
 * 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 <rygel-server.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.h>
#include <gee.h>
#include <libgupnp-av/gupnp-av.h>
#include <rygel-core.h>


#define RYGEL_MEDIA_EXPORT_TYPE_FOLDER_DEFINITION (rygel_media_export_folder_definition_get_type ())
typedef struct _RygelMediaExportFolderDefinition RygelMediaExportFolderDefinition;
#define _g_free0(var) (var = (g_free (var), NULL))

#define RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER (rygel_media_export_db_container_get_type ())
#define RYGEL_MEDIA_EXPORT_DB_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER, RygelMediaExportDBContainer))
#define RYGEL_MEDIA_EXPORT_DB_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER, RygelMediaExportDBContainerClass))
#define RYGEL_MEDIA_EXPORT_IS_DB_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER))
#define RYGEL_MEDIA_EXPORT_IS_DB_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER))
#define RYGEL_MEDIA_EXPORT_DB_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER, RygelMediaExportDBContainerClass))

typedef struct _RygelMediaExportDBContainer RygelMediaExportDBContainer;
typedef struct _RygelMediaExportDBContainerClass RygelMediaExportDBContainerClass;
typedef struct _RygelMediaExportDBContainerPrivate RygelMediaExportDBContainerPrivate;

#define RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE (rygel_media_export_media_cache_get_type ())
#define RYGEL_MEDIA_EXPORT_MEDIA_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE, RygelMediaExportMediaCache))
#define RYGEL_MEDIA_EXPORT_MEDIA_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE, RygelMediaExportMediaCacheClass))
#define RYGEL_MEDIA_EXPORT_IS_MEDIA_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE))
#define RYGEL_MEDIA_EXPORT_IS_MEDIA_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE))
#define RYGEL_MEDIA_EXPORT_MEDIA_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_MEDIA_CACHE, RygelMediaExportMediaCacheClass))

typedef struct _RygelMediaExportMediaCache RygelMediaExportMediaCache;
typedef struct _RygelMediaExportMediaCacheClass RygelMediaExportMediaCacheClass;

#define RYGEL_MEDIA_EXPORT_TYPE_ROOT_CONTAINER (rygel_media_export_root_container_get_type ())
#define RYGEL_MEDIA_EXPORT_ROOT_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_ROOT_CONTAINER, RygelMediaExportRootContainer))
#define RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_ROOT_CONTAINER, RygelMediaExportRootContainerClass))
#define RYGEL_MEDIA_EXPORT_IS_ROOT_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_ROOT_CONTAINER))
#define RYGEL_MEDIA_EXPORT_IS_ROOT_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_ROOT_CONTAINER))
#define RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_ROOT_CONTAINER, RygelMediaExportRootContainerClass))

typedef struct _RygelMediaExportRootContainer RygelMediaExportRootContainer;
typedef struct _RygelMediaExportRootContainerClass RygelMediaExportRootContainerClass;
typedef struct _RygelMediaExportRootContainerPrivate RygelMediaExportRootContainerPrivate;

#define RYGEL_MEDIA_EXPORT_TYPE_DBUS_SERVICE (rygel_media_export_dbus_service_get_type ())
#define RYGEL_MEDIA_EXPORT_DBUS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_DBUS_SERVICE, RygelMediaExportDBusService))
#define RYGEL_MEDIA_EXPORT_DBUS_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_DBUS_SERVICE, RygelMediaExportDBusServiceClass))
#define RYGEL_MEDIA_EXPORT_IS_DBUS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_DBUS_SERVICE))
#define RYGEL_MEDIA_EXPORT_IS_DBUS_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_DBUS_SERVICE))
#define RYGEL_MEDIA_EXPORT_DBUS_SERVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_DBUS_SERVICE, RygelMediaExportDBusServiceClass))

typedef struct _RygelMediaExportDBusService RygelMediaExportDBusService;
typedef struct _RygelMediaExportDBusServiceClass RygelMediaExportDBusServiceClass;

#define RYGEL_MEDIA_EXPORT_TYPE_HARVESTER (rygel_media_export_harvester_get_type ())
#define RYGEL_MEDIA_EXPORT_HARVESTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_HARVESTER, RygelMediaExportHarvester))
#define RYGEL_MEDIA_EXPORT_HARVESTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_HARVESTER, RygelMediaExportHarvesterClass))
#define RYGEL_MEDIA_EXPORT_IS_HARVESTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_HARVESTER))
#define RYGEL_MEDIA_EXPORT_IS_HARVESTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_HARVESTER))
#define RYGEL_MEDIA_EXPORT_HARVESTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_HARVESTER, RygelMediaExportHarvesterClass))

typedef struct _RygelMediaExportHarvester RygelMediaExportHarvester;
typedef struct _RygelMediaExportHarvesterClass RygelMediaExportHarvesterClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define RYGEL_TYPE_NULL_CONTAINER (rygel_null_container_get_type ())
#define RYGEL_NULL_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_NULL_CONTAINER, RygelNullContainer))
#define RYGEL_NULL_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_NULL_CONTAINER, RygelNullContainerClass))
#define RYGEL_IS_NULL_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_NULL_CONTAINER))
#define RYGEL_IS_NULL_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_NULL_CONTAINER))
#define RYGEL_NULL_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_NULL_CONTAINER, RygelNullContainerClass))

typedef struct _RygelNullContainer RygelNullContainer;
typedef struct _RygelNullContainerClass RygelNullContainerClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER_FACTORY (rygel_media_export_query_container_factory_get_type ())
#define RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER_FACTORY, RygelMediaExportQueryContainerFactory))
#define RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER_FACTORY, RygelMediaExportQueryContainerFactoryClass))
#define RYGEL_MEDIA_EXPORT_IS_QUERY_CONTAINER_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER_FACTORY))
#define RYGEL_MEDIA_EXPORT_IS_QUERY_CONTAINER_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER_FACTORY))
#define RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER_FACTORY, RygelMediaExportQueryContainerFactoryClass))

typedef struct _RygelMediaExportQueryContainerFactory RygelMediaExportQueryContainerFactory;
typedef struct _RygelMediaExportQueryContainerFactoryClass RygelMediaExportQueryContainerFactoryClass;

#define RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER (rygel_media_export_query_container_get_type ())
#define RYGEL_MEDIA_EXPORT_QUERY_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER, RygelMediaExportQueryContainer))
#define RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER, RygelMediaExportQueryContainerClass))
#define RYGEL_MEDIA_EXPORT_IS_QUERY_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER))
#define RYGEL_MEDIA_EXPORT_IS_QUERY_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER))
#define RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_QUERY_CONTAINER, RygelMediaExportQueryContainerClass))

typedef struct _RygelMediaExportQueryContainer RygelMediaExportQueryContainer;
typedef struct _RygelMediaExportQueryContainerClass RygelMediaExportQueryContainerClass;
typedef struct _RygelMediaExportRootContainerFindObjectData RygelMediaExportRootContainerFindObjectData;
#define _rygel_search_expression_unref0(var) ((var == NULL) ? NULL : (var = (rygel_search_expression_unref (var), NULL)))
typedef struct _RygelMediaExportRootContainerSearchData RygelMediaExportRootContainerSearchData;
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))

struct _RygelMediaExportFolderDefinition {
	gchar* title;
	gchar* definition;
};

struct _RygelMediaExportDBContainer {
	RygelMediaContainer parent_instance;
	RygelMediaExportDBContainerPrivate * priv;
	RygelMediaExportMediaCache* media_db;
};

struct _RygelMediaExportDBContainerClass {
	RygelMediaContainerClass parent_class;
	void (*search) (RygelMediaExportDBContainer* self, RygelSearchExpression* expression, guint offset, guint max_count, const gchar* sort_criteria, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	RygelMediaObjects* (*search_finish) (RygelMediaExportDBContainer* self, GAsyncResult* _res_, guint* total_matches, GError** error);
};

struct _RygelMediaExportRootContainer {
	RygelMediaExportDBContainer parent_instance;
	RygelMediaExportRootContainerPrivate * priv;
};

struct _RygelMediaExportRootContainerClass {
	RygelMediaExportDBContainerClass parent_class;
};

struct _RygelMediaExportRootContainerPrivate {
	RygelMediaExportDBusService* service;
	RygelMediaExportHarvester* harvester;
	GCancellable* cancellable;
	RygelMediaContainer* filesystem_container;
	gulong harvester_signal_id;
};

typedef enum  {
	RYGEL_MEDIA_EXPORT_DATABASE_ERROR_IO_ERROR,
	RYGEL_MEDIA_EXPORT_DATABASE_ERROR_SQLITE_ERROR
} RygelMediaExportDatabaseError;
#define RYGEL_MEDIA_EXPORT_DATABASE_ERROR rygel_media_export_database_error_quark ()
struct _RygelMediaExportRootContainerFindObjectData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelMediaExportRootContainer* self;
	gchar* id;
	GCancellable* cancellable;
	RygelMediaObject* result;
	const gchar* _tmp0_;
	GCancellable* _tmp1_;
	RygelMediaObject* _tmp2_;
	RygelMediaObject* object;
	gboolean _tmp3_;
	const gchar* _tmp4_;
	gboolean _tmp5_;
	gboolean _tmp6_;
	RygelMediaExportQueryContainerFactory* _tmp7_;
	RygelMediaExportQueryContainerFactory* factory;
	RygelMediaExportQueryContainerFactory* _tmp8_;
	RygelMediaExportMediaCache* _tmp9_;
	const gchar* _tmp10_;
	RygelMediaExportQueryContainer* _tmp11_;
	RygelMediaExportQueryContainer* container;
	RygelMediaExportQueryContainer* _tmp12_;
	RygelMediaExportQueryContainer* _tmp13_;
	GError * _inner_error_;
};

struct _RygelMediaExportRootContainerSearchData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelMediaExportRootContainer* self;
	RygelSearchExpression* expression;
	guint offset;
	guint max_count;
	guint total_matches;
	gchar* sort_criteria;
	GCancellable* cancellable;
	RygelMediaObjects* result;
	RygelSearchExpression* _tmp0_;
	RygelSearchExpression* _tmp1_;
	guint _tmp2_;
	guint _tmp3_;
	const gchar* _tmp4_;
	GCancellable* _tmp5_;
	guint _tmp6_;
	RygelMediaObjects* _tmp7_;
	RygelMediaObjects* _tmp8_;
	RygelMediaObjects* list;
	RygelMediaContainer* query_container;
	gchar* upnp_class;
	RygelSearchExpression* _tmp9_;
	RygelSearchExpression* _tmp10_;
	RygelRelationalExpression* _tmp11_;
	RygelRelationalExpression* relational_expression;
	RygelRelationalExpression* _tmp12_;
	RygelMediaExportQueryContainer* _tmp13_;
	RygelRelationalExpression* _tmp14_;
	gconstpointer _tmp15_;
	gchar* _tmp16_;
	RygelSearchExpression* _tmp17_;
	RygelMediaContainer* _tmp18_;
	gboolean _tmp19_;
	RygelMediaContainer* _tmp20_;
	RygelMediaContainer* _tmp21_;
	guint _tmp22_;
	guint _tmp23_;
	const gchar* _tmp24_;
	GCancellable* _tmp25_;
	RygelMediaObjects* _tmp26_;
	RygelMediaObjects* _tmp27_;
	RygelMediaContainer* _tmp28_;
	gint _tmp29_;
	const gchar* _tmp30_;
	RygelMediaObjects* _tmp31_;
	RygelMediaObjects* _tmp32_;
	RygelMediaObjects* _object_list;
	RygelMediaObjects* _tmp33_;
	gint _tmp34_;
	gint _tmp35_;
	gint _object_size;
	gint _object_index;
	gint _tmp36_;
	gint _tmp37_;
	gint _tmp38_;
	RygelMediaObjects* _tmp39_;
	gint _tmp40_;
	gpointer _tmp41_;
	RygelMediaObject* object;
	RygelMediaObject* _tmp42_;
	const gchar* _tmp43_;
	gchar* _tmp44_;
	RygelSearchExpression* _tmp45_;
	guint _tmp46_;
	guint _tmp47_;
	const gchar* _tmp48_;
	GCancellable* _tmp49_;
	guint _tmp50_;
	RygelMediaObjects* _tmp51_;
	RygelMediaObjects* _tmp52_;
	GError * _inner_error_;
};


static gpointer rygel_media_export_root_container_parent_class = NULL;
static RygelMediaContainer* rygel_media_export_root_container_instance;
static RygelMediaContainer* rygel_media_export_root_container_instance = NULL;
static GError* rygel_media_export_root_container_creation_error;
static GError* rygel_media_export_root_container_creation_error = NULL;

GType rygel_media_export_folder_definition_get_type (void) G_GNUC_CONST;
RygelMediaExportFolderDefinition* rygel_media_export_folder_definition_dup (const RygelMediaExportFolderDefinition* self);
void rygel_media_export_folder_definition_free (RygelMediaExportFolderDefinition* self);
void rygel_media_export_folder_definition_copy (const RygelMediaExportFolderDefinition* self, RygelMediaExportFolderDefinition* dest);
void rygel_media_export_folder_definition_destroy (RygelMediaExportFolderDefinition* self);
GType rygel_media_export_db_container_get_type (void) G_GNUC_CONST;
GType rygel_media_export_media_cache_get_type (void) G_GNUC_CONST;
GType rygel_media_export_root_container_get_type (void) G_GNUC_CONST;
GType rygel_media_export_dbus_service_get_type (void) G_GNUC_CONST;
guint rygel_media_export_dbus_service_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType rygel_media_export_harvester_get_type (void) G_GNUC_CONST;
#define RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_MEDIA_EXPORT_TYPE_ROOT_CONTAINER, RygelMediaExportRootContainerPrivate))
enum  {
	RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_DUMMY_PROPERTY
};
#define RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_FILESYSTEM_FOLDER_NAME "Files & Folders"
#define RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_FILESYSTEM_FOLDER_ID "Filesystem"
#define RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_PREFIX "virtual-container:"
#define RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_SEARCH_CONTAINER_PREFIX RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_PREFIX "upnp:class," RYGEL_MUSIC_ITEM_UPNP_CLASS ","
RygelMediaContainer* rygel_media_export_root_container_get_instance (GError** error);
static RygelMediaExportRootContainer* rygel_media_export_root_container_new (GError** error);
static RygelMediaExportRootContainer* rygel_media_export_root_container_construct (GType object_type, GError** error);
RygelNullContainer* rygel_null_container_new (void);
RygelNullContainer* rygel_null_container_construct (GType object_type);
GType rygel_null_container_get_type (void) G_GNUC_CONST;
RygelMediaContainer* rygel_media_export_root_container_get_filesystem_container (RygelMediaExportRootContainer* self);
void rygel_media_export_root_container_shutdown (RygelMediaExportRootContainer* self);
void rygel_media_export_root_container_add_uri (RygelMediaExportRootContainer* self, const gchar* uri);
void rygel_media_export_harvester_schedule (RygelMediaExportHarvester* self, GFile* file, RygelMediaContainer* parent, const gchar* flag);
void rygel_media_export_root_container_remove_uri (RygelMediaExportRootContainer* self, const gchar* uri);
gchar* rygel_media_export_media_cache_get_id (GFile* file);
void rygel_media_export_harvester_cancel (RygelMediaExportHarvester* self, GFile* file);
GQuark rygel_media_export_database_error_quark (void);
void rygel_media_export_media_cache_remove_by_id (RygelMediaExportMediaCache* self, const gchar* id, GError** error);
gchar** rygel_media_export_root_container_get_dynamic_uris (RygelMediaExportRootContainer* self, int* result_length1);
GeeList* rygel_media_export_media_cache_get_flagged_uris (RygelMediaExportMediaCache* self, const gchar* flag, GError** error);
static void rygel_media_export_root_container_real_find_object_data_free (gpointer _data);
static void rygel_media_export_root_container_real_find_object (RygelMediaContainer* base, const gchar* id, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean rygel_media_export_root_container_real_find_object_co (RygelMediaExportRootContainerFindObjectData* _data_);
static void rygel_media_export_root_container_find_object_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
GType rygel_media_export_query_container_factory_get_type (void) G_GNUC_CONST;
RygelMediaExportQueryContainerFactory* rygel_media_export_query_container_factory_get_default (void);
GType rygel_media_export_query_container_get_type (void) G_GNUC_CONST;
RygelMediaExportQueryContainer* rygel_media_export_query_container_factory_create_from_id (RygelMediaExportQueryContainerFactory* self, RygelMediaExportMediaCache* cache, const gchar* id, const gchar* name);
static void rygel_media_export_root_container_real_search_data_free (gpointer _data);
static void rygel_media_export_root_container_real_search (RygelMediaExportDBContainer* base, RygelSearchExpression* expression, guint offset, guint max_count, const gchar* sort_criteria, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean rygel_media_export_root_container_real_search_co (RygelMediaExportRootContainerSearchData* _data_);
void rygel_media_export_db_container_search (RygelMediaExportDBContainer* self, RygelSearchExpression* expression, guint offset, guint max_count, const gchar* sort_criteria, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
RygelMediaObjects* rygel_media_export_db_container_search_finish (RygelMediaExportDBContainer* self, GAsyncResult* _res_, guint* total_matches, GError** error);
static void rygel_media_export_root_container_search_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static RygelMediaExportQueryContainer* rygel_media_export_root_container_search_to_virtual_container (RygelMediaExportRootContainer* self, RygelRelationalExpression* expression);
static gboolean rygel_media_export_root_container_is_search_in_virtual_container (RygelMediaExportRootContainer* self, RygelSearchExpression* expression, RygelMediaContainer** container);
static GeeArrayList* rygel_media_export_root_container_get_shared_uris (RygelMediaExportRootContainer* self);
RygelMediaExportQueryContainer* rygel_media_export_query_container_factory_create_from_description (RygelMediaExportQueryContainerFactory* self, RygelMediaExportMediaCache* cache, const gchar* definition, const gchar* name);
gchar* rygel_media_export_query_container_factory_get_virtual_container_definition (RygelMediaExportQueryContainerFactory* self, const gchar* hash);
RygelMediaExportMediaCache* rygel_media_export_media_cache_get_default (GError** error);
RygelMediaExportDBContainer* rygel_media_export_db_container_new (RygelMediaExportMediaCache* media_db, const gchar* id, const gchar* title);
RygelMediaExportDBContainer* rygel_media_export_db_container_construct (GType object_type, RygelMediaExportMediaCache* media_db, const gchar* id, const gchar* title);
RygelMediaExportDBusService* rygel_media_export_dbus_service_new (RygelMediaExportRootContainer* root_container, GError** error);
RygelMediaExportDBusService* rygel_media_export_dbus_service_construct (GType object_type, RygelMediaExportRootContainer* root_container, GError** error);
void rygel_media_export_media_cache_save_container (RygelMediaExportMediaCache* self, RygelMediaContainer* container, GError** error);
GeeArrayList* rygel_media_export_media_cache_get_child_ids (RygelMediaExportMediaCache* self, const gchar* container_id, GError** error);
RygelMediaExportHarvester* rygel_media_export_harvester_new (GCancellable* cancellable, GeeArrayList* locations);
RygelMediaExportHarvester* rygel_media_export_harvester_construct (GType object_type, GCancellable* cancellable, GeeArrayList* locations);
static void rygel_media_export_root_container_on_initial_harvesting_done (RygelMediaExportRootContainer* self);
static void _rygel_media_export_root_container_on_initial_harvesting_done_rygel_media_export_harvester_done (RygelMediaExportHarvester* _sender, gpointer self);
GeeArrayList* rygel_media_export_harvester_get_locations (RygelMediaExportHarvester* self);
void rygel_media_export_media_cache_debug_statistics (RygelMediaExportMediaCache* self);
static void rygel_media_export_root_container_add_default_virtual_folders (RygelMediaExportRootContainer* self);
static void __lambda5_ (RygelMediaExportRootContainer* self);
static void ___lambda5__rygel_media_container_container_updated (RygelMediaContainer* _sender, RygelMediaContainer* container, gpointer self);
static void rygel_media_export_root_container_add_virtual_containers_for_class (RygelMediaExportRootContainer* self, const gchar* parent, const gchar* item_class, RygelMediaExportFolderDefinition* definitions, int definitions_length1, GError** error);
static void rygel_media_export_root_container_add_folder_definition (RygelMediaExportRootContainer* self, RygelMediaContainer* container, const gchar* item_class, RygelMediaExportFolderDefinition* definition, GError** error);
gint rygel_media_export_media_cache_get_child_count (RygelMediaExportMediaCache* self, const gchar* container_id, GError** error);
static void rygel_media_export_root_container_finalize (GObject* obj);

const RygelMediaExportFolderDefinition virtual_folders_default[2] = {{"Year", "dc:date,?"}, {"All", ""}};
const RygelMediaExportFolderDefinition virtual_folders_music[3] = {{"Artist", "upnp:artist,?,upnp:album,?"}, {"Album", "upnp:album,?"}, {"Genre", "dc:genre,?"}};

void rygel_media_export_folder_definition_copy (const RygelMediaExportFolderDefinition* self, RygelMediaExportFolderDefinition* dest) {
	const gchar* _tmp0_;
	gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = (*self).title;
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 ((*dest).title);
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	(*dest).title = _tmp1_;
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = (*self).definition;
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 ((*dest).definition);
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	(*dest).definition = _tmp3_;
#line 381 "rygel-media-export-root-container.c"
}


void rygel_media_export_folder_definition_destroy (RygelMediaExportFolderDefinition* self) {
#line 25 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 ((*self).title);
#line 26 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 ((*self).definition);
#line 390 "rygel-media-export-root-container.c"
}


RygelMediaExportFolderDefinition* rygel_media_export_folder_definition_dup (const RygelMediaExportFolderDefinition* self) {
	RygelMediaExportFolderDefinition* dup;
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	dup = g_new0 (RygelMediaExportFolderDefinition, 1);
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_folder_definition_copy (self, dup);
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return dup;
#line 402 "rygel-media-export-root-container.c"
}


void rygel_media_export_folder_definition_free (RygelMediaExportFolderDefinition* self) {
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_folder_definition_destroy (self);
#line 24 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_free (self);
#line 411 "rygel-media-export-root-container.c"
}


GType rygel_media_export_folder_definition_get_type (void) {
	static volatile gsize rygel_media_export_folder_definition_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_media_export_folder_definition_type_id__volatile)) {
		GType rygel_media_export_folder_definition_type_id;
		rygel_media_export_folder_definition_type_id = g_boxed_type_register_static ("RygelMediaExportFolderDefinition", (GBoxedCopyFunc) rygel_media_export_folder_definition_dup, (GBoxedFreeFunc) rygel_media_export_folder_definition_free);
		g_once_init_leave (&rygel_media_export_folder_definition_type_id__volatile, rygel_media_export_folder_definition_type_id);
	}
	return rygel_media_export_folder_definition_type_id__volatile;
}


static gpointer _g_error_copy0 (gpointer self) {
#line 68 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return self ? g_error_copy (self) : NULL;
#line 429 "rygel-media-export-root-container.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 76 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return self ? g_object_ref (self) : NULL;
#line 436 "rygel-media-export-root-container.c"
}


RygelMediaContainer* rygel_media_export_root_container_get_instance (GError** error) {
	RygelMediaContainer* result = NULL;
	RygelMediaContainer* _tmp0_;
	RygelMediaContainer* _tmp9_;
	RygelMediaContainer* _tmp10_;
	GError * _inner_error_ = NULL;
#line 62 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = rygel_media_export_root_container_instance;
#line 62 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp0_ == NULL) {
#line 450 "rygel-media-export-root-container.c"
		{
			RygelMediaExportRootContainer* _tmp1_;
			RygelMediaExportRootContainer* _tmp2_;
#line 64 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp1_ = rygel_media_export_root_container_new (&_inner_error_);
#line 64 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp2_ = _tmp1_;
#line 64 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_inner_error_ != NULL) {
#line 460 "rygel-media-export-root-container.c"
				goto __catch26_g_error;
			}
#line 64 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (rygel_media_export_root_container_instance);
#line 64 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			rygel_media_export_root_container_instance = (RygelMediaContainer*) _tmp2_;
#line 467 "rygel-media-export-root-container.c"
		}
		goto __finally26;
		__catch26_g_error:
		{
			GError* _error_ = NULL;
			RygelNullContainer* _tmp3_;
			GError* _tmp4_;
			GError* _tmp5_;
#line 63 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_error_ = _inner_error_;
#line 63 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_inner_error_ = NULL;
#line 67 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp3_ = rygel_null_container_new ();
#line 67 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (rygel_media_export_root_container_instance);
#line 67 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			rygel_media_export_root_container_instance = (RygelMediaContainer*) _tmp3_;
#line 68 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp4_ = _error_;
#line 68 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp5_ = _g_error_copy0 (_tmp4_);
#line 68 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_error_free0 (rygel_media_export_root_container_creation_error);
#line 68 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			rygel_media_export_root_container_creation_error = _tmp5_;
#line 63 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_error_free0 (_error_);
#line 496 "rygel-media-export-root-container.c"
		}
		__finally26:
#line 63 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 63 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_propagate_error (error, _inner_error_);
#line 63 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return NULL;
#line 505 "rygel-media-export-root-container.c"
		}
	} else {
		GError* _tmp6_;
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp6_ = rygel_media_export_root_container_creation_error;
#line 71 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_tmp6_ != NULL) {
#line 513 "rygel-media-export-root-container.c"
			GError* _tmp7_;
			GError* _tmp8_;
#line 72 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp7_ = rygel_media_export_root_container_creation_error;
#line 72 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp8_ = _g_error_copy0 (_tmp7_);
#line 72 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_inner_error_ = _tmp8_;
#line 72 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_propagate_error (error, _inner_error_);
#line 72 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return NULL;
#line 526 "rygel-media-export-root-container.c"
		}
	}
#line 76 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp9_ = rygel_media_export_root_container_instance;
#line 76 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp10_ = _g_object_ref0 (_tmp9_);
#line 76 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = _tmp10_;
#line 76 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 537 "rygel-media-export-root-container.c"
}


RygelMediaContainer* rygel_media_export_root_container_get_filesystem_container (RygelMediaExportRootContainer* self) {
	RygelMediaContainer* result = NULL;
	RygelMediaContainer* _tmp0_;
	RygelMediaContainer* _tmp1_;
#line 79 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 80 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = self->priv->filesystem_container;
#line 80 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 80 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = _tmp1_;
#line 80 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 555 "rygel-media-export-root-container.c"
}


void rygel_media_export_root_container_shutdown (RygelMediaExportRootContainer* self) {
	GCancellable* _tmp0_;
#line 83 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 84 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = self->priv->cancellable;
#line 84 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_cancellable_cancel (_tmp0_);
#line 567 "rygel-media-export-root-container.c"
}


void rygel_media_export_root_container_add_uri (RygelMediaExportRootContainer* self, const gchar* uri) {
	const gchar* _tmp0_;
	GFile* _tmp1_ = NULL;
	GFile* file;
	RygelMediaExportHarvester* _tmp2_;
	RygelMediaContainer* _tmp3_;
#line 89 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 89 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (uri != NULL);
#line 90 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = uri;
#line 90 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = g_file_new_for_commandline_arg (_tmp0_);
#line 90 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	file = _tmp1_;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = self->priv->harvester;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = self->priv->filesystem_container;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_harvester_schedule (_tmp2_, file, _tmp3_, "DBUS");
#line 89 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (file);
#line 595 "rygel-media-export-root-container.c"
}


void rygel_media_export_root_container_remove_uri (RygelMediaExportRootContainer* self, const gchar* uri) {
	const gchar* _tmp0_;
	GFile* _tmp1_ = NULL;
	GFile* file;
	gchar* _tmp2_ = NULL;
	gchar* id;
	RygelMediaExportHarvester* _tmp3_;
	GError * _inner_error_ = NULL;
#line 96 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 96 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (uri != NULL);
#line 97 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = uri;
#line 97 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = g_file_new_for_commandline_arg (_tmp0_);
#line 97 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	file = _tmp1_;
#line 98 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = rygel_media_export_media_cache_get_id (file);
#line 98 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	id = _tmp2_;
#line 100 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = self->priv->harvester;
#line 100 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_harvester_cancel (_tmp3_, file);
#line 625 "rygel-media-export-root-container.c"
	{
		RygelMediaExportMediaCache* _tmp4_;
#line 102 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 102 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_media_cache_remove_by_id (_tmp4_, id, &_inner_error_);
#line 102 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 634 "rygel-media-export-root-container.c"
			goto __catch27_g_error;
		}
	}
	goto __finally27;
	__catch27_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp5_ = NULL;
		GError* _tmp6_;
		const gchar* _tmp7_;
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp5_ = _ ("Failed to remove URI: %s");
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp6_ = _error_;
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp7_ = _tmp6_->message;
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_warning (_tmp5_, _tmp7_);
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 659 "rygel-media-export-root-container.c"
	}
	__finally27:
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_free0 (id);
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (file);
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		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);
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_clear_error (&_inner_error_);
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 674 "rygel-media-export-root-container.c"
	}
#line 96 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (id);
#line 96 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (file);
#line 680 "rygel-media-export-root-container.c"
}


gchar** rygel_media_export_root_container_get_dynamic_uris (RygelMediaExportRootContainer* self, int* result_length1) {
	gchar** result = NULL;
	gchar** _tmp5_ = NULL;
	gchar** _tmp6_;
	gint _tmp6__length1;
	GError * _inner_error_ = NULL;
#line 108 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 692 "rygel-media-export-root-container.c"
	{
		RygelMediaExportMediaCache* _tmp0_;
		GeeList* _tmp1_ = NULL;
		GeeList* uris;
		gint _tmp2_ = 0;
		gpointer* _tmp3_ = NULL;
		gchar** _tmp4_;
		gint _tmp4__length1;
#line 110 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp0_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 110 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp1_ = rygel_media_export_media_cache_get_flagged_uris (_tmp0_, "DBUS", &_inner_error_);
#line 110 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		uris = _tmp1_;
#line 110 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 709 "rygel-media-export-root-container.c"
			goto __catch28_g_error;
		}
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = gee_collection_to_array ((GeeCollection*) uris, &_tmp2_);
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = _tmp3_;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4__length1 = _tmp2_;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (result_length1) {
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			*result_length1 = _tmp4__length1;
#line 722 "rygel-media-export-root-container.c"
		}
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		result = _tmp4_;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (uris);
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return result;
#line 730 "rygel-media-export-root-container.c"
	}
	goto __finally28;
	__catch28_g_error:
	{
		GError* _error_ = NULL;
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 742 "rygel-media-export-root-container.c"
	}
	__finally28:
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		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);
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_clear_error (&_inner_error_);
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 753 "rygel-media-export-root-container.c"
	}
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = g_new0 (gchar*, 0 + 1);
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp6_ = _tmp5_;
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp6__length1 = 0;
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (result_length1) {
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		*result_length1 = _tmp6__length1;
#line 765 "rygel-media-export-root-container.c"
	}
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = _tmp6_;
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 771 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_real_find_object_data_free (gpointer _data) {
	RygelMediaExportRootContainerFindObjectData* _data_;
	_data_ = _data;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (_data_->id);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->cancellable);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->result);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->self);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_slice_free (RygelMediaExportRootContainerFindObjectData, _data_);
#line 788 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_real_find_object (RygelMediaContainer* base, const gchar* id, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelMediaExportRootContainer * self;
	RygelMediaExportRootContainerFindObjectData* _data_;
	RygelMediaExportRootContainer* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	GCancellable* _tmp3_;
	GCancellable* _tmp4_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self = (RygelMediaExportRootContainer*) base;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_ = g_slice_new0 (RygelMediaExportRootContainerFindObjectData);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_media_export_root_container_real_find_object);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_media_export_root_container_real_find_object_data_free);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->self = _tmp0_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = id;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->id = _tmp2_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = cancellable;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->cancellable = _tmp4_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_real_find_object_co (_data_);
#line 826 "rygel-media-export-root-container.c"
}


static RygelMediaObject* rygel_media_export_root_container_real_find_object_finish (RygelMediaContainer* base, GAsyncResult* _res_, GError** error) {
	RygelMediaObject* result;
	RygelMediaExportRootContainerFindObjectData* _data_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 837 "rygel-media-export-root-container.c"
	}
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = _data_->result;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->result = NULL;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 847 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_find_object_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	RygelMediaExportRootContainerFindObjectData* _data_;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_ = _user_data_;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_source_object_ = source_object;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_res_ = _res_;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_real_find_object_co (_data_);
#line 861 "rygel-media-export-root-container.c"
}


static gboolean rygel_media_export_root_container_real_find_object_co (RygelMediaExportRootContainerFindObjectData* _data_) {
#line 120 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	switch (_data_->_state_) {
#line 120 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 0:
#line 870 "rygel-media-export-root-container.c"
		goto _state_0;
#line 120 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 1:
#line 874 "rygel-media-export-root-container.c"
		goto _state_1;
		default:
#line 120 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_assert_not_reached ();
#line 879 "rygel-media-export-root-container.c"
	}
	_state_0:
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp0_ = _data_->id;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp1_ = _data_->cancellable;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_state_ = 1;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	RYGEL_MEDIA_CONTAINER_CLASS (rygel_media_export_root_container_parent_class)->find_object ((RygelMediaContainer*) G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER, RygelMediaExportDBContainer), _data_->_tmp0_, _data_->_tmp1_, rygel_media_export_root_container_find_object_ready, _data_);
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return FALSE;
#line 892 "rygel-media-export-root-container.c"
	_state_1:
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp2_ = NULL;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp2_ = RYGEL_MEDIA_CONTAINER_CLASS (rygel_media_export_root_container_parent_class)->find_object_finish ((RygelMediaContainer*) G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER, RygelMediaExportDBContainer), _data_->_res_, &_data_->_inner_error_);
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->object = _data_->_tmp2_;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_inner_error_ != NULL) {
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_error_free (_data_->_inner_error_);
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_state_ == 0) {
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 910 "rygel-media-export-root-container.c"
		} else {
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 914 "rygel-media-export-root-container.c"
		}
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_object_unref (_data_->_async_result);
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 920 "rygel-media-export-root-container.c"
	}
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->object == NULL) {
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp4_ = _data_->id;
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp5_ = FALSE;
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp5_ = g_str_has_prefix (_data_->_tmp4_, RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_PREFIX);
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp3_ = _data_->_tmp5_;
#line 932 "rygel-media-export-root-container.c"
	} else {
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp3_ = FALSE;
#line 936 "rygel-media-export-root-container.c"
	}
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp6_ = _data_->_tmp3_;
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_tmp6_) {
#line 126 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp7_ = NULL;
#line 126 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp7_ = rygel_media_export_query_container_factory_get_default ();
#line 126 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->factory = _data_->_tmp7_;
#line 127 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp8_ = _data_->factory;
#line 127 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp9_ = ((RygelMediaExportDBContainer*) _data_->self)->media_db;
#line 127 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp10_ = _data_->id;
#line 127 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp11_ = NULL;
#line 127 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp11_ = rygel_media_export_query_container_factory_create_from_id (_data_->_tmp8_, _data_->_tmp9_, _data_->_tmp10_, "");
#line 127 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->container = _data_->_tmp11_;
#line 128 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp12_ = _data_->container;
#line 128 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_tmp12_ != NULL) {
#line 129 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp13_ = _data_->container;
#line 129 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			((RygelMediaObject*) _data_->_tmp13_)->parent = (RygelMediaContainer*) _data_->self;
#line 968 "rygel-media-export-root-container.c"
		}
#line 132 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->result = (RygelMediaObject*) _data_->container;
#line 132 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->factory);
#line 132 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->object);
#line 132 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_state_ == 0) {
#line 132 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 980 "rygel-media-export-root-container.c"
		} else {
#line 132 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 984 "rygel-media-export-root-container.c"
		}
#line 132 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_object_unref (_data_->_async_result);
#line 132 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 990 "rygel-media-export-root-container.c"
	}
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->result = _data_->object;
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_state_ == 0) {
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 998 "rygel-media-export-root-container.c"
	} else {
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1002 "rygel-media-export-root-container.c"
	}
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_object_unref (_data_->_async_result);
#line 135 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return FALSE;
#line 120 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->object);
#line 120 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_state_ == 0) {
#line 120 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1014 "rygel-media-export-root-container.c"
	} else {
#line 120 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1018 "rygel-media-export-root-container.c"
	}
#line 120 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_object_unref (_data_->_async_result);
#line 120 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return FALSE;
#line 1024 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_real_search_data_free (gpointer _data) {
	RygelMediaExportRootContainerSearchData* _data_;
	_data_ = _data;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_rygel_search_expression_unref0 (_data_->expression);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (_data_->sort_criteria);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->cancellable);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->result);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->self);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_slice_free (RygelMediaExportRootContainerSearchData, _data_);
#line 1043 "rygel-media-export-root-container.c"
}


static gpointer _rygel_search_expression_ref0 (gpointer self) {
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return self ? rygel_search_expression_ref (self) : NULL;
#line 1050 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_real_search (RygelMediaExportDBContainer* base, RygelSearchExpression* expression, guint offset, guint max_count, const gchar* sort_criteria, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelMediaExportRootContainer * self;
	RygelMediaExportRootContainerSearchData* _data_;
	RygelMediaExportRootContainer* _tmp0_;
	RygelSearchExpression* _tmp1_;
	RygelSearchExpression* _tmp2_;
	guint _tmp3_;
	guint _tmp4_;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	GCancellable* _tmp7_;
	GCancellable* _tmp8_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self = (RygelMediaExportRootContainer*) base;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_ = g_slice_new0 (RygelMediaExportRootContainerSearchData);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_media_export_root_container_real_search);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_media_export_root_container_real_search_data_free);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->self = _tmp0_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = expression;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = _rygel_search_expression_ref0 (_tmp1_);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->expression = _tmp2_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = offset;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->offset = _tmp3_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp4_ = max_count;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->max_count = _tmp4_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = sort_criteria;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp6_ = g_strdup (_tmp5_);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->sort_criteria = _tmp6_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp7_ = cancellable;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp8_ = _g_object_ref0 (_tmp7_);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->cancellable = _tmp8_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_real_search_co (_data_);
#line 1106 "rygel-media-export-root-container.c"
}


static RygelMediaObjects* rygel_media_export_root_container_real_search_finish (RygelMediaExportDBContainer* base, GAsyncResult* _res_, guint* total_matches, GError** error) {
	RygelMediaObjects* result;
	RygelMediaExportRootContainerSearchData* _data_;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 1117 "rygel-media-export-root-container.c"
	}
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (total_matches) {
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		*total_matches = _data_->total_matches;
#line 1125 "rygel-media-export-root-container.c"
	}
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = _data_->result;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->result = NULL;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 1133 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_search_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	RygelMediaExportRootContainerSearchData* _data_;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_ = _user_data_;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_source_object_ = source_object;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_res_ = _res_;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_real_search_co (_data_);
#line 1147 "rygel-media-export-root-container.c"
}


static gboolean rygel_media_export_root_container_real_search_co (RygelMediaExportRootContainerSearchData* _data_) {
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	switch (_data_->_state_) {
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 0:
#line 1156 "rygel-media-export-root-container.c"
		goto _state_0;
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 1:
#line 1160 "rygel-media-export-root-container.c"
		goto _state_1;
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 2:
#line 1164 "rygel-media-export-root-container.c"
		goto _state_2;
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 3:
#line 1168 "rygel-media-export-root-container.c"
		goto _state_3;
		default:
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_assert_not_reached ();
#line 1173 "rygel-media-export-root-container.c"
	}
	_state_0:
#line 145 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp0_ = _data_->expression;
#line 145 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_tmp0_ == NULL) {
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp1_ = _data_->expression;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp2_ = _data_->offset;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp3_ = _data_->max_count;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp4_ = _data_->sort_criteria;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp5_ = _data_->cancellable;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp6_ = 0U;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_state_ = 1;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		RYGEL_MEDIA_EXPORT_DB_CONTAINER_CLASS (rygel_media_export_root_container_parent_class)->search (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER, RygelMediaExportDBContainer), _data_->_tmp1_, _data_->_tmp2_, _data_->_tmp3_, _data_->_tmp4_, _data_->_tmp5_, rygel_media_export_root_container_search_ready, _data_);
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1198 "rygel-media-export-root-container.c"
		_state_1:
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp7_ = NULL;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp7_ = RYGEL_MEDIA_EXPORT_DB_CONTAINER_CLASS (rygel_media_export_root_container_parent_class)->search_finish (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER, RygelMediaExportDBContainer), _data_->_res_, &_data_->_tmp6_, &_data_->_inner_error_);
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->total_matches = _data_->_tmp6_;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp8_ = _data_->_tmp7_;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_inner_error_ != NULL) {
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_error_free (_data_->_inner_error_);
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_data_->_state_ == 0) {
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1218 "rygel-media-export-root-container.c"
			} else {
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1222 "rygel-media-export-root-container.c"
			}
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_object_unref (_data_->_async_result);
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return FALSE;
#line 1228 "rygel-media-export-root-container.c"
		}
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->result = _data_->_tmp8_;
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_state_ == 0) {
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1236 "rygel-media-export-root-container.c"
		} else {
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1240 "rygel-media-export-root-container.c"
		}
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_object_unref (_data_->_async_result);
#line 146 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1246 "rygel-media-export-root-container.c"
	}
#line 155 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->query_container = NULL;
#line 156 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->upnp_class = NULL;
#line 158 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp9_ = _data_->expression;
#line 158 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp9_, RYGEL_TYPE_RELATIONAL_EXPRESSION)) {
#line 159 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp10_ = _data_->expression;
#line 159 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp11_ = _rygel_search_expression_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp10_, RYGEL_TYPE_RELATIONAL_EXPRESSION) ? ((RygelRelationalExpression*) _data_->_tmp10_) : NULL);
#line 159 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->relational_expression = _data_->_tmp11_;
#line 161 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp12_ = _data_->relational_expression;
#line 161 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp13_ = NULL;
#line 161 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp13_ = rygel_media_export_root_container_search_to_virtual_container (_data_->self, _data_->_tmp12_);
#line 161 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->query_container);
#line 161 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->query_container = (RygelMediaContainer*) _data_->_tmp13_;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp14_ = _data_->relational_expression;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp15_ = ((RygelSearchExpression*) _data_->_tmp14_)->operand2;
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp16_ = g_strdup ((const gchar*) _data_->_tmp15_);
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_free0 (_data_->upnp_class);
#line 163 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->upnp_class = _data_->_tmp16_;
#line 158 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_rygel_search_expression_unref0 (_data_->relational_expression);
#line 1284 "rygel-media-export-root-container.c"
	} else {
#line 164 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp17_ = _data_->expression;
#line 164 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp18_ = NULL;
#line 164 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp19_ = FALSE;
#line 164 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp19_ = rygel_media_export_root_container_is_search_in_virtual_container (_data_->self, _data_->_tmp17_, &_data_->_tmp18_);
#line 164 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->query_container);
#line 164 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->query_container = _data_->_tmp18_;
#line 164 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_tmp19_) {
#line 1300 "rygel-media-export-root-container.c"
		}
	}
#line 169 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp20_ = _data_->query_container;
#line 169 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_tmp20_ != NULL) {
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp21_ = _data_->query_container;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp22_ = _data_->offset;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp23_ = _data_->max_count;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp24_ = _data_->sort_criteria;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp25_ = _data_->cancellable;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_state_ = 2;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_container_get_children (_data_->_tmp21_, _data_->_tmp22_, _data_->_tmp23_, _data_->_tmp24_, _data_->_tmp25_, rygel_media_export_root_container_search_ready, _data_);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1323 "rygel-media-export-root-container.c"
		_state_2:
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp26_ = NULL;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp26_ = rygel_media_container_get_children_finish (_data_->_tmp21_, _data_->_res_, &_data_->_inner_error_);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp27_ = _data_->_tmp26_;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_inner_error_ != NULL) {
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_error_free (_data_->_inner_error_);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (_data_->upnp_class);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_data_->query_container);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_data_->list);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_data_->_state_ == 0) {
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1347 "rygel-media-export-root-container.c"
			} else {
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1351 "rygel-media-export-root-container.c"
			}
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_object_unref (_data_->_async_result);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return FALSE;
#line 1357 "rygel-media-export-root-container.c"
		}
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->list);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->list = _data_->_tmp27_;
#line 174 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp28_ = _data_->query_container;
#line 174 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp29_ = _data_->_tmp28_->child_count;
#line 174 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->total_matches = (guint) _data_->_tmp29_;
#line 176 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp30_ = _data_->upnp_class;
#line 176 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_tmp30_ != NULL) {
#line 1373 "rygel-media-export-root-container.c"
			{
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp31_ = _data_->list;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp32_ = _g_object_ref0 (_data_->_tmp31_);
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_object_list = _data_->_tmp32_;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp33_ = _data_->_object_list;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp34_ = gee_abstract_collection_get_size ((GeeCollection*) _data_->_tmp33_);
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp35_ = _data_->_tmp34_;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_object_size = _data_->_tmp35_;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_object_index = -1;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				while (TRUE) {
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp36_ = _data_->_object_index;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_object_index = _data_->_tmp36_ + 1;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp37_ = _data_->_object_index;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp38_ = _data_->_object_size;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					if (!(_data_->_tmp37_ < _data_->_tmp38_)) {
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
						break;
#line 1405 "rygel-media-export-root-container.c"
					}
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp39_ = _data_->_object_list;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp40_ = _data_->_object_index;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp41_ = NULL;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp41_ = gee_abstract_list_get ((GeeAbstractList*) _data_->_tmp39_, _data_->_tmp40_);
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->object = (RygelMediaObject*) _data_->_tmp41_;
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp42_ = _data_->object;
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp43_ = _data_->upnp_class;
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp44_ = g_strdup (_data_->_tmp43_);
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (_data_->_tmp42_->upnp_class);
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp42_->upnp_class = _data_->_tmp44_;
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (_data_->object);
#line 1429 "rygel-media-export-root-container.c"
				}
#line 177 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_data_->_object_list);
#line 1433 "rygel-media-export-root-container.c"
			}
		}
#line 182 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->result = _data_->list;
#line 182 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_free0 (_data_->upnp_class);
#line 182 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->query_container);
#line 182 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_state_ == 0) {
#line 182 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1446 "rygel-media-export-root-container.c"
		} else {
#line 182 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1450 "rygel-media-export-root-container.c"
		}
#line 182 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_object_unref (_data_->_async_result);
#line 182 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1456 "rygel-media-export-root-container.c"
	} else {
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp45_ = _data_->expression;
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp46_ = _data_->offset;
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp47_ = _data_->max_count;
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp48_ = _data_->sort_criteria;
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp49_ = _data_->cancellable;
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp50_ = 0U;
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_state_ = 3;
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		RYGEL_MEDIA_EXPORT_DB_CONTAINER_CLASS (rygel_media_export_root_container_parent_class)->search (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER, RygelMediaExportDBContainer), _data_->_tmp45_, _data_->_tmp46_, _data_->_tmp47_, _data_->_tmp48_, _data_->_tmp49_, rygel_media_export_root_container_search_ready, _data_);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1476 "rygel-media-export-root-container.c"
		_state_3:
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp51_ = NULL;
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp51_ = RYGEL_MEDIA_EXPORT_DB_CONTAINER_CLASS (rygel_media_export_root_container_parent_class)->search_finish (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER, RygelMediaExportDBContainer), _data_->_res_, &_data_->_tmp50_, &_data_->_inner_error_);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->total_matches = _data_->_tmp50_;
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp52_ = _data_->_tmp51_;
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_inner_error_ != NULL) {
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_error_free (_data_->_inner_error_);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (_data_->upnp_class);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_data_->query_container);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_data_->list);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_data_->_state_ == 0) {
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1502 "rygel-media-export-root-container.c"
			} else {
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1506 "rygel-media-export-root-container.c"
			}
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_object_unref (_data_->_async_result);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return FALSE;
#line 1512 "rygel-media-export-root-container.c"
		}
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->result = _data_->_tmp52_;
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_free0 (_data_->upnp_class);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->query_container);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->list);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_state_ == 0) {
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1526 "rygel-media-export-root-container.c"
		} else {
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1530 "rygel-media-export-root-container.c"
		}
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_object_unref (_data_->_async_result);
#line 184 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1536 "rygel-media-export-root-container.c"
	}
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (_data_->upnp_class);
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->query_container);
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->list);
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_state_ == 0) {
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1548 "rygel-media-export-root-container.c"
	} else {
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1552 "rygel-media-export-root-container.c"
	}
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_object_unref (_data_->_async_result);
#line 138 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return FALSE;
#line 1558 "rygel-media-export-root-container.c"
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
#line 1228 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1228 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	g_return_val_if_fail (old != NULL, NULL);
#line 1228 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	g_return_val_if_fail (replacement != NULL, NULL);
#line 1571 "rygel-media-export-root-container.c"
	{
		const gchar* _tmp0_;
		gchar* _tmp1_ = NULL;
		gchar* _tmp2_;
		GRegex* _tmp3_;
		GRegex* _tmp4_;
		GRegex* regex;
		GRegex* _tmp5_;
		const gchar* _tmp6_;
		gchar* _tmp7_ = NULL;
		gchar* _tmp8_;
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp0_ = old;
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp1_;
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp4_ = _tmp3_;
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_g_free0 (_tmp2_);
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		regex = _tmp4_;
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		if (_inner_error_ != NULL) {
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 1601 "rygel-media-export-root-container.c"
				goto __catch31_g_regex_error;
			}
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
			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);
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1230 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
			return NULL;
#line 1610 "rygel-media-export-root-container.c"
		}
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp5_ = regex;
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp6_ = replacement;
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp7_ = g_regex_replace_literal (_tmp5_, self, (gssize) (-1), 0, _tmp6_, 0, &_inner_error_);
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp7_;
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		if (_inner_error_ != NULL) {
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 1626 "rygel-media-export-root-container.c"
				goto __catch31_g_regex_error;
			}
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
			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);
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
			return NULL;
#line 1637 "rygel-media-export-root-container.c"
		}
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		result = _tmp8_;
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_g_regex_unref0 (regex);
#line 1231 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		return result;
#line 1645 "rygel-media-export-root-container.c"
	}
	goto __finally31;
	__catch31_g_regex_error:
	{
		GError* e = NULL;
#line 1229 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		e = _inner_error_;
#line 1229 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_inner_error_ = NULL;
#line 1233 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		g_assert_not_reached ();
#line 1229 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_g_error_free0 (e);
#line 1659 "rygel-media-export-root-container.c"
	}
	__finally31:
#line 1229 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	if (_inner_error_ != NULL) {
#line 1229 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		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);
#line 1229 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		g_clear_error (&_inner_error_);
#line 1229 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		return NULL;
#line 1670 "rygel-media-export-root-container.c"
	}
}


static GeeArrayList* rygel_media_export_root_container_get_shared_uris (RygelMediaExportRootContainer* self) {
	GeeArrayList* result = NULL;
	GeeArrayList* uris = NULL;
	GeeArrayList* actual_uris = NULL;
	RygelMetaConfig* _tmp0_ = NULL;
	RygelMetaConfig* config;
	GeeArrayList* _tmp9_;
	const gchar* _tmp10_ = NULL;
	GFile* _tmp11_ = NULL;
	GFile* home_dir;
	const gchar* _tmp12_ = NULL;
	const gchar* pictures_dir;
	const gchar* _tmp13_ = NULL;
	const gchar* videos_dir;
	const gchar* _tmp14_ = NULL;
	const gchar* music_dir;
	GError * _inner_error_ = NULL;
#line 195 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 199 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = rygel_meta_config_get_default ();
#line 199 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	config = _tmp0_;
#line 1698 "rygel-media-export-root-container.c"
	{
		GeeArrayList* _tmp1_ = NULL;
		GeeArrayList* _tmp2_;
#line 202 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp1_ = rygel_configuration_get_string_list ((RygelConfiguration*) config, "MediaExport", "uris", &_inner_error_);
#line 202 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp2_ = _tmp1_;
#line 202 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 1708 "rygel-media-export-root-container.c"
			goto __catch29_g_error;
		}
#line 202 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (uris);
#line 202 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		uris = _tmp2_;
#line 1715 "rygel-media-export-root-container.c"
	}
	goto __finally29;
	__catch29_g_error:
	{
		GError* _error_ = NULL;
		GeeArrayList* _tmp3_;
#line 201 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 201 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 204 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL);
#line 204 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (uris);
#line 204 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		uris = _tmp3_;
#line 201 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 1734 "rygel-media-export-root-container.c"
	}
	__finally29:
#line 201 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 201 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (config);
#line 201 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (actual_uris);
#line 201 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (uris);
#line 201 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		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);
#line 201 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_clear_error (&_inner_error_);
#line 201 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 1751 "rygel-media-export-root-container.c"
	}
	{
		RygelMediaExportMediaCache* _tmp4_;
		GeeList* _tmp5_ = NULL;
		GeeList* _tmp6_;
		GeeArrayList* _tmp7_;
		GeeList* _tmp8_;
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp5_ = rygel_media_export_media_cache_get_flagged_uris (_tmp4_, "DBUS", &_inner_error_);
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp6_ = _tmp5_;
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 1767 "rygel-media-export-root-container.c"
			goto __catch30_g_error;
		}
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp7_ = uris;
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp8_ = _tmp6_;
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		gee_abstract_collection_add_all ((GeeAbstractCollection*) _tmp7_, (GeeCollection*) _tmp8_);
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_tmp8_);
#line 1778 "rygel-media-export-root-container.c"
	}
	goto __finally30;
	__catch30_g_error:
	{
		GError* _error_ = NULL;
#line 207 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 207 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 207 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 1790 "rygel-media-export-root-container.c"
	}
	__finally30:
#line 207 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 207 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (config);
#line 207 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (actual_uris);
#line 207 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (uris);
#line 207 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		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);
#line 207 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_clear_error (&_inner_error_);
#line 207 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 1807 "rygel-media-export-root-container.c"
	}
#line 211 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp9_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);
#line 211 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (actual_uris);
#line 211 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	actual_uris = _tmp9_;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp10_ = g_get_home_dir ();
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp11_ = g_file_new_for_path (_tmp10_);
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	home_dir = _tmp11_;
#line 214 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp12_ = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
#line 214 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	pictures_dir = _tmp12_;
#line 216 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp13_ = g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS);
#line 216 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	videos_dir = _tmp13_;
#line 218 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp14_ = g_get_user_special_dir (G_USER_DIRECTORY_MUSIC);
#line 218 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	music_dir = _tmp14_;
#line 1833 "rygel-media-export-root-container.c"
	{
		GeeArrayList* _tmp15_;
		GeeArrayList* _tmp16_;
		GeeArrayList* _uri_list;
		GeeArrayList* _tmp17_;
		gint _tmp18_;
		gint _tmp19_;
		gint _uri_size;
		gint _uri_index;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp15_ = uris;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp16_ = _g_object_ref0 (_tmp15_);
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_uri_list = _tmp16_;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp17_ = _uri_list;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp18_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp17_);
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp19_ = _tmp18_;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_uri_size = _tmp19_;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_uri_index = -1;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		while (TRUE) {
#line 1861 "rygel-media-export-root-container.c"
			gint _tmp20_;
			gint _tmp21_;
			gint _tmp22_;
			GeeArrayList* _tmp23_;
			gint _tmp24_;
			gpointer _tmp25_ = NULL;
			gchar* uri;
			const gchar* _tmp26_;
			GFile* _tmp27_ = NULL;
			GFile* file;
			GFile* _tmp28_;
			GFile* _tmp29_;
			gboolean _tmp30_ = FALSE;
			GeeArrayList* _tmp52_;
			GFile* _tmp53_;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp20_ = _uri_index;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_uri_index = _tmp20_ + 1;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp21_ = _uri_index;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp22_ = _uri_size;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (!(_tmp21_ < _tmp22_)) {
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				break;
#line 1889 "rygel-media-export-root-container.c"
			}
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp23_ = _uri_list;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp24_ = _uri_index;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp25_ = gee_abstract_list_get ((GeeAbstractList*) _tmp23_, _tmp24_);
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			uri = (gchar*) _tmp25_;
#line 222 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp26_ = uri;
#line 222 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp27_ = g_file_new_for_commandline_arg (_tmp26_);
#line 222 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			file = _tmp27_;
#line 223 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp28_ = file;
#line 223 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp29_ = home_dir;
#line 223 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp30_ = G_LIKELY (_tmp28_ != _tmp29_);
#line 223 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_tmp30_) {
#line 1913 "rygel-media-export-root-container.c"
				const gchar* _tmp31_;
				gchar* _tmp32_;
				gchar* actual_uri;
				const gchar* _tmp33_;
				gboolean _tmp34_ = FALSE;
				const gchar* _tmp38_;
				gboolean _tmp39_ = FALSE;
				const gchar* _tmp43_;
				gboolean _tmp44_ = FALSE;
				const gchar* _tmp48_;
				GFile* _tmp49_ = NULL;
				GFile* _tmp50_;
				GFile* _tmp51_;
#line 224 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp31_ = uri;
#line 224 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp32_ = g_strdup (_tmp31_);
#line 224 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				actual_uri = _tmp32_;
#line 226 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp33_ = pictures_dir;
#line 226 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp34_ = G_LIKELY (_tmp33_ != NULL);
#line 226 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_tmp34_) {
#line 1939 "rygel-media-export-root-container.c"
					const gchar* _tmp35_;
					const gchar* _tmp36_;
					gchar* _tmp37_ = NULL;
#line 227 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp35_ = actual_uri;
#line 227 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp36_ = pictures_dir;
#line 227 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp37_ = string_replace (_tmp35_, "@PICTURES@", _tmp36_);
#line 227 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (actual_uri);
#line 227 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					actual_uri = _tmp37_;
#line 1953 "rygel-media-export-root-container.c"
				}
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp38_ = videos_dir;
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp39_ = G_LIKELY (_tmp38_ != NULL);
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_tmp39_) {
#line 1961 "rygel-media-export-root-container.c"
					const gchar* _tmp40_;
					const gchar* _tmp41_;
					gchar* _tmp42_ = NULL;
#line 230 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp40_ = actual_uri;
#line 230 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp41_ = videos_dir;
#line 230 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp42_ = string_replace (_tmp40_, "@VIDEOS@", _tmp41_);
#line 230 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (actual_uri);
#line 230 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					actual_uri = _tmp42_;
#line 1975 "rygel-media-export-root-container.c"
				}
#line 232 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp43_ = music_dir;
#line 232 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp44_ = G_LIKELY (_tmp43_ != NULL);
#line 232 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_tmp44_) {
#line 1983 "rygel-media-export-root-container.c"
					const gchar* _tmp45_;
					const gchar* _tmp46_;
					gchar* _tmp47_ = NULL;
#line 233 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp45_ = actual_uri;
#line 233 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp46_ = music_dir;
#line 233 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp47_ = string_replace (_tmp45_, "@MUSIC@", _tmp46_);
#line 233 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (actual_uri);
#line 233 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					actual_uri = _tmp47_;
#line 1997 "rygel-media-export-root-container.c"
				}
#line 237 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp48_ = actual_uri;
#line 237 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp49_ = g_file_new_for_commandline_arg (_tmp48_);
#line 237 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (file);
#line 237 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				file = _tmp49_;
#line 238 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp50_ = file;
#line 238 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp51_ = home_dir;
#line 238 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_tmp50_ == _tmp51_) {
#line 239 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (actual_uri);
#line 239 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (file);
#line 239 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (uri);
#line 239 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					continue;
#line 2021 "rygel-media-export-root-container.c"
				}
#line 223 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_free0 (actual_uri);
#line 2025 "rygel-media-export-root-container.c"
			}
#line 243 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp52_ = actual_uris;
#line 243 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp53_ = file;
#line 243 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp52_, _tmp53_);
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (file);
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (uri);
#line 2037 "rygel-media-export-root-container.c"
		}
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_uri_list);
#line 2041 "rygel-media-export-root-container.c"
	}
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = actual_uris;
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (home_dir);
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (config);
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (uris);
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 2053 "rygel-media-export-root-container.c"
}


static RygelMediaExportQueryContainer* rygel_media_export_root_container_search_to_virtual_container (RygelMediaExportRootContainer* self, RygelRelationalExpression* expression) {
	RygelMediaExportQueryContainer* result = NULL;
	gboolean _tmp0_ = FALSE;
	RygelRelationalExpression* _tmp1_;
	gconstpointer _tmp2_;
	gboolean _tmp5_;
#line 249 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 249 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (expression != NULL, NULL);
#line 251 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = expression;
#line 251 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = ((RygelSearchExpression*) _tmp1_)->operand1;
#line 251 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (g_strcmp0 ((const gchar*) _tmp2_, "upnp:class") == 0) {
#line 2073 "rygel-media-export-root-container.c"
		RygelRelationalExpression* _tmp3_;
		gconstpointer _tmp4_;
#line 252 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = expression;
#line 252 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = ((RygelSearchExpression*) _tmp3_)->op;
#line 252 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp0_ = ((GUPnPSearchCriteriaOp) ((gintptr) _tmp4_)) == GUPNP_SEARCH_CRITERIA_OP_EQ;
#line 2082 "rygel-media-export-root-container.c"
	} else {
#line 251 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp0_ = FALSE;
#line 2086 "rygel-media-export-root-container.c"
	}
#line 251 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = _tmp0_;
#line 251 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp5_) {
#line 2092 "rygel-media-export-root-container.c"
		gchar* _tmp6_;
		gchar* id;
		RygelRelationalExpression* _tmp7_;
		gconstpointer _tmp8_;
		const gchar* _tmp9_;
		GQuark _tmp11_ = 0U;
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		static GQuark _tmp10_label0 = 0;
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		static GQuark _tmp10_label1 = 0;
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		static GQuark _tmp10_label2 = 0;
#line 2105 "rygel-media-export-root-container.c"
		RygelMediaExportQueryContainerFactory* _tmp18_ = NULL;
		RygelMediaExportQueryContainerFactory* factory;
		RygelMediaExportQueryContainerFactory* _tmp19_;
		RygelMediaExportMediaCache* _tmp20_;
		const gchar* _tmp21_;
		RygelMediaExportQueryContainer* _tmp22_ = NULL;
#line 253 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp6_ = g_strdup (RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_SEARCH_CONTAINER_PREFIX);
#line 253 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		id = _tmp6_;
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp7_ = expression;
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp8_ = ((RygelSearchExpression*) _tmp7_)->operand2;
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp9_ = (const gchar*) _tmp8_;
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp11_ = (NULL == _tmp9_) ? 0 : g_quark_from_string (_tmp9_);
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_tmp11_ == ((0 != _tmp10_label0) ? _tmp10_label0 : (_tmp10_label0 = g_quark_from_static_string ("object.container.album.musicAlbum")))) {
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			switch (0) {
#line 2128 "rygel-media-export-root-container.c"
				default:
				{
					const gchar* _tmp12_;
					gchar* _tmp13_;
#line 256 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp12_ = id;
#line 256 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp13_ = g_strconcat (_tmp12_, "upnp:album,?", NULL);
#line 256 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (id);
#line 256 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					id = _tmp13_;
#line 258 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					break;
#line 2143 "rygel-media-export-root-container.c"
				}
			}
		} else if (_tmp11_ == ((0 != _tmp10_label1) ? _tmp10_label1 : (_tmp10_label1 = g_quark_from_static_string ("object.container.person.musicArtist")))) {
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			switch (0) {
#line 2149 "rygel-media-export-root-container.c"
				default:
				{
					const gchar* _tmp14_;
					gchar* _tmp15_;
#line 260 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp14_ = id;
#line 260 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp15_ = g_strconcat (_tmp14_, "dc:creator,?,upnp:album,?", NULL);
#line 260 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (id);
#line 260 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					id = _tmp15_;
#line 262 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					break;
#line 2164 "rygel-media-export-root-container.c"
				}
			}
		} else if (_tmp11_ == ((0 != _tmp10_label2) ? _tmp10_label2 : (_tmp10_label2 = g_quark_from_static_string ("object.container.genre.musicGenre")))) {
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			switch (0) {
#line 2170 "rygel-media-export-root-container.c"
				default:
				{
					const gchar* _tmp16_;
					gchar* _tmp17_;
#line 264 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp16_ = id;
#line 264 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp17_ = g_strconcat (_tmp16_, "dc:genre,?", NULL);
#line 264 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (id);
#line 264 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					id = _tmp17_;
#line 266 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					break;
#line 2185 "rygel-media-export-root-container.c"
				}
			}
		} else {
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			switch (0) {
#line 2191 "rygel-media-export-root-container.c"
				default:
				{
#line 268 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					result = NULL;
#line 268 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (id);
#line 268 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					return result;
#line 2200 "rygel-media-export-root-container.c"
				}
			}
		}
#line 271 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp18_ = rygel_media_export_query_container_factory_get_default ();
#line 271 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		factory = _tmp18_;
#line 273 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp19_ = factory;
#line 273 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp20_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 273 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp21_ = id;
#line 273 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp22_ = rygel_media_export_query_container_factory_create_from_description (_tmp19_, _tmp20_, _tmp21_, "");
#line 273 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		result = _tmp22_;
#line 273 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (factory);
#line 273 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_free0 (id);
#line 273 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return result;
#line 2224 "rygel-media-export-root-container.c"
	}
#line 276 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = NULL;
#line 276 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 2230 "rygel-media-export-root-container.c"
}


/**
     * Check if a passed search expression is a simple search in a virtual
     * container.
     *
     * @param expression the expression to check
     * @param new_id contains the id of the virtual container constructed from
     *               the search
     * @param upnp_class contains the class of the container the search was
     *                   looking in
     * @return true if it was a search in virtual container, false otherwise.
     * @note This works single level only. Enough to satisfy Xbox music
     *       browsing, but may need refinement
     */
static gboolean rygel_media_export_root_container_is_search_in_virtual_container (RygelMediaExportRootContainer* self, RygelSearchExpression* expression, RygelMediaContainer** container) {
	RygelMediaContainer* _vala_container = NULL;
	gboolean result = FALSE;
	RygelRelationalExpression* virtual_expression;
	RygelMediaExportQueryContainer* query_container = NULL;
	RygelSearchExpression* _tmp0_;
	RygelSearchExpression* _tmp1_;
	RygelLogicalExpression* _tmp2_;
	RygelLogicalExpression* logical_expression;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	RygelLogicalExpression* _tmp5_;
	gconstpointer _tmp6_;
	gboolean _tmp9_;
	gboolean _tmp12_;
	RygelLogicalExpression* _tmp13_;
	gconstpointer _tmp14_;
	RygelRelationalExpression* _tmp15_;
	RygelRelationalExpression* left_expression;
	RygelLogicalExpression* _tmp16_;
	gconstpointer _tmp17_;
	RygelRelationalExpression* _tmp18_;
	RygelRelationalExpression* right_expression;
	RygelRelationalExpression* _tmp19_;
	RygelMediaExportQueryContainer* _tmp20_ = NULL;
	RygelMediaExportQueryContainer* _tmp21_;
	RygelMediaExportQueryContainerFactory* _tmp29_ = NULL;
	RygelMediaExportQueryContainerFactory* factory;
	RygelMediaExportQueryContainerFactory* _tmp30_;
	RygelMediaExportQueryContainer* _tmp31_;
	const gchar* _tmp32_;
	gchar* _tmp33_ = NULL;
	gchar* plaintext_id;
	const gchar* _tmp34_;
	gchar* _tmp35_ = NULL;
	gchar* last_argument;
	RygelRelationalExpression* _tmp36_;
	gconstpointer _tmp37_;
	gchar* _tmp38_ = NULL;
	gchar* escaped_detail;
	RygelRelationalExpression* _tmp39_;
	gconstpointer _tmp40_;
	const gchar* _tmp41_;
	const gchar* _tmp42_;
	gchar* _tmp43_ = NULL;
	gchar* new_id;
	RygelMediaExportQueryContainerFactory* _tmp44_;
	RygelMediaExportMediaCache* _tmp45_;
	const gchar* _tmp46_;
	RygelMediaExportQueryContainer* _tmp47_ = NULL;
#line 292 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 292 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (expression != NULL, FALSE);
#line 294 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	virtual_expression = NULL;
#line 297 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_vala_container);
#line 297 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_vala_container = NULL;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = expression;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, RYGEL_TYPE_LOGICAL_EXPRESSION)) {
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		result = FALSE;
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (query_container);
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_rygel_search_expression_unref0 (virtual_expression);
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (container) {
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			*container = _vala_container;
#line 2321 "rygel-media-export-root-container.c"
		} else {
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_vala_container);
#line 2325 "rygel-media-export-root-container.c"
		}
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return result;
#line 2329 "rygel-media-export-root-container.c"
	}
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = expression;
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = _rygel_search_expression_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, RYGEL_TYPE_LOGICAL_EXPRESSION) ? ((RygelLogicalExpression*) _tmp1_) : NULL);
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	logical_expression = _tmp2_;
#line 305 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = logical_expression;
#line 305 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp6_ = ((RygelSearchExpression*) _tmp5_)->operand1;
#line 305 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE ((RygelSearchExpression*) _tmp6_, RYGEL_TYPE_RELATIONAL_EXPRESSION)) {
#line 2343 "rygel-media-export-root-container.c"
		RygelLogicalExpression* _tmp7_;
		gconstpointer _tmp8_;
#line 306 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp7_ = logical_expression;
#line 306 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp8_ = ((RygelSearchExpression*) _tmp7_)->operand2;
#line 306 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE ((RygelSearchExpression*) _tmp8_, RYGEL_TYPE_RELATIONAL_EXPRESSION);
#line 2352 "rygel-media-export-root-container.c"
	} else {
#line 305 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = FALSE;
#line 2356 "rygel-media-export-root-container.c"
	}
#line 305 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp9_ = _tmp4_;
#line 305 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp9_) {
#line 2362 "rygel-media-export-root-container.c"
		RygelLogicalExpression* _tmp10_;
		gconstpointer _tmp11_;
#line 307 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp10_ = logical_expression;
#line 307 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp11_ = ((RygelSearchExpression*) _tmp10_)->op;
#line 307 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = ((RygelLogicalOperator) ((gintptr) _tmp11_)) == RYGEL_LOGICAL_OPERATOR_AND;
#line 2371 "rygel-media-export-root-container.c"
	} else {
#line 305 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = FALSE;
#line 2375 "rygel-media-export-root-container.c"
	}
#line 305 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp12_ = _tmp3_;
#line 305 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (!_tmp12_) {
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		result = FALSE;
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_rygel_search_expression_unref0 (logical_expression);
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (query_container);
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_rygel_search_expression_unref0 (virtual_expression);
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (container) {
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			*container = _vala_container;
#line 2393 "rygel-media-export-root-container.c"
		} else {
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_vala_container);
#line 2397 "rygel-media-export-root-container.c"
		}
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return result;
#line 2401 "rygel-media-export-root-container.c"
	}
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp13_ = logical_expression;
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp14_ = ((RygelSearchExpression*) _tmp13_)->operand1;
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp15_ = _rygel_search_expression_ref0 (G_TYPE_CHECK_INSTANCE_TYPE ((RygelSearchExpression*) _tmp14_, RYGEL_TYPE_RELATIONAL_EXPRESSION) ? ((RygelRelationalExpression*) ((RygelSearchExpression*) _tmp14_)) : NULL);
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	left_expression = _tmp15_;
#line 313 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp16_ = logical_expression;
#line 313 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp17_ = ((RygelSearchExpression*) _tmp16_)->operand2;
#line 313 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp18_ = _rygel_search_expression_ref0 (G_TYPE_CHECK_INSTANCE_TYPE ((RygelSearchExpression*) _tmp17_, RYGEL_TYPE_RELATIONAL_EXPRESSION) ? ((RygelRelationalExpression*) ((RygelSearchExpression*) _tmp17_)) : NULL);
#line 313 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	right_expression = _tmp18_;
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp19_ = left_expression;
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp20_ = rygel_media_export_root_container_search_to_virtual_container (self, _tmp19_);
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (query_container);
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	query_container = _tmp20_;
#line 316 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp21_ = query_container;
#line 316 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp21_ == NULL) {
#line 2431 "rygel-media-export-root-container.c"
		RygelRelationalExpression* _tmp22_;
		RygelMediaExportQueryContainer* _tmp23_ = NULL;
		RygelMediaExportQueryContainer* _tmp24_;
#line 317 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp22_ = right_expression;
#line 317 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp23_ = rygel_media_export_root_container_search_to_virtual_container (self, _tmp22_);
#line 317 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (query_container);
#line 317 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		query_container = _tmp23_;
#line 318 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp24_ = query_container;
#line 318 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_tmp24_ != NULL) {
#line 2447 "rygel-media-export-root-container.c"
			RygelRelationalExpression* _tmp25_;
			RygelRelationalExpression* _tmp26_;
#line 319 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp25_ = left_expression;
#line 319 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp26_ = _rygel_search_expression_ref0 (_tmp25_);
#line 319 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_rygel_search_expression_unref0 (virtual_expression);
#line 319 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			virtual_expression = _tmp26_;
#line 2458 "rygel-media-export-root-container.c"
		} else {
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			result = FALSE;
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_rygel_search_expression_unref0 (right_expression);
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_rygel_search_expression_unref0 (left_expression);
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_rygel_search_expression_unref0 (logical_expression);
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (query_container);
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_rygel_search_expression_unref0 (virtual_expression);
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (container) {
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				*container = _vala_container;
#line 2476 "rygel-media-export-root-container.c"
			} else {
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_vala_container);
#line 2480 "rygel-media-export-root-container.c"
			}
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return result;
#line 2484 "rygel-media-export-root-container.c"
		}
	} else {
		RygelRelationalExpression* _tmp27_;
		RygelRelationalExpression* _tmp28_;
#line 324 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp27_ = right_expression;
#line 324 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp28_ = _rygel_search_expression_ref0 (_tmp27_);
#line 324 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_rygel_search_expression_unref0 (virtual_expression);
#line 324 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		virtual_expression = _tmp28_;
#line 2497 "rygel-media-export-root-container.c"
	}
#line 327 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp29_ = rygel_media_export_query_container_factory_get_default ();
#line 327 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	factory = _tmp29_;
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp30_ = factory;
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp31_ = query_container;
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp32_ = ((RygelMediaObject*) _tmp31_)->id;
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp33_ = rygel_media_export_query_container_factory_get_virtual_container_definition (_tmp30_, _tmp32_);
#line 328 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	plaintext_id = _tmp33_;
#line 331 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp34_ = plaintext_id;
#line 331 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp35_ = string_replace (_tmp34_, RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_PREFIX, "");
#line 331 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	last_argument = _tmp35_;
#line 333 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp36_ = virtual_expression;
#line 333 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp37_ = ((RygelSearchExpression*) _tmp36_)->operand2;
#line 333 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp38_ = g_uri_escape_string ((const gchar*) _tmp37_, "", TRUE);
#line 333 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	escaped_detail = _tmp38_;
#line 336 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp39_ = virtual_expression;
#line 336 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp40_ = ((RygelSearchExpression*) _tmp39_)->operand1;
#line 336 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp41_ = escaped_detail;
#line 336 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp42_ = last_argument;
#line 336 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp43_ = g_strdup_printf ("%s%s,%s,%s", RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_PREFIX, (const gchar*) _tmp40_, _tmp41_, _tmp42_);
#line 336 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	new_id = _tmp43_;
#line 341 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp44_ = factory;
#line 341 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp45_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 341 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp46_ = new_id;
#line 341 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp47_ = rygel_media_export_query_container_factory_create_from_description (_tmp44_, _tmp45_, _tmp46_, "");
#line 341 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_vala_container);
#line 341 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_vala_container = (RygelMediaContainer*) _tmp47_;
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = TRUE;
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (new_id);
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (escaped_detail);
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (last_argument);
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (plaintext_id);
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (factory);
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_rygel_search_expression_unref0 (right_expression);
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_rygel_search_expression_unref0 (left_expression);
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_rygel_search_expression_unref0 (logical_expression);
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (query_container);
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_rygel_search_expression_unref0 (virtual_expression);
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (container) {
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		*container = _vala_container;
#line 2577 "rygel-media-export-root-container.c"
	} else {
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_vala_container);
#line 2581 "rygel-media-export-root-container.c"
	}
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 2585 "rygel-media-export-root-container.c"
}


/**
     * Create a new root container.
     */
static void _rygel_media_export_root_container_on_initial_harvesting_done_rygel_media_export_harvester_done (RygelMediaExportHarvester* _sender, gpointer self) {
#line 387 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_on_initial_harvesting_done (self);
#line 2595 "rygel-media-export-root-container.c"
}


static RygelMediaExportRootContainer* rygel_media_export_root_container_construct (GType object_type, GError** error) {
	RygelMediaExportRootContainer * self = NULL;
	RygelMediaExportMediaCache* _tmp0_ = NULL;
	RygelMediaExportMediaCache* db;
	const gchar* _tmp1_ = NULL;
	GCancellable* _tmp2_;
	GeeArrayList* ids = NULL;
	GCancellable* _tmp19_;
	GeeArrayList* _tmp20_ = NULL;
	GeeArrayList* _tmp21_;
	RygelMediaExportHarvester* _tmp22_;
	RygelMediaExportHarvester* _tmp23_;
	gulong _tmp24_ = 0UL;
	GError * _inner_error_ = NULL;
#line 352 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = rygel_media_export_media_cache_get_default (&_inner_error_);
#line 352 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	db = _tmp0_;
#line 352 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 352 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 352 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (self);
#line 352 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 2625 "rygel-media-export-root-container.c"
	}
#line 354 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = _ ("@REALNAME@'s media");
#line 354 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self = (RygelMediaExportRootContainer*) rygel_media_export_db_container_construct (object_type, db, "0", _tmp1_);
#line 356 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = g_cancellable_new ();
#line 356 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (self->priv->cancellable);
#line 356 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self->priv->cancellable = _tmp2_;
#line 2637 "rygel-media-export-root-container.c"
	{
		RygelMediaExportDBusService* _tmp3_;
		RygelMediaExportDBusService* _tmp4_;
#line 359 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = rygel_media_export_dbus_service_new (self, &_inner_error_);
#line 359 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = _tmp3_;
#line 359 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 2647 "rygel-media-export-root-container.c"
			goto __catch32_g_error;
		}
#line 359 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (self->priv->service);
#line 359 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		self->priv->service = _tmp4_;
#line 2654 "rygel-media-export-root-container.c"
	}
	goto __finally32;
	__catch32_g_error:
	{
		GError* err = NULL;
		const gchar* _tmp5_ = NULL;
		GError* _tmp6_;
		const gchar* _tmp7_;
#line 358 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		err = _inner_error_;
#line 358 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 361 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp5_ = _ ("Failed to create MediaExport D-Bus service: %s");
#line 361 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp6_ = err;
#line 361 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp7_ = _tmp6_->message;
#line 361 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_warning (_tmp5_, _tmp7_);
#line 358 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (err);
#line 2677 "rygel-media-export-root-container.c"
	}
	__finally32:
#line 358 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 358 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 358 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (db);
#line 358 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (self);
#line 358 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 2690 "rygel-media-export-root-container.c"
	}
	{
		RygelMediaExportMediaCache* _tmp8_;
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp8_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_media_cache_save_container (_tmp8_, (RygelMediaContainer*) self, &_inner_error_);
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 2700 "rygel-media-export-root-container.c"
			goto __catch33_g_error;
		}
	}
	goto __finally33;
	__catch33_g_error:
	{
		GError* _error_ = NULL;
#line 365 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 365 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 365 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 2714 "rygel-media-export-root-container.c"
	}
	__finally33:
#line 365 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 365 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 365 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (db);
#line 365 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (self);
#line 365 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 2727 "rygel-media-export-root-container.c"
	}
	{
		RygelMediaExportMediaCache* _tmp9_;
		const gchar* _tmp10_ = NULL;
		RygelMediaExportDBContainer* _tmp11_;
		RygelMediaContainer* _tmp12_;
		RygelMediaExportMediaCache* _tmp13_;
		RygelMediaContainer* _tmp14_;
#line 370 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp9_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 370 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp10_ = _ (RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_FILESYSTEM_FOLDER_NAME);
#line 370 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp11_ = rygel_media_export_db_container_new (_tmp9_, RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_FILESYSTEM_FOLDER_ID, _tmp10_);
#line 370 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (self->priv->filesystem_container);
#line 370 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		self->priv->filesystem_container = (RygelMediaContainer*) _tmp11_;
#line 374 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp12_ = self->priv->filesystem_container;
#line 374 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		((RygelMediaObject*) _tmp12_)->parent = (RygelMediaContainer*) self;
#line 375 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp13_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 375 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp14_ = self->priv->filesystem_container;
#line 375 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_media_cache_save_container (_tmp13_, _tmp14_, &_inner_error_);
#line 375 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 2758 "rygel-media-export-root-container.c"
			goto __catch34_g_error;
		}
	}
	goto __finally34;
	__catch34_g_error:
	{
		GError* _error_ = NULL;
#line 369 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 369 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 369 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 2772 "rygel-media-export-root-container.c"
	}
	__finally34:
#line 369 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 369 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 369 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (db);
#line 369 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (self);
#line 369 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 2785 "rygel-media-export-root-container.c"
	}
	{
		RygelMediaExportMediaCache* _tmp15_;
		GeeArrayList* _tmp16_ = NULL;
		GeeArrayList* _tmp17_;
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp15_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp16_ = rygel_media_export_media_cache_get_child_ids (_tmp15_, RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_FILESYSTEM_FOLDER_ID, &_inner_error_);
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp17_ = _tmp16_;
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_inner_error_->domain == RYGEL_MEDIA_EXPORT_DATABASE_ERROR) {
#line 2801 "rygel-media-export-root-container.c"
				goto __catch35_rygel_media_export_database_error;
			}
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (ids);
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (db);
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			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);
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_clear_error (&_inner_error_);
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return NULL;
#line 2814 "rygel-media-export-root-container.c"
		}
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (ids);
#line 380 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		ids = _tmp17_;
#line 2820 "rygel-media-export-root-container.c"
	}
	goto __finally35;
	__catch35_rygel_media_export_database_error:
	{
		GError* e = NULL;
		GeeArrayList* _tmp18_;
#line 379 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		e = _inner_error_;
#line 379 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 382 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp18_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL);
#line 382 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (ids);
#line 382 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		ids = _tmp18_;
#line 379 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (e);
#line 2839 "rygel-media-export-root-container.c"
	}
	__finally35:
#line 379 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 379 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 379 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (ids);
#line 379 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (db);
#line 379 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (self);
#line 379 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 2854 "rygel-media-export-root-container.c"
	}
#line 385 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp19_ = self->priv->cancellable;
#line 385 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp20_ = rygel_media_export_root_container_get_shared_uris (self);
#line 385 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp21_ = _tmp20_;
#line 385 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp22_ = rygel_media_export_harvester_new (_tmp19_, _tmp21_);
#line 385 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (self->priv->harvester);
#line 385 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self->priv->harvester = _tmp22_;
#line 385 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_tmp21_);
#line 387 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp23_ = self->priv->harvester;
#line 387 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp24_ = g_signal_connect_object (_tmp23_, "done", (GCallback) _rygel_media_export_root_container_on_initial_harvesting_done_rygel_media_export_harvester_done, self, 0);
#line 387 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self->priv->harvester_signal_id = _tmp24_;
#line 2876 "rygel-media-export-root-container.c"
	{
		RygelMediaExportHarvester* _tmp25_;
		GeeArrayList* _tmp26_;
		GeeArrayList* _tmp27_;
		GeeArrayList* _tmp28_;
		GeeArrayList* _file_list;
		GeeArrayList* _tmp29_;
		gint _tmp30_;
		gint _tmp31_;
		gint _file_size;
		gint _file_index;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp25_ = self->priv->harvester;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp26_ = rygel_media_export_harvester_get_locations (_tmp25_);
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp27_ = _tmp26_;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp28_ = _g_object_ref0 (_tmp27_);
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_list = _tmp28_;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp29_ = _file_list;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp30_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp29_);
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp31_ = _tmp30_;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_size = _tmp31_;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_index = -1;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		while (TRUE) {
#line 2910 "rygel-media-export-root-container.c"
			gint _tmp32_;
			gint _tmp33_;
			gint _tmp34_;
			GeeArrayList* _tmp35_;
			gint _tmp36_;
			gpointer _tmp37_ = NULL;
			GFile* file;
			GeeArrayList* _tmp38_;
			GFile* _tmp39_;
			gchar* _tmp40_ = NULL;
			gchar* _tmp41_;
			RygelMediaExportHarvester* _tmp42_;
			GFile* _tmp43_;
			RygelMediaContainer* _tmp44_;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp32_ = _file_index;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_file_index = _tmp32_ + 1;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp33_ = _file_index;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp34_ = _file_size;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (!(_tmp33_ < _tmp34_)) {
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				break;
#line 2937 "rygel-media-export-root-container.c"
			}
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp35_ = _file_list;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp36_ = _file_index;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp37_ = gee_abstract_list_get ((GeeAbstractList*) _tmp35_, _tmp36_);
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			file = (GFile*) _tmp37_;
#line 391 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp38_ = ids;
#line 391 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp39_ = file;
#line 391 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp40_ = rygel_media_export_media_cache_get_id (_tmp39_);
#line 391 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp41_ = _tmp40_;
#line 391 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp38_, _tmp41_);
#line 391 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (_tmp41_);
#line 392 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp42_ = self->priv->harvester;
#line 392 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp43_ = file;
#line 392 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp44_ = self->priv->filesystem_container;
#line 392 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			rygel_media_export_harvester_schedule (_tmp42_, _tmp43_, _tmp44_, NULL);
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (file);
#line 2969 "rygel-media-export-root-container.c"
		}
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_file_list);
#line 2973 "rygel-media-export-root-container.c"
	}
	{
		GeeArrayList* _tmp45_;
		GeeArrayList* _tmp46_;
		GeeArrayList* _id_list;
		GeeArrayList* _tmp47_;
		gint _tmp48_;
		gint _tmp49_;
		gint _id_size;
		gint _id_index;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp45_ = ids;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp46_ = _g_object_ref0 (_tmp45_);
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_id_list = _tmp46_;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp47_ = _id_list;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp48_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp47_);
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp49_ = _tmp48_;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_id_size = _tmp49_;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_id_index = -1;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		while (TRUE) {
#line 3002 "rygel-media-export-root-container.c"
			gint _tmp50_;
			gint _tmp51_;
			gint _tmp52_;
			GeeArrayList* _tmp53_;
			gint _tmp54_;
			gpointer _tmp55_ = NULL;
			gchar* id;
			const gchar* _tmp56_;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp50_ = _id_index;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_id_index = _tmp50_ + 1;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp51_ = _id_index;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp52_ = _id_size;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (!(_tmp51_ < _tmp52_)) {
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				break;
#line 3023 "rygel-media-export-root-container.c"
			}
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp53_ = _id_list;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp54_ = _id_index;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp55_ = gee_abstract_list_get ((GeeAbstractList*) _tmp53_, _tmp54_);
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			id = (gchar*) _tmp55_;
#line 397 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp56_ = id;
#line 397 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_debug ("rygel-media-export-root-container.vala:397: ID %s no longer in config;" \
" deleting...", _tmp56_);
#line 3037 "rygel-media-export-root-container.c"
			{
				RygelMediaExportMediaCache* _tmp57_;
				const gchar* _tmp58_;
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp57_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp58_ = id;
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				rygel_media_export_media_cache_remove_by_id (_tmp57_, _tmp58_, &_inner_error_);
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_inner_error_ != NULL) {
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					if (_inner_error_->domain == RYGEL_MEDIA_EXPORT_DATABASE_ERROR) {
#line 3051 "rygel-media-export-root-container.c"
						goto __catch36_rygel_media_export_database_error;
					}
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (id);
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (_id_list);
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (ids);
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (db);
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					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);
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					g_clear_error (&_inner_error_);
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					return NULL;
#line 3068 "rygel-media-export-root-container.c"
				}
			}
			goto __finally36;
			__catch36_rygel_media_export_database_error:
			{
				GError* _error_ = NULL;
				const gchar* _tmp59_ = NULL;
				GError* _tmp60_;
				const gchar* _tmp61_;
#line 398 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_error_ = _inner_error_;
#line 398 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_inner_error_ = NULL;
#line 401 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp59_ = _ ("Failed to remove entry: %s");
#line 401 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp60_ = _error_;
#line 401 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp61_ = _tmp60_->message;
#line 401 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_warning (_tmp59_, _tmp61_);
#line 398 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_error_free0 (_error_);
#line 3092 "rygel-media-export-root-container.c"
			}
			__finally36:
#line 398 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_inner_error_ != NULL) {
#line 398 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_propagate_error (error, _inner_error_);
#line 398 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_free0 (id);
#line 398 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_id_list);
#line 398 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (ids);
#line 398 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (db);
#line 398 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (self);
#line 398 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				return NULL;
#line 3111 "rygel-media-export-root-container.c"
			}
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (id);
#line 3115 "rygel-media-export-root-container.c"
		}
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_id_list);
#line 3119 "rygel-media-export-root-container.c"
	}
#line 405 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_container_updated ((RygelMediaContainer*) self);
#line 351 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (ids);
#line 351 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (db);
#line 351 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return self;
#line 3129 "rygel-media-export-root-container.c"
}


static RygelMediaExportRootContainer* rygel_media_export_root_container_new (GError** error) {
#line 351 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return rygel_media_export_root_container_construct (RYGEL_MEDIA_EXPORT_TYPE_ROOT_CONTAINER, error);
#line 3136 "rygel-media-export-root-container.c"
}


static void __lambda5_ (RygelMediaExportRootContainer* self) {
#line 415 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_add_default_virtual_folders (self);
#line 416 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_container_updated ((RygelMediaContainer*) self);
#line 3145 "rygel-media-export-root-container.c"
}


static void ___lambda5__rygel_media_container_container_updated (RygelMediaContainer* _sender, RygelMediaContainer* container, gpointer self) {
#line 414 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	__lambda5_ (self);
#line 3152 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_on_initial_harvesting_done (RygelMediaExportRootContainer* self) {
	RygelMediaExportHarvester* _tmp0_;
	gulong _tmp1_;
	RygelMediaExportMediaCache* _tmp2_;
	RygelMediaContainer* _tmp3_;
#line 408 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 409 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = self->priv->harvester;
#line 409 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = self->priv->harvester_signal_id;
#line 409 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_signal_handler_disconnect ((GObject*) _tmp0_, _tmp1_);
#line 410 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 410 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_media_cache_debug_statistics (_tmp2_);
#line 411 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_add_default_virtual_folders (self);
#line 412 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_container_updated ((RygelMediaContainer*) self);
#line 414 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = self->priv->filesystem_container;
#line 414 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_signal_connect_object (_tmp3_, "container-updated", (GCallback) ___lambda5__rygel_media_container_container_updated, self, 0);
#line 3181 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_add_default_virtual_folders (RygelMediaExportRootContainer* self) {
	GError * _inner_error_ = NULL;
#line 420 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 3189 "rygel-media-export-root-container.c"
	{
		const gchar* _tmp0_ = NULL;
		const gchar* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
#line 422 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp0_ = _ ("Music");
#line 422 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_root_container_add_virtual_containers_for_class (self, _tmp0_, RYGEL_MUSIC_ITEM_UPNP_CLASS, virtual_folders_music, G_N_ELEMENTS (virtual_folders_music), &_inner_error_);
#line 422 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 3200 "rygel-media-export-root-container.c"
			goto __catch37_g_error;
		}
#line 425 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp1_ = _ ("Pictures");
#line 425 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_root_container_add_virtual_containers_for_class (self, _tmp1_, RYGEL_PHOTO_ITEM_UPNP_CLASS, NULL, 0, &_inner_error_);
#line 425 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 3209 "rygel-media-export-root-container.c"
			goto __catch37_g_error;
		}
#line 427 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp2_ = _ ("Videos");
#line 427 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_root_container_add_virtual_containers_for_class (self, _tmp2_, RYGEL_VIDEO_ITEM_UPNP_CLASS, NULL, 0, &_inner_error_);
#line 427 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 3218 "rygel-media-export-root-container.c"
			goto __catch37_g_error;
		}
	}
	goto __finally37;
	__catch37_g_error:
	{
		GError* _error_ = NULL;
#line 421 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 421 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 421 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 3232 "rygel-media-export-root-container.c"
	}
	__finally37:
#line 421 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 421 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		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);
#line 421 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_clear_error (&_inner_error_);
#line 421 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 3243 "rygel-media-export-root-container.c"
	}
}


static gchar* string_slice (const gchar* self, glong start, glong end) {
	gchar* result = NULL;
	gint _tmp0_;
	gint _tmp1_;
	glong string_length;
	glong _tmp2_;
	glong _tmp5_;
	gboolean _tmp8_ = FALSE;
	glong _tmp9_;
	gboolean _tmp12_;
	gboolean _tmp13_ = FALSE;
	glong _tmp14_;
	gboolean _tmp17_;
	glong _tmp18_;
	glong _tmp19_;
	glong _tmp20_;
	glong _tmp21_;
	glong _tmp22_;
	gchar* _tmp23_ = NULL;
#line 1176 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1177 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1177 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1177 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	string_length = (glong) _tmp1_;
#line 1178 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp2_ = start;
#line 1178 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	if (_tmp2_ < ((glong) 0)) {
#line 3279 "rygel-media-export-root-container.c"
		glong _tmp3_;
		glong _tmp4_;
#line 1179 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp3_ = string_length;
#line 1179 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp4_ = start;
#line 1179 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		start = _tmp3_ + _tmp4_;
#line 3288 "rygel-media-export-root-container.c"
	}
#line 1181 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp5_ = end;
#line 1181 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	if (_tmp5_ < ((glong) 0)) {
#line 3294 "rygel-media-export-root-container.c"
		glong _tmp6_;
		glong _tmp7_;
#line 1182 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp6_ = string_length;
#line 1182 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp7_ = end;
#line 1182 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		end = _tmp6_ + _tmp7_;
#line 3303 "rygel-media-export-root-container.c"
	}
#line 1184 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp9_ = start;
#line 1184 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	if (_tmp9_ >= ((glong) 0)) {
#line 3309 "rygel-media-export-root-container.c"
		glong _tmp10_;
		glong _tmp11_;
#line 1184 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp10_ = start;
#line 1184 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp11_ = string_length;
#line 1184 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp10_ <= _tmp11_;
#line 3318 "rygel-media-export-root-container.c"
	} else {
#line 1184 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp8_ = FALSE;
#line 3322 "rygel-media-export-root-container.c"
	}
#line 1184 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp12_ = _tmp8_;
#line 1184 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp12_, NULL);
#line 1185 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp14_ = end;
#line 1185 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	if (_tmp14_ >= ((glong) 0)) {
#line 3332 "rygel-media-export-root-container.c"
		glong _tmp15_;
		glong _tmp16_;
#line 1185 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp15_ = end;
#line 1185 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp16_ = string_length;
#line 1185 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp13_ = _tmp15_ <= _tmp16_;
#line 3341 "rygel-media-export-root-container.c"
	} else {
#line 1185 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
		_tmp13_ = FALSE;
#line 3345 "rygel-media-export-root-container.c"
	}
#line 1185 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp17_ = _tmp13_;
#line 1185 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp17_, NULL);
#line 1186 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp18_ = start;
#line 1186 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp19_ = end;
#line 1186 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp18_ <= _tmp19_, NULL);
#line 1187 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp20_ = start;
#line 1187 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp21_ = end;
#line 1187 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp22_ = start;
#line 1187 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp23_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) (_tmp21_ - _tmp22_));
#line 1187 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	result = _tmp23_;
#line 1187 "/opt/gnome2/share/vala-0.18/vapi/glib-2.0.vapi"
	return result;
#line 3369 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_add_folder_definition (RygelMediaExportRootContainer* self, RygelMediaContainer* container, const gchar* item_class, RygelMediaExportFolderDefinition* definition, GError** error) {
	const gchar* _tmp0_;
	RygelMediaExportFolderDefinition _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_ = NULL;
	gchar* id;
	const gchar* _tmp4_;
	gboolean _tmp5_ = FALSE;
	RygelMediaExportQueryContainerFactory* _tmp8_ = NULL;
	RygelMediaExportQueryContainerFactory* factory;
	RygelMediaExportQueryContainerFactory* _tmp9_;
	RygelMediaExportMediaCache* _tmp10_;
	const gchar* _tmp11_;
	RygelMediaExportFolderDefinition _tmp12_;
	const gchar* _tmp13_;
	const gchar* _tmp14_ = NULL;
	RygelMediaExportQueryContainer* _tmp15_ = NULL;
	RygelMediaExportQueryContainer* query_container;
	RygelMediaExportQueryContainer* _tmp16_;
	gint _tmp17_;
	GError * _inner_error_ = NULL;
#line 432 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 432 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (container != NULL);
#line 432 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (item_class != NULL);
#line 432 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (definition != NULL);
#line 436 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = item_class;
#line 436 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = *definition;
#line 436 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = _tmp1_.definition;
#line 436 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = g_strdup_printf ("%supnp:class,%s,%s", RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_PREFIX, _tmp0_, _tmp2_);
#line 436 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	id = _tmp3_;
#line 439 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp4_ = id;
#line 439 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = g_str_has_suffix (_tmp4_, ",");
#line 439 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp5_) {
#line 3418 "rygel-media-export-root-container.c"
		const gchar* _tmp6_;
		gchar* _tmp7_ = NULL;
#line 440 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp6_ = id;
#line 440 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp7_ = string_slice (_tmp6_, (glong) 0, (glong) (-1));
#line 440 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_free0 (id);
#line 440 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		id = _tmp7_;
#line 3429 "rygel-media-export-root-container.c"
	}
#line 443 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp8_ = rygel_media_export_query_container_factory_get_default ();
#line 443 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	factory = _tmp8_;
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp9_ = factory;
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp10_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp11_ = id;
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp12_ = *definition;
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp13_ = _tmp12_.title;
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp14_ = _ (_tmp13_);
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp15_ = rygel_media_export_query_container_factory_create_from_description (_tmp9_, _tmp10_, _tmp11_, _tmp14_);
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	query_container = _tmp15_;
#line 449 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp16_ = query_container;
#line 449 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp17_ = ((RygelMediaContainer*) _tmp16_)->child_count;
#line 449 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp17_ > 0) {
#line 3457 "rygel-media-export-root-container.c"
		RygelMediaExportQueryContainer* _tmp18_;
		RygelMediaContainer* _tmp19_;
		RygelMediaExportMediaCache* _tmp20_;
		RygelMediaExportQueryContainer* _tmp21_;
#line 450 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp18_ = query_container;
#line 450 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp19_ = container;
#line 450 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		((RygelMediaObject*) _tmp18_)->parent = _tmp19_;
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp20_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp21_ = query_container;
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_media_cache_save_container (_tmp20_, (RygelMediaContainer*) _tmp21_, &_inner_error_);
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_propagate_error (error, _inner_error_);
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (query_container);
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (factory);
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (id);
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return;
#line 3486 "rygel-media-export-root-container.c"
		}
	} else {
		RygelMediaExportMediaCache* _tmp22_;
		const gchar* _tmp23_;
#line 453 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp22_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 453 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp23_ = id;
#line 453 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_media_cache_remove_by_id (_tmp22_, _tmp23_, &_inner_error_);
#line 453 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 453 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_propagate_error (error, _inner_error_);
#line 453 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (query_container);
#line 453 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (factory);
#line 453 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (id);
#line 453 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return;
#line 3509 "rygel-media-export-root-container.c"
		}
	}
#line 432 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (query_container);
#line 432 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (factory);
#line 432 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (id);
#line 3518 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_add_virtual_containers_for_class (RygelMediaExportRootContainer* self, const gchar* parent, const gchar* item_class, RygelMediaExportFolderDefinition* definitions, int definitions_length1, GError** error) {
	RygelNullContainer* _tmp0_;
	RygelNullContainer* container;
	RygelNullContainer* _tmp1_;
	RygelNullContainer* _tmp2_;
	const gchar* _tmp3_;
	RygelNullContainer* _tmp4_;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	RygelMediaExportMediaCache* _tmp7_;
	RygelNullContainer* _tmp8_;
	RygelMediaExportFolderDefinition* _tmp12_;
	gint _tmp12__length1;
	RygelMediaExportMediaCache* _tmp18_;
	RygelNullContainer* _tmp19_;
	const gchar* _tmp20_;
	gint _tmp21_ = 0;
	gint _tmp22_;
	GError * _inner_error_ = NULL;
#line 457 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 457 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (parent != NULL);
#line 457 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (item_class != NULL);
#line 462 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = rygel_null_container_new ();
#line 462 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	container = _tmp0_;
#line 463 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = container;
#line 463 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	((RygelMediaObject*) _tmp1_)->parent = (RygelMediaContainer*) self;
#line 464 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = container;
#line 464 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = parent;
#line 464 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_object_set_title ((RygelMediaObject*) _tmp2_, _tmp3_);
#line 465 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp4_ = container;
#line 465 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = item_class;
#line 465 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp6_ = g_strconcat ("virtual-parent:", _tmp5_, NULL);
#line 465 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (((RygelMediaObject*) _tmp4_)->id);
#line 465 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	((RygelMediaObject*) _tmp4_)->id = _tmp6_;
#line 466 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp7_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 466 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp8_ = container;
#line 466 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_media_cache_save_container (_tmp7_, (RygelMediaContainer*) _tmp8_, &_inner_error_);
#line 466 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 466 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 466 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (container);
#line 466 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 3585 "rygel-media-export-root-container.c"
	}
	{
		RygelMediaExportFolderDefinition* definition_collection = NULL;
		gint definition_collection_length1 = 0;
		gint _definition_collection_size_ = 0;
		gint definition_it = 0;
#line 468 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		definition_collection = virtual_folders_default;
#line 468 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		definition_collection_length1 = G_N_ELEMENTS (virtual_folders_default);
#line 468 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		for (definition_it = 0; definition_it < G_N_ELEMENTS (virtual_folders_default); definition_it = definition_it + 1) {
#line 3598 "rygel-media-export-root-container.c"
			RygelMediaExportFolderDefinition definition = {0};
#line 468 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			definition = definition_collection[definition_it];
#line 3602 "rygel-media-export-root-container.c"
			{
				RygelNullContainer* _tmp9_;
				const gchar* _tmp10_;
				RygelMediaExportFolderDefinition _tmp11_;
#line 469 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp9_ = container;
#line 469 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp10_ = item_class;
#line 469 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp11_ = definition;
#line 469 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				rygel_media_export_root_container_add_folder_definition (self, (RygelMediaContainer*) _tmp9_, _tmp10_, &_tmp11_, &_inner_error_);
#line 469 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_inner_error_ != NULL) {
#line 469 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					g_propagate_error (error, _inner_error_);
#line 469 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (container);
#line 469 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					return;
#line 3623 "rygel-media-export-root-container.c"
				}
			}
		}
	}
#line 472 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp12_ = definitions;
#line 472 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp12__length1 = definitions_length1;
#line 472 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp12_ != NULL) {
#line 3634 "rygel-media-export-root-container.c"
		RygelMediaExportFolderDefinition* _tmp13_;
		gint _tmp13__length1;
#line 473 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp13_ = definitions;
#line 473 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp13__length1 = definitions_length1;
#line 3641 "rygel-media-export-root-container.c"
		{
			RygelMediaExportFolderDefinition* definition_collection = NULL;
			gint definition_collection_length1 = 0;
			gint _definition_collection_size_ = 0;
			gint definition_it = 0;
#line 473 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			definition_collection = _tmp13_;
#line 473 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			definition_collection_length1 = _tmp13__length1;
#line 473 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			for (definition_it = 0; definition_it < _tmp13__length1; definition_it = definition_it + 1) {
#line 3653 "rygel-media-export-root-container.c"
				RygelMediaExportFolderDefinition _tmp14_ = {0};
				RygelMediaExportFolderDefinition definition = {0};
#line 473 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				rygel_media_export_folder_definition_copy (&definition_collection[definition_it], &_tmp14_);
#line 473 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				definition = _tmp14_;
#line 3660 "rygel-media-export-root-container.c"
				{
					RygelNullContainer* _tmp15_;
					const gchar* _tmp16_;
					RygelMediaExportFolderDefinition _tmp17_;
#line 474 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp15_ = container;
#line 474 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp16_ = item_class;
#line 474 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp17_ = definition;
#line 474 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					rygel_media_export_root_container_add_folder_definition (self, (RygelMediaContainer*) _tmp15_, _tmp16_, &_tmp17_, &_inner_error_);
#line 474 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					if (_inner_error_ != NULL) {
#line 474 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
						g_propagate_error (error, _inner_error_);
#line 474 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
						rygel_media_export_folder_definition_destroy (&definition);
#line 474 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
						_g_object_unref0 (container);
#line 474 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
						return;
#line 3683 "rygel-media-export-root-container.c"
					}
#line 473 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					rygel_media_export_folder_definition_destroy (&definition);
#line 3687 "rygel-media-export-root-container.c"
				}
			}
		}
	}
#line 478 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp18_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 478 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp19_ = container;
#line 478 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp20_ = ((RygelMediaObject*) _tmp19_)->id;
#line 478 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp21_ = rygel_media_export_media_cache_get_child_count (_tmp18_, _tmp20_, &_inner_error_);
#line 478 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp22_ = _tmp21_;
#line 478 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 478 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 478 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (container);
#line 478 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 3710 "rygel-media-export-root-container.c"
	}
#line 478 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp22_ == 0) {
#line 3714 "rygel-media-export-root-container.c"
		RygelMediaExportMediaCache* _tmp23_;
		RygelNullContainer* _tmp24_;
		const gchar* _tmp25_;
#line 479 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp23_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 479 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp24_ = container;
#line 479 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp25_ = ((RygelMediaObject*) _tmp24_)->id;
#line 479 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_media_cache_remove_by_id (_tmp23_, _tmp25_, &_inner_error_);
#line 479 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 479 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_propagate_error (error, _inner_error_);
#line 479 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (container);
#line 479 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return;
#line 3734 "rygel-media-export-root-container.c"
		}
	} else {
		RygelNullContainer* _tmp26_;
#line 481 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp26_ = container;
#line 481 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_container_updated ((RygelMediaContainer*) _tmp26_);
#line 3742 "rygel-media-export-root-container.c"
	}
#line 457 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (container);
#line 3746 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_class_init (RygelMediaExportRootContainerClass * klass) {
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_parent_class = g_type_class_peek_parent (klass);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_type_class_add_private (klass, sizeof (RygelMediaExportRootContainerPrivate));
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	RYGEL_MEDIA_CONTAINER_CLASS (klass)->find_object = rygel_media_export_root_container_real_find_object;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	RYGEL_MEDIA_CONTAINER_CLASS (klass)->find_object_finish = rygel_media_export_root_container_real_find_object_finish;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	RYGEL_MEDIA_EXPORT_DB_CONTAINER_CLASS (klass)->search = rygel_media_export_root_container_real_search;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	RYGEL_MEDIA_EXPORT_DB_CONTAINER_CLASS (klass)->search_finish = rygel_media_export_root_container_real_search_finish;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_media_export_root_container_finalize;
#line 3765 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_instance_init (RygelMediaExportRootContainer * self) {
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self->priv = RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_GET_PRIVATE (self);
#line 3772 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_finalize (GObject* obj) {
	RygelMediaExportRootContainer * self;
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_MEDIA_EXPORT_TYPE_ROOT_CONTAINER, RygelMediaExportRootContainer);
#line 44 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (self->priv->service);
#line 45 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (self->priv->harvester);
#line 46 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (self->priv->cancellable);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (self->priv->filesystem_container);
#line 43 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	G_OBJECT_CLASS (rygel_media_export_root_container_parent_class)->finalize (obj);
#line 3790 "rygel-media-export-root-container.c"
}


/**
 * Represents the root container.
 */
GType rygel_media_export_root_container_get_type (void) {
	static volatile gsize rygel_media_export_root_container_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_media_export_root_container_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMediaExportRootContainerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_media_export_root_container_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMediaExportRootContainer), 0, (GInstanceInitFunc) rygel_media_export_root_container_instance_init, NULL };
		GType rygel_media_export_root_container_type_id;
		rygel_media_export_root_container_type_id = g_type_register_static (RYGEL_MEDIA_EXPORT_TYPE_DB_CONTAINER, "RygelMediaExportRootContainer", &g_define_type_info, 0);
		g_once_init_leave (&rygel_media_export_root_container_type_id__volatile, rygel_media_export_root_container_type_id);
	}
	return rygel_media_export_root_container_type_id__volatile;
}



