From ab2a3c493f8f6430ad96f7637c842b666c29a9f4 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 25 Sep 2008 08:13:30 +0000 Subject: Create a parser instance for a stylesheet. Also create a level-specific frontend. This probably wants reworking as we don't really want to be switching on the language level every time we want to interact with the parser frontend. svn path=/trunk/libcss/; revision=5437 --- src/stylesheet.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/stylesheet.h') diff --git a/src/stylesheet.h b/src/stylesheet.h index 5968083..ea1c9c4 100644 --- a/src/stylesheet.h +++ b/src/stylesheet.h @@ -15,6 +15,8 @@ #include #include +#include "parse/parse.h" + typedef struct css_rule css_rule; typedef struct css_selector css_selector; typedef struct css_style css_style; @@ -138,6 +140,10 @@ struct css_stylesheet { css_import_handler import; /**< Import callback */ void *import_pw; /**< Import handler data */ + css_language_level level; /**< Language level of sheet */ + css_parser *parser; /**< Core parser for sheet */ + void *parser_frontend; /**< Frontend parser */ + css_alloc alloc; /**< Allocation function */ void *pw; /**< Private word */ }; -- cgit v1.2.3