summaryrefslogtreecommitdiff
path: root/src/treebuilder/element-type.h
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2021-05-27 21:17:16 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2021-05-27 21:21:22 +0100
commit873ed6e236f7669afd3ef44259c34addc6dc95b6 (patch)
treedf4077d95a872ec93ad82ec577fdcfe5f17fa4a5 /src/treebuilder/element-type.h
parentd88075747d5d300254c97ad7c572ed483230c7f9 (diff)
downloadlibhubbub-873ed6e236f7669afd3ef44259c34addc6dc95b6.tar.gz
libhubbub-873ed6e236f7669afd3ef44259c34addc6dc95b6.tar.bz2
treebuilder: Fix debug build variant with new element_type_to_name().
This uses the gperf-generated wordlist.
Diffstat (limited to 'src/treebuilder/element-type.h')
-rw-r--r--src/treebuilder/element-type.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/treebuilder/element-type.h b/src/treebuilder/element-type.h
index 93b168c..75612fd 100644
--- a/src/treebuilder/element-type.h
+++ b/src/treebuilder/element-type.h
@@ -53,5 +53,13 @@ element_type element_type_from_name(
hubbub_treebuilder *treebuilder,
const hubbub_string *tag_name);
+/**
+ * Convert an element type to a name
+ *
+ * \param type The element type
+ * \return Pointer to name
+ */
+const char *element_type_to_name(element_type type);
+
#endif