summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIngo Bürk <admin@airblader.de>2020-02-17 08:30:44 +0100
committerGitHub <noreply@github.com>2020-02-17 08:30:44 +0100
commit5b115d39f85c5575b8ef6b888c8a66dfc883e603 (patch)
tree2b03051f15bb30ae2c82321d856658af96d7245e /include
parenteccd4a761817c791e702dbd60f16d36fae82cffe (diff)
parentb5a804d1afaef1969de9c32060808fefb81a91e7 (diff)
Merge pull request #380 from Stunkymonkey/percent-split
use format_placeholder(i3lib) for battery_info
Diffstat (limited to 'include')
-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();