]> mj.ucw.cz Git - leo.git/blobdiff - css.h
Initial support for LUA bindings in stylesheets
[leo.git] / css.h
diff --git a/css.h b/css.h
index 8ec18963de4a94ec5b7a8c8bf5215158b0e5f83b..2ae99fbdda276ad4bc7076a88f38265a38076757 100644 (file)
--- a/css.h
+++ b/css.h
@@ -73,9 +73,15 @@ struct css_condition {
   osm_val_t val;
 };
 
+enum css_action_type {
+  CSS_ACTION_SET,
+  CSS_ACTION_EXPR,
+};
+
 struct css_action {
   cnode n;
-  struct style_prop prop;
+  enum css_action_type type;
+  struct style_prop prop;      // for CSS_ACTION_SET
 };
 
 /* css-parse.y */
@@ -87,7 +93,7 @@ struct style_prop *css_parse_prop(struct mempool *mp, char *objname, const char
 
 /* css-lex.c */
 
-void css_error(char *err, ...);
+void css_error(const char *err, ...);
 int css_lex(void);
 void css_lex_open(void);
 void css_lex_close(void);