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

/*
 * Copyright (C) 2008-2009 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.1 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 library; 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-core.h>
#include <rygel-server.h>
#include <gee.h>
#include <glib/gi18n-lib.h>

#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block1Data Block1Data;

#define RYGEL_MEDIA_EXPORT_TYPE_PLUGIN (rygel_media_export_plugin_get_type ())
#define RYGEL_MEDIA_EXPORT_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIA_EXPORT_TYPE_PLUGIN, RygelMediaExportPlugin))
#define RYGEL_MEDIA_EXPORT_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIA_EXPORT_TYPE_PLUGIN, RygelMediaExportPluginClass))
#define RYGEL_MEDIA_EXPORT_IS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIA_EXPORT_TYPE_PLUGIN))
#define RYGEL_MEDIA_EXPORT_IS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIA_EXPORT_TYPE_PLUGIN))
#define RYGEL_MEDIA_EXPORT_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIA_EXPORT_TYPE_PLUGIN, RygelMediaExportPluginClass))

typedef struct _RygelMediaExportPlugin RygelMediaExportPlugin;
typedef struct _RygelMediaExportPluginClass RygelMediaExportPluginClass;
typedef struct _Block2Data Block2Data;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block3Data Block3Data;

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

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

#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 _RygelMediaExportPluginPrivate RygelMediaExportPluginPrivate;
enum  {
	RYGEL_MEDIA_EXPORT_PLUGIN_0_PROPERTY,
	RYGEL_MEDIA_EXPORT_PLUGIN_NUM_PROPERTIES
};
static GParamSpec* rygel_media_export_plugin_properties[RYGEL_MEDIA_EXPORT_PLUGIN_NUM_PROPERTIES];

struct _Block1Data {
	int _ref_count_;
	RygelPluginLoader* loader;
};

struct _Block2Data {
	int _ref_count_;
	Block1Data * _data1_;
	RygelMediaExportPlugin* plugin;
};

struct _Block3Data {
	int _ref_count_;
	RygelPlugin* plugin;
	RygelPlugin* our_plugin;
};

struct _RygelMediaExportPlugin {
	RygelMediaServerPlugin parent_instance;
	RygelMediaExportPluginPrivate * priv;
};

struct _RygelMediaExportPluginClass {
	RygelMediaServerPluginClass parent_class;
};


static gpointer rygel_media_export_plugin_parent_class = NULL;

#define TRACKER_PLUGIN "Tracker"
void module_init (RygelPluginLoader* loader);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
GType rygel_media_export_plugin_get_type (void) G_GNUC_CONST;
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
RygelMediaExportPlugin* rygel_media_export_plugin_new (GError** error);
RygelMediaExportPlugin* rygel_media_export_plugin_construct (GType object_type,
                                                             GError** error);
static gboolean ___lambda10_ (Block2Data* _data2_);
void on_plugin_available (RygelPlugin* plugin,
                          RygelPlugin* our_plugin);
static void __lambda12_ (Block2Data* _data2_,
                  RygelPlugin* new_plugin);
static void ___lambda12__rygel_plugin_loader_plugin_available (RygelPluginLoader* _sender,
                                                        RygelPlugin* plugin,
                                                        gpointer self);
static gboolean ____lambda10__gsource_func (gpointer self);
#define RYGEL_MEDIA_EXPORT_PLUGIN_NAME "MediaExport"
static Block3Data* block3_data_ref (Block3Data* _data3_);
static void block3_data_unref (void * _userdata_);
static void ____lambda11_ (Block3Data* _data3_);
void shutdown_media_export (void);
static void _____lambda11__g_object_notify (GObject* _sender,
                                     GParamSpec* pspec,
                                     gpointer self);
GType rygel_media_export_db_container_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;
RygelMediaExportRootContainer* rygel_media_export_root_container_get_instance (void);
void rygel_media_export_root_container_shutdown (RygelMediaExportRootContainer* self);
void rygel_media_export_root_container_ensure_exists (GError** error);


/**
 * Simple plugin which exposes the media contents of a directory via UPnP.
 *
 */
static gpointer
_g_object_ref0 (gpointer self)
{
	return self ? g_object_ref (self) : NULL;
}


