[lasem] dom_element: implement get_tag_name.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] dom_element: implement get_tag_name.
- Date: Sun, 14 Nov 2010 15:05:56 +0000 (UTC)
commit 5777987e83f34563a97813ff08b39ef68681d171
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Sun Nov 14 16:05:28 2010 +0100
dom_element: implement get_tag_name.
src/lsmdomelement.c | 8 ++++++++
src/lsmdomelement.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/lsmdomelement.c b/src/lsmdomelement.c
index bc99324..6af2bb3 100644
--- a/src/lsmdomelement.c
+++ b/src/lsmdomelement.c
@@ -94,6 +94,14 @@ lsm_dom_element_set_attribute (LsmDomElement* self, const char* name, const char
lsm_dom_node_changed (LSM_DOM_NODE (self));
}
+const char *
+lsm_dom_element_get_tag_name (LsmDomElement *self)
+{
+ g_return_val_if_fail (LSM_IS_DOM_ELEMENT (self), NULL);
+
+ return lsm_dom_node_get_node_name (LSM_DOM_NODE (self));
+}
+
static void
lsm_dom_element_init (LsmDomElement *element)
{
diff --git a/src/lsmdomelement.h b/src/lsmdomelement.h
index bba46e1..9917943 100644
--- a/src/lsmdomelement.h
+++ b/src/lsmdomelement.h
@@ -52,6 +52,7 @@ struct _LsmDomElementClass {
GType lsm_dom_element_get_type (void);
+const char * lsm_dom_element_get_tag_name (LsmDomElement *self);
const char* lsm_dom_element_get_attribute (LsmDomElement* self, const char* name);
void lsm_dom_element_set_attribute (LsmDomElement* self, const char* name, const char* attribute_value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]