diff options
author | Cedric Le Goater <clg@fr.ibm.com> | 2011-10-24 14:56:30 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@free.fr> | 2011-10-24 14:56:30 +0200 |
commit | e788178af4da91e5bd152f01ac95e56e59118641 (patch) | |
tree | f9663035aeb0d9af1b79b70a21b153aaa2564a0b | |
parent | lxc: introduce lxc_execute() (diff) | |
download | lxc-e788178af4da91e5bd152f01ac95e56e59118641.tar.gz lxc-e788178af4da91e5bd152f01ac95e56e59118641.tar.bz2 lxc-e788178af4da91e5bd152f01ac95e56e59118641.zip |
extend the struct lxc_arguments
This patch adds a private argument to extend the struct
lxc_arguments. This is useful to develop custom lxc commands
outside mainline lxc.
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
-rw-r--r-- | src/lxc/Makefile.am | 1 | ||||
-rw-r--r-- | src/lxc/arguments.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index 2654675..924cf1d 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -1,4 +1,5 @@ pkginclude_HEADERS = \ + arguments.h \ start.h \ console.h \ error.h \ diff --git a/src/lxc/arguments.h b/src/lxc/arguments.h index d5ccaef..6a2ffc6 100644 --- a/src/lxc/arguments.h +++ b/src/lxc/arguments.h @@ -61,6 +61,9 @@ struct lxc_arguments { /* remaining arguments */ char *const *argv; int argc; + + /* private arguments */ + void *data; }; #define LXC_COMMON_OPTIONS \ |