mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
particle/map: new particle; maps a tag value to a particle
This particle is basically a dictionary mapping tag values to particles.
This commit is contained in:
parent
cc457be4d8
commit
92c9593ff5
4 changed files with 129 additions and 2 deletions
11
particles/map.h
Normal file
11
particles/map.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#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);
|
Loading…
Add table
Add a link
Reference in a new issue