From 5edc7398485c000860068da6456a5b74a3709af4 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 20 Apr 2017 09:24:09 +0200 Subject: Try to improve error message a bit (damn g_warning replace) --- include/dialogs/script.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/dialogs/script.h b/include/dialogs/script.h index ec9a4383..5695b640 100644 --- a/include/dialogs/script.h +++ b/include/dialogs/script.h @@ -43,5 +43,14 @@ * @returns NULL when it fails, a newly allocated ScriptOptions when successful. */ Mode *script_switcher_parse_setup ( const char *str ); + +/** + * @param token The modi str to check + * + * Check if token could be a valid script modi. + * + * @returns true when valid. + */ +gboolean script_switcher_is_valid ( const char *token ); /*@}*/ #endif // ROFI_DIALOG_SCRIPT_H -- cgit v1.2.3