rofi  1.7.0
Script
Collaboration diagram for Script:

Functions

Modescript_switcher_parse_setup (const char *str)
 
gboolean script_switcher_is_valid (const char *token)
 

Detailed Description

Function Documentation

◆ script_switcher_is_valid()

gboolean script_switcher_is_valid ( const char *  token)
Parameters
tokenThe modi str to check

Check if token could be a valid script modi.

Returns
true when valid.

Definition at line 460 of file script.c.

Referenced by add_mode().

Here is the caller graph for this function:

◆ script_switcher_parse_setup()

Mode* script_switcher_parse_setup ( const char *  str)
Parameters
strThe input string to parse

Parse an argument string into the right ScriptOptions data object. This is off format: <Name>:<Script>

Returns
NULL when it fails, a newly allocated ScriptOptions when successful.

Definition at line 422 of file script.c.

References rofi_mode::_destroy, rofi_mode::_get_completion, rofi_mode::_get_display_value, _get_display_value(), rofi_mode::_get_icon, rofi_mode::_get_message, rofi_mode::_get_num_entries, rofi_mode::_init, rofi_mode::_preprocess_input, rofi_mode::_result, rofi_mode::_token_match, rofi_mode::ed, rofi_mode::free, rofi_mode::name, rofi_expand_path(), script_get_icon(), script_get_message(), script_mode_destroy(), script_mode_get_num_entries(), script_mode_init(), script_mode_result(), script_switcher_free(), and script_token_match().

Referenced by add_mode(), and combi_mode_parse_switchers().

Here is the call graph for this function:
Here is the caller graph for this function: