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

/*
 * Copyright (C) 2009-2013 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 <libgupnp-av/gupnp-av.h>
#include <gee.h>
#include <rygel-core.h>
#include <glib/gi18n-lib.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_TRACKABLE_DB_CONTAINER (rygel_media_export_trackable_db_container_get_type ())
#define RYGEL_MEDIA_EXPORT_TRACKABLE_DB_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainer))
#define RYGEL_MEDIA_EXPORT_TRACKABLE_DB_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainerClass))
#define RYGEL_MEDIA_EXPORT_IS_TRACKABLE_DB_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_TRACKABLE_DB_CONTAINER))
#define RYGEL_MEDIA_EXPORT_IS_TRACKABLE_DB_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_TRACKABLE_DB_CONTAINER))
#define RYGEL_MEDIA_EXPORT_TRACKABLE_DB_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainerClass))

typedef struct _RygelMediaExportTrackableDbContainer RygelMediaExportTrackableDbContainer;
typedef struct _RygelMediaExportTrackableDbContainerClass RygelMediaExportTrackableDbContainerClass;
typedef struct _RygelMediaExportTrackableDbContainerPrivate RygelMediaExportTrackableDbContainerPrivate;

#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_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_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;
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
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 RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ROOT_CONTAINER (rygel_media_export_playlist_root_container_get_type ())
#define RYGEL_MEDIA_EXPORT_PLAYLIST_ROOT_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ROOT_CONTAINER, RygelMediaExportPlaylistRootContainer))
#define RYGEL_MEDIA_EXPORT_PLAYLIST_ROOT_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ROOT_CONTAINER, RygelMediaExportPlaylistRootContainerClass))
#define RYGEL_MEDIA_EXPORT_IS_PLAYLIST_ROOT_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ROOT_CONTAINER))
#define RYGEL_MEDIA_EXPORT_IS_PLAYLIST_ROOT_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ROOT_CONTAINER))
#define RYGEL_MEDIA_EXPORT_PLAYLIST_ROOT_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_PLAYLIST_ROOT_CONTAINER, RygelMediaExportPlaylistRootContainerClass))

typedef struct _RygelMediaExportPlaylistRootContainer RygelMediaExportPlaylistRootContainer;
typedef struct _RygelMediaExportPlaylistRootContainerClass RygelMediaExportPlaylistRootContainerClass;

#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;

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

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

struct _RygelMediaExportDBContainerClass {
	RygelMediaContainerClass parent_class;
	gint (*count_children) (RygelMediaExportDBContainer* self);
	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 _RygelMediaExportTrackableDbContainer {
	RygelMediaExportDBContainer parent_instance;
	RygelMediaExportTrackableDbContainerPrivate * priv;
};

struct _RygelMediaExportTrackableDbContainerClass {
	RygelMediaExportDBContainerClass parent_class;
	void (*remove_child) (RygelMediaExportTrackableDbContainer* self, RygelMediaObject* object, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*remove_child_finish) (RygelMediaExportTrackableDbContainer* self, GAsyncResult* _res_);
	gchar* (*get_service_reset_token) (RygelMediaExportTrackableDbContainer* self);
	void (*set_service_reset_token) (RygelMediaExportTrackableDbContainer* self, const gchar* token);
	guint32 (*get_system_update_id) (RygelMediaExportTrackableDbContainer* self);
};

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

struct _RygelMediaExportRootContainerClass {
	RygelMediaExportTrackableDbContainerClass parent_class;
};

struct _RygelMediaExportRootContainerPrivate {
	RygelMediaExportHarvester* harvester;
	GCancellable* cancellable;
	RygelMediaExportDBContainer* filesystem_container;
	gulong harvester_signal_id;
	gulong filesystem_signal_id;
	gboolean initialized;
};

struct _RygelMediaExportRootContainerFindObjectData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelMediaExportRootContainer* self;
	gchar* id;
	GCancellable* cancellable;
	RygelMediaObject* result;
	RygelMediaObject* object;
	const gchar* _tmp0_;
	GCancellable* _tmp1_;
	RygelMediaObject* _tmp2_;
	RygelMediaObject* _tmp3_;
	const gchar* _tmp4_;
	gboolean _tmp5_;
	RygelMediaExportQueryContainerFactory* factory;
	RygelMediaExportQueryContainerFactory* _tmp6_;
	RygelMediaExportQueryContainer* container;
	RygelMediaExportQueryContainerFactory* _tmp7_;
	const gchar* _tmp8_;
	RygelMediaExportQueryContainer* _tmp9_;
	RygelMediaExportQueryContainer* _tmp10_;
	RygelMediaExportQueryContainer* _tmp11_;
	const gchar* _tmp12_;
	gboolean _tmp13_;
	gchar* tmp_id;
	const gchar* _tmp14_;
	gchar* _tmp15_;
	gchar** parts;
	const gchar* _tmp16_;
	gchar** _tmp17_;
	gchar** _tmp18_;
	gint parts_length1;
	gint _parts_size_;
	gchar** _tmp19_;
	gint _tmp19__length1;
	RygelMediaObject* _tmp20_;
	gchar** _tmp21_;
	gint _tmp21__length1;
	const gchar* _tmp22_;
	GCancellable* _tmp23_;
	RygelMediaObject* _tmp24_;
	RygelMediaObject* _tmp25_;
	RygelMediaObject* _tmp26_;
	RygelMediaObject* _tmp27_;
	const gchar* _tmp28_;
	const gchar* _tmp29_;
	RygelMediaObject* _tmp30_;
	const gchar* _tmp31_;
	RygelMediaExportQueryContainerFactory* _vala1_factory;
	RygelMediaExportQueryContainerFactory* _tmp32_;
	gchar* container_id;
	gchar** _tmp33_;
	gint _tmp33__length1;
	const gchar* _tmp34_;
	gchar* _tmp35_;
	RygelMediaExportQueryContainer* _vala1_container;
	RygelMediaExportQueryContainerFactory* _tmp36_;
	const gchar* _tmp37_;
	RygelMediaExportQueryContainer* _tmp38_;
	RygelMediaExportQueryContainer* _tmp39_;
	RygelMediaObject* _tmp40_;
	RygelMediaExportQueryContainer* _tmp41_;
	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_;
	RygelMediaObjects* _tmp1_;
	RygelSearchExpression* _tmp2_;
	guint _tmp3_;
	guint _tmp4_;
	const gchar* _tmp5_;
	GCancellable* _tmp6_;
	guint _tmp7_;
	RygelMediaObjects* _tmp8_;
	RygelMediaObjects* list;
	RygelMediaContainer* query_container;
	gchar* upnp_class;
	RygelSearchExpression* _tmp9_;
	RygelRelationalExpression* relational_expression;
	RygelSearchExpression* _tmp10_;
	RygelRelationalExpression* _tmp11_;
	RygelRelationalExpression* _tmp12_;
	RygelMediaContainer* _tmp13_;
	RygelRelationalExpression* _tmp14_;
	gconstpointer _tmp15_;
	gchar* _tmp16_;
	RygelSearchExpression* _tmp17_;
	RygelMediaContainer* _tmp18_;
	gboolean _tmp19_;
	RygelMediaContainer* _tmp20_;
	RygelMediaObjects* _tmp21_;
	RygelMediaContainer* _tmp22_;
	guint _tmp23_;
	guint _tmp24_;
	const gchar* _tmp25_;
	GCancellable* _tmp26_;
	RygelMediaObjects* _tmp27_;
	RygelMediaContainer* _tmp28_;
	gint _tmp29_;
	gint _tmp30_;
	const gchar* _tmp31_;
	RygelMediaObjects* _object_list;
	RygelMediaObjects* _tmp32_;
	RygelMediaObjects* _tmp33_;
	gint _object_size;
	RygelMediaObjects* _tmp34_;
	gint _tmp35_;
	gint _tmp36_;
	gint _object_index;
	gint _tmp37_;
	gint _tmp38_;
	gint _tmp39_;
	RygelMediaObject* object;
	RygelMediaObjects* _tmp40_;
	gint _tmp41_;
	gpointer _tmp42_;
	RygelMediaObject* _tmp43_;
	const gchar* _tmp44_;
	RygelMediaObjects* _tmp45_;
	RygelSearchExpression* _tmp46_;
	guint _tmp47_;
	guint _tmp48_;
	const gchar* _tmp49_;
	GCancellable* _tmp50_;
	guint _tmp51_;
	RygelMediaObjects* _tmp52_;
	GError * _inner_error_;
};

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 ()

static gpointer rygel_media_export_root_container_parent_class = NULL;
static RygelMediaExportRootContainer* rygel_media_export_root_container_instance;
static RygelMediaExportRootContainer* rygel_media_export_root_container_instance = 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_trackable_db_container_get_type (void) G_GNUC_CONST;
GType rygel_media_export_root_container_get_type (void) G_GNUC_CONST;
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 ","
void rygel_media_export_root_container_ensure_exists (GError** error);
void rygel_media_export_media_cache_ensure_exists (GError** error);
static RygelMediaExportRootContainer* rygel_media_export_root_container_new (void);
static RygelMediaExportRootContainer* rygel_media_export_root_container_construct (GType object_type);
RygelMediaExportRootContainer* rygel_media_export_root_container_get_instance (void);
RygelMediaExportDBContainer* rygel_media_export_root_container_get_filesystem_container (RygelMediaExportRootContainer* self);
void rygel_media_export_root_container_shutdown (RygelMediaExportRootContainer* self);
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_hashed_id (RygelMediaExportQueryContainerFactory* self, const gchar* id, const gchar* name);
#define RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_ITEM_PREFIX "virtual-id:"
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 RygelMediaContainer* 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);
RygelMediaExportPlaylistRootContainer* rygel_media_export_playlist_root_container_new (void);
RygelMediaExportPlaylistRootContainer* rygel_media_export_playlist_root_container_construct (GType object_type);
GType rygel_media_export_playlist_root_container_get_type (void) G_GNUC_CONST;
RygelMediaExportQueryContainer* rygel_media_export_query_container_factory_create_from_description_id (RygelMediaExportQueryContainerFactory* self, const gchar* definition_id, const gchar* name);
gchar* rygel_media_export_query_container_factory_get_virtual_container_definition (RygelMediaExportQueryContainerFactory* self, const gchar* hash);
static guint32 rygel_media_export_root_container_real_get_system_update_id (RygelMediaExportTrackableDbContainer* base);
guint32 rygel_media_export_trackable_db_container_get_system_update_id (RygelMediaExportTrackableDbContainer* self);
static gboolean __lambda6_ (RygelMediaExportRootContainer* self);
static void rygel_media_export_root_container_init (RygelMediaExportRootContainer* self, GError** error);
static gboolean ___lambda6__gsource_func (gpointer self);
void rygel_media_export_media_cache_drop_virtual_folders (RygelMediaExportMediaCache* self);
void rygel_media_export_media_cache_save_container (RygelMediaExportMediaCache* self, RygelMediaContainer* container, GError** error);
RygelMediaExportTrackableDbContainer* rygel_media_export_trackable_db_container_new (const gchar* id, const gchar* title);
RygelMediaExportTrackableDbContainer* rygel_media_export_trackable_db_container_construct (GType object_type, const gchar* id, const gchar* title);
GQuark rygel_media_export_database_error_quark (void);
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);
gchar* rygel_media_export_media_cache_get_id (GFile* file);
void rygel_media_export_media_cache_remove_by_id (RygelMediaExportMediaCache* self, const gchar* id, GError** error);
void rygel_media_export_media_cache_rebuild_exists_cache (RygelMediaExportMediaCache* self, GError** error);
void rygel_media_export_harvester_schedule_locations (RygelMediaExportHarvester* self, RygelMediaContainer* parent);
static void rygel_media_export_root_container_root_updated (RygelMediaExportRootContainer* self);
static void rygel_media_export_root_container_on_setting_changed (RygelMediaExportRootContainer* self, const gchar* section, const gchar* key);
static void _rygel_media_export_root_container_on_setting_changed_rygel_configuration_setting_changed (RygelConfiguration* _sender, const gchar* section, const gchar* key, gpointer self);
#define RYGEL_MEDIA_EXPORT_PLUGIN_NAME "MediaExport"
static void rygel_media_export_root_container_handle_uri_config_change (RygelMediaExportRootContainer* self);
static void rygel_media_export_root_container_handle_virtual_folder_change (RygelMediaExportRootContainer* self);
void rygel_media_export_harvester_cancel (RygelMediaExportHarvester* self, GFile* file);
void rygel_media_export_harvester_schedule (RygelMediaExportHarvester* self, GFile* file, RygelMediaContainer* parent);
static void rygel_media_export_root_container_add_default_virtual_folders (RygelMediaExportRootContainer* self);
void rygel_media_export_media_cache_debug_statistics (RygelMediaExportMediaCache* self);
static void __lambda7_ (RygelMediaExportRootContainer* self);
static void ___lambda7__rygel_media_container_container_updated (RygelMediaContainer* _sender, RygelMediaContainer* container, RygelMediaObject* object, RygelObjectEventType event_type, gboolean sub_tree_update, 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);
GType rygel_null_container_get_type (void) G_GNUC_CONST;
RygelNullContainer* rygel_null_container_new (const gchar* id, RygelMediaContainer* parent, const gchar* title);
RygelNullContainer* rygel_null_container_construct (GType object_type, const gchar* id, RygelMediaContainer* parent, const gchar* title);
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);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);

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_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#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 459 "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 468 "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 480 "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 489 "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;
}


void rygel_media_export_root_container_ensure_exists (GError** error) {
	RygelMediaExportRootContainer* _tmp0_ = NULL;
	GError * _inner_error_ = NULL;
#line 65 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = rygel_media_export_root_container_instance;
#line 65 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp0_ == NULL) {
#line 511 "rygel-media-export-root-container.c"
		RygelMediaExportRootContainer* _tmp1_ = NULL;
#line 66 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_media_cache_ensure_exists (&_inner_error_);
#line 66 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 66 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_propagate_error (error, _inner_error_);
#line 66 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return;
#line 521 "rygel-media-export-root-container.c"
		}
#line 67 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp1_ = rygel_media_export_root_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 = _tmp1_;
#line 529 "rygel-media-export-root-container.c"
	}
}


/**
     * Get the single instance of the root container.
     */
static gpointer _g_object_ref0 (gpointer self) {
#line 75 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return self ? g_object_ref (self) : NULL;
#line 540 "rygel-media-export-root-container.c"
}


RygelMediaExportRootContainer* rygel_media_export_root_container_get_instance (void) {
	RygelMediaExportRootContainer* result = NULL;
	RygelMediaExportRootContainer* _tmp0_ = NULL;
	RygelMediaExportRootContainer* _tmp1_ = NULL;
#line 75 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = rygel_media_export_root_container_instance;
#line 75 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 75 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = _tmp1_;
#line 75 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 556 "rygel-media-export-root-container.c"
}


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


