summaryrefslogtreecommitdiff
path: root/src/crc32.h
blob: 1d43392f79bda1cc465e54560092ee6728b7062f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef CRC32_H
#define CRC32_H

/******************************************************************************
 * Project         Persistency
 * (c) copyright   2012
 * Company         XS Embedded GmbH
 *****************************************************************************/
/******************************************************************************
 * Copyright
 *
 * This Source Code Form is subject to the terms of the
 * Mozilla Public License, v. 2.0. If a  copy of the MPL was not distributed
 * with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
******************************************************************************/
 /**
 * @file           crc32.h
 * @ingroup        Persistence client library
 * @author         Ingo Huerner
 * @brief          Header of crc32 checksum generation
 * @see            
 */

#ifdef __cplusplus
extern "C" {
#endif


#define  PERSIST_CLIENT_LIBRARY_INTERFACE_VERSION   (0x01000000U)

#include <string.h>

unsigned int pclCrc32(unsigned int crc, const unsigned char *buf, size_t theSize);


#ifdef __cplusplus
}
#endif

#endif /* CRC32_H */