diff options
author | Ingo Huerner <ingo.huerner@xse.de> | 2014-04-04 16:58:18 +0200 |
---|---|---|
committer | Ingo Huerner <ingo.huerner@xse.de> | 2014-04-04 16:58:18 +0200 |
commit | 236796526d94f802508d31f6ea234bf0fb8c1719 (patch) | |
tree | e9c2bc6ed3208d828da15d57bdee06cf7713c6bd /src/crc32.h | |
parent | 184bbd512b7f64b53e72376a0b892a11b34f9094 (diff) | |
download | persistence-client-library-236796526d94f802508d31f6ea234bf0fb8c1719.tar.gz |
Removed itzam, and switched to commom library; Known issues: delete key test fails, DLT warnings
Diffstat (limited to 'src/crc32.h')
-rw-r--r-- | src/crc32.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/crc32.h b/src/crc32.h new file mode 100644 index 0000000..1d43392 --- /dev/null +++ b/src/crc32.h @@ -0,0 +1,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 */ |