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 <clg@fr.ibm.com>
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;
char nsgroup[MAXPATHLEN];
sigset_t oldmask;
struct lxc_conf *conf;
+ struct lxc_operations *ops;
};
struct start_arg {