Separate loop handling from internal code.
[platform/upstream/cryptsetup.git] / lib / utils_loop.h
1 #ifndef _UTILS_LOOP_H
2 #define _UTILS_LOOP_H
3
4 /* loopback device helpers */
5
6 #define LOOP_DEV_MAJOR 7
7
8 char *crypt_loop_get_device(void);
9 char *crypt_loop_backing_file(const char *loop);
10 int crypt_loop_device(const char *loop);
11 int crypt_loop_attach(const char *loop, const char *file, int offset, int *readonly);
12
13 #endif /* _UTILS_CRYPT_H */