2018-08-10 00:40:23 +08:00
|
|
|
#ifndef IMG_H
|
|
|
|
#define IMG_H
|
|
|
|
|
2018-11-04 03:38:06 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-08-10 00:40:23 +08:00
|
|
|
int create_img(const char *img, int size);
|
|
|
|
int resize_img(const char *img, int size);
|
|
|
|
char *mount_image(const char *img, const char *target);
|
|
|
|
int umount_image(const char *target, const char *device);
|
|
|
|
int merge_img(const char *source, const char *target);
|
|
|
|
int trim_img(const char *img, const char *mount, char *loop);
|
|
|
|
|
2018-11-04 03:38:06 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-08-10 00:40:23 +08:00
|
|
|
#endif //IMG_H
|