view src/lib/crc32.h @ 9191:b340ecb24469 HEAD

Fix VPATH build of RQUOTA support. Some rpcgen derive #include "..." paths from the infile argument. This will be off for VPATH builds, as the generated rquota_xdr.c code will look in $(srcdir), but we'll generate the rquota.h file in $(builddir). Play safe and copy rquota.x to $(builddir) first. This fixes the build on openSUSE 11.1.
author Matthias Andree <matthias.andree@gmx.de>
date Tue, 07 Jul 2009 21:01:36 +0200
parents 3d2736ece94a
children
line wrap: on
line source

#ifndef CRC32_H
#define CRC32_H

uint32_t crc32_data(const void *data, size_t size) ATTR_PURE;
uint32_t crc32_str(const char *str) ATTR_PURE;

uint32_t crc32_data_more(uint32_t crc, const void *data, size_t size) ATTR_PURE;
uint32_t crc32_str_more(uint32_t crc, const char *str) ATTR_PURE;

#endif