From 79fd982e9111cf25feadfed1884c205045265abc Mon Sep 17 00:00:00 2001 From: Cedric Le Goater Date: Wed, 26 May 2010 16:54:48 +0200 Subject: [PATCH] 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 --- src/lxc/start.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 { -- 2.47.2