File: infect.h

package info (click to toggle)
criu 4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,584 kB
  • sloc: ansic: 139,280; python: 7,484; sh: 3,824; java: 2,799; makefile: 2,659; asm: 1,137; perl: 206; xml: 117; exp: 45
file content (25 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef COMPEL_PLUGIN_STD_INFECT_H__
#define COMPEL_PLUGIN_STD_INFECT_H__

#include "common/compiler.h"

extern int parasite_get_rpc_sock(void);

extern unsigned int __export_parasite_service_cmd;
extern void *__export_parasite_service_args_ptr;
extern unsigned long __must_check parasite_service(void);

/*
 * Must be supplied by user plugins.
 */
extern int __must_check parasite_daemon_cmd(int cmd, void *args);
extern int __must_check parasite_trap_cmd(int cmd, void *args);
extern void parasite_cleanup(void);

/*
 * FIXME: Should be supplied by log module.
 */
extern void log_set_fd(int fd);
extern void log_set_loglevel(unsigned int level);

#endif /* COMPEL_PLUGIN_STD_INFECT_H__ */