rofi/include/xrmoptions.h

62 lines
1.4 KiB
C
Raw Normal View History

#ifndef __XRMOPTIONS_H__
#define __XRMOPTIONS_H__
2014-05-22 19:56:57 +00:00
// 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;
2014-05-27 06:31:59 +00:00
/**
* @param display Handler of the display to fetch the settings from.
*
* Parse the rofi related X resource options of the
* connected X server.
*/
2015-02-03 07:21:59 +00:00
void config_parse_xresource_options ( Display *display );
/**
* @param argc Number of arguments.
* @param argv Array of arguments.
*
* Parse commandline options.
*/
void config_parse_cmd_options ( int argc, char ** argv );
/**
* @param argc Number of arguments.
* @param argv Array of arguments.
*
* Parse dynamic commandline options.
*/
void config_parse_cmd_options_dynamic ( int argc, char ** argv );
/**
* @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 );
2014-05-27 06:31:59 +00:00
/**
* Free any allocated memory.
*/
2015-02-03 07:21:59 +00:00
void config_xresource_free ( void );
2014-05-22 19:56:57 +00:00
2014-05-27 06:31:59 +00:00
/**
* Dump the settings in a Xresources compatible way to
* stdout.
*/
2014-05-22 19:56:57 +00:00
void xresource_dump ( void );
2014-05-27 06:31:59 +00:00
/**
* Add option to the dynamic option parser.
*/
void config_parser_add_option ( XrmOptionType type, const char *key, void **value );
#endif