X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Futil%2Fcommon.h;h=0c60317a54d49a1cbe23f55d7e93360549c6a675;hb=b0daed8dd52ebaa40fa993e5b9f23c823937c120;hp=e62051107c28aa29107dd3573678dd8530af6297;hpb=bab0811f845cedb817a3c3a29dd91ade07d5a886;p=chaz%2Ftint2 diff --git a/src/util/common.h b/src/util/common.h index e620511..0c60317 100644 --- a/src/util/common.h +++ b/src/util/common.h @@ -40,11 +40,17 @@ void copy_file(const char *pathSrc, const char *pathDest); // extract key = value int parse_line (const char *line, char **key, char **value); +// execute a command by calling fork +void tint_exec(const char* command); + + // conversion int hex_char_to_int (char c); int hex_to_rgb (char *hex, int *r, int *g, int *b); void get_color (char *hex, double *rgb); +void extract_values (const char *value, char **value1, char **value2, char **value3); + // adjust Alpha/Saturation/Brightness on an ARGB icon // alpha from 0 to 100, satur from 0 to 1, bright from 0 to 1. void adjust_asb(DATA32 *data, int w, int h, int alpha, float satur, float bright);