X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=config%2Flkc_proto.h;h=cf4510a2bdc71e5f91d628d77b2d69b4cc8edb37;hp=c46929fab7d97401dd7d88c0207c9fdbd7e366c4;hb=0a4078c88712401b4ce8fbbe964ea6a70216d597;hpb=e8ba5aaead7057988bb1a7d8df008acfa0695354 diff --git a/config/lkc_proto.h b/config/lkc_proto.h index c46929f..cf4510a 100644 --- a/config/lkc_proto.h +++ b/config/lkc_proto.h @@ -10,7 +10,7 @@ int conf_write(const char *name); int conf_write_autoconf(void); bool conf_get_changed(void); void conf_set_changed_callback(void (*fn)(void)); -void conf_set_message_callback(void (*fn)(const char *fmt, va_list ap)); +void conf_set_message_callback(void (*fn)(const char *s)); /* menu.c */ extern struct menu rootmenu; @@ -49,7 +49,15 @@ const char * sym_get_string_value(struct symbol *sym); const char * prop_get_type_name(enum prop_type type); /* preprocess.c */ +enum variable_flavor { + VAR_SIMPLE, + VAR_RECURSIVE, + VAR_APPEND, +}; void env_write_dep(FILE *f, const char *auto_conf_name); +void variable_add(const char *name, const char *value, + enum variable_flavor flavor); +void variable_all_del(void); char *expand_string(const char *in); char *expand_dollar(const char **str); char *expand_one_token(const char **str);