Convert to using use SPDX identifier on wsutil directory
[metze/wireshark/wip.git] / wsutil / adler32.h
1 /* adler32.h
2  * Compute the Adler32 checksum (RFC 1950)
3  * 2003 Tomas Kukosa
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0+
10  */
11
12 #ifndef ADLER32_H
13 #define ADLER32_H
14
15 #include "ws_symbol_export.h"
16
17 #ifdef __cplusplus
18 extern "C"{
19 #endif
20
21 WS_DLL_PUBLIC guint32 update_adler32(guint32 adler, const guint8 *buf, size_t len);
22 WS_DLL_PUBLIC guint32 adler32_bytes(const guint8 *buf, size_t len);
23 WS_DLL_PUBLIC guint32 adler32_str(const char *buf);
24
25 #ifdef __cplusplus
26 }
27 #endif
28
29 #endif  /* ADLER32_H */
30