mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 18:25:14 +00:00
24 lines
485 B
C
24 lines
485 B
C
#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 {
|
|
ACT_POST_DUMP,
|
|
ACT_POST_RESTORE,
|
|
ACT_NET_LOCK,
|
|
ACT_NET_UNLOCK,
|
|
ACT_SETUP_NS,
|
|
};
|
|
|
|
extern int add_script(char *path, int arg);
|
|
extern int run_scripts(enum script_actions);
|
|
extern int send_criu_rpc_script(enum script_actions act, char *name, int arg);
|
|
|
|
#endif /* __CR_ACTION_SCRIPTS_H__ */
|