void rygel_media_export_root_container_shutdown (RygelMediaExportRootContainer* self) {
	GCancellable* _tmp0_ = NULL;
#line 82 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 83 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = self->priv->cancellable;
#line 83 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_cancellable_cancel (_tmp0_);
#line 586 "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 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (_data_->id);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->cancellable);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->result);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->self);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_slice_free (RygelMediaExportRootContainerFindObjectData, _data_);
#line 603 "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_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self = (RygelMediaExportRootContainer*) base;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_ = g_slice_new0 (RygelMediaExportRootContainerFindObjectData);
#line 47 "/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 47 "/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 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->self = _tmp0_;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = id;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (_data_->id);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->id = _tmp2_;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = cancellable;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->cancellable);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->cancellable = _tmp4_;
#line 47 "/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 645 "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 47 "/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 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 656 "rygel-media-export-root-container.c"
	}
#line 47 "/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 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = _data_->result;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->result = NULL;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 666 "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 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_ = _user_data_;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_source_object_ = source_object;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_res_ = _res_;
#line 91 "/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 680 "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 1241 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1241 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (old != NULL, NULL);
#line 1241 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (replacement != NULL, NULL);
#line 693 "rygel-media-export-root-container.c"
	{
		GRegex* regex = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		GRegex* _tmp3_ = NULL;
		GRegex* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		GRegex* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp0_ = old;
#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp1_;
#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp4_ = _tmp3_;
#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_g_free0 (_tmp2_);
#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		regex = _tmp4_;
#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		if (_inner_error_ != NULL) {
#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 723 "rygel-media-export-root-container.c"
				goto __catch40_g_regex_error;
			}
#line 1243 "/usr/share/vala-0.22/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 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
			return NULL;
#line 732 "rygel-media-export-root-container.c"
		}
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp6_ = regex;
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp7_ = replacement;
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) (-1), 0, _tmp7_, 0, &_inner_error_);
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp5_ = _tmp8_;
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		if (_inner_error_ != NULL) {
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 748 "rygel-media-export-root-container.c"
				goto __catch40_g_regex_error;
			}
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1244 "/usr/share/vala-0.22/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 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
			return NULL;
#line 759 "rygel-media-export-root-container.c"
		}
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		result = _tmp5_;
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_g_regex_unref0 (regex);
#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		return result;
#line 767 "rygel-media-export-root-container.c"
	}
	goto __finally40;
	__catch40_g_regex_error:
	{
		GError* e = NULL;
#line 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		e = _inner_error_;
#line 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_inner_error_ = NULL;
#line 1246 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		g_assert_not_reached ();
#line 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_g_error_free0 (e);
#line 781 "rygel-media-export-root-container.c"
	}
	__finally40:
#line 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_inner_error_ != NULL) {
#line 1242 "/usr/share/vala-0.22/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 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		g_clear_error (&_inner_error_);
#line 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		return NULL;
#line 792 "rygel-media-export-root-container.c"
	}
}


static gboolean rygel_media_export_root_container_real_find_object_co (RygelMediaExportRootContainerFindObjectData* _data_) {
#line 88 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	switch (_data_->_state_) {
#line 88 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 0:
#line 802 "rygel-media-export-root-container.c"
		goto _state_0;
#line 88 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 1:
#line 806 "rygel-media-export-root-container.c"
		goto _state_1;
#line 88 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 2:
#line 810 "rygel-media-export-root-container.c"
		goto _state_2;
		default:
#line 88 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_assert_not_reached ();
#line 815 "rygel-media-export-root-container.c"
	}
	_state_0:
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp0_ = NULL;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp0_ = _data_->id;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp1_ = NULL;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp1_ = _data_->cancellable;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_state_ = 1;
#line 91 "/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_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainer), _data_->_tmp0_, _data_->_tmp1_, rygel_media_export_root_container_find_object_ready, _data_);
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return FALSE;
#line 832 "rygel-media-export-root-container.c"
	_state_1:
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp2_ = NULL;
#line 91 "/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_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainer), _data_->_res_, &_data_->_inner_error_);
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->object = _data_->_tmp2_;
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_inner_error_ != NULL) {
#line 91 "/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 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_error_free (_data_->_inner_error_);
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_state_ == 0) {
#line 91 "/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 850 "rygel-media-export-root-container.c"
		} else {
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 854 "rygel-media-export-root-container.c"
		}
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_object_unref (_data_->_async_result);
#line 91 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 860 "rygel-media-export-root-container.c"
	}
#line 93 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp3_ = NULL;
#line 93 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp3_ = _data_->object;
#line 93 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_tmp3_ != NULL) {
#line 94 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->result = _data_->object;
#line 94 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_state_ == 0) {
#line 94 "/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 874 "rygel-media-export-root-container.c"
		} else {
#line 94 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 878 "rygel-media-export-root-container.c"
		}
#line 94 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_object_unref (_data_->_async_result);
#line 94 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 884 "rygel-media-export-root-container.c"
	}
#line 97 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp4_ = NULL;
#line 97 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp4_ = _data_->id;
#line 97 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp5_ = FALSE;
#line 97 "/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 97 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_tmp5_) {
#line 98 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp6_ = NULL;
#line 98 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp6_ = rygel_media_export_query_container_factory_get_default ();
#line 98 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->factory = _data_->_tmp6_;
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp7_ = NULL;
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp7_ = _data_->factory;
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp8_ = NULL;
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp8_ = _data_->id;
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp9_ = NULL;
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp9_ = rygel_media_export_query_container_factory_create_from_hashed_id (_data_->_tmp7_, _data_->_tmp8_, "");
#line 99 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->container = _data_->_tmp9_;
#line 100 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp10_ = NULL;
#line 100 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp10_ = _data_->container;
#line 100 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_tmp10_ != NULL) {
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp11_ = NULL;
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp11_ = _data_->container;
#line 101 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			rygel_media_object_set_parent ((RygelMediaObject*) _data_->_tmp11_, (RygelMediaContainer*) _data_->self);
#line 928 "rygel-media-export-root-container.c"
		}
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->result = (RygelMediaObject*) _data_->container;
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->factory);
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->object);
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_state_ == 0) {
#line 104 "/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 940 "rygel-media-export-root-container.c"
		} else {
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 944 "rygel-media-export-root-container.c"
		}
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_object_unref (_data_->_async_result);
#line 104 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 950 "rygel-media-export-root-container.c"
	} else {
#line 105 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp12_ = NULL;
#line 105 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp12_ = _data_->id;
#line 105 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp13_ = FALSE;
#line 105 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp13_ = g_str_has_prefix (_data_->_tmp12_, RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_ITEM_PREFIX);
#line 105 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_tmp13_) {
#line 106 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp14_ = NULL;
#line 106 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp14_ = _data_->id;
#line 106 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp15_ = NULL;
#line 106 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp15_ = string_replace (_data_->_tmp14_, RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_ITEM_PREFIX, "");
#line 106 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->tmp_id = _data_->_tmp15_;
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp16_ = NULL;
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp16_ = _data_->tmp_id;
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp17_ = NULL;
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp18_ = NULL;
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp18_ = _data_->_tmp17_ = g_strsplit (_data_->_tmp16_, ":", 0);
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->parts_length1 = 0;
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_parts_size_ = 0;
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->parts = _data_->_tmp18_;
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->parts_length1 = _vala_array_length (_data_->_tmp17_);
#line 107 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_parts_size_ = _data_->parts_length1;
#line 108 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp19_ = NULL;
#line 108 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp19__length1 = 0;
#line 108 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp19_ = _data_->parts;
#line 108 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp19__length1 = _data_->parts_length1;
#line 108 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_data_->_tmp19__length1 != 2) {
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->result = NULL;
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->parts = (_vala_array_free (_data_->parts, _data_->parts_length1, (GDestroyNotify) g_free), NULL);
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_free0 (_data_->tmp_id);
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_data_->object);
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_data_->_state_ == 0) {
#line 109 "/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 109 "/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 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_object_unref (_data_->_async_result);
#line 109 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				return FALSE;
#line 1024 "rygel-media-export-root-container.c"
			}
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp21_ = NULL;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp21__length1 = 0;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp21_ = _data_->parts;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp21__length1 = _data_->parts_length1;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp22_ = NULL;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp22_ = _data_->_tmp21_[1];
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp23_ = NULL;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp23_ = _data_->cancellable;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_state_ = 2;
#line 112 "/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_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainer), _data_->_tmp22_, _data_->_tmp23_, rygel_media_export_root_container_find_object_ready, _data_);
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return FALSE;
#line 1048 "rygel-media-export-root-container.c"
			_state_2:
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp24_ = NULL;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp24_ = 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_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainer), _data_->_res_, &_data_->_inner_error_);
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp20_ = _data_->_tmp24_;
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_data_->_inner_error_ != NULL) {
#line 112 "/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 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_error_free (_data_->_inner_error_);
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->parts = (_vala_array_free (_data_->parts, _data_->parts_length1, (GDestroyNotify) g_free), NULL);
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_free0 (_data_->tmp_id);
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_data_->object);
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_data_->_state_ == 0) {
#line 112 "/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 1072 "rygel-media-export-root-container.c"
				} else {
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 1076 "rygel-media-export-root-container.c"
				}
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_object_unref (_data_->_async_result);
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				return FALSE;
#line 1082 "rygel-media-export-root-container.c"
			}
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_data_->object);
#line 112 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->object = _data_->_tmp20_;
#line 114 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp25_ = NULL;
#line 114 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp25_ = _data_->object;
#line 114 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_data_->_tmp25_ == NULL) {
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->result = NULL;
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->parts = (_vala_array_free (_data_->parts, _data_->parts_length1, (GDestroyNotify) g_free), NULL);
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_free0 (_data_->tmp_id);
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_data_->object);
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_data_->_state_ == 0) {
#line 115 "/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 1106 "rygel-media-export-root-container.c"
				} else {
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 1110 "rygel-media-export-root-container.c"
				}
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_object_unref (_data_->_async_result);
#line 115 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				return FALSE;
#line 1116 "rygel-media-export-root-container.c"
			}
#line 118 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp26_ = NULL;
#line 118 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp26_ = _data_->object;
#line 118 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp27_ = NULL;
#line 118 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp27_ = _data_->object;
#line 118 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp28_ = NULL;
#line 118 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp28_ = rygel_media_object_get_id (_data_->_tmp27_);
#line 118 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp29_ = NULL;
#line 118 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp29_ = _data_->_tmp28_;
#line 118 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			rygel_media_object_set_ref_id (_data_->_tmp26_, _data_->_tmp29_);
#line 119 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp30_ = NULL;
#line 119 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp30_ = _data_->object;
#line 119 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp31_ = NULL;
#line 119 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp31_ = _data_->id;
#line 119 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			rygel_media_object_set_id (_data_->_tmp30_, _data_->_tmp31_);
#line 121 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp32_ = NULL;
#line 121 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp32_ = rygel_media_export_query_container_factory_get_default ();
#line 121 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_vala1_factory = _data_->_tmp32_;
#line 122 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp33_ = NULL;
#line 122 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp33__length1 = 0;
#line 122 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp33_ = _data_->parts;
#line 122 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp33__length1 = _data_->parts_length1;
#line 122 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp34_ = NULL;
#line 122 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp34_ = _data_->_tmp33_[0];
#line 122 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp35_ = NULL;
#line 122 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp35_ = g_strconcat (RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_PREFIX, _data_->_tmp34_, NULL);
#line 122 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->container_id = _data_->_tmp35_;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp36_ = NULL;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp36_ = _data_->_vala1_factory;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp37_ = NULL;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp37_ = _data_->container_id;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp38_ = NULL;
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp38_ = rygel_media_export_query_container_factory_create_from_hashed_id (_data_->_tmp36_, _data_->_tmp37_, "");
#line 123 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_vala1_container = _data_->_tmp38_;
#line 124 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp39_ = NULL;
#line 124 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp39_ = _data_->_vala1_container;
#line 124 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_data_->_tmp39_ == NULL) {
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->result = NULL;
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_data_->_vala1_container);
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_free0 (_data_->container_id);
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_data_->_vala1_factory);
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->parts = (_vala_array_free (_data_->parts, _data_->parts_length1, (GDestroyNotify) g_free), NULL);
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_free0 (_data_->tmp_id);
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_data_->object);
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_data_->_state_ == 0) {
#line 125 "/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 1208 "rygel-media-export-root-container.c"
				} else {
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					g_simple_async_result_complete (_data_->_async_result);
#line 1212 "rygel-media-export-root-container.c"
				}
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_object_unref (_data_->_async_result);
#line 125 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				return FALSE;
#line 1218 "rygel-media-export-root-container.c"
			}
#line 128 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp40_ = NULL;
#line 128 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp40_ = _data_->object;
#line 128 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp41_ = NULL;
#line 128 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->_tmp41_ = _data_->_vala1_container;
#line 128 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			rygel_media_object_set_parent_ref (_data_->_tmp40_, (RygelMediaContainer*) _data_->_tmp41_);
#line 105 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_data_->_vala1_container);
#line 105 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (_data_->container_id);
#line 105 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_data_->_vala1_factory);
#line 105 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_data_->parts = (_vala_array_free (_data_->parts, _data_->parts_length1, (GDestroyNotify) g_free), NULL);
#line 105 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (_data_->tmp_id);
#line 1240 "rygel-media-export-root-container.c"
		}
	}
#line 131 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->result = _data_->object;
#line 131 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_state_ == 0) {
#line 131 "/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 1249 "rygel-media-export-root-container.c"
	} else {
#line 131 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1253 "rygel-media-export-root-container.c"
	}
#line 131 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_object_unref (_data_->_async_result);
#line 131 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return FALSE;
#line 88 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->object);
#line 88 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_state_ == 0) {
#line 88 "/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 1265 "rygel-media-export-root-container.c"
	} else {
#line 88 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1269 "rygel-media-export-root-container.c"
	}
#line 88 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_object_unref (_data_->_async_result);
#line 88 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return FALSE;
#line 1275 "rygel-media-export-root-container.c"
}


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


static gpointer _rygel_search_expression_ref0 (gpointer self) {
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return self ? rygel_search_expression_ref (self) : NULL;
#line 1301 "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_ = NULL;
	RygelSearchExpression* _tmp1_ = NULL;
	RygelSearchExpression* _tmp2_ = NULL;
	guint _tmp3_ = 0U;
	guint _tmp4_ = 0U;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	GCancellable* _tmp7_ = NULL;
	GCancellable* _tmp8_ = NULL;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self = (RygelMediaExportRootContainer*) base;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_ = g_slice_new0 (RygelMediaExportRootContainerSearchData);
#line 47 "/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 47 "/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 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->self = _tmp0_;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = expression;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = _rygel_search_expression_ref0 (_tmp1_);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_rygel_search_expression_unref0 (_data_->expression);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->expression = _tmp2_;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = offset;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->offset = _tmp3_;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp4_ = max_count;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->max_count = _tmp4_;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = sort_criteria;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp6_ = g_strdup (_tmp5_);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (_data_->sort_criteria);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->sort_criteria = _tmp6_;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp7_ = cancellable;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp8_ = _g_object_ref0 (_tmp7_);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->cancellable);
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->cancellable = _tmp8_;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_real_search_co (_data_);
#line 1363 "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 47 "/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 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 1374 "rygel-media-export-root-container.c"
	}
