libdom
Loading...
Searching...
No Matches
comment.h
Go to the documentation of this file.
1/*
2 * This file is part of libdom.
3 * Licensed under the MIT License,
4 * http://www.opensource.org/licenses/mit-license.php
5 * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
6 */
7
8#ifndef dom_internal_core_comment_h_
9#define dom_internal_core_comment_h_
10
11#include <dom/core/exceptions.h>
12#include <dom/core/comment.h>
13
14struct dom_comment;
15struct dom_document;
16
18 dom_string *name, dom_string *value,
19 dom_comment **result);
20
21#define _dom_comment_initialise _dom_characterdata_initialise
22#define _dom_comment_finalise _dom_characterdata_finalise
23
25
26/* Following comes the protected vtable */
29 dom_node_internal **copy);
30
31#define DOM_COMMENT_PROTECT_VTABLE \
32 __dom_comment_destroy, \
33 _dom_comment_copy
34
35#endif
dom_exception
Definition exceptions.h:24
dom_exception _dom_comment_create(struct dom_document *doc, dom_string *name, dom_string *value, dom_comment **result)
Definition comment.c:42
void _dom_comment_destroy(dom_comment *comment)
Definition comment.c:78
void __dom_comment_destroy(dom_node_internal *node)
Definition comment.c:92
dom_exception _dom_comment_copy(dom_node_internal *old, dom_node_internal **copy)
Definition comment.c:98
Definition comment.c:20
Definition document.h:43
Definition node.h:54
Definition string.h:19