From b57b8a47109d8de7a773a32e52c1263b3617149c Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 7 Sep 2019 15:39:39 +0100 Subject: namespace: Support finalising the namespace strings Signed-off-by: Daniel Silverstone --- include/dom/dom.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/dom/dom.h b/include/dom/dom.h index 0740fe9..1737f29 100644 --- a/include/dom/dom.h +++ b/include/dom/dom.h @@ -111,6 +111,12 @@ typedef enum dom_namespace { DOM_NAMESPACE_COUNT = 7 } dom_namespace; +/* Note, these are not valid until at least one function related to DOM + * namespaces has been called such as the creation of a Document. + */ extern dom_string *dom_namespaces[DOM_NAMESPACE_COUNT]; +/* Optional client-callable namespace cleanup function */ +extern dom_exception dom_namespace_finalise(void); + #endif -- cgit v1.2.3