From: Cedric Le Goater Date: Wed, 13 Jan 2010 17:51:16 +0000 (+0100) Subject: export lxc_config_readline() X-Git-Tag: lxc-0.6.5~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af5b01558c6ab7962f7dcdc883a0debc1aa0444f;p=thirdparty%2Flxc.git export lxc_config_readline() lxc_config_readline() will be used to parse configuration variable assigned from the command line with --define Signed-off-by: Cedric Le Goater Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 9dd33c06a..1fa9bc1b1 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -659,6 +659,11 @@ static int parse_line(char *buffer, void *data) return config->cb(key, value, data); } +int lxc_config_readline(char *buffer, struct lxc_conf *conf) +{ + return parse_line(buffer, conf); +} + int lxc_config_read(const char *file, struct lxc_conf *conf) { char buffer[MAXPATHLEN]; diff --git a/src/lxc/confile.h b/src/lxc/confile.h index 20c9b3960..f88e55ff1 100644 --- a/src/lxc/confile.h +++ b/src/lxc/confile.h @@ -24,6 +24,6 @@ struct lxc_conf; extern int lxc_config_read(const char *file, struct lxc_conf *conf); - +extern int lxc_config_readline(char *buffer, struct lxc_conf *conf);