Commit 79fd982e by Cedric Le Goater Committed by Daniel Lezcano

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: 's avatarCedric Le Goater <clg@fr.ibm.com>
parent e6126dbe
...@@ -28,6 +28,14 @@ ...@@ -28,6 +28,14 @@
struct lxc_conf; 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 { struct lxc_handler {
pid_t pid; pid_t pid;
char *name; char *name;
...@@ -36,6 +44,7 @@ struct lxc_handler { ...@@ -36,6 +44,7 @@ struct lxc_handler {
char nsgroup[MAXPATHLEN]; char nsgroup[MAXPATHLEN];
sigset_t oldmask; sigset_t oldmask;
struct lxc_conf *conf; struct lxc_conf *conf;
struct lxc_operations *ops;
}; };
struct start_arg { struct start_arg {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment