diff options
Diffstat (limited to '')
-rw-r--r-- | src/mds-colour.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mds-colour.h b/src/mds-colour.h index c833c53..6ff0402 100644 --- a/src/mds-colour.h +++ b/src/mds-colour.h @@ -103,6 +103,17 @@ int handle_set_colour(const char* recv_name, const char* recv_remove, const char const char* recv_red, const char* recv_green, const char* recv_blue); +/** + * Add or modify a colour + * + * @param name The name of the colour, must not be `NULL` + * @param colour The colour, must not be `NULL` + * @return Zero on success, -1 on error, removal of + * non-existent colour does not constitute an error + */ +int set_colour(const char* name, const colour_t* colour) __attribute__((nonnull)); + + CREATE_HASH_LIST_SUBCLASS(colour_list, char* restrict, const char* restrict, colour_t) |