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:
Pavel Emelyanov 2016-04-21 15:56:02 +03:00
parent a9c0864284
commit f2012edce3
2 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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 {