]> mj.ucw.cz Git - leo.git/blobdiff - css.h
Parametrized drawing of map scale
[leo.git] / css.h
diff --git a/css.h b/css.h
index d35c0b36156ee1509014516545003914997398a3..8ec18963de4a94ec5b7a8c8bf5215158b0e5f83b 100644 (file)
--- a/css.h
+++ b/css.h
@@ -1,11 +1,11 @@
 /*
  *     Hic Est Leo -- MapCSS Stylesheets
  *
- *     (c) 2014 Martin Mares <mj@ucw.cz>
+ *     (c) 2014--2015 Martin Mares <mj@ucw.cz>
  */
 
-#ifndef _BRUM_CSS_H
-#define _BRUM_CSS_H
+#ifndef _LEO_CSS_H
+#define _LEO_CSS_H
 
 #include "osm.h"
 #include "style.h"
@@ -14,6 +14,10 @@ struct css_sheet {
   struct mempool *pool;
   clist rules;
   char *filename;
+
+  /* For parsing for single properties by css_parse_prop */
+  int pushed_token;
+  struct style_prop *parsed_prop;
 };
 
 struct css_rule {
@@ -79,6 +83,7 @@ struct css_action {
 extern struct css_sheet *css_this;
 
 struct css_sheet *css_load(char *filename);
+struct style_prop *css_parse_prop(struct mempool *mp, char *objname, const char *key_str, const char *value_str);
 
 /* css-lex.c */
 
@@ -86,6 +91,7 @@ void css_error(char *err, ...);
 int css_lex(void);
 void css_lex_open(void);
 void css_lex_close(void);
+void css_lex_string(const char *str);
 
 color_t css_rgb_to_color(const char *rgb);