summaryrefslogtreecommitdiffstats
path: root/inc/dnbd3/shared/crc32.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/dnbd3/shared/crc32.h')
-rw-r--r--inc/dnbd3/shared/crc32.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/inc/dnbd3/shared/crc32.h b/inc/dnbd3/shared/crc32.h
new file mode 100644
index 0000000..00b8bdd
--- /dev/null
+++ b/inc/dnbd3/shared/crc32.h
@@ -0,0 +1,9 @@
+#ifndef _CRC32_H_
+#define _CRC32_H_
+
+#include <stdint.h>
+
+uint32_t crc32(uint32_t crc, const uint8_t *buf, size_t len);
+
+#endif
+