NAME
cdbmake.h - creating constant databases
SYNOPSIS
#include <limb/cdbmake.h>
DESCRIPTION
The header defines the needed functions to create constant databases, known as .cdb files.
This header is a complement to skalibs' own header, intended to be used as a "replacement". However, instead of re-inventing the wheel, it depends/includes skalibs' header, and some of the functions below are actually implemented in skalibs, or macros to such functions.
Types
The following types are defined :
cdbmaker
Opaque structure to be passed to the cdbmaker_ family of functions below.
cdbmaker_sa
Opaque structure to be passed to the cdbmaker_sa_ family of functions below.
Macros
The following macros are defined :
CDBMAKER_ZERO
Value to initialize a cdbmaker.
CDBMAKER_SA_ZERO
Value to initialize a cdbmaker_sa.
Functions
The following functions/macros are defined :
Add an element into a cdbmaker.
Finalize & write the cdb from a cdbmaker.
Prepare a cdbmaker to create a new cdb.
Similar to cdbmake_add(3) but the cdb will be created in-memory.
To get a pointer to the in-memory cdb.
To get the length of the in-memory cdb.
Similar to cdbmake_finish(3) but the cdb will be created in-memory.
To free memory associated with an opaque cdbmaker_sa when done.
To initialize a cdbmaker_sa if not initialized through CDBMAKER_SA_ZERO.
Similar to cdbmake_start(3) but the cdb will be created in-memory.