X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdb.h;h=b2a13a234a9610c92f84e398d6d273a1fc774d69;hb=fa390094c968bc3b07f7af64edaddb7e773c3b04;hp=cd24b90831cb9f5eda80d6a6ef8b5d59130e004e;hpb=ebfbdfc74098f7d097bc6ccab82cba2eb13eefde;p=libucw.git diff --git a/lib/db.h b/lib/db.h index cd24b908..b2a13a23 100644 --- a/lib/db.h +++ b/lib/db.h @@ -1,7 +1,10 @@ /* * Sherlock Library -- Fast Database Management Routines * - * (c) 1999 Martin Mares + * (c) 1999--2001 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #ifndef _SHERLOCK_DB_H @@ -27,6 +30,7 @@ int sdbm_fetch(struct sdbm *, byte *key, uns keylen, byte *val, uns *vallen); / void sdbm_rewind(struct sdbm *); int sdbm_get_next(struct sdbm *, byte *key, uns *keylen, byte *val, uns *vallen); /* val can be NULL */ void sdbm_sync(struct sdbm *); +u32 sdbm_hash(byte *key, uns keylen); #define SDBM_CREAT 1 /* Create the database if it doesn't exist */ #define SDBM_WRITE 2 /* Open the database in read/write mode */