|
|
@ -16,7 +16,7 @@ typedef struct { |
|
|
|
uint64_t start; |
|
|
|
uint64_t start; |
|
|
|
size_t records; |
|
|
|
size_t records; |
|
|
|
unsigned char *data; |
|
|
|
unsigned char *data; |
|
|
|
} block_t; |
|
|
|
} imdb_block_t; |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
Database header format - fixed length, 48 bytes |
|
|
|
Database header format - fixed length, 48 bytes |
|
|
@ -74,8 +74,8 @@ extern int imdb_close(imdb_t *db); |
|
|
|
extern int imdb_read_rec (imdb_t *db, imdb_rec_t *rec); |
|
|
|
extern int imdb_read_rec (imdb_t *db, imdb_rec_t *rec); |
|
|
|
extern int imdb_write_rec(imdb_t *db, imdb_rec_t *rec); |
|
|
|
extern int imdb_write_rec(imdb_t *db, imdb_rec_t *rec); |
|
|
|
|
|
|
|
|
|
|
|
extern int imdb_read_blk (imdb_t *db, block_t *blk); |
|
|
|
extern int imdb_read_blk (imdb_t *db, imdb_block_t *blk); |
|
|
|
extern int imdb_write_blk(imdb_t *db, block_t *blk); |
|
|
|
extern int imdb_write_blk(imdb_t *db, imdb_block_t *blk); |
|
|
|
|
|
|
|
|
|
|
|
extern int imdb_read_list (imdb_t *db, imdb_rec_t *list, size_t list_len); |
|
|
|
extern int imdb_read_list (imdb_t *db, imdb_rec_t *list, size_t list_len); |
|
|
|
extern int imdb_write_list(imdb_t *db, imdb_rec_t *list, size_t list_len); |
|
|
|
extern int imdb_write_list(imdb_t *db, imdb_rec_t *list, size_t list_len); |
|
|
|