summaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index 99af643..e23fbf3 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -21,6 +21,7 @@
typedef struct css_rule css_rule;
typedef struct css_selector css_selector;
+/** \todo would a parserutils_buffer be better here? */
typedef struct css_style {
uint32_t length; /**< Length, in bytes, of bytecode */
void *bytecode; /**< Pointer to bytecode */
@@ -152,6 +153,9 @@ struct css_stylesheet {
void *pw; /**< Private word */
};
+css_style *css_stylesheet_style_create(css_stylesheet *sheet, uint32_t len);
+void css_stylesheet_style_destroy(css_stylesheet *sheet, css_style *style);
+
css_selector *css_stylesheet_selector_create(css_stylesheet *sheet,
css_selector_type type, const css_string *name,
const css_string *value);
@@ -170,7 +174,9 @@ void css_stylesheet_rule_destroy(css_stylesheet *sheet, css_rule *rule);
css_error css_stylesheet_rule_add_selector(css_stylesheet *sheet,
css_rule *rule, css_selector *selector);
-/** \todo something about adding style declarations to a rule */
+css_error css_stylesheet_rule_append_style(css_stylesheet *sheet,
+ css_rule *rule, css_style *style);
+
/** \todo registering other rule-type data with css_rules */
css_error css_stylesheet_add_rule(css_stylesheet *sheet, css_rule *rule);