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

/* ownership.vala
 *
 * Copyright (C) 2011  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>






gchar* valadoc_api_ownership_to_string (ValadocApiOwnership self) {
	gchar* result = NULL;
	switch (self) {
		case VALADOC_API_OWNERSHIP_UNOWNED:
		{
			gchar* _tmp0_;
			_tmp0_ = g_strdup ("unowned");
			result = _tmp0_;
			return result;
		}
		case VALADOC_API_OWNERSHIP_OWNED:
		{
			gchar* _tmp1_;
			_tmp1_ = g_strdup ("owned");
			result = _tmp1_;
			return result;
		}
		case VALADOC_API_OWNERSHIP_WEAK:
		{
			gchar* _tmp2_;
			_tmp2_ = g_strdup ("weak");
			result = _tmp2_;
			return result;
		}
		case VALADOC_API_OWNERSHIP_DEFAULT:
		{
			gchar* _tmp3_;
			_tmp3_ = g_strdup ("");
			result = _tmp3_;
			return result;
		}
		default:
		break;
	}
	g_assert_not_reached ();
}


GType valadoc_api_ownership_get_type (void) {
	static volatile gsize valadoc_api_ownership_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_api_ownership_type_id__volatile)) {
		static const GEnumValue values[] = {{VALADOC_API_OWNERSHIP_DEFAULT, "VALADOC_API_OWNERSHIP_DEFAULT", "default"}, {VALADOC_API_OWNERSHIP_UNOWNED, "VALADOC_API_OWNERSHIP_UNOWNED", "unowned"}, {VALADOC_API_OWNERSHIP_OWNED, "VALADOC_API_OWNERSHIP_OWNED", "owned"}, {VALADOC_API_OWNERSHIP_WEAK, "VALADOC_API_OWNERSHIP_WEAK", "weak"}, {0, NULL, NULL}};
		GType valadoc_api_ownership_type_id;
		valadoc_api_ownership_type_id = g_enum_register_static ("ValadocApiOwnership", values);
		g_once_init_leave (&valadoc_api_ownership_type_id__volatile, valadoc_api_ownership_type_id);
	}
	return valadoc_api_ownership_type_id__volatile;
}



