xref: /php-src/ext/dom/lexbor/lexbor/css/declaration.h (revision f0934090)
1 /*
2  * Copyright (C) 2022 Alexander Borisov
3  *
4  * Author: Alexander Borisov <borisov@lexbor.com>
5  */
6 
7 #ifndef LXB_CSS_DECLARATION_H
8 #define LXB_CSS_DECLARATION_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 #include "lexbor/css/css.h"
15 #include "lexbor/core/mraw.h"
16 
17 
18 LXB_API lxb_status_t
19 lxb_css_declaration_list_prepare(lxb_css_parser_t *parser,
20                                  lxb_css_memory_t *mem);
21 
22 LXB_API lxb_css_rule_declaration_list_t *
23 lxb_css_declaration_list_process(lxb_css_parser_t *parser,
24                                  const lxb_char_t *data, size_t length);
25 
26 LXB_API void
27 lxb_css_declaration_list_finish(lxb_css_parser_t *parser);
28 
29 LXB_API lxb_css_rule_declaration_list_t *
30 lxb_css_declaration_list_parse(lxb_css_parser_t *parser, lxb_css_memory_t *mem,
31                                const lxb_char_t *data, size_t length);
32 
33 
34 #ifdef __cplusplus
35 } /* extern "C" */
36 #endif
37 
38 #endif /* LXB_CSS_DECLARATION_H */
39