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>
This commit is contained in:
Cedric Le Goater 2011-10-24 14:56:30 +02:00 committed by Daniel Lezcano
parent 0ae4f887a4
commit e788178af4
2 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,5 @@
pkginclude_HEADERS = \ pkginclude_HEADERS = \
arguments.h \
start.h \ start.h \
console.h \ console.h \
error.h \ error.h \

View File

@ -61,6 +61,9 @@ struct lxc_arguments {
/* remaining arguments */ /* remaining arguments */
char *const *argv; char *const *argv;
int argc; int argc;
/* private arguments */
void *data;
}; };
#define LXC_COMMON_OPTIONS \ #define LXC_COMMON_OPTIONS \