summaryrefslogtreecommitdiffstats
path: root/utils/include/crc32.h
diff options
context:
space:
mode:
authorManuel Bentele2020-09-08 15:07:31 +0200
committerManuel Bentele2020-09-16 07:37:56 +0200
commitefc492d327ea6a9658674eb9e971aff3742818cd (patch)
tree72a3e3e61ee3cbc7df4059ee24ae95487c265b60 /utils/include/crc32.h
parentAdded file format file format subsystem for loop devices (diff)
downloadxloop-efc492d327ea6a9658674eb9e971aff3742818cd.tar.gz
xloop-efc492d327ea6a9658674eb9e971aff3742818cd.tar.xz
xloop-efc492d327ea6a9658674eb9e971aff3742818cd.zip
Added patched losetup utility to configure xloop devices
Diffstat (limited to 'utils/include/crc32.h')
-rw-r--r--utils/include/crc32.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/include/crc32.h b/utils/include/crc32.h
new file mode 100644
index 0000000..2551f50
--- /dev/null
+++ b/utils/include/crc32.h
@@ -0,0 +1,12 @@
+#ifndef UL_NG_CRC32_H
+#define UL_NG_CRC32_H
+
+#include <sys/types.h>
+#include <stdint.h>
+
+extern uint32_t ul_crc32(uint32_t seed, const unsigned char *buf, size_t len);
+extern uint32_t ul_crc32_exclude_offset(uint32_t seed, const unsigned char *buf, size_t len,
+ size_t exclude_off, size_t exclude_len);
+
+#endif
+