]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/conf.c
Make config api items const
authorDwight Engen <dwight.engen@oracle.com>
Mon, 26 Nov 2012 20:28:14 +0000 (15:28 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 27 Nov 2012 19:59:33 +0000 (14:59 -0500)
commit12a50cc6ab5c8a4aa0bcb7ddcd7095265f7bb62b
tree1b7da95569289e247e0747910bebfd1a32152cc1
parent12ad0f90c17072c8d6024c0ab6eda3f13c94aad0
Make config api items const

This makes it easier to write a binding, and presents a cleaner API. Use
strdupa in a few places to get mutable strings for tokenizing / parsing.
Also change the argv type in lxcapi_start and lxcapi_create to match
that of execv(3).

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c
src/lxc/conf.h
src/lxc/confile.c
src/lxc/confile.h
src/lxc/lxc.h
src/lxc/lxccontainer.c
src/lxc/lxccontainer.h
src/lxc/lxclock.c
src/lxc/lxclock.h
src/lxc/state.c
src/lxc/state.h