Commit e027f116 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

plugin: add a function to get a descriptor to the image dir

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d7cf271e
......@@ -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
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment