rpm  5.4.15
Macros | Functions | Variables
rpmbag.c File Reference
#include "system.h"
#include <rpmiotypes.h>
#include <rpmio.h>
#include <rpmlog.h>
#include <rpmurl.h>
#include <rpmbag.h>
#include "debug.h"
Include dependency graph for rpmbag.c:

Go to the source code of this file.

Macros

#define _RPMBAG_INTERNAL
 

Functions

static void rpmbagFini (void *_bag)
 
static rpmbag rpmbagGetPool (rpmioPool pool)
 
rpmbag rpmbagNew (const char *fn, int flags)
 Create and load a bag wrapper. More...
 
int rpmbagAdd (rpmbag bag, void *_db, int dbmode)
 
int rpmbagDel (rpmbag bag, int i)
 

Variables

int _rpmbag_debug = 0
 
static size_t _maxnsdbp = 5
 
rpmioPool _rpmbagPool = NULL
 

Macro Definition Documentation

#define _RPMBAG_INTERNAL

Definition at line 11 of file rpmbag.c.

Function Documentation

int rpmbagAdd ( rpmbag  bag,
void *  _db,
int  dbmode 
)

Definition at line 70 of file rpmbag.c.

References i, and xcalloc().

Referenced by rpmtsOpenSDB().

int rpmbagDel ( rpmbag  bag,
int  i 
)

Definition at line 83 of file rpmbag.c.

References _free(), and i.

Referenced by rpmtsCloseSDB().

static void rpmbagFini ( void *  _bag)
static

Definition at line 26 of file rpmbag.c.

References _free().

Referenced by rpmbagGetPool().

static rpmbag rpmbagGetPool ( rpmioPool  pool)
static

Definition at line 41 of file rpmbag.c.

References _rpmbagPool, rpmbagFini(), rpmioGetPool(), and rpmioNewPool().

Referenced by rpmbagNew().

rpmbag rpmbagNew ( const char *  fn,
int  flags 
)

Create and load a bag wrapper.

Parameters
fnbag file
flagsbag flags
Returns
new bag wrapper

Definition at line 57 of file rpmbag.c.

References flags, rpmbagGetPool(), rpmbagLink(), xcalloc(), and xstrdup().

Referenced by rpmtsOpenSDB().

Variable Documentation

size_t _maxnsdbp = 5
static

Definition at line 24 of file rpmbag.c.

int _rpmbag_debug = 0

Definition at line 22 of file rpmbag.c.

rpmioPool _rpmbagPool = NULL

Definition at line 39 of file rpmbag.c.

Referenced by rpmbagGetPool(), and rpmioClean().