summaryrefslogtreecommitdiff
path: root/src/core/entity_ref.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-09-23 22:54:22 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-09-23 22:54:22 +0000
commit9fa0aacebdc0c4c8280b69df0133e4b819454171 (patch)
treed3f10141e1ff8f77d4fe59ef2e709b37cd1c8015 /src/core/entity_ref.c
parent9529ef14d5046142d5769d13007de93bf4d33cbb (diff)
downloadlibdom-9fa0aacebdc0c4c8280b69df0133e4b819454171.tar.gz
libdom-9fa0aacebdc0c4c8280b69df0133e4b819454171.tar.bz2
Add dom_entity_reference_get_textual_representation() as an internal library function.
Implement dom_attr_get_value() svn path=/trunk/dom/; revision=3588
Diffstat (limited to 'src/core/entity_ref.c')
-rw-r--r--src/core/entity_ref.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/entity_ref.c b/src/core/entity_ref.c
index 8382249..bf4868b 100644
--- a/src/core/entity_ref.c
+++ b/src/core/entity_ref.c
@@ -8,6 +8,7 @@
#include "core/document.h"
#include "core/entity_ref.h"
#include "core/node.h"
+#include "utils/utils.h"
/**
* A DOM entity reference
@@ -97,3 +98,24 @@ void dom_entity_reference_destroy(struct dom_document *doc,
/* Destroy fragment */
dom_document_alloc(doc, entity, 0);
}
+
+/**
+ * Get the textual representation of an EntityReference
+ *
+ * \param entity The entity reference to get the textual representation of
+ * \param result Pointer to location to receive result
+ * \return DOM_NO_ERR on success.
+ *
+ * The returned string will have its reference count increased. It is
+ * the responsibility of the caller to unref the string once it has
+ * finished with it.
+ */
+dom_exception dom_entity_reference_get_textual_representation(
+ struct dom_entity_reference *entity, struct dom_string **result)
+{
+ UNUSED(entity);
+ UNUSED(result);
+
+ return DOM_NOT_SUPPORTED_ERR;
+}
+