summaryrefslogtreecommitdiff
path: root/include/i3status.h
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2020-02-10 18:52:04 +0100
committerFelix Buehler <account@buehler.rocks>2020-02-10 21:05:18 +0100
commitb5a804d1afaef1969de9c32060808fefb81a91e7 (patch)
tree2b03051f15bb30ae2c82321d856658af96d7245e /include/i3status.h
parenteccd4a761817c791e702dbd60f16d36fae82cffe (diff)
use format_placeholder for battery
Diffstat (limited to 'include/i3status.h')
-rw-r--r--include/i3status.h14
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();