Commit af5b0155 by Cedric Le Goater Committed by Daniel Lezcano

export lxc_config_readline()

lxc_config_readline() will be used to parse configuration variable assigned from the command line with --define Signed-off-by: 's avatarCedric Le Goater <clg@fr.ibm.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent d066f3b8
......@@ -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];
......
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment