[lxc-devel] [PATCH] extend the struct lxc_arguments
Cedric Le Goater
clg at fr.ibm.com
Wed Oct 19 12:48:08 UTC 2011
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 at fr.ibm.com>
---
src/lxc/Makefile.am | 1 +
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 d2c4720..92698a7 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 a2c35c4..ff52501 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 \
--
1.7.4.4
More information about the lxc-devel
mailing list