#line 47 "/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 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (total_matches) {
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		*total_matches = _data_->total_matches;
#line 1382 "rygel-media-export-root-container.c"
	}
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = _data_->result;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->result = NULL;
#line 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 1390 "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 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_ = _user_data_;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_source_object_ = source_object;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_res_ = _res_;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_real_search_co (_data_);
#line 1404 "rygel-media-export-root-container.c"
}


static gboolean rygel_media_export_root_container_real_search_co (RygelMediaExportRootContainerSearchData* _data_) {
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	switch (_data_->_state_) {
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 0:
#line 1413 "rygel-media-export-root-container.c"
		goto _state_0;
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 1:
#line 1417 "rygel-media-export-root-container.c"
		goto _state_1;
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 2:
#line 1421 "rygel-media-export-root-container.c"
		goto _state_2;
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		case 3:
#line 1425 "rygel-media-export-root-container.c"
		goto _state_3;
		default:
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_assert_not_reached ();
#line 1430 "rygel-media-export-root-container.c"
	}
	_state_0:
#line 141 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp0_ = NULL;
#line 141 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp0_ = _data_->expression;
#line 141 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_tmp0_ == NULL) {
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp2_ = NULL;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp2_ = _data_->expression;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp3_ = 0U;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp3_ = _data_->offset;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp4_ = 0U;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp4_ = _data_->max_count;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp5_ = NULL;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp5_ = _data_->sort_criteria;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp6_ = NULL;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp6_ = _data_->cancellable;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp7_ = 0U;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_state_ = 1;
#line 142 "/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 ((RygelMediaExportDBContainer*) G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_MEDIA_EXPORT_TYPE_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainer), _data_->_tmp2_, _data_->_tmp3_, _data_->_tmp4_, _data_->_tmp5_, _data_->_tmp6_, rygel_media_export_root_container_search_ready, _data_);
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1467 "rygel-media-export-root-container.c"
		_state_1:
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp8_ = NULL;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp8_ = RYGEL_MEDIA_EXPORT_DB_CONTAINER_CLASS (rygel_media_export_root_container_parent_class)->search_finish ((RygelMediaExportDBContainer*) G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_MEDIA_EXPORT_TYPE_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainer), _data_->_res_, &_data_->_tmp7_, &_data_->_inner_error_);
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->total_matches = _data_->_tmp7_;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp1_ = _data_->_tmp8_;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_inner_error_ != NULL) {
#line 142 "/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 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_error_free (_data_->_inner_error_);
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_data_->_state_ == 0) {
#line 142 "/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 1487 "rygel-media-export-root-container.c"
			} else {
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1491 "rygel-media-export-root-container.c"
			}
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_object_unref (_data_->_async_result);
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return FALSE;
#line 1497 "rygel-media-export-root-container.c"
		}
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->result = _data_->_tmp1_;
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_state_ == 0) {
#line 142 "/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 1505 "rygel-media-export-root-container.c"
		} else {
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1509 "rygel-media-export-root-container.c"
		}
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_object_unref (_data_->_async_result);
#line 142 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1515 "rygel-media-export-root-container.c"
	}
#line 151 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->query_container = NULL;
#line 152 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->upnp_class = NULL;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp9_ = NULL;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp9_ = _data_->expression;
#line 154 "/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 155 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp10_ = NULL;
#line 155 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp10_ = _data_->expression;
#line 155 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp11_ = NULL;
#line 155 "/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 155 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->relational_expression = _data_->_tmp11_;
#line 157 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp12_ = NULL;
#line 157 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp12_ = _data_->relational_expression;
#line 157 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp13_ = NULL;
#line 157 "/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 157 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->query_container);
#line 157 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->query_container = _data_->_tmp13_;
#line 159 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp14_ = NULL;
#line 159 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp14_ = _data_->relational_expression;
#line 159 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp15_ = NULL;
#line 159 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp15_ = ((RygelSearchExpression*) _data_->_tmp14_)->operand2;
#line 159 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp16_ = NULL;
#line 159 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp16_ = g_strdup ((const gchar*) _data_->_tmp15_);
#line 159 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_free0 (_data_->upnp_class);
#line 159 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->upnp_class = _data_->_tmp16_;
#line 154 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_rygel_search_expression_unref0 (_data_->relational_expression);
#line 1567 "rygel-media-export-root-container.c"
	} else {
#line 160 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp17_ = NULL;
#line 160 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp17_ = _data_->expression;
#line 160 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp18_ = NULL;
#line 160 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp19_ = FALSE;
#line 160 "/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 160 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->query_container);
#line 160 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->query_container = _data_->_tmp18_;
#line 160 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_tmp19_) {
#line 1585 "rygel-media-export-root-container.c"
		}
	}
#line 165 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp20_ = NULL;
#line 165 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_data_->_tmp20_ = _data_->query_container;
#line 165 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_tmp20_ != NULL) {
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp22_ = NULL;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp22_ = _data_->query_container;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp23_ = 0U;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp23_ = _data_->offset;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp24_ = 0U;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp24_ = _data_->max_count;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp25_ = NULL;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp25_ = _data_->sort_criteria;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp26_ = NULL;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp26_ = _data_->cancellable;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_state_ = 2;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_container_get_children (_data_->_tmp22_, _data_->_tmp23_, _data_->_tmp24_, _data_->_tmp25_, _data_->_tmp26_, rygel_media_export_root_container_search_ready, _data_);
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1620 "rygel-media-export-root-container.c"
		_state_2:
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp27_ = NULL;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp27_ = rygel_media_container_get_children_finish (_data_->_tmp22_, _data_->_res_, &_data_->_inner_error_);
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp21_ = _data_->_tmp27_;
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_inner_error_ != NULL) {
#line 166 "/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 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_error_free (_data_->_inner_error_);
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (_data_->upnp_class);
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_data_->query_container);
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_data_->list);
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_data_->_state_ == 0) {
#line 166 "/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 1644 "rygel-media-export-root-container.c"
			} else {
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1648 "rygel-media-export-root-container.c"
			}
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_object_unref (_data_->_async_result);
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return FALSE;
#line 1654 "rygel-media-export-root-container.c"
		}
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->list);
#line 166 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->list = _data_->_tmp21_;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp28_ = NULL;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp28_ = _data_->query_container;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp29_ = 0;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp29_ = rygel_media_container_get_child_count (_data_->_tmp28_);
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp30_ = 0;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp30_ = _data_->_tmp29_;
#line 170 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->total_matches = (guint) _data_->_tmp30_;
#line 172 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp31_ = NULL;
#line 172 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp31_ = _data_->upnp_class;
#line 172 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_tmp31_ != NULL) {
#line 1680 "rygel-media-export-root-container.c"
			{
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp32_ = NULL;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp32_ = _data_->list;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp33_ = NULL;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp33_ = _g_object_ref0 (_data_->_tmp32_);
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_object_list = _data_->_tmp33_;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp34_ = NULL;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp34_ = _data_->_object_list;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp35_ = 0;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp35_ = gee_abstract_collection_get_size ((GeeCollection*) _data_->_tmp34_);
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp36_ = 0;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_tmp36_ = _data_->_tmp35_;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_object_size = _data_->_tmp36_;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_data_->_object_index = -1;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				while (TRUE) {
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp37_ = 0;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp37_ = _data_->_object_index;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_object_index = _data_->_tmp37_ + 1;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp38_ = 0;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp38_ = _data_->_object_index;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp39_ = 0;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp39_ = _data_->_object_size;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					if (!(_data_->_tmp38_ < _data_->_tmp39_)) {
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
						break;
#line 1728 "rygel-media-export-root-container.c"
					}
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp40_ = NULL;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp40_ = _data_->_object_list;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp41_ = 0;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp41_ = _data_->_object_index;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp42_ = NULL;
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp42_ = gee_abstract_list_get ((GeeAbstractList*) _data_->_tmp40_, _data_->_tmp41_);
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->object = (RygelMediaObject*) _data_->_tmp42_;
#line 174 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp43_ = NULL;
#line 174 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp43_ = _data_->object;
#line 174 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp44_ = NULL;
#line 174 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_data_->_tmp44_ = _data_->upnp_class;
#line 174 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					rygel_media_object_set_upnp_class (_data_->_tmp43_, _data_->_tmp44_);
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (_data_->object);
#line 1756 "rygel-media-export-root-container.c"
				}
#line 173 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_data_->_object_list);
#line 1760 "rygel-media-export-root-container.c"
			}
		}
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->result = _data_->list;
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_free0 (_data_->upnp_class);
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->query_container);
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_state_ == 0) {
#line 178 "/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 1773 "rygel-media-export-root-container.c"
		} else {
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1777 "rygel-media-export-root-container.c"
		}
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_object_unref (_data_->_async_result);
#line 178 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1783 "rygel-media-export-root-container.c"
	} else {
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp46_ = NULL;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp46_ = _data_->expression;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp47_ = 0U;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp47_ = _data_->offset;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp48_ = 0U;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp48_ = _data_->max_count;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp49_ = NULL;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp49_ = _data_->sort_criteria;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp50_ = NULL;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp50_ = _data_->cancellable;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp51_ = 0U;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_state_ = 3;
#line 180 "/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 ((RygelMediaExportDBContainer*) G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_MEDIA_EXPORT_TYPE_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainer), _data_->_tmp46_, _data_->_tmp47_, _data_->_tmp48_, _data_->_tmp49_, _data_->_tmp50_, rygel_media_export_root_container_search_ready, _data_);
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1813 "rygel-media-export-root-container.c"
		_state_3:
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp52_ = NULL;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp52_ = RYGEL_MEDIA_EXPORT_DB_CONTAINER_CLASS (rygel_media_export_root_container_parent_class)->search_finish ((RygelMediaExportDBContainer*) G_TYPE_CHECK_INSTANCE_CAST (_data_->self, RYGEL_MEDIA_EXPORT_TYPE_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainer), _data_->_res_, &_data_->_tmp51_, &_data_->_inner_error_);
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->total_matches = _data_->_tmp51_;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->_tmp45_ = _data_->_tmp52_;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_inner_error_ != NULL) {
#line 180 "/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 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_error_free (_data_->_inner_error_);
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (_data_->upnp_class);
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_data_->query_container);
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_data_->list);
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_data_->_state_ == 0) {
#line 180 "/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 1839 "rygel-media-export-root-container.c"
			} else {
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1843 "rygel-media-export-root-container.c"
			}
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_object_unref (_data_->_async_result);
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return FALSE;
#line 1849 "rygel-media-export-root-container.c"
		}
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_data_->result = _data_->_tmp45_;
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_free0 (_data_->upnp_class);
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->query_container);
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_data_->list);
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_data_->_state_ == 0) {
#line 180 "/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 1863 "rygel-media-export-root-container.c"
		} else {
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1867 "rygel-media-export-root-container.c"
		}
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_object_unref (_data_->_async_result);
#line 180 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 1873 "rygel-media-export-root-container.c"
	}
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (_data_->upnp_class);
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->query_container);
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_data_->list);
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_data_->_state_ == 0) {
#line 134 "/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 1885 "rygel-media-export-root-container.c"
	} else {
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1889 "rygel-media-export-root-container.c"
	}
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_object_unref (_data_->_async_result);
#line 134 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return FALSE;
#line 1895 "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* config = NULL;
	RygelMetaConfig* _tmp0_ = NULL;
	GeeArrayList* _tmp5_ = NULL;
	GFile* home_dir = NULL;
	const gchar* _tmp6_ = NULL;
	GFile* _tmp7_ = NULL;
	const gchar* pictures_dir = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* videos_dir = NULL;
	const gchar* _tmp9_ = NULL;
	const gchar* music_dir = NULL;
	const gchar* _tmp10_ = NULL;
	GError * _inner_error_ = NULL;
#line 191 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 195 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = rygel_meta_config_get_default ();
#line 195 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	config = _tmp0_;
#line 1922 "rygel-media-export-root-container.c"
	{
		GeeArrayList* _tmp1_ = NULL;
		RygelMetaConfig* _tmp2_ = NULL;
		GeeArrayList* _tmp3_ = NULL;
#line 198 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp2_ = config;
#line 198 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = rygel_configuration_get_string_list ((RygelConfiguration*) _tmp2_, "MediaExport", "uris", &_inner_error_);
#line 198 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp1_ = _tmp3_;
#line 198 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 1935 "rygel-media-export-root-container.c"
			goto __catch41_g_error;
		}
#line 198 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (uris);
#line 198 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		uris = _tmp1_;
#line 1942 "rygel-media-export-root-container.c"
	}
	goto __finally41;
	__catch41_g_error:
	{
		GError* _error_ = NULL;
		GeeArrayList* _tmp4_ = NULL;
#line 197 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 197 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 200 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 200 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (uris);
#line 200 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		uris = _tmp4_;
#line 197 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 1961 "rygel-media-export-root-container.c"
	}
	__finally41:
#line 197 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 197 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (config);
#line 197 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (actual_uris);
#line 197 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (uris);
#line 197 "/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 197 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_clear_error (&_inner_error_);
#line 197 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return NULL;
#line 1978 "rygel-media-export-root-container.c"
	}
