X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=trunk%2Fsrc%2Fhash.h;fp=trunk%2Fsrc%2Fhash.h;h=0000000000000000000000000000000000000000;hb=1b68d81d4518e235494aa124577f14fdc4fe0390;hp=31fb325f9addccb64a27ed6683d47559ecfb19ea;hpb=b10d54ea2c267fce4e881b9d7e064427f6e6c34f;p=fprobe-ulog.git diff --git a/trunk/src/hash.h b/trunk/src/hash.h deleted file mode 100644 index 31fb325..0000000 --- a/trunk/src/hash.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - Copyright (C) Slava Astashonok - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License. - - $Id: hash.h,v 1.1.1.1.2.3.2.1 2005/01/29 19:30:41 sla Exp $ -*/ - -#ifndef _HASH_H_ -#define _HASH_H_ - -#ifndef HASH_TYPE_XOR -# ifndef HASH_TYPE_CRC -# error HASH_TYPE_XOR or HASH_TYPE_CRC must be defined -# endif -#else -# ifdef HASH_TYPE_CRC -# error HASH_TYPE_XOR or HASH_TYPE_CRC must be defined -# endif -#endif - -#if HASH_BITS != 16 -# ifdef HASH_TYPE_CRC -# error illegal value in HASH_BITS -# endif -# if HASH_BITS != 8 -# error illegal value in HASH_BITS -# endif -#endif - -#include - -#if HASH_BITS == 8 -typedef uint8_t hash_t; -#endif - -#if HASH_BITS == 16 -typedef uint16_t hash_t; -#endif - -#define CRC16_POLY 0x8005 - -#ifndef RNDDEV -# define RNDDEV "/dev/random" -#endif - -uint16_t crc16(uint16_t, uint8_t); -hash_t hash(void *, int); -void hash_init(); - -#endif