Berkeley DB API.


Files

file  db3.c
file  rpmdb.h
 Access RPM indices using Berkeley DB interface(s).

Functions

dbiIndex db3New (rpmdb rpmdb, rpmTag rpmtag)
 Return new configured index database handle instance.
dbiIndex db3Free (dbiIndex dbi)
 Destroy index database handle instance.
const char *const prDbiOpenFlags (int dbflags, int print_dbenv_flags)
 Format db3 open flags for debugging print.

Variables

struct _dbiVec db3vec
struct poptOption rdbOptions []

Function Documentation

dbiIndex db3Free ( dbiIndex  dbi  ) 

Destroy index database handle instance.

Parameters:
dbi index database handle
Returns:
NULL always

Definition at line 254 of file dbconfig.c.

References _free(), _dbiIndex::dbi_errpfx, _dbiIndex::dbi_file, _dbiIndex::dbi_home, _dbiIndex::dbi_host, _dbiIndex::dbi_re_source, _dbiIndex::dbi_root, _dbiIndex::dbi_stats, _dbiIndex::dbi_subfile, and _dbiIndex::dbi_tmpdir.

Referenced by db3close(), and dbiOpen().

dbiIndex db3New ( rpmdb  rpmdb,
rpmTag  rpmtag 
)

const char* const prDbiOpenFlags ( int  dbflags,
int  print_dbenv_flags 
)

Format db3 open flags for debugging print.

Parameters:
dbflags db open flags
print_dbenv_flags format db env flags instead?
Returns:
formatted flags (static buffer)

Definition at line 461 of file dbconfig.c.

References db3dbi, _dbiIndex::dbi_eflags, _dbiIndex::dbi_oeflags, _dbiIndex::dbi_oflags, rdbOptions, and stpcpy().

Referenced by db3open(), and db_init().


Variable Documentation

struct _dbiVec db3vec

Initial value:

 {
    DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH,
    db3open, db3close, db3sync, db3associate, db3join,
    db3copen, db3cclose, db3cdup, db3cdel, db3cget, db3cpget, db3cput, db3ccount,
    db3byteswapped, db3stat
}

Definition at line 1415 of file db3.c.

struct poptOption rdbOptions[]

Definition at line 35 of file dbconfig.c.

Referenced by db3New(), and prDbiOpenFlags().


Generated on Fri Dec 12 13:02:12 2008 for rpm by  doxygen 1.5.6