]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
introduce struct lxc_operations
authorCedric Le Goater <clg@vnet.ibm.com>
Wed, 26 May 2010 14:54:48 +0000 (16:54 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 26 May 2010 14:54:48 +0000 (16:54 +0200)
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>
src/lxc/start.h

index 56c1d74065b854e783e75006ece55815d1ad1d12..96ee9b8435266c2e1f00ed4bd720d55b2b41449e 100644 (file)
 
 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 {