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

/* valasourcelocation.vala
 *
 * Copyright (C) 2008  Jürg Billeter
 *
 * 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:
 * 	Jürg Billeter <j@bitron.ch>
 */

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






void valadoc_markup_source_location_init (ValadocMarkupSourceLocation *self, gchar* _pos, gint _line, gint _column) {
	gchar* _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
	memset (self, 0, sizeof (ValadocMarkupSourceLocation));
	_tmp0_ = _pos;
	(*self).pos = _tmp0_;
	_tmp1_ = _line;
	(*self).line = _tmp1_;
	_tmp2_ = _column;
	(*self).column = _tmp2_;
}


ValadocMarkupSourceLocation* valadoc_markup_source_location_dup (const ValadocMarkupSourceLocation* self) {
	ValadocMarkupSourceLocation* dup;
	dup = g_new0 (ValadocMarkupSourceLocation, 1);
	memcpy (dup, self, sizeof (ValadocMarkupSourceLocation));
	return dup;
}


void valadoc_markup_source_location_free (ValadocMarkupSourceLocation* self) {
	g_free (self);
}


GType valadoc_markup_source_location_get_type (void) {
	static volatile gsize valadoc_markup_source_location_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_markup_source_location_type_id__volatile)) {
		GType valadoc_markup_source_location_type_id;
		valadoc_markup_source_location_type_id = g_boxed_type_register_static ("ValadocMarkupSourceLocation", (GBoxedCopyFunc) valadoc_markup_source_location_dup, (GBoxedFreeFunc) valadoc_markup_source_location_free);
		g_once_init_leave (&valadoc_markup_source_location_type_id__volatile, valadoc_markup_source_location_type_id);
	}
	return valadoc_markup_source_location_type_id__volatile;
}



