From c57e7348d2e34c7eb27fafa73b40602725ea315a Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sun, 8 Jan 2017 16:09:24 +0100 Subject: Add some better error message. Allow -theme-str option to override part of theme --- include/helper.h | 8 ++++++++ include/theme.h | 13 ++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/helper.h b/include/helper.h index ebb8355e..af93aece 100644 --- a/include/helper.h +++ b/include/helper.h @@ -82,6 +82,14 @@ int find_arg_int ( const char * const key, int *val ); */ int find_arg_str ( const char * const key, char** val ); +/** + * @param key The key to search for + * + * Parse all command line options 'key' to string vector. + * + * @returns str vector. user should free array. + */ +const char ** find_arg_strv ( const char *const key ); /** * @param key The key to search for * diff --git a/include/theme.h b/include/theme.h index fd318760..1964467a 100644 --- a/include/theme.h +++ b/include/theme.h @@ -169,8 +169,19 @@ void rofi_theme_free ( ThemeWidget *wid ); * @param file filename to parse. * * Parse the input theme file. + * + * @returns returns TRUE when error. + */ +gboolean rofi_theme_parse_file ( const char *file ); + +/** + * @param string to parse. + * + * Parse the input string in addition to theme file. + * + * @returns returns TRUE when error. */ -void rofi_theme_parse_file ( const char *file ); +gboolean rofi_theme_parse_string ( const char *file ); /** * @param widget The widget handle. -- cgit v1.2.3