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

/* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
/*
 *
 * Copyright (C) 2016  Daniel Espinosa <esodan@gmail.com>
 *
 * 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, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *      Daniel Espinosa <esodan@gmail.com>
 */

#include "gxml/gxml.h"
#include <glib.h>
#include "gxml.h"

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

static GType gxml_dom_attr_get_type_once (void);

gchar*
gxml_dom_attr_get_namespace_uri (GXmlDomAttr* self)
{
	GXmlDomAttrIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = GXML_DOM_ATTR_GET_INTERFACE (self);
	if (_iface_->get_namespace_uri) {
		return _iface_->get_namespace_uri (self);
	}
	return NULL;
}

gchar*
gxml_dom_attr_get_prefix (GXmlDomAttr* self)
{
	GXmlDomAttrIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = GXML_DOM_ATTR_GET_INTERFACE (self);
	if (_iface_->get_prefix) {
		return _iface_->get_prefix (self);
	}
	return NULL;
}

gchar*
gxml_dom_attr_get_local_name (GXmlDomAttr* self)
{
	GXmlDomAttrIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = GXML_DOM_ATTR_GET_INTERFACE (self);
	if (_iface_->get_local_name) {
		return _iface_->get_local_name (self);
	}
	return NULL;
}

gchar*
gxml_dom_attr_get_name (GXmlDomAttr* self)
{
	GXmlDomAttrIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = GXML_DOM_ATTR_GET_INTERFACE (self);
	if (_iface_->get_name) {
		return _iface_->get_name (self);
	}
	return NULL;
}

gchar*
gxml_dom_attr_get_value (GXmlDomAttr* self)
{
	GXmlDomAttrIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = GXML_DOM_ATTR_GET_INTERFACE (self);
	if (_iface_->get_value) {
		return _iface_->get_value (self);
	}
	return NULL;
}

void
gxml_dom_attr_set_value (GXmlDomAttr* self,
                         const gchar* value)
{
	GXmlDomAttrIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = GXML_DOM_ATTR_GET_INTERFACE (self);
	if (_iface_->set_value) {
		_iface_->set_value (self, value);
	}
}

gboolean
gxml_dom_attr_get_specified (GXmlDomAttr* self)
{
	GXmlDomAttrIface* _iface_;
	g_return_val_if_fail (self != NULL, FALSE);
	_iface_ = GXML_DOM_ATTR_GET_INTERFACE (self);
	if (_iface_->get_specified) {
		return _iface_->get_specified (self);
	}
	return FALSE;
}

static gboolean
gxml_dom_attr_real_get_specified (GXmlDomAttr* base)
{
	gboolean result;
	GXmlDomAttr* self;
	self = base;
	result = TRUE;
	return result;
}

static void
gxml_dom_attr_default_init (GXmlDomAttrIface * iface,
                            gpointer iface_data)
{
	g_object_interface_install_property (iface, g_param_spec_string ("namespace-uri", "namespace-uri", "namespace-uri", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_string ("prefix", "prefix", "prefix", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_string ("local-name", "local-name", "local-name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_string ("name", "name", "name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_string ("value", "value", "value", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	iface->get_specified = gxml_dom_attr_real_get_specified;
}

static GType
gxml_dom_attr_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (GXmlDomAttrIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gxml_dom_attr_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType gxml_dom_attr_type_id;
	gxml_dom_attr_type_id = g_type_register_static (G_TYPE_INTERFACE, "GXmlDomAttr", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (gxml_dom_attr_type_id, G_TYPE_OBJECT);
	return gxml_dom_attr_type_id;
}

GType
gxml_dom_attr_get_type (void)
{
	static volatile gsize gxml_dom_attr_type_id__once = 0;
	if (g_once_init_enter (&gxml_dom_attr_type_id__once)) {
		GType gxml_dom_attr_type_id;
		gxml_dom_attr_type_id = gxml_dom_attr_get_type_once ();
		g_once_init_leave (&gxml_dom_attr_type_id__once, gxml_dom_attr_type_id);
	}
	return gxml_dom_attr_type_id__once;
}

