]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: implement config item clear callback
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 31 May 2017 12:53:29 +0000 (14:53 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 31 May 2017 12:53:29 +0000 (14:53 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.h

index 003f8f23ff8135cb2c170f0c4c03bef66aad33dd..13cdc0f4487cf5f7441436a0df888d65739278dc 100644 (file)
@@ -33,12 +33,12 @@ struct lxc_list;
 
 typedef int (*config_set_cb)(const char *, const char *, struct lxc_conf *);
 typedef int (*config_get_cb)(const char *, char *, int, struct lxc_conf *);
-typedef int (*config_clear_cb)(void);
+typedef int (*config_clr_cb)(const char *key, struct lxc_conf *c);
 struct lxc_config_t {
        char *name;
        config_set_cb set;
        config_get_cb get;
-       config_clear_cb clear;
+       config_clr_cb clear;
 };
 
 extern struct lxc_config_t *lxc_getconfig(const char *key);