]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/arguments.c
Re-organize API for global lxc.conf config
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 9 Jan 2014 22:31:52 +0000 (17:31 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 10 Jan 2014 16:16:06 +0000 (11:16 -0500)
commit593e84786e2b4709059989bee489deab5c923779
treec546eb59161054eb37b9de46425027fe10522f01
parent9e8be7811548b3b321b183df139980e463c14f38
Re-organize API for global lxc.conf config

Instead of having one function for each possible key in lxc.conf which
doesn't really scale and requires an API update for every new key,
switch to a generic lxc_get_global_config_item() function which takes a
key name as argument.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
16 files changed:
src/lua-lxc/core.c
src/lxc/arguments.c
src/lxc/bdev.c
src/lxc/cgroup.c
src/lxc/commands.c
src/lxc/conf.c
src/lxc/log.c
src/lxc/lxc_config.c
src/lxc/lxccontainer.c
src/lxc/lxccontainer.h
src/lxc/start.c
src/lxc/utils.c
src/lxc/utils.h
src/python-lxc/lxc.c
src/python-lxc/lxc/__init__.py
src/tests/snapshot.c