#line 203 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GeeEqualDataFunc) g_file_equal, NULL, NULL);
#line 203 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (actual_uris);
#line 203 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	actual_uris = _tmp5_;
#line 205 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp6_ = g_get_home_dir ();
#line 205 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp7_ = g_file_new_for_path (_tmp6_);
#line 205 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	home_dir = _tmp7_;
#line 206 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp8_ = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
#line 206 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	pictures_dir = _tmp8_;
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp9_ = g_get_user_special_dir (G_USER_DIRECTORY_VIDEOS);
#line 208 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	videos_dir = _tmp9_;
#line 210 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp10_ = g_get_user_special_dir (G_USER_DIRECTORY_MUSIC);
#line 210 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	music_dir = _tmp10_;
#line 2004 "rygel-media-export-root-container.c"
	{
		GeeArrayList* _uri_list = NULL;
		GeeArrayList* _tmp11_ = NULL;
		GeeArrayList* _tmp12_ = NULL;
		gint _uri_size = 0;
		GeeArrayList* _tmp13_ = NULL;
		gint _tmp14_ = 0;
		gint _tmp15_ = 0;
		gint _uri_index = 0;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp11_ = uris;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp12_ = _g_object_ref0 (_tmp11_);
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_uri_list = _tmp12_;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp13_ = _uri_list;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp14_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp13_);
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp15_ = _tmp14_;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_uri_size = _tmp15_;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_uri_index = -1;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		while (TRUE) {
#line 2032 "rygel-media-export-root-container.c"
			gint _tmp16_ = 0;
			gint _tmp17_ = 0;
			gint _tmp18_ = 0;
			gchar* uri = NULL;
			GeeArrayList* _tmp19_ = NULL;
			gint _tmp20_ = 0;
			gpointer _tmp21_ = NULL;
			GFile* file = NULL;
			const gchar* _tmp22_ = NULL;
			GFile* _tmp23_ = NULL;
			GFile* _tmp24_ = NULL;
			GFile* _tmp25_ = NULL;
			gboolean _tmp26_ = FALSE;
			gboolean _tmp27_ = FALSE;
			GeeArrayList* _tmp50_ = NULL;
			GFile* _tmp51_ = NULL;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp16_ = _uri_index;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_uri_index = _tmp16_ + 1;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp17_ = _uri_index;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp18_ = _uri_size;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (!(_tmp17_ < _tmp18_)) {
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				break;
#line 2061 "rygel-media-export-root-container.c"
			}
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp19_ = _uri_list;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp20_ = _uri_index;
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp21_ = gee_abstract_list_get ((GeeAbstractList*) _tmp19_, _tmp20_);
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			uri = (gchar*) _tmp21_;
#line 214 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp22_ = uri;
#line 214 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp23_ = g_file_new_for_commandline_arg (_tmp22_);
#line 214 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			file = _tmp23_;
#line 215 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp24_ = file;
#line 215 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp25_ = home_dir;
#line 215 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp26_ = g_file_equal (_tmp24_, _tmp25_);
#line 215 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp27_ = G_LIKELY (!_tmp26_);
#line 215 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_tmp27_) {
#line 2087 "rygel-media-export-root-container.c"
				gchar* actual_uri = NULL;
				const gchar* _tmp28_ = NULL;
				gchar* _tmp29_ = NULL;
				const gchar* _tmp30_ = NULL;
				gboolean _tmp31_ = FALSE;
				const gchar* _tmp35_ = NULL;
				gboolean _tmp36_ = FALSE;
				const gchar* _tmp40_ = NULL;
				gboolean _tmp41_ = FALSE;
				const gchar* _tmp45_ = NULL;
				GFile* _tmp46_ = NULL;
				GFile* _tmp47_ = NULL;
				GFile* _tmp48_ = NULL;
				gboolean _tmp49_ = FALSE;
#line 216 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp28_ = uri;
#line 216 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp29_ = g_strdup (_tmp28_);
#line 216 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				actual_uri = _tmp29_;
#line 218 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp30_ = pictures_dir;
#line 218 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp31_ = G_LIKELY (_tmp30_ != NULL);
#line 218 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_tmp31_) {
#line 2114 "rygel-media-export-root-container.c"
					const gchar* _tmp32_ = NULL;
					const gchar* _tmp33_ = NULL;
					gchar* _tmp34_ = NULL;
#line 219 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp32_ = actual_uri;
#line 219 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp33_ = pictures_dir;
#line 219 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp34_ = string_replace (_tmp32_, "@PICTURES@", _tmp33_);
#line 219 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (actual_uri);
#line 219 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					actual_uri = _tmp34_;
#line 2128 "rygel-media-export-root-container.c"
				}
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp35_ = videos_dir;
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp36_ = G_LIKELY (_tmp35_ != NULL);
#line 221 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_tmp36_) {
#line 2136 "rygel-media-export-root-container.c"
					const gchar* _tmp37_ = NULL;
					const gchar* _tmp38_ = NULL;
					gchar* _tmp39_ = NULL;
#line 222 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp37_ = actual_uri;
#line 222 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp38_ = videos_dir;
#line 222 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp39_ = string_replace (_tmp37_, "@VIDEOS@", _tmp38_);
#line 222 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (actual_uri);
#line 222 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					actual_uri = _tmp39_;
#line 2150 "rygel-media-export-root-container.c"
				}
#line 224 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp40_ = music_dir;
#line 224 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp41_ = G_LIKELY (_tmp40_ != NULL);
#line 224 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_tmp41_) {
#line 2158 "rygel-media-export-root-container.c"
					const gchar* _tmp42_ = NULL;
					const gchar* _tmp43_ = NULL;
					gchar* _tmp44_ = NULL;
#line 225 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp42_ = actual_uri;
#line 225 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp43_ = music_dir;
#line 225 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp44_ = string_replace (_tmp42_, "@MUSIC@", _tmp43_);
#line 225 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (actual_uri);
#line 225 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					actual_uri = _tmp44_;
#line 2172 "rygel-media-export-root-container.c"
				}
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp45_ = actual_uri;
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp46_ = g_file_new_for_commandline_arg (_tmp45_);
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (file);
#line 229 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				file = _tmp46_;
#line 230 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp47_ = file;
#line 230 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp48_ = home_dir;
#line 230 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp49_ = g_file_equal (_tmp47_, _tmp48_);
#line 230 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_tmp49_) {
#line 231 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (actual_uri);
#line 231 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (file);
#line 231 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (uri);
#line 231 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					continue;
#line 2198 "rygel-media-export-root-container.c"
				}
#line 215 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_free0 (actual_uri);
#line 2202 "rygel-media-export-root-container.c"
			}
#line 235 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp50_ = actual_uris;
#line 235 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp51_ = file;
#line 235 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp50_, _tmp51_);
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (file);
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (uri);
#line 2214 "rygel-media-export-root-container.c"
		}
#line 213 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_uri_list);
#line 2218 "rygel-media-export-root-container.c"
	}
#line 238 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = actual_uris;
#line 238 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (home_dir);
#line 238 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (config);
#line 238 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (uris);
#line 238 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 2230 "rygel-media-export-root-container.c"
}


static RygelMediaContainer* rygel_media_export_root_container_search_to_virtual_container (RygelMediaExportRootContainer* self, RygelRelationalExpression* expression) {
	RygelMediaContainer* result = NULL;
	gboolean _tmp0_ = FALSE;
	RygelRelationalExpression* _tmp1_ = NULL;
	gconstpointer _tmp2_ = NULL;
	gboolean _tmp5_ = FALSE;
#line 241 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 241 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (expression != NULL, NULL);
#line 243 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = expression;
#line 243 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = ((RygelSearchExpression*) _tmp1_)->operand1;
#line 243 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (g_strcmp0 ((const gchar*) _tmp2_, "upnp:class") == 0) {
#line 2250 "rygel-media-export-root-container.c"
		RygelRelationalExpression* _tmp3_ = NULL;
		gconstpointer _tmp4_ = NULL;
#line 244 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = expression;
#line 244 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = ((RygelSearchExpression*) _tmp3_)->op;
#line 244 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp0_ = ((GUPnPSearchCriteriaOp) ((gintptr) _tmp4_)) == GUPNP_SEARCH_CRITERIA_OP_EQ;
#line 2259 "rygel-media-export-root-container.c"
	} else {
#line 243 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp0_ = FALSE;
#line 2263 "rygel-media-export-root-container.c"
	}
#line 243 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = _tmp0_;
#line 243 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp5_) {
#line 2269 "rygel-media-export-root-container.c"
		gchar* id = NULL;
		gchar* _tmp6_ = NULL;
		RygelRelationalExpression* _tmp7_ = NULL;
		gconstpointer _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		GQuark _tmp11_ = 0U;
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		static GQuark _tmp10_label0 = 0;
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		static GQuark _tmp10_label1 = 0;
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		static GQuark _tmp10_label2 = 0;
#line 2282 "rygel-media-export-root-container.c"
		RygelMediaExportQueryContainerFactory* factory = NULL;
		RygelMediaExportQueryContainerFactory* _tmp19_ = NULL;
		RygelMediaExportQueryContainerFactory* _tmp20_ = NULL;
		const gchar* _tmp21_ = NULL;
		RygelMediaExportQueryContainer* _tmp22_ = NULL;
#line 245 "/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 245 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		id = _tmp6_;
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp7_ = expression;
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp8_ = ((RygelSearchExpression*) _tmp7_)->operand2;
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp9_ = (const gchar*) _tmp8_;
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp11_ = (NULL == _tmp9_) ? 0 : g_quark_from_string (_tmp9_);
#line 246 "/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 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			switch (0) {
#line 2304 "rygel-media-export-root-container.c"
				default:
				{
					const gchar* _tmp12_ = NULL;
					gchar* _tmp13_ = NULL;
#line 248 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp12_ = id;
#line 248 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp13_ = g_strconcat (_tmp12_, "upnp:album,?", NULL);
#line 248 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (id);
#line 248 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					id = _tmp13_;
#line 250 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					break;
#line 2319 "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 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			switch (0) {
#line 2325 "rygel-media-export-root-container.c"
				default:
				{
					const gchar* _tmp14_ = NULL;
					gchar* _tmp15_ = NULL;
#line 252 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp14_ = id;
#line 252 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp15_ = g_strconcat (_tmp14_, "dc:creator,?,upnp:album,?", NULL);
#line 252 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (id);
#line 252 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					id = _tmp15_;
#line 254 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					break;
#line 2340 "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 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			switch (0) {
#line 2346 "rygel-media-export-root-container.c"
				default:
				{
					const gchar* _tmp16_ = NULL;
					gchar* _tmp17_ = NULL;
#line 256 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp16_ = id;
#line 256 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp17_ = g_strconcat (_tmp16_, "dc:genre,?", 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 = _tmp17_;
#line 258 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					break;
#line 2361 "rygel-media-export-root-container.c"
				}
			}
		} else if (_tmp11_ == g_quark_from_string (RYGEL_MEDIA_CONTAINER_PLAYLIST)) {
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			switch (0) {
#line 2367 "rygel-media-export-root-container.c"
				default:
				{
					RygelMediaExportPlaylistRootContainer* _tmp18_ = NULL;
#line 260 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp18_ = rygel_media_export_playlist_root_container_new ();
#line 260 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					result = (RygelMediaContainer*) _tmp18_;
#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"
					return result;
#line 2379 "rygel-media-export-root-container.c"
				}
			}
		} else {
#line 246 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			switch (0) {
#line 2385 "rygel-media-export-root-container.c"
				default:
				{
#line 262 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					result = NULL;
#line 262 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (id);
#line 262 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					return result;
#line 2394 "rygel-media-export-root-container.c"
				}
			}
		}
#line 265 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp19_ = rygel_media_export_query_container_factory_get_default ();
#line 265 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		factory = _tmp19_;
#line 267 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp20_ = factory;
#line 267 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp21_ = id;
#line 267 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp22_ = rygel_media_export_query_container_factory_create_from_description_id (_tmp20_, _tmp21_, "");
#line 267 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		result = (RygelMediaContainer*) _tmp22_;
#line 267 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (factory);
#line 267 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_free0 (id);
#line 267 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return result;
#line 2416 "rygel-media-export-root-container.c"
	}
#line 270 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = NULL;
#line 270 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 2422 "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 = NULL;
	RygelMediaContainer* query_container = NULL;
	RygelSearchExpression* _tmp0_ = NULL;
	RygelLogicalExpression* logical_expression = NULL;
	RygelSearchExpression* _tmp1_ = NULL;
	RygelLogicalExpression* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	RygelLogicalExpression* _tmp5_ = NULL;
	gconstpointer _tmp6_ = NULL;
	gboolean _tmp9_ = FALSE;
	gboolean _tmp12_ = FALSE;
	RygelRelationalExpression* left_expression = NULL;
	RygelLogicalExpression* _tmp13_ = NULL;
	gconstpointer _tmp14_ = NULL;
	RygelSearchExpression* _tmp15_ = NULL;
	RygelRelationalExpression* _tmp16_ = NULL;
	RygelRelationalExpression* right_expression = NULL;
	RygelLogicalExpression* _tmp17_ = NULL;
	gconstpointer _tmp18_ = NULL;
	RygelSearchExpression* _tmp19_ = NULL;
	RygelRelationalExpression* _tmp20_ = NULL;
	RygelRelationalExpression* _tmp21_ = NULL;
	RygelMediaContainer* _tmp22_ = NULL;
	RygelMediaContainer* _tmp23_ = NULL;
	RygelMediaExportQueryContainerFactory* factory = NULL;
	RygelMediaExportQueryContainerFactory* _tmp31_ = NULL;
	gchar* plaintext_id = NULL;
	RygelMediaExportQueryContainerFactory* _tmp32_ = NULL;
	RygelMediaContainer* _tmp33_ = NULL;
	const gchar* _tmp34_ = NULL;
	const gchar* _tmp35_ = NULL;
	gchar* _tmp36_ = NULL;
	gchar* last_argument = NULL;
	const gchar* _tmp37_ = NULL;
	gchar* _tmp38_ = NULL;
	gchar* escaped_detail = NULL;
	RygelRelationalExpression* _tmp39_ = NULL;
	gconstpointer _tmp40_ = NULL;
	gchar* _tmp41_ = NULL;
	gchar* new_id = NULL;
	RygelRelationalExpression* _tmp42_ = NULL;
	gconstpointer _tmp43_ = NULL;
	const gchar* _tmp44_ = NULL;
	const gchar* _tmp45_ = NULL;
	gchar* _tmp46_ = NULL;
	RygelMediaExportQueryContainerFactory* _tmp47_ = NULL;
	const gchar* _tmp48_ = NULL;
	RygelMediaExportQueryContainer* _tmp49_ = NULL;
#line 286 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 286 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_val_if_fail (expression != NULL, FALSE);
#line 288 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	virtual_expression = NULL;
#line 291 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_vala_container);
#line 291 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_vala_container = NULL;
#line 293 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = expression;
#line 293 "/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 294 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		result = FALSE;
#line 294 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (query_container);
#line 294 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_rygel_search_expression_unref0 (virtual_expression);
#line 294 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (container) {
#line 294 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			*container = _vala_container;
#line 2515 "rygel-media-export-root-container.c"
		} else {
#line 294 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_vala_container);
#line 2519 "rygel-media-export-root-container.c"
		}
#line 294 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return result;
#line 2523 "rygel-media-export-root-container.c"
	}
