]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
export lxc_config_readline()
authorCedric Le Goater <clg@fr.ibm.com>
Wed, 13 Jan 2010 17:51:16 +0000 (18:51 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 13 Jan 2010 17:51:16 +0000 (18:51 +0100)
lxc_config_readline() will be used to parse configuration variable
assigned from the command line with --define

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/confile.c
src/lxc/confile.h

index 9dd33c06a9cdb78c2ea26b5619daa8a018db59b6..1fa9bc1b17004d52f8a80fec854ad265414b81ee 100644 (file)
@@ -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];
index 20c9b3960ea40719d6f4e97ae580bf41c25fd297..f88e55ff1dd1b230411f5af931e97a4cf51aa0f0 100644 (file)
@@ -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);