|
Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
|
Go to the documentation of this file.
18 #ifndef XEMU_COMMON_EMUTOOLS_CONFIG_H_INCLUDED
19 #define XEMU_COMMON_EMUTOOLS_CONFIG_H_INCLUDED
21 #define CONFIG_FILE_MAX_SIZE 0x10000
22 #define CONFIG_VALUE_MAX_LENGTH 256
23 #define OPT_NAME_MAX_LENGTH 16
25 #define CONFIG_FILE_TEMPL_NAME "@%s-template.cfg"
26 #define CONFIG_FILE_USE_NAME "@%s-default.cfg"
34 #define EMUCFG_PARSER_CALLBACK_RET_TYPE const char*
35 #define EMUCFG_PARSER_CALLBACK_ARG_LIST struct xemutools_config_st *opt, const char *optname, const char *optvalue
36 #define EMUCFG_PARSER_CALLBACK(name) EMUCFG_PARSER_CALLBACK_RET_TYPE name ( EMUCFG_PARSER_CALLBACK_ARG_LIST )
39 #define XEMUCFG_FLAG_CLI_ONLY 1
40 #define XEMUCFG_FLAG_FIRST_ONLY 2
41 #define XEMUCFG_FLAG_DUMMY 4
42 #define XEMUCFG_FLAG_FILE_ONLY 8
118 #define XEMUCFG_DEFINE_BOOL_OPTIONS(...) xemucfg_define_bool_option_multi( (const struct xemutools_configdef_bool_st []) { __VA_ARGS__ , {NULL} } )
119 #define XEMUCFG_DEFINE_STR_OPTIONS(...) xemucfg_define_str_option_multi( (const struct xemutools_configdef_str_st []) { __VA_ARGS__ , {NULL} } )
120 #define XEMUCFG_DEFINE_NUM_OPTIONS(...) xemucfg_define_num_option_multi( (const struct xemutools_configdef_num_st []) { __VA_ARGS__ , {NULL} } )
121 #define XEMUCFG_DEFINE_FLOAT_OPTIONS(...) xemucfg_define_float_option_multi( (const struct xemutools_configdef_float_st []) { __VA_ARGS__ , {NULL} } )
122 #define XEMUCFG_DEFINE_PROC_OPTIONS(...) xemucfg_define_proc_option_multi( (const struct xemutools_configdef_proc_st []) { __VA_ARGS__ , {NULL} } )
123 #define XEMUCFG_DEFINE_SWITCH_OPTIONS(...) xemucfg_define_switch_option_multi((const struct xemutools_configdef_switch_st[]) { __VA_ARGS__ , {NULL} } )
134 extern void xemucfg_define_num_option (
const char *optname,
const int defval,
const char *help,
int *storage,
int min,
int max );
135 extern void xemucfg_define_float_option (
const char *optname,
const double defval,
const char *help,
double *storage,
double min,
double max );
152 extern void xemucfg_get_cli_info (
const char **exec_name_ptr,
int *argc_ptr,
char ***argv_ptr );
154 #ifndef XEMU_RELEASE_BUILD