/* documentation.c generated by valac, the Vala compiler
 * generated from documentation.vala, do not modify */

/* documentation.vala
 *
 * Copyright (C) 2008-2009 Florian Brosch
 *
 * This library 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.
 *
 * This library 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
 *
 * Author:
 *  Florian Brosch <flo.brosch@gmail.com>
 */

#include <glib.h>
#include <glib-object.h>
#include "valadoc.h"
#include <stdlib.h>
#include <string.h>






/**
 * The corresponding file name
 */
gchar* valadoc_documentation_get_filename (ValadocDocumentation* self) {
	g_return_val_if_fail (self != NULL, NULL);
	return VALADOC_DOCUMENTATION_GET_INTERFACE (self)->get_filename (self);
}


ValadocApiPackage* valadoc_documentation_get_package (ValadocDocumentation* self) {
	g_return_val_if_fail (self != NULL, NULL);
	return VALADOC_DOCUMENTATION_GET_INTERFACE (self)->get_package (self);
}


static void valadoc_documentation_base_init (ValadocDocumentationIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
		/**
		 * The corresponding package
		 */
		g_object_interface_install_property (iface, g_param_spec_object ("package", "package", "package", VALADOC_API_TYPE_PACKAGE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	}
}


GType valadoc_documentation_get_type (void) {
	static volatile gsize valadoc_documentation_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_documentation_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValadocDocumentationIface), (GBaseInitFunc) valadoc_documentation_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType valadoc_documentation_type_id;
		valadoc_documentation_type_id = g_type_register_static (G_TYPE_INTERFACE, "ValadocDocumentation", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (valadoc_documentation_type_id, G_TYPE_OBJECT);
		g_once_init_leave (&valadoc_documentation_type_id__volatile, valadoc_documentation_type_id);
	}
	return valadoc_documentation_type_id__volatile;
}



