diff options
author | Felix Buehler <account@buehler.rocks> | 2020-02-10 18:52:04 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2020-02-10 21:05:18 +0100 |
commit | b5a804d1afaef1969de9c32060808fefb81a91e7 (patch) | |
tree | 2b03051f15bb30ae2c82321d856658af96d7245e /include | |
parent | eccd4a761817c791e702dbd60f16d36fae82cffe (diff) |
use format_placeholder for battery
Diffstat (limited to 'include')
-rw-r--r-- | include/i3status.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/i3status.h b/include/i3status.h index 2e314b1..95e6eba 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -198,6 +198,20 @@ char *endcolor() __attribute__((pure)); void reset_cursor(void); void maybe_escape_markup(char *text, char **buffer); +char *rtrim(const char *s); +char *ltrim(const char *s); +char *trim(const char *s); + +// copied from i3:libi3/format_placeholders.c +/* src/format_placeholders.c */ +typedef struct { + /* The placeholder to be replaced, e.g., "%title". */ + char *name; + /* The value this placeholder should be replaced with. */ + char *value; +} placeholder_t; +char *format_placeholders(const char *format, placeholder_t *placeholders, int num); + /* src/auto_detect_format.c */ char *auto_detect_format(); |