From 19f1dc012ec726d78123fa4b14c13cdd256d30dc Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Wed, 20 Jul 2016 15:28:55 +0800 Subject: [PATCH] refactor struct hyper_container Signed-off-by: Lai Jiangshan --- src/container.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/container.h b/src/container.h index 19f1e5f..91a7f95 100644 --- a/src/container.h +++ b/src/container.h @@ -31,6 +31,12 @@ struct port { }; struct hyper_container { + struct list_head list; + struct hyper_exec exec; + int ns; + uint32_t code; + + // configs char *id; char *rootfs; char *image; @@ -39,16 +45,12 @@ struct hyper_container { struct volume *vols; struct fsmap *maps; struct sysctl *sys; - struct port *ports; + struct port *ports; int vols_num; int maps_num; int sys_num; - int ports_num; - int ns; + int ports_num; int initialize; - uint32_t code; - struct list_head list; - struct hyper_exec exec; }; struct hyper_pod;