aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/css/css_parser.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/css/css_parser.hxx')
-rw-r--r--src/libserver/css/css_parser.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libserver/css/css_parser.hxx b/src/libserver/css/css_parser.hxx
index ec6d5159a..1e0762d78 100644
--- a/src/libserver/css/css_parser.hxx
+++ b/src/libserver/css/css_parser.hxx
@@ -30,6 +30,10 @@
#include "contrib/expected/expected.hpp"
#include "logger.h"
+/* Forward declaration */
+namespace rspamd::html {
+struct html_block;
+}
namespace rspamd::css {
@@ -205,6 +209,15 @@ auto get_selectors_parser_functor(rspamd_mempool_t *pool,
auto get_rules_parser_functor(rspamd_mempool_t *pool,
const std::string_view &st) -> blocks_gen_functor;
+/**
+ * Parses a css declaration (e.g. embedded css and returns a completed html block)
+ * @param pool
+ * @param st
+ * @return
+ */
+auto parse_css_declaration(rspamd_mempool_t *pool, const std::string_view &st)
+ -> rspamd::html::html_block *;
+
}
#endif //RSPAMD_CSS_PARSER_HXX