xref: /php-src/ext/dom/lexbor/lexbor/html/base.h (revision bffab33a)
1 /*
2  * Copyright (C) 2018-2021 Alexander Borisov
3  *
4  * Author: Alexander Borisov <borisov@lexbor.com>
5  */
6 
7 #ifndef LEXBOR_HTML_BASE_H
8 #define LEXBOR_HTML_BASE_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 #include "lexbor/core/base.h"
15 
16 
17 #define LXB_HTML_VERSION_MAJOR 2
18 #define LXB_HTML_VERSION_MINOR 5
19 #define LXB_HTML_VERSION_PATCH 0
20 
21 #define LXB_HTML_VERSION_STRING LEXBOR_STRINGIZE(LXB_HTML_VERSION_MAJOR) "."   \
22                                 LEXBOR_STRINGIZE(LXB_HTML_VERSION_MINOR) "."   \
23                                 LEXBOR_STRINGIZE(LXB_HTML_VERSION_PATCH)
24 
25 
26 typedef struct lxb_html_tokenizer lxb_html_tokenizer_t;
27 typedef unsigned int lxb_html_tokenizer_opt_t;
28 typedef struct lxb_html_tree lxb_html_tree_t;
29 
30 /*
31  * Please, see lexbor/base.h lexbor_status_t
32  */
33 typedef enum {
34     LXB_HTML_STATUS_OK = 0x0000,
35 }
36 lxb_html_status_t;
37 
38 
39 
40 #ifdef __cplusplus
41 } /* extern "C" */
42 #endif
43 
44 #endif /* LEXBOR_HTML_BASE_H */
45