On Fri, Dec 10, 2021 at 2:34 PM Vishal Verma <[email protected]> wrote:
>
> From: QI Fuli <[email protected]>
>
> Add parse-config util to help ndctl commands parse ndctl global
> configuration files. This provides a parse_configs_prefix() helper which
> uses the iniparser APIs to read all applicable config files, and either
> return a 'value' for a requested 'key', or perform a callback if
> requested. The operation is defined by a 'struct config' which
> encapsulates the key to search for, the location to store the value, and
> any callbacks to be executed.
>
> Signed-off-by: QI Fuli <[email protected]>
> Signed-off-by: Vishal Verma <[email protected]>
[..]
> diff --git a/ndctl/Makefile.am b/ndctl/Makefile.am
> index a63b1e0..afdd03c 100644
> --- a/ndctl/Makefile.am
> +++ b/ndctl/Makefile.am
> @@ -56,7 +56,8 @@ ndctl_LDADD =\
>         ../libutil.a \
>         $(UUID_LIBS) \
>         $(KMOD_LIBS) \
> -       $(JSON_LIBS)
> +       $(JSON_LIBS) \
> +       -liniparser

Darn, no pkgconfig for iniparser. Oh well.

Reviewed-by: Dan Williams <[email protected]>

Reply via email to