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

/*
 * Copyright (C) 2009 Jens Georg
 *
 * Author: 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 <libxml/xpath.h>
#include <rygel-core.h>
#include <rygel-server.h>
#include <stdlib.h>
#include <string.h>


#define RYGEL_MEDIATHEK_TYPE_PLUGIN (rygel_mediathek_plugin_get_type ())
#define RYGEL_MEDIATHEK_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIATHEK_TYPE_PLUGIN, RygelMediathekPlugin))
#define RYGEL_MEDIATHEK_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIATHEK_TYPE_PLUGIN, RygelMediathekPluginClass))
#define RYGEL_MEDIATHEK_IS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIATHEK_TYPE_PLUGIN))
#define RYGEL_MEDIATHEK_IS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIATHEK_TYPE_PLUGIN))
#define RYGEL_MEDIATHEK_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIATHEK_TYPE_PLUGIN, RygelMediathekPluginClass))

typedef struct _RygelMediathekPlugin RygelMediathekPlugin;
typedef struct _RygelMediathekPluginClass RygelMediathekPluginClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _RygelMediathekPluginPrivate RygelMediathekPluginPrivate;

#define RYGEL_MEDIATHEK_TYPE_ROOT_CONTAINER (rygel_mediathek_root_container_get_type ())
#define RYGEL_MEDIATHEK_ROOT_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_MEDIATHEK_TYPE_ROOT_CONTAINER, RygelMediathekRootContainer))
#define RYGEL_MEDIATHEK_ROOT_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_MEDIATHEK_TYPE_ROOT_CONTAINER, RygelMediathekRootContainerClass))
#define RYGEL_MEDIATHEK_IS_ROOT_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_MEDIATHEK_TYPE_ROOT_CONTAINER))
#define RYGEL_MEDIATHEK_IS_ROOT_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_MEDIATHEK_TYPE_ROOT_CONTAINER))
#define RYGEL_MEDIATHEK_ROOT_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_MEDIATHEK_TYPE_ROOT_CONTAINER, RygelMediathekRootContainerClass))

typedef struct _RygelMediathekRootContainer RygelMediathekRootContainer;
typedef struct _RygelMediathekRootContainerClass RygelMediathekRootContainerClass;

struct _RygelMediathekPlugin {
	RygelMediaServerPlugin parent_instance;
	RygelMediathekPluginPrivate * priv;
};

struct _RygelMediathekPluginClass {
	RygelMediaServerPluginClass parent_class;
};


static gpointer rygel_mediathek_plugin_parent_class = NULL;

void xmlXPathFreeObject (xmlXPathObject* object);
void module_init (RygelPluginLoader* loader);
GType rygel_mediathek_plugin_get_type (void) G_GNUC_CONST;
RygelMediathekPlugin* rygel_mediathek_plugin_new (void);
RygelMediathekPlugin* rygel_mediathek_plugin_construct (GType object_type);
enum  {
	RYGEL_MEDIATHEK_PLUGIN_DUMMY_PROPERTY
};
#define RYGEL_MEDIATHEK_PLUGIN_NAME "ZDFMediathek"
GType rygel_mediathek_root_container_get_type (void) G_GNUC_CONST;
RygelMediathekRootContainer* rygel_mediathek_root_container_get_instance (void);


void module_init (RygelPluginLoader* loader) {
	RygelMediathekPlugin* plugin = NULL;
	RygelMediathekPlugin* _tmp0_ = NULL;
	RygelPluginLoader* _tmp1_ = NULL;
	g_return_if_fail (loader != NULL);
	_tmp0_ = rygel_mediathek_plugin_new ();
	plugin = _tmp0_;
	_tmp1_ = loader;
	rygel_plugin_loader_add_plugin (_tmp1_, (RygelPlugin*) plugin);
	_g_object_unref0 (plugin);
}


RygelMediathekPlugin* rygel_mediathek_plugin_construct (GType object_type) {
	RygelMediathekPlugin * self = NULL;
	RygelMediathekRootContainer* _tmp0_ = NULL;
	RygelMediathekRootContainer* _tmp1_ = NULL;
	_tmp0_ = rygel_mediathek_root_container_get_instance ();
	_tmp1_ = _tmp0_;
	self = (RygelMediathekPlugin*) rygel_media_server_plugin_construct (object_type, (RygelMediaContainer*) _tmp1_, RYGEL_MEDIATHEK_PLUGIN_NAME, NULL, RYGEL_PLUGIN_CAPABILITIES_TRACK_CHANGES);
	_g_object_unref0 (_tmp1_);
	return self;
}


RygelMediathekPlugin* rygel_mediathek_plugin_new (void) {
	return rygel_mediathek_plugin_construct (RYGEL_MEDIATHEK_TYPE_PLUGIN);
}


static void rygel_mediathek_plugin_class_init (RygelMediathekPluginClass * klass) {
	rygel_mediathek_plugin_parent_class = g_type_class_peek_parent (klass);
}


static void rygel_mediathek_plugin_instance_init (RygelMediathekPlugin * self) {
}


GType rygel_mediathek_plugin_get_type (void) {
	static volatile gsize rygel_mediathek_plugin_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_mediathek_plugin_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMediathekPluginClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_mediathek_plugin_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMediathekPlugin), 0, (GInstanceInitFunc) rygel_mediathek_plugin_instance_init, NULL };
		GType rygel_mediathek_plugin_type_id;
		rygel_mediathek_plugin_type_id = g_type_register_static (RYGEL_TYPE_MEDIA_SERVER_PLUGIN, "RygelMediathekPlugin", &g_define_type_info, 0);
		g_once_init_leave (&rygel_mediathek_plugin_type_id__volatile, rygel_mediathek_plugin_type_id);
	}
	return rygel_mediathek_plugin_type_id__volatile;
}



