idtx.h File Reference

#include <rpm/rpmtypes.h>

Include dependency graph for idtx.h:

Go to the source code of this file.

Data Structures

struct  IDT_s
 * A rollback transaction id element. More...
struct  IDTindex_s
 A rollback transaction id index. More...

Typedefs

typedef struct IDT_sIDT
 * A rollback transaction id element.
typedef struct IDTindex_sIDTX
 A rollback transaction id index.

Functions

IDTX IDTXfree (IDTX idtx)
 Destroy id index.
IDTX IDTXnew (void)
 Create id index.
IDTX IDTXgrow (IDTX idtx, int need)
 Insure that index has room for "need" elements.
IDTX IDTXsort (IDTX idtx)
 Sort tag (instance,value) pairs.
IDTX IDTXload (rpmts ts, rpm_tag_t tag)
 Load tag (instance,value) pairs from rpm databse, and return sorted id index.
IDTX IDTXglob (rpmts ts, const char *globstr, rpm_tag_t tag)
 Load tag (instance,value) pairs from packages, and return sorted id index.


Typedef Documentation

typedef struct IDT_s * IDT

* A rollback transaction id element.

typedef struct IDTindex_s * IDTX

A rollback transaction id index.


Function Documentation

IDTX IDTXfree ( IDTX  idtx  ) 

Destroy id index.

Parameters:
idtx id index
Returns:
NULL always

IDTX IDTXglob ( rpmts  ts,
const char *  globstr,
rpm_tag_t  tag 
)

Load tag (instance,value) pairs from packages, and return sorted id index.

Parameters:
ts transaction set
globstr glob expression
tag rpm tag
Returns:
id index

IDTX IDTXgrow ( IDTX  idtx,
int  need 
)

Insure that index has room for "need" elements.

Parameters:
idtx id index
need additional no. of elements needed
Returns:
id index (with room for "need" elements)

IDTX IDTXload ( rpmts  ts,
rpm_tag_t  tag 
)

Load tag (instance,value) pairs from rpm databse, and return sorted id index.

Parameters:
ts transaction set
tag rpm tag
Returns:
id index

IDTX IDTXnew ( void   ) 

Create id index.

Returns:
new id index

IDTX IDTXsort ( IDTX  idtx  ) 

Sort tag (instance,value) pairs.

Parameters:
idtx id index
Returns:
id index


Generated on Wed Oct 8 08:53:56 2008 for rpm by  doxygen 1.5.6