rpm  5.4.15
Typedefs | Functions | Variables
rpmtxn.h File Reference

Database transaction wrappers. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void * rpmtxn
 

Functions

uint32_t rpmtxnId (rpmtxn txn)
 
const char * rpmtxnName (rpmtxn txn)
 
int rpmtxnSetName (rpmtxn txn, const char *N)
 
int rpmtxnAbort (rpmtxn txn)
 
int rpmtxnBegin (rpmdb rpmdb, rpmtxn parent, rpmtxn *txnp)
 
int rpmtxnCommit (rpmtxn txn)
 
int rpmtxnCheckpoint (rpmdb rpmdb)
 

Variables

int _rpmtxn_debug
 

Detailed Description

Database transaction wrappers.

Definition in file rpmtxn.h.

Typedef Documentation

typedef void* rpmtxn

Definition at line 14 of file rpmtxn.h.

Function Documentation

int rpmtxnAbort ( rpmtxn  txn)

Definition at line 47 of file rpmtxn.c.

References _rpmtxn_debug, and __db_txn::abort.

Referenced by _rpmtsRun(), rpmcliImportPubkey(), and rpmpsmStage().

int rpmtxnBegin ( rpmdb  rpmdb,
rpmtxn  parent,
rpmtxn txnp 
)

Definition at line 56 of file rpmtxn.c.

References _rpmtxn_debug, DB_INIT_TXN, and __db_env::txn_begin.

Referenced by _rpmtsRun(), rpmcliImportPubkey(), and rpmpsmStage().

int rpmtxnCheckpoint ( rpmdb  rpmdb)

Definition at line 85 of file rpmtxn.c.

References _rpmtxn_debug, DB_INIT_TXN, and __db_env::txn_checkpoint.

Referenced by _rpmtsRun(), rpmcliImportPubkey(), and rpmtsRebuildDB().

int rpmtxnCommit ( rpmtxn  txn)

Definition at line 75 of file rpmtxn.c.

References _rpmtxn_debug, and __db_txn::commit.

Referenced by _rpmtsRun(), rpmcliImportPubkey(), and rpmpsmStage().

uint32_t rpmtxnId ( rpmtxn  txn)

Definition at line 22 of file rpmtxn.c.

References __db_txn::id.

const char* rpmtxnName ( rpmtxn  txn)

Definition at line 29 of file rpmtxn.c.

References __db_txn::get_name.

int rpmtxnSetName ( rpmtxn  txn,
const char *  N 
)

Definition at line 38 of file rpmtxn.c.

References _rpmtxn_debug, and __db_txn::set_name.

Variable Documentation

int _rpmtxn_debug

Definition at line 20 of file rpmtxn.c.

Referenced by rpmtxnAbort(), rpmtxnBegin(), rpmtxnCheckpoint(), rpmtxnCommit(), and rpmtxnSetName().