#line 297 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = expression;
#line 297 "/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 297 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	logical_expression = _tmp2_;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = logical_expression;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp6_ = ((RygelSearchExpression*) _tmp5_)->operand1;
#line 299 "/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 2537 "rygel-media-export-root-container.c"
		RygelLogicalExpression* _tmp7_ = NULL;
		gconstpointer _tmp8_ = NULL;
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp7_ = logical_expression;
#line 300 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp8_ = ((RygelSearchExpression*) _tmp7_)->operand2;
#line 300 "/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 2546 "rygel-media-export-root-container.c"
	} else {
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = FALSE;
#line 2550 "rygel-media-export-root-container.c"
	}
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp9_ = _tmp4_;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp9_) {
#line 2556 "rygel-media-export-root-container.c"
		RygelLogicalExpression* _tmp10_ = NULL;
		gconstpointer _tmp11_ = NULL;
#line 301 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp10_ = logical_expression;
#line 301 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp11_ = ((RygelSearchExpression*) _tmp10_)->op;
#line 301 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = ((RygelLogicalOperator) ((gintptr) _tmp11_)) == RYGEL_LOGICAL_OPERATOR_AND;
#line 2565 "rygel-media-export-root-container.c"
	} else {
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = FALSE;
#line 2569 "rygel-media-export-root-container.c"
	}
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp12_ = _tmp3_;
#line 299 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (!_tmp12_) {
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		result = FALSE;
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_rygel_search_expression_unref0 (logical_expression);
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (query_container);
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_rygel_search_expression_unref0 (virtual_expression);
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (container) {
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			*container = _vala_container;
#line 2587 "rygel-media-export-root-container.c"
		} else {
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (_vala_container);
#line 2591 "rygel-media-export-root-container.c"
		}
#line 303 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return result;
#line 2595 "rygel-media-export-root-container.c"
	}
#line 306 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp13_ = logical_expression;
#line 306 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp14_ = ((RygelSearchExpression*) _tmp13_)->operand1;
#line 306 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp15_ = (RygelSearchExpression*) _tmp14_;
#line 306 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp16_ = _rygel_search_expression_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, RYGEL_TYPE_RELATIONAL_EXPRESSION) ? ((RygelRelationalExpression*) _tmp15_) : NULL);
#line 306 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	left_expression = _tmp16_;
#line 307 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp17_ = logical_expression;
#line 307 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp18_ = ((RygelSearchExpression*) _tmp17_)->operand2;
#line 307 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp19_ = (RygelSearchExpression*) _tmp18_;
#line 307 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp20_ = _rygel_search_expression_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, RYGEL_TYPE_RELATIONAL_EXPRESSION) ? ((RygelRelationalExpression*) _tmp19_) : NULL);
#line 307 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	right_expression = _tmp20_;
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp21_ = left_expression;
#line 309 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp22_ = rygel_media_export_root_container_search_to_virtual_container (self, _tmp21_);
#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"
	query_container = _tmp22_;
#line 310 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp23_ = query_container;
#line 310 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp23_ == NULL) {
#line 2629 "rygel-media-export-root-container.c"
		RygelRelationalExpression* _tmp24_ = NULL;
		RygelMediaContainer* _tmp25_ = NULL;
		RygelMediaContainer* _tmp26_ = NULL;
#line 311 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp24_ = right_expression;
#line 311 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp25_ = rygel_media_export_root_container_search_to_virtual_container (self, _tmp24_);
#line 311 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (query_container);
#line 311 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		query_container = _tmp25_;
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp26_ = query_container;
#line 312 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_tmp26_ != NULL) {
#line 2645 "rygel-media-export-root-container.c"
			RygelRelationalExpression* _tmp27_ = NULL;
			RygelRelationalExpression* _tmp28_ = NULL;
#line 313 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp27_ = left_expression;
#line 313 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp28_ = _rygel_search_expression_ref0 (_tmp27_);
#line 313 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_rygel_search_expression_unref0 (virtual_expression);
#line 313 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			virtual_expression = _tmp28_;
#line 2656 "rygel-media-export-root-container.c"
		} else {
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			result = FALSE;
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_rygel_search_expression_unref0 (right_expression);
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_rygel_search_expression_unref0 (left_expression);
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_rygel_search_expression_unref0 (logical_expression);
#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"
			_rygel_search_expression_unref0 (virtual_expression);
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (container) {
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				*container = _vala_container;
#line 2674 "rygel-media-export-root-container.c"
			} else {
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_vala_container);
#line 2678 "rygel-media-export-root-container.c"
			}
#line 315 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return result;
#line 2682 "rygel-media-export-root-container.c"
		}
	} else {
		RygelRelationalExpression* _tmp29_ = NULL;
		RygelRelationalExpression* _tmp30_ = NULL;
#line 318 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp29_ = right_expression;
#line 318 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp30_ = _rygel_search_expression_ref0 (_tmp29_);
#line 318 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_rygel_search_expression_unref0 (virtual_expression);
#line 318 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		virtual_expression = _tmp30_;
#line 2695 "rygel-media-export-root-container.c"
	}
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp31_ = rygel_media_export_query_container_factory_get_default ();
#line 321 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	factory = _tmp31_;
#line 322 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp32_ = factory;
#line 322 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp33_ = query_container;
#line 322 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp34_ = rygel_media_object_get_id ((RygelMediaObject*) _tmp33_);
#line 322 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp35_ = _tmp34_;
#line 322 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp36_ = rygel_media_export_query_container_factory_get_virtual_container_definition (_tmp32_, _tmp35_);
#line 322 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	plaintext_id = _tmp36_;
#line 325 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp37_ = plaintext_id;
#line 325 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp38_ = string_replace (_tmp37_, RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_PREFIX, "");
#line 325 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	last_argument = _tmp38_;
#line 327 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp39_ = virtual_expression;
#line 327 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp40_ = ((RygelSearchExpression*) _tmp39_)->operand2;
#line 327 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp41_ = g_uri_escape_string ((const gchar*) _tmp40_, "", TRUE);
#line 327 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	escaped_detail = _tmp41_;
#line 330 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp42_ = virtual_expression;
#line 330 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp43_ = ((RygelSearchExpression*) _tmp42_)->operand1;
#line 330 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp44_ = escaped_detail;
#line 330 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp45_ = last_argument;
#line 330 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp46_ = g_strdup_printf ("%s%s,%s,%s", RYGEL_MEDIA_EXPORT_QUERY_CONTAINER_PREFIX, (const gchar*) _tmp43_, _tmp44_, _tmp45_);
#line 330 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	new_id = _tmp46_;
#line 335 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp47_ = factory;
#line 335 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp48_ = new_id;
#line 335 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp49_ = rygel_media_export_query_container_factory_create_from_description_id (_tmp47_, _tmp48_, "");
#line 335 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_vala_container);
#line 335 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_vala_container = (RygelMediaContainer*) _tmp49_;
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = TRUE;
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (new_id);
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (escaped_detail);
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (last_argument);
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (plaintext_id);
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (factory);
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_rygel_search_expression_unref0 (right_expression);
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_rygel_search_expression_unref0 (left_expression);
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_rygel_search_expression_unref0 (logical_expression);
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (query_container);
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_rygel_search_expression_unref0 (virtual_expression);
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (container) {
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		*container = _vala_container;
#line 2775 "rygel-media-export-root-container.c"
	} else {
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_vala_container);
#line 2779 "rygel-media-export-root-container.c"
	}
#line 337 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 2783 "rygel-media-export-root-container.c"
}


/**
     * Create a new root container.
     */
static RygelMediaExportRootContainer* rygel_media_export_root_container_construct (GType object_type) {
	RygelMediaExportRootContainer * self = NULL;
	const gchar* _tmp0_ = NULL;
#line 345 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = _ ("@REALNAME@'s media");
#line 345 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self = (RygelMediaExportRootContainer*) g_object_new (object_type, "id", "0", "title", _tmp0_, "parent", NULL, "child-count", 0, NULL);
#line 344 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return self;
#line 2799 "rygel-media-export-root-container.c"
}


static RygelMediaExportRootContainer* rygel_media_export_root_container_new (void) {
#line 344 "/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);
#line 2806 "rygel-media-export-root-container.c"
}


static gboolean __lambda6_ (RygelMediaExportRootContainer* self) {
	gboolean result = FALSE;
	GError * _inner_error_ = NULL;
	{
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_root_container_init (self, &_inner_error_);
#line 366 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 2818 "rygel-media-export-root-container.c"
			goto __catch42_g_error;
		}
	}
	goto __finally42;
	__catch42_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 2832 "rygel-media-export-root-container.c"
	}
	__finally42:
#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_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 365 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_clear_error (&_inner_error_);
#line 365 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return FALSE;
#line 2843 "rygel-media-export-root-container.c"
	}
#line 369 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = FALSE;
#line 369 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 2849 "rygel-media-export-root-container.c"
}


static gboolean ___lambda6__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda6_ (self);
#line 364 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 2858 "rygel-media-export-root-container.c"
}


static guint32 rygel_media_export_root_container_real_get_system_update_id (RygelMediaExportTrackableDbContainer* base) {
	RygelMediaExportRootContainer * self;
	guint32 result = 0U;
	guint32 id = 0U;
	guint32 _tmp0_ = 0U;
#line 353 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self = (RygelMediaExportRootContainer*) base;
#line 355 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = RYGEL_MEDIA_EXPORT_TRACKABLE_DB_CONTAINER_CLASS (rygel_media_export_root_container_parent_class)->get_system_update_id (G_TYPE_CHECK_INSTANCE_CAST (self, RYGEL_MEDIA_EXPORT_TYPE_TRACKABLE_DB_CONTAINER, RygelMediaExportTrackableDbContainer));
#line 355 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	id = _tmp0_;
#line 364 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda6__gsource_func, g_object_ref (self), g_object_unref);
#line 372 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	result = id;
#line 372 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	return result;
#line 2879 "rygel-media-export-root-container.c"
}


static void _rygel_media_export_root_container_on_initial_harvesting_done_rygel_media_export_harvester_done (RygelMediaExportHarvester* _sender, gpointer self) {
#line 419 "/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 2886 "rygel-media-export-root-container.c"
}


static void _rygel_media_export_root_container_on_setting_changed_rygel_configuration_setting_changed (RygelConfiguration* _sender, const gchar* section, const gchar* key, gpointer self) {
#line 456 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_on_setting_changed (self, section, key);
#line 2893 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_init (RygelMediaExportRootContainer* self, GError** error) {
	gboolean _tmp0_ = FALSE;
	GCancellable* _tmp1_ = NULL;
	RygelMediaExportMediaCache* _tmp2_ = NULL;
	GeeArrayList* ids = NULL;
	GCancellable* _tmp13_ = NULL;
	GeeArrayList* _tmp14_ = NULL;
	GeeArrayList* _tmp15_ = NULL;
	RygelMediaExportHarvester* _tmp16_ = NULL;
	RygelMediaExportHarvester* _tmp17_ = NULL;
	gulong _tmp18_ = 0UL;
	RygelMediaExportMediaCache* _tmp53_ = NULL;
	RygelMediaExportHarvester* _tmp54_ = NULL;
	RygelMediaExportDBContainer* _tmp55_ = NULL;
	GeeArrayList* _tmp56_ = NULL;
	gboolean _tmp57_ = FALSE;
	gboolean _tmp58_ = FALSE;
	RygelMetaConfig* _tmp59_ = NULL;
	RygelMetaConfig* _tmp60_ = NULL;
	GError * _inner_error_ = NULL;
#line 375 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 377 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = self->priv->initialized;
#line 377 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp0_) {
#line 378 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 2925 "rygel-media-export-root-container.c"
	}
#line 381 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self->priv->initialized = TRUE;
#line 382 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = g_cancellable_new ();
#line 382 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (self->priv->cancellable);
#line 382 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self->priv->cancellable = _tmp1_;
#line 386 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 386 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_media_cache_drop_virtual_folders (_tmp2_);
#line 2939 "rygel-media-export-root-container.c"
	{
		RygelMediaExportMediaCache* _tmp3_ = NULL;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_media_cache_save_container (_tmp3_, (RygelMediaContainer*) self, &_inner_error_);
#line 390 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 2948 "rygel-media-export-root-container.c"
			goto __catch43_g_error;
		}
	}
	goto __finally43;
	__catch43_g_error:
	{
		GError* _error_ = NULL;
#line 389 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 389 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 389 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 2962 "rygel-media-export-root-container.c"
	}
	__finally43:
#line 389 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 389 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 389 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 2971 "rygel-media-export-root-container.c"
	}
	{
		const gchar* _tmp4_ = NULL;
		RygelMediaExportTrackableDbContainer* _tmp5_ = NULL;
		RygelMediaExportDBContainer* _tmp6_ = NULL;
		RygelMediaExportMediaCache* _tmp7_ = NULL;
		RygelMediaExportDBContainer* _tmp8_ = NULL;
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = _ (RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_FILESYSTEM_FOLDER_NAME);
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp5_ = rygel_media_export_trackable_db_container_new (RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_FILESYSTEM_FOLDER_ID, _tmp4_);
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (self->priv->filesystem_container);
#line 396 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		self->priv->filesystem_container = (RygelMediaExportDBContainer*) _tmp5_;
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp6_ = self->priv->filesystem_container;
#line 399 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_object_set_parent ((RygelMediaObject*) _tmp6_, (RygelMediaContainer*) self);
#line 400 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp7_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 400 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp8_ = self->priv->filesystem_container;
#line 400 "/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 400 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 2999 "rygel-media-export-root-container.c"
			goto __catch44_g_error;
		}
	}
	goto __finally44;
	__catch44_g_error:
	{
		GError* _error_ = NULL;
#line 395 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 395 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 395 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 3013 "rygel-media-export-root-container.c"
	}
	__finally44:
#line 395 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 395 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 395 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 3022 "rygel-media-export-root-container.c"
	}
	{
		GeeArrayList* _tmp9_ = NULL;
		RygelMediaExportMediaCache* _tmp10_ = NULL;
		GeeArrayList* _tmp11_ = NULL;
#line 407 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp10_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 407 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp11_ = rygel_media_export_media_cache_get_child_ids (_tmp10_, RYGEL_MEDIA_EXPORT_ROOT_CONTAINER_FILESYSTEM_FOLDER_ID, &_inner_error_);
#line 407 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp9_ = _tmp11_;
#line 407 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 407 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_inner_error_->domain == RYGEL_MEDIA_EXPORT_DATABASE_ERROR) {
#line 3038 "rygel-media-export-root-container.c"
				goto __catch45_rygel_media_export_database_error;
			}
#line 407 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (ids);
#line 407 "/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 407 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_clear_error (&_inner_error_);
#line 407 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return;
#line 3049 "rygel-media-export-root-container.c"
		}
#line 407 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (ids);
#line 407 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		ids = _tmp9_;
#line 3055 "rygel-media-export-root-container.c"
	}
	goto __finally45;
	__catch45_rygel_media_export_database_error:
	{
		GError* e = NULL;
		GeeArrayList* _tmp12_ = NULL;
#line 406 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		e = _inner_error_;
#line 406 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 409 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp12_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 409 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (ids);
#line 409 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		ids = _tmp12_;
#line 406 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (e);
#line 3074 "rygel-media-export-root-container.c"
	}
	__finally45:
