* (c) 2014 Martin Mares <mj@ucw.cz>
*/
-#include <ucw/lib.h>
-#include <ucw/mempool.h>
-
-#include <stdio.h>
-
#include "leo.h"
#include "osm.h"
#include "style.h"
+#include <ucw/mempool.h>
+
+#include <stdio.h>
+
struct dict style_prop_dict, style_layer_dict;
static const char * const style_wk_props[] = {
style_assign(style_prop_lookup(si->hash, p->key), p);
}
+struct style_prop *style_get_by_layer(struct style_results *r, layer_t layer, prop_t key)
+{
+ struct style_info *si = style_get_info(r, layer);
+ return style_get(si, key);
+}
+
void style_set(struct style_info *si, struct style_prop *p)
{
style_assign(style_prop_lookup(si->hash, p->key), p);