diff options
author | Arnaud Lacombe <lacombar@gmail.com> | 2011-05-16 07:42:09 +0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2011-07-01 18:23:27 +0400 |
commit | e54e692ba613c2170c66ce36a3791c009680af08 (patch) | |
tree | 481c7b253cc97a38f2b267ff2f7cf068a50304d4 /scripts/kconfig/lkc_proto.h | |
parent | ec6452a5ec68498221a0ced3443cefd65b08be36 (diff) | |
download | linux-e54e692ba613c2170c66ce36a3791c009680af08.tar.xz |
kconfig: introduce specialized printer
Make conf_write_symbol() grammar agnostic to be able to use it from different
code path. These path pass a printer callback which will print a symbol's name
and its value in different format.
conf_write_symbol()'s job become mostly only to prepare a string for the
printer. This avoid to have to pass specialized flag to generic
functions
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
[mmarek: rebased on top of de12518 (kconfig: autogenerated config_is_xxx
macro)]
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/lkc_proto.h')
-rw-r--r-- | scripts/kconfig/lkc_proto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/lkc_proto.h b/scripts/kconfig/lkc_proto.h index 17342fef38b9..47fe9c340f9a 100644 --- a/scripts/kconfig/lkc_proto.h +++ b/scripts/kconfig/lkc_proto.h @@ -31,6 +31,7 @@ P(symbol_hash,struct symbol *,[SYMBOL_HASHSIZE]); P(sym_lookup,struct symbol *,(const char *name, int flags)); P(sym_find,struct symbol *,(const char *name)); P(sym_expand_string_value,const char *,(const char *in)); +P(sym_escape_string_value, const char *,(const char *in)); P(sym_re_search,struct symbol **,(const char *pattern)); P(sym_type_name,const char *,(enum symbol_type type)); P(sym_calc_value,void,(struct symbol *sym)); |