[CRIU] [PATCH 2/6] actions: Move struct script into .c file
Pavel Emelyanov
xemul at virtuozzo.com
Thu Apr 21 05:56:02 PDT 2016
The same -- it's internal action-scripts.c business.
Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
criu/action-scripts.c | 6 ++++++
criu/include/action-scripts.h | 6 ------
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/criu/action-scripts.c b/criu/action-scripts.c
index 5a49de9..691085f 100644
--- a/criu/action-scripts.c
+++ b/criu/action-scripts.c
@@ -24,6 +24,12 @@ static const char *action_names[ACT_MAX] = {
[ ACT_POST_RESUME ] = "post-resume",
};
+struct script {
+ struct list_head node;
+ char *path;
+ int arg;
+};
+
static LIST_HEAD(scripts);
int run_scripts(enum script_actions act)
diff --git a/criu/include/action-scripts.h b/criu/include/action-scripts.h
index 4ab5d6d..e12fb0c 100644
--- a/criu/include/action-scripts.h
+++ b/criu/include/action-scripts.h
@@ -1,12 +1,6 @@
#ifndef __CR_ACTION_SCRIPTS_H__
#define __CR_ACTION_SCRIPTS_H__
-struct script {
- struct list_head node;
- char *path;
- int arg;
-};
-
#define SCRIPT_RPC_NOTIFY (char *)0x1
enum script_actions {
--
2.1.4
More information about the CRIU
mailing list