particle/map: expose info through the new struct particle_info struct

This commit is contained in:
Daniel Eklöf 2019-01-13 10:34:15 +01:00
parent 6379b1939f
commit 73b8bf1346
4 changed files with 88 additions and 84 deletions

View file

@ -1,12 +1,4 @@
#pragma once
#include "../particle.h"
struct particle_map {
const char *tag_value;
struct particle *particle;
};
struct particle *particle_map_new(
const char *tag, const struct particle_map *particle_map, size_t count,
struct particle *default_particle, int left_margin, int right_margin,
const char *on_click_template);
extern const struct particle_info particle_map;