111 #define REC_COMPRESS_NONE 0
113 #define REC_COMPRESS_BZIP2 1
115 #define REC_COMPRESS_ZLIB 2
ZEBRA_RES rec_close(Records *p)
int recindex_read_indx(recindex_t p, zint sysno, void *buf, int itemsize, int ignoreError)
struct records_info * Records
void recindex_write_indx(recindex_t p, zint sysno, void *buf, int itemsize)
struct record_info * Record
zint rec_sysno_to_int(zint sysno)
Record rec_new(Records p)
creates new record (to be written to file storage)
Records rec_open(BFiles bfs, int rw, int compression_method)
opens records system
Record rec_get(Records p, zint sysno)
gets record - with given system number
ZEBRA_RES rec_put(Records p, Record *recpp)
puts record (writes into file storage)
recindex_t recindex_open(BFiles bfs, int rw, int use_isamb)
opens record index handle
void rec_prstat(Records p, int verbose)
void recindex_close(recindex_t p)
closes record index handle
char * rec_strdup(const char *s, size_t *len)
void rec_free(Record *recpp)
frees record (from memory)
Record rec_get_next(Records p, Record rec)
gets next record - with given records
const char * recindex_get_fname(recindex_t p)
ZEBRA_RES recindex_write_head(recindex_t p, const void *buf, size_t len)
ZEBRA_RES rec_del(Records p, Record *recpp)
marks record for deletion (on file storage)
int rec_check_compression_method(int compression_method)
check whether a compression method is supported
int recindex_read_head(recindex_t p, void *buf)
Record rec_get_root(Records p)
gets root record
struct recindex * recindex_t
size_t size_size[REC_NO_INFO]
char buf_size[REC_NO_INFO][6]
short ZEBRA_RES
Common return type for Zebra API.