#line 406 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 406 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 406 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (ids);
#line 406 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 3085 "rygel-media-export-root-container.c"
	}
#line 417 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp13_ = self->priv->cancellable;
#line 417 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp14_ = rygel_media_export_root_container_get_shared_uris (self);
#line 417 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp15_ = _tmp14_;
#line 417 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp16_ = rygel_media_export_harvester_new (_tmp13_, _tmp15_);
#line 417 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (self->priv->harvester);
#line 417 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self->priv->harvester = _tmp16_;
#line 417 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_tmp15_);
#line 419 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp17_ = self->priv->harvester;
#line 419 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp18_ = g_signal_connect_object (_tmp17_, "done", (GCallback) _rygel_media_export_root_container_on_initial_harvesting_done_rygel_media_export_harvester_done, self, 0);
#line 419 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self->priv->harvester_signal_id = _tmp18_;
#line 3107 "rygel-media-export-root-container.c"
	{
		GeeArrayList* _file_list = NULL;
		RygelMediaExportHarvester* _tmp19_ = NULL;
		GeeArrayList* _tmp20_ = NULL;
		GeeArrayList* _tmp21_ = NULL;
		GeeArrayList* _tmp22_ = NULL;
		gint _file_size = 0;
		GeeArrayList* _tmp23_ = NULL;
		gint _tmp24_ = 0;
		gint _tmp25_ = 0;
		gint _file_index = 0;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp19_ = self->priv->harvester;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp20_ = rygel_media_export_harvester_get_locations (_tmp19_);
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp21_ = _tmp20_;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp22_ = _g_object_ref0 (_tmp21_);
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_list = _tmp22_;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp23_ = _file_list;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp24_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp23_);
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp25_ = _tmp24_;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_size = _tmp25_;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_index = -1;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		while (TRUE) {
#line 3141 "rygel-media-export-root-container.c"
			gint _tmp26_ = 0;
			gint _tmp27_ = 0;
			gint _tmp28_ = 0;
			GFile* file = NULL;
			GeeArrayList* _tmp29_ = NULL;
			gint _tmp30_ = 0;
			gpointer _tmp31_ = NULL;
			GeeArrayList* _tmp32_ = NULL;
			GFile* _tmp33_ = NULL;
			gchar* _tmp34_ = NULL;
			gchar* _tmp35_ = NULL;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp26_ = _file_index;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_file_index = _tmp26_ + 1;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp27_ = _file_index;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp28_ = _file_size;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (!(_tmp27_ < _tmp28_)) {
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				break;
#line 3165 "rygel-media-export-root-container.c"
			}
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp29_ = _file_list;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp30_ = _file_index;
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp31_ = gee_abstract_list_get ((GeeAbstractList*) _tmp29_, _tmp30_);
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			file = (GFile*) _tmp31_;
#line 425 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp32_ = ids;
#line 425 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp33_ = file;
#line 425 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp34_ = rygel_media_export_media_cache_get_id (_tmp33_);
#line 425 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp35_ = _tmp34_;
#line 425 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp32_, _tmp35_);
#line 425 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (_tmp35_);
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (file);
#line 3189 "rygel-media-export-root-container.c"
		}
#line 424 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_file_list);
#line 3193 "rygel-media-export-root-container.c"
	}
	{
		GeeArrayList* _id_list = NULL;
		GeeArrayList* _tmp36_ = NULL;
		GeeArrayList* _tmp37_ = NULL;
		gint _id_size = 0;
		GeeArrayList* _tmp38_ = NULL;
		gint _tmp39_ = 0;
		gint _tmp40_ = 0;
		gint _id_index = 0;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp36_ = ids;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp37_ = _g_object_ref0 (_tmp36_);
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_id_list = _tmp37_;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp38_ = _id_list;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp39_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp38_);
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp40_ = _tmp39_;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_id_size = _tmp40_;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_id_index = -1;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		while (TRUE) {
#line 3222 "rygel-media-export-root-container.c"
			gint _tmp41_ = 0;
			gint _tmp42_ = 0;
			gint _tmp43_ = 0;
			gchar* id = NULL;
			GeeArrayList* _tmp44_ = NULL;
			gint _tmp45_ = 0;
			gpointer _tmp46_ = NULL;
			const gchar* _tmp47_ = NULL;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp41_ = _id_index;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_id_index = _tmp41_ + 1;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp42_ = _id_index;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp43_ = _id_size;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (!(_tmp42_ < _tmp43_)) {
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				break;
#line 3243 "rygel-media-export-root-container.c"
			}
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp44_ = _id_list;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp45_ = _id_index;
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp46_ = gee_abstract_list_get ((GeeAbstractList*) _tmp44_, _tmp45_);
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			id = (gchar*) _tmp46_;
#line 432 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp47_ = id;
#line 432 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_debug ("rygel-media-export-root-container.vala:432: ID %s is no longer in the " \
"configuration. Deleting...", _tmp47_);
#line 3257 "rygel-media-export-root-container.c"
			{
				RygelMediaExportMediaCache* _tmp48_ = NULL;
				const gchar* _tmp49_ = NULL;
#line 435 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp48_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 435 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp49_ = id;
#line 435 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				rygel_media_export_media_cache_remove_by_id (_tmp48_, _tmp49_, &_inner_error_);
#line 435 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_inner_error_ != NULL) {
#line 435 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					if (_inner_error_->domain == RYGEL_MEDIA_EXPORT_DATABASE_ERROR) {
#line 3271 "rygel-media-export-root-container.c"
						goto __catch46_rygel_media_export_database_error;
					}
#line 435 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_free0 (id);
#line 435 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (_id_list);
#line 435 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (ids);
#line 435 "/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 435 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					g_clear_error (&_inner_error_);
#line 435 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					return;
#line 3286 "rygel-media-export-root-container.c"
				}
			}
			goto __finally46;
			__catch46_rygel_media_export_database_error:
			{
				GError* _error_ = NULL;
				const gchar* _tmp50_ = NULL;
				GError* _tmp51_ = NULL;
				const gchar* _tmp52_ = NULL;
#line 433 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_error_ = _inner_error_;
#line 433 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_inner_error_ = NULL;
#line 437 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp50_ = _ ("Failed to remove entry: %s");
#line 437 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp51_ = _error_;
#line 437 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp52_ = _tmp51_->message;
#line 437 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_warning (_tmp50_, _tmp52_);
#line 433 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_error_free0 (_error_);
#line 3310 "rygel-media-export-root-container.c"
			}
			__finally46:
#line 433 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_inner_error_ != NULL) {
#line 433 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_propagate_error (error, _inner_error_);
#line 433 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_free0 (id);
#line 433 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_id_list);
#line 433 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (ids);
#line 433 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				return;
#line 3325 "rygel-media-export-root-container.c"
			}
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (id);
#line 3329 "rygel-media-export-root-container.c"
		}
#line 431 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_id_list);
#line 3333 "rygel-media-export-root-container.c"
	}
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp53_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_media_cache_rebuild_exists_cache (_tmp53_, &_inner_error_);
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (ids);
#line 444 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 3347 "rygel-media-export-root-container.c"
	}
#line 447 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp54_ = self->priv->harvester;
#line 447 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp55_ = self->priv->filesystem_container;
#line 447 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_harvester_schedule_locations (_tmp54_, (RygelMediaContainer*) _tmp55_);
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp56_ = ids;
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp57_ = gee_collection_get_is_empty ((GeeCollection*) _tmp56_);
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp58_ = _tmp57_;
#line 451 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (!_tmp58_) {
#line 452 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_root_container_root_updated (self);
#line 3365 "rygel-media-export-root-container.c"
	}
#line 456 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp59_ = rygel_meta_config_get_default ();
#line 456 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp60_ = _tmp59_;
#line 456 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_signal_connect_object ((RygelConfiguration*) _tmp60_, "setting-changed", (GCallback) _rygel_media_export_root_container_on_setting_changed_rygel_configuration_setting_changed, self, 0);
#line 456 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (_tmp60_);
#line 375 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (ids);
#line 3377 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_root_updated (RygelMediaExportRootContainer* self) {
	GError * _inner_error_ = NULL;
#line 461 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 463 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_container_updated ((RygelMediaContainer*) self, NULL, RYGEL_OBJECT_EVENT_TYPE_MODIFIED, FALSE);
#line 3387 "rygel-media-export-root-container.c"
	{
		RygelMediaExportMediaCache* _tmp0_ = NULL;
#line 468 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp0_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 468 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_media_cache_save_container (_tmp0_, (RygelMediaContainer*) self, &_inner_error_);
#line 468 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 3396 "rygel-media-export-root-container.c"
			goto __catch47_g_error;
		}
	}
	goto __finally47;
	__catch47_g_error:
	{
		GError* _error_ = NULL;
#line 467 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 467 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 467 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 3410 "rygel-media-export-root-container.c"
	}
	__finally47:
#line 467 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 467 "/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 467 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_clear_error (&_inner_error_);
#line 467 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 3421 "rygel-media-export-root-container.c"
	}
}


static void rygel_media_export_root_container_on_setting_changed (RygelMediaExportRootContainer* self, const gchar* section, const gchar* key) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 472 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 472 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (section != NULL);
#line 472 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (key != NULL);
#line 473 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = section;
#line 473 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (g_strcmp0 (_tmp0_, RYGEL_MEDIA_EXPORT_PLUGIN_NAME) != 0) {
#line 474 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 3441 "rygel-media-export-root-container.c"
	}
#line 477 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = key;
#line 477 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (g_strcmp0 (_tmp1_, "uris") == 0) {
#line 478 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_root_container_handle_uri_config_change (self);
#line 3449 "rygel-media-export-root-container.c"
	} else {
		const gchar* _tmp2_ = NULL;
#line 479 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp2_ = key;
#line 479 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (g_strcmp0 (_tmp2_, "virtual-folders") == 0) {
#line 480 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			rygel_media_export_root_container_handle_virtual_folder_change (self);
#line 3458 "rygel-media-export-root-container.c"
		}
	}
}


static void rygel_media_export_root_container_handle_uri_config_change (RygelMediaExportRootContainer* self) {
	GeeArrayList* uris = NULL;
	GeeArrayList* _tmp0_ = NULL;
	GeeArrayList* new_uris = NULL;
	GeeArrayList* _tmp1_ = NULL;
	GeeArrayList* _tmp2_ = NULL;
	GeeArrayList* _tmp3_ = NULL;
	GeeArrayList* _tmp4_ = NULL;
	RygelMediaExportHarvester* _tmp5_ = NULL;
	GeeArrayList* _tmp6_ = NULL;
	GeeArrayList* _tmp7_ = NULL;
	GeeArrayList* old_uris = NULL;
	GeeArrayList* _tmp8_ = NULL;
	GeeArrayList* _tmp9_ = NULL;
	RygelMediaExportHarvester* _tmp10_ = NULL;
	GeeArrayList* _tmp11_ = NULL;
	GeeArrayList* _tmp12_ = NULL;
	GeeArrayList* _tmp13_ = NULL;
	GeeArrayList* _tmp14_ = NULL;
	RygelMediaExportHarvester* _tmp35_ = NULL;
	GeeArrayList* _tmp36_ = NULL;
	GeeArrayList* _tmp37_ = NULL;
	GeeArrayList* _tmp38_ = NULL;
	GeeArrayList* _tmp39_ = NULL;
	gboolean _tmp40_ = FALSE;
	gboolean _tmp41_ = FALSE;
	GError * _inner_error_ = NULL;
#line 484 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 485 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = rygel_media_export_root_container_get_shared_uris (self);
#line 485 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	uris = _tmp0_;
#line 487 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GeeEqualDataFunc) g_file_equal, NULL, NULL);
#line 487 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	new_uris = _tmp1_;
#line 489 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = new_uris;
#line 489 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = uris;
#line 489 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	gee_array_list_add_all (_tmp2_, (GeeCollection*) _tmp3_);
#line 490 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp4_ = new_uris;
#line 490 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = self->priv->harvester;
#line 490 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp6_ = rygel_media_export_harvester_get_locations (_tmp5_);
#line 490 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp7_ = _tmp6_;
#line 490 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	gee_collection_remove_all ((GeeCollection*) _tmp4_, (GeeCollection*) _tmp7_);
#line 493 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp8_ = gee_array_list_new (G_TYPE_FILE, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GeeEqualDataFunc) g_file_equal, NULL, NULL);
#line 493 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	old_uris = _tmp8_;
#line 495 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp9_ = old_uris;
#line 495 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp10_ = self->priv->harvester;
#line 495 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp11_ = rygel_media_export_harvester_get_locations (_tmp10_);
#line 495 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp12_ = _tmp11_;
#line 495 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	gee_array_list_add_all (_tmp9_, (GeeCollection*) _tmp12_);
#line 496 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp13_ = old_uris;
#line 496 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp14_ = uris;
#line 496 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	gee_collection_remove_all ((GeeCollection*) _tmp13_, (GeeCollection*) _tmp14_);
#line 3537 "rygel-media-export-root-container.c"
	{
		GeeArrayList* _file_list = NULL;
		GeeArrayList* _tmp15_ = NULL;
		GeeArrayList* _tmp16_ = NULL;
		gint _file_size = 0;
		GeeArrayList* _tmp17_ = NULL;
		gint _tmp18_ = 0;
		gint _tmp19_ = 0;
		gint _file_index = 0;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp15_ = old_uris;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp16_ = _g_object_ref0 (_tmp15_);
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_list = _tmp16_;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp17_ = _file_list;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp18_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp17_);
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp19_ = _tmp18_;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_size = _tmp19_;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_index = -1;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		while (TRUE) {
#line 3565 "rygel-media-export-root-container.c"
			gint _tmp20_ = 0;
			gint _tmp21_ = 0;
			gint _tmp22_ = 0;
			GFile* file = NULL;
			GeeArrayList* _tmp23_ = NULL;
			gint _tmp24_ = 0;
			gpointer _tmp25_ = NULL;
			RygelMediaExportHarvester* _tmp26_ = NULL;
			GFile* _tmp27_ = NULL;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp20_ = _file_index;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_file_index = _tmp20_ + 1;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp21_ = _file_index;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp22_ = _file_size;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (!(_tmp21_ < _tmp22_)) {
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				break;
#line 3587 "rygel-media-export-root-container.c"
			}
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp23_ = _file_list;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp24_ = _file_index;
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp25_ = gee_abstract_list_get ((GeeAbstractList*) _tmp23_, _tmp24_);
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			file = (GFile*) _tmp25_;
#line 500 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp26_ = self->priv->harvester;
#line 500 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp27_ = file;
#line 500 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			rygel_media_export_harvester_cancel (_tmp26_, _tmp27_);
#line 3603 "rygel-media-export-root-container.c"
			{
				RygelMediaExportMediaCache* _tmp28_ = NULL;
				GFile* _tmp29_ = NULL;
				gchar* _tmp30_ = NULL;
				gchar* _tmp31_ = NULL;
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp28_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp29_ = file;
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp30_ = rygel_media_export_media_cache_get_id (_tmp29_);
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp31_ = _tmp30_;
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				rygel_media_export_media_cache_remove_by_id (_tmp28_, _tmp31_, &_inner_error_);
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_free0 (_tmp31_);
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_inner_error_ != NULL) {
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					if (_inner_error_->domain == RYGEL_MEDIA_EXPORT_DATABASE_ERROR) {
#line 3625 "rygel-media-export-root-container.c"
						goto __catch48_rygel_media_export_database_error;
					}
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (file);
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (_file_list);
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (old_uris);
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (new_uris);
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (uris);
#line 502 "/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 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					g_clear_error (&_inner_error_);
#line 502 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					return;
#line 3644 "rygel-media-export-root-container.c"
				}
			}
			goto __finally48;
			__catch48_rygel_media_export_database_error:
			{
				GError* _error_ = NULL;
				const gchar* _tmp32_ = NULL;
				GError* _tmp33_ = NULL;
				const gchar* _tmp34_ = NULL;
#line 501 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_error_ = _inner_error_;
#line 501 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_inner_error_ = NULL;
#line 504 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp32_ = _ ("Failed to remove entry: %s");
#line 504 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp33_ = _error_;
#line 504 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp34_ = _tmp33_->message;
#line 504 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_warning (_tmp32_, _tmp34_);
#line 501 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_error_free0 (_error_);
#line 3668 "rygel-media-export-root-container.c"
			}
			__finally48:
#line 501 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_inner_error_ != NULL) {
#line 501 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (file);
#line 501 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (_file_list);
#line 501 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (old_uris);
#line 501 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (new_uris);
#line 501 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_g_object_unref0 (uris);
#line 501 "/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 501 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				g_clear_error (&_inner_error_);
#line 501 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				return;
#line 3689 "rygel-media-export-root-container.c"
			}
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (file);
#line 3693 "rygel-media-export-root-container.c"
		}
