diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/swaybar/i3bar.h | 3 | ||||
-rw-r--r-- | include/util.h | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/swaybar/i3bar.h b/include/swaybar/i3bar.h index 5b6001ce..0b3bee21 100644 --- a/include/swaybar/i3bar.h +++ b/include/swaybar/i3bar.h | |||
@@ -9,7 +9,8 @@ struct i3bar_block { | |||
9 | int ref_count; | 9 | int ref_count; |
10 | char *full_text, *short_text, *align, *min_width_str; | 10 | char *full_text, *short_text, *align, *min_width_str; |
11 | bool urgent; | 11 | bool urgent; |
12 | uint32_t *color; | 12 | uint32_t color; |
13 | bool color_set; | ||
13 | int min_width; | 14 | int min_width; |
14 | char *name, *instance; | 15 | char *name, *instance; |
15 | bool separator; | 16 | bool separator; |
diff --git a/include/util.h b/include/util.h index 3cba49f0..931ac691 100644 --- a/include/util.h +++ b/include/util.h | |||
@@ -11,10 +11,11 @@ | |||
11 | int wrap(int i, int max); | 11 | int wrap(int i, int max); |
12 | 12 | ||
13 | /** | 13 | /** |
14 | * Given a string that represents an RGB(A) color, return a uint32_t | 14 | * Given a string that represents an RGB(A) color, result will be set to a |
15 | * version of the color. | 15 | * uint32_t version of the color, as long as it is valid. If it is invalid, |
16 | * then false will be returned and result will be untouched. | ||
16 | */ | 17 | */ |
17 | uint32_t parse_color(const char *color); | 18 | bool parse_color(const char *color, uint32_t *result); |
18 | 19 | ||
19 | /** | 20 | /** |
20 | * Given a string that represents a boolean, return the boolean value. This | 21 | * Given a string that represents a boolean, return the boolean value. This |