mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-26 11:35:33 +00:00
plugin: add a function to get a descriptor to the image dir
Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
d7cf271ed4
commit
e027f116e4
2 changed files with 8 additions and 0 deletions
|
|
@ -23,4 +23,7 @@
|
|||
typedef int (cr_plugin_init_t)(void);
|
||||
typedef void (cr_plugin_fini_t)(void);
|
||||
|
||||
/* Public API */
|
||||
extern int criu_get_image_dir(void);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
5
util.c
5
util.c
|
|
@ -319,6 +319,11 @@ int get_service_fd(enum sfd_type type)
|
|||
return __get_service_fd(type, service_fd_id);
|
||||
}
|
||||
|
||||
int criu_get_image_dir(void)
|
||||
{
|
||||
return get_service_fd(IMG_FD_OFF);
|
||||
}
|
||||
|
||||
int close_service_fd(enum sfd_type type)
|
||||
{
|
||||
int fd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue