xref: /php-src/ext/dom/lexbor/lexbor/dom/interfaces/text.h (revision bffab33a)
1 /*
2  * Copyright (C) 2018-2021 Alexander Borisov
3  *
4  * Author: Alexander Borisov <borisov@lexbor.com>
5  */
6 
7 #ifndef LEXBOR_DOM_TEXT_H
8 #define LEXBOR_DOM_TEXT_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 #include "lexbor/dom/interfaces/document.h"
15 #include "lexbor/dom/interfaces/character_data.h"
16 
17 
18 struct lxb_dom_text {
19     lxb_dom_character_data_t char_data;
20 };
21 
22 
23 LXB_API lxb_dom_text_t *
24 lxb_dom_text_interface_create(lxb_dom_document_t *document);
25 
26 LXB_API lxb_dom_text_t *
27 lxb_dom_text_interface_clone(lxb_dom_document_t *document,
28                              const lxb_dom_text_t *text);
29 
30 LXB_API lxb_dom_text_t *
31 lxb_dom_text_interface_destroy(lxb_dom_text_t *text);
32 
33 
34 LXB_API lxb_status_t
35 lxb_dom_text_interface_copy(lxb_dom_text_t *dst, const lxb_dom_text_t *src);
36 
37 
38 #ifdef __cplusplus
39 } /* extern "C" */
40 #endif
41 
42 #endif /* LEXBOR_DOM_TEXT_H */
43