From: Michel Normand Date: Wed, 7 Oct 2009 14:06:08 +0000 (+0200) Subject: export struct lxc_handler from start.c to start.h X-Git-Tag: lxc_0_6_4~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2001e1ceade7229352281575c72a454f5de8789;p=thirdparty%2Flxc.git export struct lxc_handler from start.c to start.h Will be required by a futur patch Signed-off-by: Michel Normand Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/start.c b/src/lxc/start.c index 709b8f761..055d381f6 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -100,15 +100,6 @@ lxc_log_define(lxc_start, lxc); LXC_TTY_HANDLER(SIGINT); LXC_TTY_HANDLER(SIGQUIT); -struct lxc_handler { - int sigfd; - int lock; - pid_t pid; - char tty[MAXPATHLEN]; - sigset_t oldmask; - struct lxc_tty_info tty_info; -}; - static int setup_sigchld_fd(sigset_t *oldmask) { sigset_t mask; diff --git a/src/lxc/start.h b/src/lxc/start.h index 2e76df89d..5206f8e18 100644 --- a/src/lxc/start.h +++ b/src/lxc/start.h @@ -21,7 +21,14 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -struct lxc_handler; +struct lxc_handler { + int sigfd; + int lock; + pid_t pid; + char tty[MAXPATHLEN]; + sigset_t oldmask; + struct lxc_tty_info tty_info; +}; extern struct lxc_handler *lxc_init(const char *name); extern int lxc_spawn(const char *name, struct lxc_handler *handler,