|
XenevaOS
|
#include <stdlib.h>#include "core/characterdata.h"#include "core/comment.h"#include "core/document.h"#include "utils/utils.h"
Classes | |
| struct | dom_comment |
Functions | |
| dom_exception | _dom_comment_create (dom_document *doc, dom_string *name, dom_string *value, dom_comment **result) |
| void | _dom_comment_destroy (dom_comment *comment) |
| void | __dom_comment_destroy (dom_node_internal *node) |
| dom_exception | _dom_comment_copy (dom_node_internal *old, dom_node_internal **copy) |
| void __dom_comment_destroy | ( | dom_node_internal * | node | ) |
| dom_exception _dom_comment_copy | ( | dom_node_internal * | old, |
| dom_node_internal ** | copy | ||
| ) |
| dom_exception _dom_comment_create | ( | dom_document * | doc, |
| dom_string * | name, | ||
| dom_string * | value, | ||
| dom_comment ** | result | ||
| ) |
Create a comment node
| doc | The owning document |
| name | The name of the node to create |
| value | The text content of the node |
| result | Pointer to location to receive created node |
::doc, name and ::value will have their reference counts increased.
The returned node will already be referenced.
| void _dom_comment_destroy | ( | dom_comment * | comment | ) |
Destroy a comment node
| comment | The node to destroy |
The contents of ::comment will be destroyed and ::comment will be freed