Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

lib/install.h File Reference

More...

#include <rpmlib.h>

Go to the source code of this file.

Compounds

struct  sharedFile
struct  sharedFileInfo

Enumerations

enum  fileActions {
  FA_UNKNOWN = 0, FA_CREATE, FA_BACKUP, FA_SAVE,
  FA_SKIP, FA_ALTNAME, FA_REMOVE, FA_SKIPNSTATE,
  FA_SKIPNETSHARED, FA_SKIPMULTILIB
}
 File disposition(s) during package install/erase. More...

enum  fileTypes {
  PIPE = 1, CDEV = 2, XDIR = 4, BDEV = 6,
  REG = 8, LINK = 10, SOCK = 12
}
 File types. More...


Functions

int runInstScript (const rpmTransactionSet ts, Header h, int scriptTag, int progTag, int arg, int norunScripts)
int runTriggers (const rpmTransactionSet ts, int sense, Header h, int countCorrection)
 Run trigger scripts in the database that are fired by header. More...

int runImmedTriggers (const rpmTransactionSet ts, int sense, Header h, int countCorrection)
 Run triggers from header that are fired by the database. More...

const char* const fileActionString (enum fileActions a)
 Return formatted string representation of file disposition. More...

int installBinaryPackage (const rpmTransactionSet ts, FD_t fd, Header h, const void *pkgKey, enum fileActions *actions, struct sharedFileInfo *sharedList)
 Install binary package (from transaction set). More...

int removeBinaryPackage (const rpmTransactionSet ts, unsigned int offset, Header h, const void *pkgKey, enum fileActions *actions)
 Erase binary package (from transaction set). More...


Detailed Description

Definition in file install.h.


Enumeration Type Documentation

enum fileActions
 

File disposition(s) during package install/erase.

Enumeration values:
FA_UNKNOWN  
FA_CREATE  
FA_BACKUP  
FA_SAVE  
FA_SKIP  
FA_ALTNAME  
FA_REMOVE  
FA_SKIPNSTATE  
FA_SKIPNETSHARED  
FA_SKIPMULTILIB  

Definition at line 30 of file install.h.

enum fileTypes
 

File types.

These are the types of files used internally by rpm. The file type is determined by applying stat(2) macros like S_ISDIR to the file mode tag from a header.

Enumeration values:
PIPE   pipe/fifo
CDEV   character device
XDIR   directory
BDEV   block device
REG   regular file
LINK   hard link
SOCK   socket

Definition at line 49 of file install.h.


Function Documentation

const char* const fileActionString ( enum fileActions a )
 

Return formatted string representation of file disposition.

Parameters:
a   file dispostion
Returns:
formatted string

Definition at line 904 of file install.c.

Referenced by assembleFileList(), and removeBinaryPackage().

int installBinaryPackage ( const rpmTransactionSet ts,
FD_t fd,
Header h,
const void * pkgKey,
enum fileActions * actions,
struct sharedFileInfo * sharedList )
 

Install binary package (from transaction set).

Parameters:
ts   transaction set
fd   package file handle
h   package header
pkgKey   package private data
actions   array of file dispositions
sharedList   header instances of packages that share files
Returns:
0 on success, 1 on bad magic, 2 on error

Definition at line 956 of file install.c.

Referenced by rpmRunTransactions().

int removeBinaryPackage ( const rpmTransactionSet ts,
unsigned int offset,
Header h,
const void * pkgKey,
enum fileActions * actions )
 

Erase binary package (from transaction set).

Parameters:
ts   transaction set
offset   header instance in rpm database
h   package header
pkgKey   package private data
actions   array of file dispositions
Returns:

Definition at line 109 of file uninstall.c.

int runImmedTriggers ( const rpmTransactionSet ts,
int sense,
Header h,
int countCorrection )
 

Run triggers from header that are fired by the database.

Parameters:
ts   transaction set
sense  
Todo:
Document.

Document.

Parameters:
h   header
countCorrection  
Returns:
0 on success, 1 on error

Definition at line 618 of file uninstall.c.

int runInstScript ( const rpmTransactionSet ts,
Header h,
int scriptTag,
int progTag,
int arg,
int norunScripts )
 

Parameters:
ts   transaction set
h   header
scriptTag  
progTag  
arg  
norunScripts  

Definition at line 461 of file uninstall.c.

int runTriggers ( const rpmTransactionSet ts,
int sense,
Header h,
int countCorrection )
 

Run trigger scripts in the database that are fired by header.

Parameters:
ts   transaction set
sense  
Todo:
Document.

Document.

Parameters:
h   header
countCorrection  
Returns:
0 on success, 1 on error

Definition at line 590 of file uninstall.c.


Generated at Mon May 21 08:53:42 2001 for rpm by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001