mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 09:39:13 +00:00
actions: Move struct script into .c file
The same -- it's internal action-scripts.c business. Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
a9c0864284
commit
f2012edce3
2 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue