From Tomas Kukosa: allow subdissectors to be registered for
[obnox/wireshark/wip.git] / adler32.h
1 /* adler32.h
2  * Compute the Adler32 checksum (RFC 1950)
3  * 2003 Tomas Kukosa
4  *
5  * Ethereal - Network traffic analyzer
6  * By Gerald Combs <gerald@ethereal.com>
7  * Copyright 1998 Gerald Combs
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22  */
23
24 #ifndef ADLER32_H
25 #define ADLER32_H
26
27 #ifdef __cplusplus
28 extern "C"{
29 #endif
30
31 unsigned long update_adler32(unsigned long adler, const unsigned char *buf, int len);
32 unsigned long adler32_bytes(unsigned char *buf, int len);
33 unsigned long adler32_str(const char *buf);
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif  /* ADLER32_H */
40