1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00
rofi/include/script-dialog.h

29 lines
625 B
C
Raw Normal View History

#ifndef __SCRIPT_DIALOG_H__
#define __SCRIPT_DIALOG_H__
/**
* Structure holds the arguments for the script_switcher.
*/
typedef struct
{
// Prompt to display.
char *name;
// The script
char *script_path;
} ScriptOptions;
SwitcherMode script_switcher_dialog ( char **input, void *data );
/**
* Parse an argument string into the right ScriptOptions data object.
* This is off format: <Name>:<Script>
* Return NULL when it fails.
*/
ScriptOptions *script_switcher_parse_setup ( const char *str );
/**
* Free the ScriptOptions block.
*/
void script_switcher_free_options ( ScriptOptions *sw );
#endif