static Block1Data*
block1_data_ref (Block1Data* _data1_)
{
	g_atomic_int_inc (&_data1_->_ref_count_);
	return _data1_;
}


static void
block1_data_unref (void * _userdata_)
{
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
		_g_object_unref0 (_data1_->loader);
		g_slice_free (Block1Data, _data1_);
	}
}


static Block2Data*
block2_data_ref (Block2Data* _data2_)
{
	g_atomic_int_inc (&_data2_->_ref_count_);
	return _data2_;
}


static void
block2_data_unref (void * _userdata_)
{
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
		_g_object_unref0 (_data2_->plugin);
		block1_data_unref (_data2_->_data1_);
		_data2_->_data1_ = NULL;
		g_slice_free (Block2Data, _data2_);
	}
}


static void
__lambda12_ (Block2Data* _data2_,
             RygelPlugin* new_plugin)
{
	Block1Data* _data1_;
	_data1_ = _data2_->_data1_;
	g_return_if_fail (new_plugin != NULL);
	on_plugin_available (new_plugin, (RygelPlugin*) _data2_->plugin);
}


static void
___lambda12__rygel_plugin_loader_plugin_available (RygelPluginLoader* _sender,
                                                   RygelPlugin* plugin,
                                                   gpointer self)
{
	__lambda12_ (self, plugin);
}


static gboolean
___lambda10_ (Block2Data* _data2_)
{
	Block1Data* _data1_;
	gboolean result = FALSE;
	_data1_ = _data2_->_data1_;
	{
		GeeIterator* _loaded_plugin_it = NULL;
		GeeCollection* _tmp0_;
		GeeCollection* _tmp1_;
		GeeIterator* _tmp2_;
		GeeIterator* _tmp3_;
		_tmp0_ = rygel_plugin_loader_list_plugins (_data1_->loader);
		_tmp1_ = _tmp0_;
		_tmp2_ = gee_iterable_iterator ((GeeIterable*) _tmp1_);
		_tmp3_ = _tmp2_;
		_g_object_unref0 (_tmp1_);
		_loaded_plugin_it = _tmp3_;
		while (TRUE) {
			GeeIterator* _tmp4_;
			RygelPlugin* loaded_plugin = NULL;
			GeeIterator* _tmp5_;
			gpointer _tmp6_;
			RygelPlugin* _tmp7_;
			_tmp4_ = _loaded_plugin_it;
			if (!gee_iterator_next (_tmp4_)) {
				break;
			}
			_tmp5_ = _loaded_plugin_it;
			_tmp6_ = gee_iterator_get (_tmp5_);
			loaded_plugin = (RygelPlugin*) _tmp6_;
			_tmp7_ = loaded_plugin;
			on_plugin_available (_tmp7_, (RygelPlugin*) _data2_->plugin);
			_g_object_unref0 (loaded_plugin);
		}
		_g_object_unref0 (_loaded_plugin_it);
	}
	g_signal_connect_data (_data1_->loader, "plugin-available", (GCallback) ___lambda12__rygel_plugin_loader_plugin_available, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
	result = FALSE;
	return result;
}


static gboolean
____lambda10__gsource_func (gpointer self)
{
	gboolean result;
	result = ___lambda10_ (self);
	return result;
}


void
module_init (RygelPluginLoader* loader)
{
	Block1Data* _data1_;
	RygelPluginLoader* _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (loader != NULL);
	_data1_ = g_slice_new0 (Block1Data);
	_data1_->_ref_count_ = 1;
	_tmp0_ = _g_object_ref0 (loader);
	_g_object_unref0 (_data1_->loader);
	_data1_->loader = _tmp0_;
	{
		Block2Data* _data2_;
		RygelMediaExportPlugin* _tmp1_;
		_data2_ = g_slice_new0 (Block2Data);
		_data2_->_ref_count_ = 1;
		_data2_->_data1_ = block1_data_ref (_data1_);
		_tmp1_ = rygel_media_export_plugin_new (&_inner_error_);
		_data2_->plugin = _tmp1_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			block2_data_unref (_data2_);
			_data2_ = NULL;
			goto __catch0_g_error;
		}
		g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ____lambda10__gsource_func, block2_data_ref (_data2_), block2_data_unref);
		rygel_plugin_loader_add_plugin (_data1_->loader, (RygelPlugin*) _data2_->plugin);
		block2_data_unref (_data2_);
		_data2_ = NULL;
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp2_;
		const gchar* _tmp3_;
		_error_ = _inner_error_;
		_inner_error_ = NULL;
		_tmp2_ = _error_;
		_tmp3_ = _tmp2_->message;
		g_warning (_ ("Failed to load plugin %s: %s"), RYGEL_MEDIA_EXPORT_PLUGIN_NAME, _tmp3_);
		_g_error_free0 (_error_);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		block1_data_unref (_data1_);
		_data1_ = NULL;
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
	block1_data_unref (_data1_);
	_data1_ = NULL;
}


