mirror of
https://github.com/lbonn/rofi
synced 2024-11-24 12:53:06 +00:00
56 lines
1.3 KiB
C
56 lines
1.3 KiB
C
#ifndef ROFI_XRMOPTIONS_H
|
|
#define ROFI_XRMOPTIONS_H
|
|
|
|
// Big thanks to Sean Pringle for this code.
|
|
// This maps xresource options to config structure.
|
|
typedef enum
|
|
{
|
|
xrm_String = 0,
|
|
xrm_Number = 1,
|
|
xrm_SNumber = 2,
|
|
xrm_Boolean = 3,
|
|
xrm_Char = 4
|
|
} XrmOptionType;
|
|
|
|
/**
|
|
* @param display Handler of the display to fetch the settings from.
|
|
*
|
|
* Parse the rofi related X resource options of the
|
|
* connected X server.
|
|
*/
|
|
void config_parse_xresource_options ( Display *display );
|
|
|
|
/**
|
|
* Parse commandline options.
|
|
*/
|
|
void config_parse_cmd_options ( void );
|
|
/**
|
|
* Parse dynamic commandline options.
|
|
*/
|
|
void config_parse_cmd_options_dynamic ( void );
|
|
/**
|
|
* @param display Handler of the display to fetch the settings from.
|
|
*
|
|
* Parse the rofi related X resource options of the
|
|
* connected X server.
|
|
*/
|
|
void config_parse_xresource_options_dynamic ( Display *display );
|
|
|
|
/**
|
|
* Free any allocated memory.
|
|
*/
|
|
void config_xresource_free ( void );
|
|
|
|
/**
|
|
* Dump the settings in a Xresources compatible way to
|
|
* stdout.
|
|
*/
|
|
void xresource_dump ( void );
|
|
|
|
/**
|
|
* Add option to the dynamic option parser.
|
|
*/
|
|
void config_parser_add_option ( XrmOptionType type, const char *key, void **value, const char *comment );
|
|
void print_options ( void );
|
|
void print_help_msg ( const char *option, const char *type, const char*text, const char *def, int isatty );
|
|
#endif
|