#line 498 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_file_list);
#line 3697 "rygel-media-export-root-container.c"
	}
#line 508 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp35_ = self->priv->harvester;
#line 508 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp36_ = rygel_media_export_harvester_get_locations (_tmp35_);
#line 508 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp37_ = _tmp36_;
#line 508 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp38_ = old_uris;
#line 508 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	gee_collection_remove_all ((GeeCollection*) _tmp37_, (GeeCollection*) _tmp38_);
#line 510 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp39_ = new_uris;
#line 510 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp40_ = gee_collection_get_is_empty ((GeeCollection*) _tmp39_);
#line 510 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp41_ = _tmp40_;
#line 510 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (!_tmp41_) {
#line 3717 "rygel-media-export-root-container.c"
		RygelMediaExportDBContainer* _tmp42_ = NULL;
		gulong _tmp43_ = 0UL;
		RygelMediaExportHarvester* _tmp44_ = NULL;
		gulong _tmp45_ = 0UL;
#line 511 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp42_ = self->priv->filesystem_container;
#line 511 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp43_ = self->priv->filesystem_signal_id;
#line 511 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_signal_handler_disconnect ((GObject*) _tmp42_, _tmp43_);
#line 512 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		self->priv->filesystem_signal_id = (gulong) 0;
#line 513 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp44_ = self->priv->harvester;
#line 513 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp45_ = g_signal_connect_object (_tmp44_, "done", (GCallback) _rygel_media_export_root_container_on_initial_harvesting_done_rygel_media_export_harvester_done, self, 0);
#line 513 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		self->priv->harvester_signal_id = _tmp45_;
#line 3736 "rygel-media-export-root-container.c"
	}
	{
		GeeArrayList* _file_list = NULL;
		GeeArrayList* _tmp46_ = NULL;
		GeeArrayList* _tmp47_ = NULL;
		gint _file_size = 0;
		GeeArrayList* _tmp48_ = NULL;
		gint _tmp49_ = 0;
		gint _tmp50_ = 0;
		gint _file_index = 0;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp46_ = new_uris;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp47_ = _g_object_ref0 (_tmp46_);
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_list = _tmp47_;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp48_ = _file_list;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp49_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp48_);
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp50_ = _tmp49_;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_size = _tmp50_;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_file_index = -1;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		while (TRUE) {
#line 3765 "rygel-media-export-root-container.c"
			gint _tmp51_ = 0;
			gint _tmp52_ = 0;
			gint _tmp53_ = 0;
			GFile* file = NULL;
			GeeArrayList* _tmp54_ = NULL;
			gint _tmp55_ = 0;
			gpointer _tmp56_ = NULL;
			GFile* _tmp57_ = NULL;
			gboolean _tmp58_ = FALSE;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp51_ = _file_index;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_file_index = _tmp51_ + 1;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp52_ = _file_index;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp53_ = _file_size;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (!(_tmp52_ < _tmp53_)) {
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				break;
#line 3787 "rygel-media-export-root-container.c"
			}
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp54_ = _file_list;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp55_ = _file_index;
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp56_ = gee_abstract_list_get ((GeeAbstractList*) _tmp54_, _tmp55_);
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			file = (GFile*) _tmp56_;
#line 518 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp57_ = file;
#line 518 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_tmp58_ = g_file_query_exists (_tmp57_, NULL);
#line 518 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			if (_tmp58_) {
#line 3803 "rygel-media-export-root-container.c"
				RygelMediaExportHarvester* _tmp59_ = NULL;
				GeeArrayList* _tmp60_ = NULL;
				GeeArrayList* _tmp61_ = NULL;
				GFile* _tmp62_ = NULL;
				RygelMediaExportHarvester* _tmp63_ = NULL;
				GFile* _tmp64_ = NULL;
				RygelMediaExportDBContainer* _tmp65_ = NULL;
#line 519 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp59_ = self->priv->harvester;
#line 519 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp60_ = rygel_media_export_harvester_get_locations (_tmp59_);
#line 519 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp61_ = _tmp60_;
#line 519 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp62_ = file;
#line 519 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp61_, _tmp62_);
#line 520 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp63_ = self->priv->harvester;
#line 520 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp64_ = file;
#line 520 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp65_ = self->priv->filesystem_container;
#line 520 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				rygel_media_export_harvester_schedule (_tmp63_, _tmp64_, (RygelMediaContainer*) _tmp65_);
#line 3829 "rygel-media-export-root-container.c"
			}
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (file);
#line 3833 "rygel-media-export-root-container.c"
		}
#line 517 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (_file_list);
#line 3837 "rygel-media-export-root-container.c"
	}
#line 484 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (old_uris);
#line 484 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (new_uris);
#line 484 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (uris);
#line 3845 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_handle_virtual_folder_change (RygelMediaExportRootContainer* self) {
	gboolean virtual_folders = FALSE;
	RygelMetaConfig* config = NULL;
	RygelMetaConfig* _tmp0_ = NULL;
	gboolean _tmp3_ = FALSE;
	GError * _inner_error_ = NULL;
#line 525 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 526 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	virtual_folders = TRUE;
#line 527 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = rygel_meta_config_get_default ();
#line 527 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	config = _tmp0_;
#line 3863 "rygel-media-export-root-container.c"
	{
		gboolean _tmp1_ = FALSE;
		gboolean _tmp2_ = FALSE;
#line 529 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp2_ = rygel_configuration_get_bool ((RygelConfiguration*) config, RYGEL_MEDIA_EXPORT_PLUGIN_NAME, "virtual-folders", &_inner_error_);
#line 529 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp1_ = _tmp2_;
#line 529 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 3873 "rygel-media-export-root-container.c"
			goto __catch49_g_error;
		}
#line 529 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		virtual_folders = _tmp1_;
#line 3878 "rygel-media-export-root-container.c"
	}
	goto __finally49;
	__catch49_g_error:
	{
		GError* _error_ = NULL;
#line 528 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 528 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 528 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 3890 "rygel-media-export-root-container.c"
	}
	__finally49:
#line 528 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 528 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (config);
#line 528 "/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 528 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_clear_error (&_inner_error_);
#line 528 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 3903 "rygel-media-export-root-container.c"
	}
#line 532 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = virtual_folders;
#line 532 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp3_) {
#line 533 "/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 535 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (config);
#line 535 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 3915 "rygel-media-export-root-container.c"
	} else {
		RygelMediaExportMediaCache* _tmp4_ = NULL;
#line 537 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp4_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 537 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_media_cache_drop_virtual_folders (_tmp4_);
#line 3922 "rygel-media-export-root-container.c"
	}
#line 539 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_root_updated (self);
#line 525 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (config);
#line 3928 "rygel-media-export-root-container.c"
}


static void __lambda7_ (RygelMediaExportRootContainer* self) {
#line 561 "/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 562 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_root_updated (self);
#line 3937 "rygel-media-export-root-container.c"
}


static void ___lambda7__rygel_media_container_container_updated (RygelMediaContainer* _sender, RygelMediaContainer* container, RygelMediaObject* object, RygelObjectEventType event_type, gboolean sub_tree_update, gpointer self) {
#line 559 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	__lambda7_ (self);
#line 3944 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_on_initial_harvesting_done (RygelMediaExportRootContainer* self) {
	RygelMediaExportHarvester* _tmp0_ = NULL;
	gulong _tmp1_ = 0UL;
	RygelMediaExportMediaCache* _tmp2_ = NULL;
	RygelMediaExportDBContainer* _tmp3_ = NULL;
	gulong _tmp4_ = 0UL;
#line 542 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 544 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = self->priv->harvester;
#line 544 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = self->priv->harvester_signal_id;
#line 544 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_signal_handler_disconnect ((GObject*) _tmp0_, _tmp1_);
#line 545 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self->priv->harvester_signal_id = (gulong) 0;
#line 548 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 548 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_media_cache_debug_statistics (_tmp2_);
#line 552 "/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 555 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_root_container_root_updated (self);
#line 559 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = self->priv->filesystem_container;
#line 559 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp4_ = g_signal_connect_object ((RygelMediaContainer*) _tmp3_, "container-updated", (GCallback) ___lambda7__rygel_media_container_container_updated, self, 0);
#line 559 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self->priv->filesystem_signal_id = _tmp4_;
#line 3978 "rygel-media-export-root-container.c"
}


/** Add the default virtual folders,
     * for Music, Pictures, etc,
     * saving them in the cache.
     */
static void rygel_media_export_root_container_add_default_virtual_folders (RygelMediaExportRootContainer* self) {
	gboolean virtual_folders = FALSE;
	RygelMetaConfig* config = NULL;
	RygelMetaConfig* _tmp0_ = NULL;
	gboolean _tmp4_ = FALSE;
	GError * _inner_error_ = NULL;
#line 571 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 572 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	virtual_folders = TRUE;
#line 573 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = rygel_meta_config_get_default ();
#line 573 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	config = _tmp0_;
#line 4000 "rygel-media-export-root-container.c"
	{
		gboolean _tmp1_ = FALSE;
		RygelMetaConfig* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
#line 575 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp2_ = config;
#line 575 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp3_ = rygel_configuration_get_bool ((RygelConfiguration*) _tmp2_, RYGEL_MEDIA_EXPORT_PLUGIN_NAME, "virtual-folders", &_inner_error_);
#line 575 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp1_ = _tmp3_;
#line 575 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 4013 "rygel-media-export-root-container.c"
			goto __catch50_g_error;
		}
#line 575 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		virtual_folders = _tmp1_;
#line 4018 "rygel-media-export-root-container.c"
	}
	goto __finally50;
	__catch50_g_error:
	{
		GError* _error_ = NULL;
#line 574 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 574 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 574 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 4030 "rygel-media-export-root-container.c"
	}
	__finally50:
#line 574 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 574 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (config);
#line 574 "/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 574 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_clear_error (&_inner_error_);
#line 574 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 4043 "rygel-media-export-root-container.c"
	}
#line 578 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp4_ = virtual_folders;
#line 578 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (!_tmp4_) {
#line 579 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (config);
#line 579 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 4053 "rygel-media-export-root-container.c"
	}
	{
		const gchar* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
#line 583 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp5_ = _ ("Music");
#line 583 "/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, _tmp5_, RYGEL_MUSIC_ITEM_UPNP_CLASS, VIRTUAL_FOLDERS_MUSIC, G_N_ELEMENTS (VIRTUAL_FOLDERS_MUSIC), &_inner_error_);
#line 583 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 4066 "rygel-media-export-root-container.c"
			goto __catch51_g_error;
		}
#line 586 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp6_ = _ ("Pictures");
#line 586 "/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, _tmp6_, RYGEL_PHOTO_ITEM_UPNP_CLASS, NULL, 0, &_inner_error_);
#line 586 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 4075 "rygel-media-export-root-container.c"
			goto __catch51_g_error;
		}
#line 588 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp7_ = _ ("Videos");
#line 588 "/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, _tmp7_, RYGEL_VIDEO_ITEM_UPNP_CLASS, NULL, 0, &_inner_error_);
#line 588 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 4084 "rygel-media-export-root-container.c"
			goto __catch51_g_error;
		}
#line 590 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp8_ = _ ("Playlists");
#line 590 "/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, _tmp8_, RYGEL_PLAYLIST_ITEM_UPNP_CLASS, NULL, 0, &_inner_error_);
#line 590 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 4093 "rygel-media-export-root-container.c"
			goto __catch51_g_error;
		}
	}
	goto __finally51;
	__catch51_g_error:
	{
		GError* _error_ = NULL;
#line 582 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_error_ = _inner_error_;
#line 582 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_inner_error_ = NULL;
#line 582 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_error_free0 (_error_);
#line 4107 "rygel-media-export-root-container.c"
	}
	__finally51:
#line 582 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 582 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (config);
#line 582 "/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 582 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_clear_error (&_inner_error_);
#line 582 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 4120 "rygel-media-export-root-container.c"
	}
#line 571 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (config);
#line 4124 "rygel-media-export-root-container.c"
}


/**
     * Add a QueryContainer to the provided container,
     * for the specified UPnP class,
     * with the specified definition,
     * saving it in the cache.
     */
static gchar* string_slice (const gchar* self, glong start, glong end) {
	gchar* result = NULL;
	glong string_length = 0L;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	glong _tmp2_ = 0L;
	glong _tmp5_ = 0L;
	gboolean _tmp8_ = FALSE;
	glong _tmp9_ = 0L;
	gboolean _tmp12_ = FALSE;
	gboolean _tmp13_ = FALSE;
	glong _tmp14_ = 0L;
	gboolean _tmp17_ = FALSE;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	glong _tmp21_ = 0L;
	glong _tmp22_ = 0L;
	gchar* _tmp23_ = NULL;
#line 1189 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1190 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1190 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1190 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	string_length = (glong) _tmp1_;
#line 1191 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp2_ = start;
#line 1191 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp2_ < ((glong) 0)) {
#line 4165 "rygel-media-export-root-container.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
#line 1192 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp3_ = string_length;
#line 1192 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp4_ = start;
#line 1192 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		start = _tmp3_ + _tmp4_;
#line 4174 "rygel-media-export-root-container.c"
	}