static Block3Data*
block3_data_ref (Block3Data* _data3_)
{
	g_atomic_int_inc (&_data3_->_ref_count_);
	return _data3_;
}


static void
block3_data_unref (void * _userdata_)
{
	Block3Data* _data3_;
	_data3_ = (Block3Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
		_g_object_unref0 (_data3_->plugin);
		_g_object_unref0 (_data3_->our_plugin);
		g_slice_free (Block3Data, _data3_);
	}
}


static void
____lambda11_ (Block3Data* _data3_)
{
	gboolean _tmp0_;
	gboolean _tmp1_;
	_tmp0_ = rygel_plugin_get_active (_data3_->plugin);
	_tmp1_ = _tmp0_;
	if (_tmp1_) {
		gboolean _tmp2_;
		gboolean _tmp3_;
		shutdown_media_export ();
		_tmp2_ = rygel_plugin_get_active (_data3_->plugin);
		_tmp3_ = _tmp2_;
		rygel_plugin_set_active (_data3_->our_plugin, !_tmp3_);
	}
}


static void
_____lambda11__g_object_notify (GObject* _sender,
                                GParamSpec* pspec,
                                gpointer self)
{
	____lambda11_ (self);
}


void
on_plugin_available (RygelPlugin* plugin,
                     RygelPlugin* our_plugin)
{
	Block3Data* _data3_;
	RygelPlugin* _tmp0_;
	RygelPlugin* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	g_return_if_fail (plugin != NULL);
	g_return_if_fail (our_plugin != NULL);
	_data3_ = g_slice_new0 (Block3Data);
	_data3_->_ref_count_ = 1;
	_tmp0_ = _g_object_ref0 (plugin);
	_g_object_unref0 (_data3_->plugin);
	_data3_->plugin = _tmp0_;
	_tmp1_ = _g_object_ref0 (our_plugin);
	_g_object_unref0 (_data3_->our_plugin);
	_data3_->our_plugin = _tmp1_;
	_tmp2_ = rygel_plugin_get_name (_data3_->plugin);
	_tmp3_ = _tmp2_;
	if (g_strcmp0 (_tmp3_, TRACKER_PLUGIN) == 0) {
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_;
		gboolean _tmp6_;
		_tmp5_ = rygel_plugin_get_active (_data3_->our_plugin);
		_tmp6_ = _tmp5_;
		if (_tmp6_) {
			gboolean _tmp7_;
			gboolean _tmp8_;
			_tmp7_ = rygel_plugin_get_active (_data3_->plugin);
			_tmp8_ = _tmp7_;
			_tmp4_ = !_tmp8_;
		} else {
			_tmp4_ = FALSE;
		}
		if (_tmp4_) {
			g_signal_connect_data ((GObject*) _data3_->plugin, "notify::active", (GCallback) _____lambda11__g_object_notify, block3_data_ref (_data3_), (GClosureNotify) block3_data_unref, 0);
		} else {
			gboolean _tmp9_;
			gboolean _tmp10_;
			gboolean _tmp11_;
			gboolean _tmp12_;
			_tmp9_ = rygel_plugin_get_active (_data3_->our_plugin);
			_tmp10_ = _tmp9_;
			_tmp11_ = rygel_plugin_get_active (_data3_->plugin);
			_tmp12_ = _tmp11_;
			if (_tmp10_ == _tmp12_) {
				gboolean _tmp13_;
				gboolean _tmp14_;
				gboolean _tmp15_;
				gboolean _tmp16_;
				_tmp13_ = rygel_plugin_get_active (_data3_->plugin);
				_tmp14_ = _tmp13_;
				if (_tmp14_) {
					shutdown_media_export ();
				} else {
					g_message ("rygel-media-export-plugin.vala:80: Plugin '%s' inactivate, activating " \
"'%s' plugin", TRACKER_PLUGIN, RYGEL_MEDIA_EXPORT_PLUGIN_NAME);
				}
				_tmp15_ = rygel_plugin_get_active (_data3_->plugin);
				_tmp16_ = _tmp15_;
				rygel_plugin_set_active (_data3_->our_plugin, !_tmp16_);
			}
		}
	}
	block3_data_unref (_data3_);
	_data3_ = NULL;
}


