added explanation about the difference between plain and LUKS
[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 #ifndef LO_FLAGS_AUTOCLEAR
9 #define LO_FLAGS_AUTOCLEAR 4
10 #endif
11
12 char *crypt_loop_get_device(void);
13 char *crypt_loop_backing_file(const char *loop);
14 int crypt_loop_device(const char *loop);
15 int crypt_loop_attach(const char *loop, const char *file, int offset,
16                       int autoclear, int *readonly);
17 int crypt_loop_detach(const char *loop);
18
19 #endif /* _UTILS_LOOP_H */