Daniel Eklöf
3f6030df68
tag: add support for "hex" and "oct" format modifiers
2019-01-21 21:05:38 +01:00
Daniel Eklöf
a0ecc1ff03
tag: add support for "min", "max" and "unit" tag arguments
2019-01-21 20:15:04 +01:00
Daniel Eklöf
7936e197af
tag: add support for an optional tag argument in a tag format string
...
E..g {volume:max}
2019-01-21 20:14:25 +01:00
Daniel Eklöf
09fcedc33f
tag: pull in logging
2019-01-21 20:14:09 +01:00
Daniel Eklöf
400a92fa04
tag: rename and rewrite sbuf_strcat()
...
In particular, don't use strncat() with a length derived from the
source.
2019-01-07 18:26:48 +01:00
Daniel Eklöf
32b4e9986d
tag: tags_expand_template(): return NULL if template is NULL
2018-12-29 17:10:54 +01:00
Daniel Eklöf
ab67d036ae
tags: break out string formatting from particle/string
2018-12-29 17:03:41 +01:00
Daniel Eklöf
b0f0a1e942
tag: add realtime unit MSECS (milliseconds)
2018-12-28 14:05:02 +01:00
Daniel Eklöf
13cc11e200
tag: refresh_in() *must* use the realtime unit
2018-12-28 14:04:35 +01:00
Daniel Eklöf
20b3299afd
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.
2018-12-28 12:43:02 +01:00
Daniel Eklöf
904f9ff8e1
tag: all tag constructors must now be passed a module 'owner'
2018-12-28 12:40:41 +01:00
Daniel Eklöf
025c6991a3
tag: add a new variant of int tags, with a realtime unit property
...
The idea is, consumers of a tag, can check the realtime property, and
if set to something other than TAG_REALTIME_NONE, schedule a realtime
update.
For example, it could be used to track song progress.
2018-12-27 11:43:27 +01:00
Daniel Eklöf
3bc4bd56a9
tag: tag_new_string(): allow NULL values (treat as empty string)
2018-12-19 21:01:36 +01:00
Daniel Eklöf
2218bd1583
tag: allow integer tags to have a minimum and maximum value
2018-12-16 15:58:40 +01:00
Daniel Eklöf
1712362da9
tag: add as_int(), as_bool() and as_float()
2018-11-18 11:11:50 +01:00
Daniel Eklöf
44a2dbb201
tag: rename tag.value() -> tag.as_string()
2018-11-18 11:02:21 +01:00
Daniel Eklöf
12e9304612
tag: add a boolean tag
2018-11-18 11:00:01 +01:00
Daniel Eklöf
8bf8a398b9
initial commit: wip
2018-11-17 11:30:33 +01:00