diff options
Diffstat (limited to 'src/lxc/lxc.h')
-rw-r--r-- | src/lxc/lxc.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lxc/lxc.h b/src/lxc/lxc.h index e6af295..ae8a3f7 100644 --- a/src/lxc/lxc.h +++ b/src/lxc/lxc.h @@ -32,6 +32,7 @@ extern "C" { struct lxc_msg; struct lxc_conf; +struct lxc_arguments; /** Following code is for liblxc. @@ -40,7 +41,7 @@ struct lxc_conf; **/ /* - * Start the specified command inside a container + * Start the specified command inside a system container * @name : the name of the container * @argv : an array of char * corresponding to the commande line * @conf : configuration @@ -57,6 +58,17 @@ extern int lxc_start(const char *name, char *const argv[], struct lxc_conf *conf extern int lxc_stop(const char *name); /* + * Start the specified command inside an application container + * @name : the name of the container + * @argv : an array of char * corresponding to the commande line + * @quiet : if != 0 then lxc-init won't produce any output + * @conf : configuration + * Returns 0 on sucess, < 0 otherwise + */ +extern int lxc_execute(const char *name, char *const argv[], int quiet, + struct lxc_conf *conf); + +/* * Open the monitoring mechanism for a specific container * The function will return an fd corresponding to the events * Returns a file descriptor on success, < 0 otherwise |