From: Christian Brauner Date: Wed, 31 May 2017 12:53:29 +0000 (+0200) Subject: confile: implement config item clear callback X-Git-Tag: lxc-2.1.0~110^2~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d55502f2ffabd9ceacc9aee3e075a89e8c10416;p=thirdparty%2Flxc.git confile: implement config item clear callback Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.h b/src/lxc/confile.h index 003f8f23f..13cdc0f44 100644 --- a/src/lxc/confile.h +++ b/src/lxc/confile.h @@ -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);