void
shutdown_media_export (void)
{
	GError * _inner_error_ = NULL;
	g_message ("rygel-media-export-plugin.vala:90: Deactivating plugin '%s' in favor o" \
"f plugin '%s'", RYGEL_MEDIA_EXPORT_PLUGIN_NAME, TRACKER_PLUGIN);
	{
		RygelMetaConfig* config = NULL;
		RygelMetaConfig* _tmp0_;
		gboolean enabled = FALSE;
		_tmp0_ = rygel_meta_config_get_default ();
		config = _tmp0_;
		enabled = rygel_configuration_get_bool ((RygelConfiguration*) config, "MediaExport", "enabled", &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			_g_object_unref0 (config);
			goto __catch1_g_error;
		}
		if (enabled) {
			RygelMediaExportRootContainer* root = NULL;
			RygelMediaExportRootContainer* _tmp1_;
			RygelMediaExportRootContainer* _tmp2_;
			_tmp1_ = rygel_media_export_root_container_get_instance ();
			root = _tmp1_;
			_tmp2_ = root;
			rygel_media_export_root_container_shutdown (_tmp2_);
			_g_object_unref0 (root);
		}
		_g_object_unref0 (config);
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* _error_ = NULL;
		_error_ = _inner_error_;
		_inner_error_ = NULL;
		_g_error_free0 (_error_);
	}
	__finally1:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
}


/**
     * Instantiate the plugin.
     */
RygelMediaExportPlugin*
rygel_media_export_plugin_construct (GType object_type,
                                     GError** error)
{
	RygelMediaExportPlugin * self = NULL;
	RygelMediaExportRootContainer* _tmp0_;
	RygelMediaExportRootContainer* _tmp1_;
	GError * _inner_error_ = NULL;
	rygel_media_export_root_container_ensure_exists (&_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_object_unref0 (self);
		return NULL;
	}
	_tmp0_ = rygel_media_export_root_container_get_instance ();
	_tmp1_ = _tmp0_;
	self = (RygelMediaExportPlugin*) rygel_media_server_plugin_construct (object_type, (RygelMediaContainer*) _tmp1_, RYGEL_MEDIA_EXPORT_PLUGIN_NAME, NULL, RYGEL_PLUGIN_CAPABILITIES_UPLOAD | RYGEL_PLUGIN_CAPABILITIES_TRACK_CHANGES);
	_g_object_unref0 (_tmp1_);
	return self;
}


RygelMediaExportPlugin*
rygel_media_export_plugin_new (GError** error)
{
	return rygel_media_export_plugin_construct (RYGEL_MEDIA_EXPORT_TYPE_PLUGIN, error);
}


static void
rygel_media_export_plugin_class_init (RygelMediaExportPluginClass * klass)
{
	rygel_media_export_plugin_parent_class = g_type_class_peek_parent (klass);
}


static void
rygel_media_export_plugin_instance_init (RygelMediaExportPlugin * self)
{
}


GType
rygel_media_export_plugin_get_type (void)
{
	static volatile gsize rygel_media_export_plugin_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_media_export_plugin_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMediaExportPluginClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_media_export_plugin_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMediaExportPlugin), 0, (GInstanceInitFunc) rygel_media_export_plugin_instance_init, NULL };
		GType rygel_media_export_plugin_type_id;
		rygel_media_export_plugin_type_id = g_type_register_static (RYGEL_TYPE_MEDIA_SERVER_PLUGIN, "RygelMediaExportPlugin", &g_define_type_info, 0);
		g_once_init_leave (&rygel_media_export_plugin_type_id__volatile, rygel_media_export_plugin_type_id);
	}
	return rygel_media_export_plugin_type_id__volatile;
}



