[2/6] actions: Move struct script into .c file

Submitted by Pavel Emelianov on April 21, 2016, 12:56 p.m.

Details

Message ID 5718CDE2.7020701@virtuozzo.com
State Accepted
Series "Cleanup action scripts"
Commit 4a14d880dc34eac67e73d7b63555e5e5f87336ed
Headers show

Commit Message

Pavel Emelianov April 21, 2016, 12:56 p.m.
The same -- it's internal action-scripts.c business.

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
---
 criu/action-scripts.c         | 6 ++++++
 criu/include/action-scripts.h | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

Patch hide | download patch | download mbox

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 {