From 98aa59fdda5fcc9a589e93f7c6ef40d3eaee3972 Mon Sep 17 00:00:00 2001 From: Zandr Martin Date: Sat, 30 Jul 2016 18:50:13 -0500 Subject: implement solid color rendering for swaybg --- include/util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/util.h') diff --git a/include/util.h b/include/util.h index 6f21bff0..e33a08f7 100644 --- a/include/util.h +++ b/include/util.h @@ -44,4 +44,10 @@ int get_modifier_names(const char **names, uint32_t modifier_masks); */ pid_t get_parent_pid(pid_t pid); +/** + * Given a string that represents an RGB(A) color, return a uint32_t + * version of the color. + */ +uint32_t parse_color(const char *color); + #endif -- cgit v1.2.3-54-g00ecf