diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-20 12:03:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-20 12:03:14 +0100 |
commit | 25661e2ab288e5f5d9291baf9b8b43f68735d4c9 (patch) | |
tree | 882365198484c8b4434ffeb507ee584143486eda /src/libserver/css/css_parser.hxx | |
parent | b552a50d983ebf6eae97b28d21d089ef9d0637bc (diff) | |
download | rspamd-25661e2ab288e5f5d9291baf9b8b43f68735d4c9.tar.gz rspamd-25661e2ab288e5f5d9291baf9b8b43f68735d4c9.zip |
[Project] Css: Add rules processing functions and tests
Diffstat (limited to 'src/libserver/css/css_parser.hxx')
-rw-r--r-- | src/libserver/css/css_parser.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libserver/css/css_parser.hxx b/src/libserver/css/css_parser.hxx index af79abb68..ec6d5159a 100644 --- a/src/libserver/css/css_parser.hxx +++ b/src/libserver/css/css_parser.hxx @@ -192,9 +192,19 @@ auto parse_css(rspamd_mempool_t *pool, const std::string_view &st, css_style_sheet *other) -> tl::expected<std::unique_ptr<css_style_sheet>, css_parse_error>; +/* + * Creates a functor to consume css selectors sequence + */ auto get_selectors_parser_functor(rspamd_mempool_t *pool, const std::string_view &st) -> blocks_gen_functor; +/* + * Creates a functor to process a rule definition (e.g. from embedded style tag for + * an element) + */ +auto get_rules_parser_functor(rspamd_mempool_t *pool, + const std::string_view &st) -> blocks_gen_functor; + } #endif //RSPAMD_CSS_PARSER_HXX |