]> mj.ucw.cz Git - libucw.git/blobdiff - lib/db.h
Added generic functions for IP address access lists.
[libucw.git] / lib / db.h
index 78fc804a4b113db55e71d293d1e837ac0f158624..6b409ef4350cdbcf6f4f70bbd8d16024a95b0a6b 100644 (file)
--- a/lib/db.h
+++ b/lib/db.h
@@ -1,7 +1,7 @@
 /*
  *     Sherlock Library -- Fast Database Management Routines
  *
- *     (c) 1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+ *     (c) 1999 Martin Mares <mj@ucw.cz>
  */
 
 #ifndef _SHERLOCK_DB_H
@@ -18,11 +18,6 @@ struct sdbm_options {                        /* Set to 0 for default */
   int val_size;                                /* Value size, -1=variable */
 };
 
-struct sdbm_buf {
-  uns size;
-  byte data[0];
-};
-
 struct sdbm *sdbm_open(struct sdbm_options *);
 void sdbm_close(struct sdbm *);
 int sdbm_store(struct sdbm *, byte *key, uns keylen, byte *val, uns vallen);
@@ -46,5 +41,6 @@ void sdbm_sync(struct sdbm *);
 #define SDBM_ERROR_BAD_VAL_SIZE -2     /* Fixed value size doesn't match */
 #define SDBM_ERROR_TOO_LARGE   -3      /* Key/value doesn't fit in buffer supplied */
 #define SDBM_ERROR_READ_ONLY   -4      /* Database has been opened read only */
+#define SDBM_ERROR_GIANT       -5      /* Key/value too large to fit in a page */
 
 #endif