#line 1194 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp5_ = end;
#line 1194 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp5_ < ((glong) 0)) {
#line 4180 "rygel-media-export-root-container.c"
		glong _tmp6_ = 0L;
		glong _tmp7_ = 0L;
#line 1195 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp6_ = string_length;
#line 1195 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp7_ = end;
#line 1195 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		end = _tmp6_ + _tmp7_;
#line 4189 "rygel-media-export-root-container.c"
	}
#line 1197 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp9_ = start;
#line 1197 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp9_ >= ((glong) 0)) {
#line 4195 "rygel-media-export-root-container.c"
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1197 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp10_ = start;
#line 1197 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp11_ = string_length;
#line 1197 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp10_ <= _tmp11_;
#line 4204 "rygel-media-export-root-container.c"
	} else {
#line 1197 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp8_ = FALSE;
#line 4208 "rygel-media-export-root-container.c"
	}
#line 1197 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp12_ = _tmp8_;
#line 1197 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp12_, NULL);
#line 1198 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp14_ = end;
#line 1198 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	if (_tmp14_ >= ((glong) 0)) {
#line 4218 "rygel-media-export-root-container.c"
		glong _tmp15_ = 0L;
		glong _tmp16_ = 0L;
#line 1198 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp15_ = end;
#line 1198 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp16_ = string_length;
#line 1198 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp13_ = _tmp15_ <= _tmp16_;
#line 4227 "rygel-media-export-root-container.c"
	} else {
#line 1198 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
		_tmp13_ = FALSE;
#line 4231 "rygel-media-export-root-container.c"
	}
#line 1198 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp17_ = _tmp13_;
#line 1198 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp17_, NULL);
#line 1199 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp18_ = start;
#line 1199 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp19_ = end;
#line 1199 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp18_ <= _tmp19_, NULL);
#line 1200 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp20_ = start;
#line 1200 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp21_ = end;
#line 1200 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp22_ = start;
#line 1200 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	_tmp23_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) (_tmp21_ - _tmp22_));
#line 1200 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	result = _tmp23_;
#line 1200 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
	return result;
#line 4255 "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) {
	gchar* id = NULL;
	const gchar* _tmp0_ = NULL;
	RygelMediaExportFolderDefinition _tmp1_ = {0};
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	RygelMediaExportQueryContainerFactory* factory = NULL;
	RygelMediaExportQueryContainerFactory* _tmp8_ = NULL;
	RygelMediaExportQueryContainer* query_container = NULL;
	RygelMediaExportQueryContainerFactory* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	RygelMediaExportFolderDefinition _tmp11_ = {0};
	const gchar* _tmp12_ = NULL;
	const gchar* _tmp13_ = NULL;
	RygelMediaExportQueryContainer* _tmp14_ = NULL;
	RygelMediaExportQueryContainer* _tmp15_ = NULL;
	gint _tmp16_ = 0;
	gint _tmp17_ = 0;
	GError * _inner_error_ = NULL;
#line 601 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 601 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (container != NULL);
#line 601 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (item_class != NULL);
#line 601 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (definition != NULL);
#line 607 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = item_class;
#line 607 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = *definition;
#line 607 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = _tmp1_.definition;
#line 607 "/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 607 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	id = _tmp3_;
#line 610 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp4_ = id;
#line 610 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = g_str_has_suffix (_tmp4_, ",");
#line 610 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp5_) {
#line 4304 "rygel-media-export-root-container.c"
		const gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
#line 611 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp6_ = id;
#line 611 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp7_ = string_slice (_tmp6_, (glong) 0, (glong) (-1));
#line 611 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_free0 (id);
#line 611 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		id = _tmp7_;
#line 4315 "rygel-media-export-root-container.c"
	}
#line 615 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp8_ = rygel_media_export_query_container_factory_get_default ();
#line 615 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	factory = _tmp8_;
#line 616 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp9_ = factory;
#line 616 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp10_ = id;
#line 616 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp11_ = *definition;
#line 616 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp12_ = _tmp11_.title;
#line 616 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp13_ = _ (_tmp12_);
#line 616 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp14_ = rygel_media_export_query_container_factory_create_from_description_id (_tmp9_, _tmp10_, _tmp13_);
#line 616 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	query_container = _tmp14_;
#line 628 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp15_ = query_container;
#line 628 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp16_ = rygel_media_container_get_child_count ((RygelMediaContainer*) _tmp15_);
#line 628 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp17_ = _tmp16_;
#line 628 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp17_ > 0) {
#line 4343 "rygel-media-export-root-container.c"
		RygelMediaExportQueryContainer* _tmp18_ = NULL;
		RygelMediaContainer* _tmp19_ = NULL;
		RygelMediaExportMediaCache* _tmp20_ = NULL;
		RygelMediaExportQueryContainer* _tmp21_ = NULL;
#line 629 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp18_ = query_container;
#line 629 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp19_ = container;
#line 629 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_object_set_parent ((RygelMediaObject*) _tmp18_, _tmp19_);
#line 630 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp20_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 630 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp21_ = query_container;
#line 630 "/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 630 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 630 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_propagate_error (error, _inner_error_);
#line 630 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (query_container);
#line 630 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (factory);
#line 630 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (id);
#line 630 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return;
#line 4372 "rygel-media-export-root-container.c"
		}
	} else {
		RygelMediaExportMediaCache* _tmp22_ = NULL;
		const gchar* _tmp23_ = NULL;
#line 632 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp22_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 632 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp23_ = id;
#line 632 "/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 632 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 632 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_propagate_error (error, _inner_error_);
#line 632 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (query_container);
#line 632 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (factory);
#line 632 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_free0 (id);
#line 632 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return;
#line 4395 "rygel-media-export-root-container.c"
		}
	}
#line 601 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (query_container);
#line 601 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (factory);
#line 601 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (id);
#line 4404 "rygel-media-export-root-container.c"
}


/**
     * Add a parent container with child containers for the definitions,
     * saving them in the cache.
     */
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* container = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	RygelNullContainer* _tmp4_ = NULL;
	RygelNullContainer* _tmp5_ = NULL;
	RygelMediaExportMediaCache* _tmp6_ = NULL;
	RygelNullContainer* _tmp7_ = NULL;
	RygelMediaExportFolderDefinition* _tmp11_ = NULL;
	gint _tmp11__length1 = 0;
	gboolean _tmp17_ = FALSE;
	gint _tmp18_ = 0;
	RygelMediaExportMediaCache* _tmp19_ = NULL;
	RygelNullContainer* _tmp20_ = NULL;
	const gchar* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	gint _tmp23_ = 0;
	gboolean _tmp28_ = FALSE;
	GError * _inner_error_ = NULL;
#line 640 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (self != NULL);
#line 640 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (parent != NULL);
#line 640 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_return_if_fail (item_class != NULL);
#line 652 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp0_ = item_class;
#line 652 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp1_ = g_strconcat ("virtual-parent:", _tmp0_, NULL);
#line 652 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp2_ = _tmp1_;
#line 652 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp3_ = parent;
#line 652 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp4_ = rygel_null_container_new (_tmp2_, (RygelMediaContainer*) self, _tmp3_);
#line 652 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp5_ = _tmp4_;
#line 652 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_free0 (_tmp2_);
#line 652 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	container = _tmp5_;
#line 653 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp6_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 653 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp7_ = container;
#line 653 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	rygel_media_export_media_cache_save_container (_tmp6_, (RygelMediaContainer*) _tmp7_, &_inner_error_);
#line 653 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 653 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 653 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (container);
#line 653 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 4469 "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 656 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		definition_collection = VIRTUAL_FOLDERS_DEFAULT;
#line 656 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		definition_collection_length1 = G_N_ELEMENTS (VIRTUAL_FOLDERS_DEFAULT);
#line 656 "/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 4482 "rygel-media-export-root-container.c"
			RygelMediaExportFolderDefinition definition = {0};
#line 656 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			definition = definition_collection[definition_it];
#line 4486 "rygel-media-export-root-container.c"
			{
				RygelNullContainer* _tmp8_ = NULL;
				const gchar* _tmp9_ = NULL;
				RygelMediaExportFolderDefinition _tmp10_ = {0};
#line 657 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp8_ = container;
#line 657 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp9_ = item_class;
#line 657 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				_tmp10_ = definition;
#line 657 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				rygel_media_export_root_container_add_folder_definition (self, (RygelMediaContainer*) _tmp8_, _tmp9_, &_tmp10_, &_inner_error_);
#line 657 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				if (_inner_error_ != NULL) {
#line 657 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					g_propagate_error (error, _inner_error_);
#line 657 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_g_object_unref0 (container);
#line 657 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					return;
#line 4507 "rygel-media-export-root-container.c"
				}
			}
		}
	}
#line 661 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp11_ = definitions;
#line 661 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp11__length1 = definitions_length1;
#line 661 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp11_ != NULL) {
#line 4518 "rygel-media-export-root-container.c"
		RygelMediaExportFolderDefinition* _tmp12_ = NULL;
		gint _tmp12__length1 = 0;
#line 662 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp12_ = definitions;
#line 662 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp12__length1 = definitions_length1;
#line 4525 "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 662 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			definition_collection = _tmp12_;
#line 662 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			definition_collection_length1 = _tmp12__length1;
#line 662 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			for (definition_it = 0; definition_it < _tmp12__length1; definition_it = definition_it + 1) {
#line 4537 "rygel-media-export-root-container.c"
				RygelMediaExportFolderDefinition _tmp13_ = {0};
				RygelMediaExportFolderDefinition definition = {0};
#line 662 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				rygel_media_export_folder_definition_copy (&definition_collection[definition_it], &_tmp13_);
#line 662 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
				definition = _tmp13_;
#line 4544 "rygel-media-export-root-container.c"
				{
					RygelNullContainer* _tmp14_ = NULL;
					const gchar* _tmp15_ = NULL;
					RygelMediaExportFolderDefinition _tmp16_ = {0};
#line 663 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp14_ = container;
#line 663 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp15_ = item_class;
#line 663 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					_tmp16_ = definition;
#line 663 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					rygel_media_export_root_container_add_folder_definition (self, (RygelMediaContainer*) _tmp14_, _tmp15_, &_tmp16_, &_inner_error_);
#line 663 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					if (_inner_error_ != NULL) {
#line 663 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
						g_propagate_error (error, _inner_error_);
#line 663 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
						rygel_media_export_folder_definition_destroy (&definition);
#line 663 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
						_g_object_unref0 (container);
#line 663 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
						return;
#line 4567 "rygel-media-export-root-container.c"
					}
#line 662 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
					rygel_media_export_folder_definition_destroy (&definition);
#line 4571 "rygel-media-export-root-container.c"
				}
			}
		}
	}
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp19_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp20_ = container;
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp21_ = rygel_media_object_get_id ((RygelMediaObject*) _tmp20_);
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp22_ = _tmp21_;
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp23_ = rygel_media_export_media_cache_get_child_count (_tmp19_, _tmp22_, &_inner_error_);
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp18_ = _tmp23_;
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_inner_error_ != NULL) {
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		g_propagate_error (error, _inner_error_);
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_g_object_unref0 (container);
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		return;
#line 4596 "rygel-media-export-root-container.c"
	}
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp18_ == 0) {
#line 4600 "rygel-media-export-root-container.c"
		RygelNullContainer* _tmp24_ = NULL;
		const gchar* _tmp25_ = NULL;
		const gchar* _tmp26_ = NULL;
		gboolean _tmp27_ = FALSE;
#line 670 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp24_ = container;
#line 670 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp25_ = rygel_media_object_get_id ((RygelMediaObject*) _tmp24_);
#line 670 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp26_ = _tmp25_;
#line 670 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp27_ = g_str_has_prefix (_tmp26_, "virtual-parent:" RYGEL_PLAYLIST_ITEM_UPNP_CLASS);
#line 670 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp17_ = !_tmp27_;
#line 4615 "rygel-media-export-root-container.c"
	} else {
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp17_ = FALSE;
#line 4619 "rygel-media-export-root-container.c"
	}
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_tmp28_ = _tmp17_;
#line 669 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	if (_tmp28_) {
#line 4625 "rygel-media-export-root-container.c"
		RygelMediaExportMediaCache* _tmp29_ = NULL;
		RygelNullContainer* _tmp30_ = NULL;
		const gchar* _tmp31_ = NULL;
		const gchar* _tmp32_ = NULL;
#line 672 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp29_ = ((RygelMediaExportDBContainer*) self)->media_db;
#line 672 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp30_ = container;
#line 672 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp31_ = rygel_media_object_get_id ((RygelMediaObject*) _tmp30_);
#line 672 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp32_ = _tmp31_;
#line 672 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_export_media_cache_remove_by_id (_tmp29_, _tmp32_, &_inner_error_);
#line 672 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		if (_inner_error_ != NULL) {
#line 672 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			g_propagate_error (error, _inner_error_);
#line 672 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			_g_object_unref0 (container);
#line 672 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
			return;
#line 4648 "rygel-media-export-root-container.c"
		}
	} else {
		RygelNullContainer* _tmp33_ = NULL;
#line 674 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		_tmp33_ = container;
#line 674 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
		rygel_media_container_updated ((RygelMediaContainer*) _tmp33_, NULL, RYGEL_OBJECT_EVENT_TYPE_MODIFIED, FALSE);
#line 4656 "rygel-media-export-root-container.c"
	}
#line 640 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (container);
#line 4660 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_class_init (RygelMediaExportRootContainerClass * klass) {
#line 47 "/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 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	g_type_class_add_private (klass, sizeof (RygelMediaExportRootContainerPrivate));
#line 47 "/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 47 "/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 47 "/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 47 "/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 47 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	RYGEL_MEDIA_EXPORT_TRACKABLE_DB_CONTAINER_CLASS (klass)->get_system_update_id = rygel_media_export_root_container_real_get_system_update_id;
#line 47 "/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 4681 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_instance_init (RygelMediaExportRootContainer * self) {
#line 47 "/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 351 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	self->priv->initialized = FALSE;
#line 4690 "rygel-media-export-root-container.c"
}


static void rygel_media_export_root_container_finalize (GObject* obj) {
	RygelMediaExportRootContainer * self;
#line 47 "/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 48 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (self->priv->harvester);
#line 49 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (self->priv->cancellable);
#line 50 "/home/jens/Source/rygel/src/plugins/media-export/rygel-media-export-root-container.vala"
	_g_object_unref0 (self->priv->filesystem_container);
#line 47 "/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 4706 "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_TRACKABLE_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;
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


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



