tag: add a refresh_in() interface function

E.g. particles may use this to force a refresh after a certain amount
of time.

Note that it can only be used with 'realtime' tags.
This commit is contained in:
Daniel Eklöf 2018-12-28 12:43:02 +01:00
parent 5008008079
commit 20b3299afd
2 changed files with 25 additions and 0 deletions

2
tag.h
View file

@ -25,6 +25,8 @@ struct tag {
long (*min)(const struct tag *tag);
long (*max)(const struct tag *tag);
enum tag_realtime_unit (*realtime)(const struct tag *tag);
bool (*refresh_in)(const struct tag *tag, long milli_seconds);
};
struct tag_set {