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

lib/rpminstall.c File Reference

More...

#include "system.h"
#include <rpmcli.h>
#include "manifest.h"
#include "misc.h"
#include "debug.h"

Go to the source code of this file.

Data Structures

struct  rpmEIU

Typedefs

typedef const char* str_t

Functions

void printHash (const unsigned long amount, const unsigned long total)
void* rpmShowProgress (const void *arg, const rpmCallbackType what, const unsigned long amount, const unsigned long total, const void *pkgKey, void *data)
 The rpm CLI generic transaction callback. More...

int rpmInstall (const char *rootdir, const char **fileArgv, rpmtransFlags transFlags, rpmInstallInterfaceFlags interfaceFlags, rpmprobFilterFlags probFilter, rpmRelocation *relocations)
int rpmErase (const char *rootdir, const char **argv, rpmtransFlags transFlags, rpmEraseInterfaceFlags interfaceFlags)
int rpmInstallSource (const char *rootdir, const char *arg, const char **specFile, char **cookie)
int IDTintcmp (const void *a, const void *b)
IDTX IDTXfree (IDTX idtx)
 Destroy id index. More...

IDTX IDTXnew (void)
 Create id index. More...

IDTX IDTXgrow (IDTX idtx, int need)
 Insure that index has room for "need" elements. More...

IDTX IDTXsort (IDTX idtx)
 Sort tag (instance,value) pairs. More...

IDTX IDTXload (rpmdb db, rpmTag tag)
 Load tag (instance,value) pairs from rpm databse, and return sorted id index. More...

IDTX IDTXglob (const char *globstr, rpmTag tag)
 Load tag (instance,value) pairs from packages, and return sorted id index. More...

int rpmRollback (struct rpmInstallArguments_s *ia, const char **argv)

Variables

int hashesPrinted = 0
int packagesTotal = 0
int progressTotal = 0
int progressCurrent = 0
int reverse = -1


Detailed Description

Definition in file rpminstall.c.


Typedef Documentation

typedef const char * str_t
 

Definition at line 179 of file rpminstall.c.


Function Documentation

IDTX IDTXfree ( IDTX idtx )
 

Destroy id index.

Parameters:
idtx   id index
Returns:
NULL always

Definition at line 741 of file rpminstall.c.

Referenced by rpmRollback().

IDTX IDTXglob ( const char * globstr,
rpmTag tag )
 

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

Parameters:
db   glob expression
tag   rpm tag
Returns:
id index

Definition at line 834 of file rpminstall.c.

Referenced by rpmRollback().

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)

Definition at line 765 of file rpminstall.c.

Referenced by IDTXglob(), and IDTXload().

IDTX IDTXload ( rpmdb db,
rpmTag tag )
 

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

Parameters:
db   rpm database
tag   rpm tag
Returns:
id index

Definition at line 789 of file rpminstall.c.

Referenced by rpmRollback().

IDTX IDTXnew ( void )
 

Create id index.

Returns:
new id index

Definition at line 757 of file rpminstall.c.

IDTX IDTXsort ( IDTX idtx )
 

Sort tag (instance,value) pairs.

Parameters:
idtx   id index
Returns:
id index

Definition at line 782 of file rpminstall.c.

Referenced by IDTXglob(), and IDTXload().

int IDTintcmp ( const void * a,
const void * b ) [static]
 

Definition at line 727 of file rpminstall.c.

void printHash ( const unsigned long amount,
const unsigned long total ) [static]
 

Definition at line 33 of file rpminstall.c.

Referenced by rpmShowProgress().

void* rpmShowProgress ( const void * arg,
const rpmCallbackType what,
const unsigned long amount,
const unsigned long total,
const void * pkgKey,
void * data )
 

The rpm CLI generic transaction callback.

Deprecated:
Transaction callback arguments need to change, so don't rely on this routine in the rpmcli API.
Parameters:
arg   per-callback private data (e.g. an rpm header)
what   callback identifier
amount   per-callback progress info
total   per-callback progress info
pkgkey   opaque header key (e.g. file name or PyObject)
data   private data (e.g. rpmInstallInterfaceFlags)
Returns:
per-callback data (e.g. an opened FD_t)

Definition at line 75 of file rpminstall.c.


Variable Documentation

int hashesPrinted = 0 [static]
 

Definition at line 22 of file rpminstall.c.

int packagesTotal = 0
 

Definition at line 25 of file rpminstall.c.

int progressCurrent = 0 [static]
 

Definition at line 29 of file rpminstall.c.

int progressTotal = 0 [static]
 

Definition at line 27 of file rpminstall.c.

int reverse = -1 [static]
 

Definition at line 723 of file rpminstall.c.


Generated at Tue Dec 23 04:54:13 2003 for rpm by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001