2014-09-03 23:43:23 +04:00
|
|
|
#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
|
|
|
|
|
2014-09-03 23:43:46 +04:00
|
|
|
enum script_actions {
|
2014-10-24 23:07:00 +04:00
|
|
|
ACT_POST_DUMP = 0,
|
|
|
|
ACT_POST_RESTORE = 1,
|
|
|
|
ACT_NET_LOCK = 2,
|
|
|
|
ACT_NET_UNLOCK = 3,
|
|
|
|
ACT_SETUP_NS = 4,
|
|
|
|
|
|
|
|
ACT_MAX
|
2014-09-03 23:43:46 +04:00
|
|
|
};
|
|
|
|
|
2014-09-03 23:43:23 +04:00
|
|
|
extern int add_script(char *path, int arg);
|
2014-09-03 23:43:46 +04:00
|
|
|
extern int run_scripts(enum script_actions);
|
2014-09-03 23:44:03 +04:00
|
|
|
extern int send_criu_rpc_script(enum script_actions act, char *name, int arg);
|
2014-09-03 23:43:46 +04:00
|
|
|
|
2014-09-03 23:43:23 +04:00
|
|
|
#endif /* __CR_ACTION_SCRIPTS_H__ */
|