From: Cedric Le Goater Date: Wed, 26 May 2010 14:54:48 +0000 (+0200) Subject: introduce struct lxc_operations X-Git-Tag: lxc-0.7.0~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79fd982e9111cf25feadfed1884c205045265abc;p=thirdparty%2Flxc.git introduce struct lxc_operations struct lxc_operations offers 2 operations : start and post_start which are used by the lxc-start and lxc-restart sequences to define specific actions. Signed-off-by: Cedric Le Goater --- diff --git a/src/lxc/start.h b/src/lxc/start.h index 56c1d7406..96ee9b843 100644 --- a/src/lxc/start.h +++ b/src/lxc/start.h @@ -28,6 +28,14 @@ struct lxc_conf; +struct start_arg; +struct lxc_handler; + +struct lxc_operations { + int (*start)(struct lxc_handler *, struct start_arg *); + int (*post_start)(struct lxc_handler *, struct start_arg *, int); +}; + struct lxc_handler { pid_t pid; char *name; @@ -36,6 +44,7 @@ struct lxc_handler { char nsgroup[MAXPATHLEN]; sigset_t oldmask; struct lxc_conf *conf; + struct lxc_operations *ops; }; struct start_arg {