Browse Source

* make simdb_t opaque type

master
Alex 'AdUser' Z 8 years ago
parent
commit
ccf1af849b
  1. 6
      src/database.c
  2. 6
      src/database.h

6
src/database.c

@ -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)); \

6
src/database.h

@ -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 {
int fd;
int flags;
char path[PATH_MAX];
} simdb_t;
typedef struct _simdb_t simdb_t; /* opaque database type */
/**
Database header format - fixed length, 48 bytes

Loading…
Cancel
Save