@ -18,6 +18,12 @@
#include "database.h"
#include "bitmap.h"
struct _simdb_t {
int fd;
int flags;
char path[PATH_MAX];
};
#define DB_READ(db, buf, len, off) \
errno = 0; \
memset((buf), 0x0, (len)); \
@ -22,11 +22,7 @@
#define SIMDB_ERR_NXRECORD -5 /* no such record in database */
#define SIMDB_ERR_READONLY -6 /* database opened in read-only mode */
typedef struct {
} simdb_t;
typedef struct _simdb_t simdb_t; /* opaque database type */
/**
Database header format - fixed length, 48 bytes