mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 23:35:21 +00:00
compel: plugins,std -- Move in infect code
Providing infect functionality inside std plugin doesn't look suite for me: the restorer has to define dummy parasite_daemon_cmd/parasite_trap_cmd/parasite_cleanup just to be able to compile with it. So we have to define weak stubs right here in near future. travis-ci: success for compel: The final infect move and install target Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
a51068664b
commit
51458d4518
20
compel/plugins/include/uapi/std/infect.h
Normal file
20
compel/plugins/include/uapi/std/infect.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef COMPEL_PLUGIN_STD_INFECT_H__
|
||||
#define COMPEL_PLUGIN_STD_INFECT_H__
|
||||
|
||||
extern int parasite_get_rpc_sock(void);
|
||||
extern int parasite_service(unsigned int cmd, void *args);
|
||||
|
||||
/*
|
||||
* Must be supplied by user plugins.
|
||||
*/
|
||||
extern int parasite_daemon_cmd(int cmd, void *args);
|
||||
extern int 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__ */
|
Reference in New Issue
Block a user