From a176515001037f87312dcca7666549ed565632a2 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 22 Jul 2007 21:40:48 +0000 Subject: Add omitted dom_document_create_comment API svn path=/trunk/dom/; revision=3459 --- src/core/document.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src') diff --git a/src/core/document.c b/src/core/document.c index 383311e..b73f5e3 100644 --- a/src/core/document.c +++ b/src/core/document.c @@ -8,6 +8,7 @@ #include #include +#include "core/characterdata.h" #include "core/document.h" #include "core/namednodemap.h" #include "core/node.h" @@ -169,6 +170,28 @@ dom_exception dom_document_create_text_node(struct dom_document *doc, return DOM_NOT_SUPPORTED_ERR; } +/** + * Create a comment node + * + * \param doc The document owning the node + * \param data The data for the node + * \param result Pointer to location to receive result + * \return DOM_NO_ERR. + * + * The returned node will have its reference count increased. It is + * the responsibility of the caller to unref the node once it has + * finished with it. + */ +dom_exception dom_document_create_comment(struct dom_document *doc, + struct dom_string *data, struct dom_characterdata **result) +{ + UNUSED(doc); + UNUSED(data); + UNUSED(result); + + return DOM_NOT_SUPPORTED_ERR; +} + /** * Create a CDATA section * -- cgit v1.2.3