]> mj.ucw.cz Git - libucw.git/blobdiff - lib/db.h
First bits of installation of .pc files.
[libucw.git] / lib / db.h
index 6b409ef4350cdbcf6f4f70bbd8d16024a95b0a6b..41b81aa1308fb2a533d809fb80e7c2441e0dd68d 100644 (file)
--- a/lib/db.h
+++ b/lib/db.h
@@ -1,11 +1,14 @@
 /*
- *     Sherlock Library -- Fast Database Management Routines
+ *     UCW Library -- Fast Database Management Routines
  *
- *     (c) 1999 Martin Mares <mj@ucw.cz>
+ *     (c) 1999--2001 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
-#ifndef _SHERLOCK_DB_H
-#define _SHERLOCK_DB_H
+#ifndef _UCW_DB_H
+#define _UCW_DB_H
 
 struct sdbm;
 
@@ -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 */