/* example-server-plugin-vala.c generated by valac 0.56.1, the Vala compiler
 * generated from example-server-plugin-vala.vala, do not modify */

/*
 * Copyright (C) 2012 Intel Corporation
 *
 * 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 "rygel-example-server-plugin-vala.h"
#include "rygel-core.h"
#include <glib.h>
#include "rygel-server.h"

#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
enum  {
	RYGEL_EXAMPLE_SERVER_PLUGIN_VALA_0_PROPERTY,
	RYGEL_EXAMPLE_SERVER_PLUGIN_VALA_NUM_PROPERTIES
};
static GParamSpec* rygel_example_server_plugin_vala_properties[RYGEL_EXAMPLE_SERVER_PLUGIN_VALA_NUM_PROPERTIES];

static gpointer rygel_example_server_plugin_vala_parent_class = NULL;

static GType rygel_example_server_plugin_vala_get_type_once (void);

void
module_init (RygelPluginLoader* loader)
{
	RygelExampleServerPluginVala* plugin = NULL;
	RygelExampleServerPluginVala* _tmp0_;
	RygelExampleServerPluginVala* _tmp1_;
	g_return_if_fail (loader != NULL);
	if (rygel_plugin_loader_plugin_disabled (loader, RYGEL_EXAMPLE_SERVER_PLUGIN_VALA_NAME)) {
		g_message ("example-server-plugin-vala.vala:26: Plugin '%s' disabled by user. Igno" \
"ring.", RYGEL_EXAMPLE_SERVER_PLUGIN_VALA_NAME);
		return;
	}
	_tmp0_ = rygel_example_server_plugin_vala_new ();
	plugin = _tmp0_;
	_tmp1_ = plugin;
	rygel_plugin_loader_add_plugin (loader, (RygelPlugin*) _tmp1_);
	_g_object_unref0 (plugin);
}

RygelExampleServerPluginVala*
rygel_example_server_plugin_vala_construct (GType object_type)
{
	RygelExampleServerPluginVala * self = NULL;
	RygelExampleRootContainerVala* root_container = NULL;
	RygelExampleRootContainerVala* _tmp0_;
	_tmp0_ = rygel_example_root_container_vala_new (RYGEL_EXAMPLE_SERVER_PLUGIN_VALA_TITLE);
	root_container = _tmp0_;
	self = (RygelExampleServerPluginVala*) rygel_media_server_plugin_construct (object_type, (RygelMediaContainer*) root_container, RYGEL_EXAMPLE_SERVER_PLUGIN_VALA_NAME, RYGEL_EXAMPLE_SERVER_PLUGIN_VALA_DESCRIPTION, RYGEL_PLUGIN_CAPABILITIES_NONE);
	_g_object_unref0 (root_container);
	return self;
}

RygelExampleServerPluginVala*
rygel_example_server_plugin_vala_new (void)
{
	return rygel_example_server_plugin_vala_construct (RYGEL_EXAMPLE_TYPE_SERVER_PLUGIN_VALA);
}

static void
rygel_example_server_plugin_vala_class_init (RygelExampleServerPluginValaClass * klass,
                                             gpointer klass_data)
{
	rygel_example_server_plugin_vala_parent_class = g_type_class_peek_parent (klass);
}

static void
rygel_example_server_plugin_vala_instance_init (RygelExampleServerPluginVala * self,
                                                gpointer klass)
{
}

static GType
rygel_example_server_plugin_vala_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (RygelExampleServerPluginValaClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_example_server_plugin_vala_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelExampleServerPluginVala), 0, (GInstanceInitFunc) rygel_example_server_plugin_vala_instance_init, NULL };
	GType rygel_example_server_plugin_vala_type_id;
	rygel_example_server_plugin_vala_type_id = g_type_register_static (RYGEL_TYPE_MEDIA_SERVER_PLUGIN, "RygelExampleServerPluginVala", &g_define_type_info, 0);
	return rygel_example_server_plugin_vala_type_id;
}

GType
rygel_example_server_plugin_vala_get_type (void)
{
	static volatile gsize rygel_example_server_plugin_vala_type_id__once = 0;
	if (g_once_init_enter (&rygel_example_server_plugin_vala_type_id__once)) {
		GType rygel_example_server_plugin_vala_type_id;
		rygel_example_server_plugin_vala_type_id = rygel_example_server_plugin_vala_get_type_once ();
		g_once_init_leave (&rygel_example_server_plugin_vala_type_id__once, rygel_example_server_plugin_vala_type_id);
	}
	return rygel_example_server_plugin_vala_type_id__once;
}

