confile: make lxc_get_config() and lxc_get_config_net() always return non-NULL

Introduce the concept of an unsupported config item. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 9c75153c
...@@ -305,6 +305,14 @@ static struct lxc_config_net_t unsupported_config_net_key = { ...@@ -305,6 +305,14 @@ static struct lxc_config_net_t unsupported_config_net_key = {
clr_config_unsupported_key, clr_config_unsupported_key,
}; };
static struct lxc_config_net_t unsupported_config_net_key = {
NULL,
false,
set_config_unsupported_key,
get_config_unsupported_key,
clr_config_unsupported_key,
};
struct lxc_config_t *lxc_get_config_exact(const char *key) struct lxc_config_t *lxc_get_config_exact(const char *key)
{ {
size_t i; size_t i;
......
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