16 #ifndef MY_DEFAULT_INCLUDED
17 #define MY_DEFAULT_INCLUDED
20 #include "my_global.h"
24 extern const char *my_defaults_extra_file;
25 extern const char *my_defaults_group_suffix;
26 extern const char *my_defaults_file;
27 extern my_bool my_getopt_use_args_separator;
30 typedef int (*Process_option_func)(
void *ctx,
const char *group_name,
33 my_bool my_getopt_is_args_separator(
const char* arg);
34 int get_defaults_options(
int argc,
char **argv,
35 char **defaults,
char **extra_defaults,
36 char **group_suffix,
char **login_path);
37 int my_load_defaults(
const char *conf_file,
const char **groups,
38 int *argc,
char ***argv,
const char ***);
39 int load_defaults(
const char *conf_file,
const char **groups,
40 int *argc,
char ***argv);
41 int my_search_option_files(
const char *conf_file,
int *argc,
42 char ***argv, uint *args_used,
43 Process_option_func func,
void *func_ctx,
44 const char **default_directories);
45 void free_defaults(
char **argv);
46 void my_print_default_files(
const char *conf_file);
47 void print_defaults(
const char *conf_file,
const char **groups);
51 #endif // MY_DEFAULT_INCLUDED