Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

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)
dbiIndex db3Free (dbiIndex dbi)
char * prDbiOpenFlags (int dbflags, int print_dbenv_flags)

Variables

_dbiVec db3vec
poptOption rdbOptions []

Function Documentation

dbiIndex db3Free dbiIndex    dbi
 

Destroy index database handle instance.

Parameters:
dbi  index database handle
Returns:
NULL always

Definition at line 244 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
 

Return new configured index database handle instance.

Parameters:
rpmdb  rpm database
rpmtag  rpm tag
Returns:
index database handle

Definition at line 267 of file dbconfig.c.

References _, _free(), poptOption::arg, poptOption::argInfo, db3_config_default, rpmdb_s::db_mode, _dbiIndex::dbi_bt_flags, _dbiIndex::dbi_byteswapped, _dbiIndex::dbi_cachesize, _dbiIndex::dbi_eflags, _dbiIndex::dbi_h_flags, _dbiIndex::dbi_jlen, _dbiIndex::dbi_mmapsize, _dbiIndex::dbi_mode, _dbiIndex::dbi_permit_dups, _dbiIndex::dbi_perms, _dbiIndex::dbi_rpmdb, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_use_dbenv, poptOption::longName, POPT_ARG_INT, POPT_ARG_LONG, POPT_ARG_MASK, POPT_ARG_NONE, POPT_ARG_STRING, POPT_ARG_VAL, POPT_BIT_CLR, POPT_BIT_SET, poptSaveInt(), poptSaveLong(), RPMDBI_DEPENDS, RPMDBI_PACKAGES, RPMERR_DBCONFIG, rpmError, rpmExpand(), rpmTag, tagName(), poptOption::val, xcalloc(), xisspace(), xstrdup(), and xstrncasecmp().

Referenced by db3open().

char* 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 451 of file dbconfig.c.

References poptOption::arg, poptOption::argInfo, _dbiIndex::dbi_eflags, _dbiIndex::dbi_oeflags, _dbiIndex::dbi_oflags, poptOption::longName, POPT_BIT_SET, stpcpy(), and poptOption::val.

Referenced by 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 1363 of file db3.c.

struct poptOption rdbOptions[]
 

Definition at line 35 of file dbconfig.c.


Generated on Sun Oct 26 13:02:10 2003 for rpm by doxygen1.2.18