rpmfi.h File Reference

Structure(s) used for file info tag sets. More...

#include <rpm/rpmtypes.h>
#include <rpm/rpmvf.h>
#include <rpm/rpmpgp.h>

Include dependency graph for rpmfi.h:

Go to the source code of this file.

Data Structures

struct  rpmRelocation_s
 We pass these around as an array with a sentinel. More...

Defines

#define RPMFILE_STATE_MISSING   -1
#define RPMFILE_ALL   ~(RPMFILE_NONE)
#define XFA_SKIPPING(_a)   ((_a) == FA_SKIP || (_a) == FA_SKIPNSTATE || (_a) == FA_SKIPNETSHARED || (_a) == FA_SKIPCOLOR)

Typedefs

typedef enum rpmFileTypes_e rpmFileTypes
 File types.
typedef enum rpmfileState_e rpmfileState
 File States (when installed).
typedef enum rpmfileAttrs_e rpmfileAttrs
 File Attributes.
typedef enum rpmFileAction_e rpmFileAction
 File disposition(s) during package install/erase transaction.

Enumerations

enum  rpmFileTypes_e {
  PIPE = 1, CDEV = 2, XDIR = 4, BDEV = 6,
  REG = 8, LINK = 10, SOCK = 12
}
 File types. More...
enum  rpmfileState_e {
  RPMFILE_STATE_NORMAL = 0, RPMFILE_STATE_REPLACED = 1, RPMFILE_STATE_NOTINSTALLED = 2, RPMFILE_STATE_NETSHARED = 3,
  RPMFILE_STATE_WRONGCOLOR = 4
}
 File States (when installed). More...
enum  rpmfileAttrs_e {
  RPMFILE_NONE = 0, RPMFILE_CONFIG = (1 << 0), RPMFILE_DOC = (1 << 1), RPMFILE_ICON = (1 << 2),
  RPMFILE_MISSINGOK = (1 << 3), RPMFILE_NOREPLACE = (1 << 4), RPMFILE_SPECFILE = (1 << 5), RPMFILE_GHOST = (1 << 6),
  RPMFILE_LICENSE = (1 << 7), RPMFILE_README = (1 << 8), RPMFILE_EXCLUDE = (1 << 9), RPMFILE_UNPATCHED = (1 << 10),
  RPMFILE_PUBKEY = (1 << 11), RPMFILE_POLICY = (1 << 12)
}
 File Attributes. More...
enum  rpmFileAction_e {
  FA_UNKNOWN = 0, FA_CREATE, FA_COPYIN, FA_COPYOUT,
  FA_BACKUP, FA_SAVE, FA_SKIP, FA_ALTNAME,
  FA_ERASE, FA_SKIPNSTATE, FA_SKIPNETSHARED, FA_SKIPCOLOR
}
 File disposition(s) during package install/erase transaction. More...

Functions

rpmfi rpmfiUnlink (rpmfi fi, const char *msg)
 Unreference a file info set instance.
rpmfi rpmfiLink (rpmfi fi, const char *msg)
 Reference a file info set instance.
rpm_count_t rpmfiFC (rpmfi fi)
 Return file count from file info set.
int rpmfiFX (rpmfi fi)
 Return current file index from file info set.
int rpmfiSetFX (rpmfi fi, int fx)
 Set current file index in file info set.
rpm_count_t rpmfiDC (rpmfi fi)
 Return directory count from file info set.
int rpmfiDX (rpmfi fi)
 Return current directory index from file info set.
int rpmfiSetDX (rpmfi fi, int dx)
 Set current directory index in file info set.
const char * rpmfiBN (rpmfi fi)
 Return current base name from file info set.
const char * rpmfiDN (rpmfi fi)
 Return current directory name from file info set.
const char * rpmfiFN (rpmfi fi)
 Return current file name from file info set.
rpmfileAttrs rpmfiFFlags (rpmfi fi)
 Return current file flags from file info set.
rpmVerifyAttrs rpmfiVFlags (rpmfi fi)
 Return current file verify flags from file info set.
rpm_mode_t rpmfiFMode (rpmfi fi)
 Return current file mode from file info set.
rpmfileState rpmfiFState (rpmfi fi)
 Return current file state from file info set.
const unsigned char * rpmfiFDigest (rpmfi fi, pgpHashAlgo *algo, size_t *diglen)
 Return current file (binary) digest of file info set.
char * rpmfiFDigestHex (rpmfi fi, pgpHashAlgo *algo)
 Return current file (hex) digest of file info set.
const unsigned char * rpmfiMD5 (rpmfi fi) RPM_GNUC_DEPRECATED
 Return current file (binary) md5 digest from file info set.
const char * rpmfiFLink (rpmfi fi)
 Return current file linkto (i.e.
rpm_loff_t rpmfiFSize (rpmfi fi)
 Return current file size from file info set.
rpm_rdev_t rpmfiFRdev (rpmfi fi)
 Return current file rdev from file info set.
rpm_ino_t rpmfiFInode (rpmfi fi)
 Return current file inode from file info set.
rpm_color_t rpmfiColor (rpmfi fi)
 Return union of all file color bits from file info set.
rpm_color_t rpmfiFColor (rpmfi fi)
 Return current file color bits from file info set.
const char * rpmfiFClass (rpmfi fi)
 Return current file class from file info set.
const char * rpmfiFContext (rpmfi fi)
 Return current file security context from file info set.
uint32_t rpmfiFDepends (rpmfi fi, const uint32_t **fddictp)
 Return current file depends dictionary from file info set.
uint32_t rpmfiFNlink (rpmfi fi)
 Return (calculated) current file nlink count from file info set.
rpm_time_t rpmfiFMtime (rpmfi fi)
 Return current file modify time from file info set.
const char * rpmfiFUser (rpmfi fi)
 Return current file owner from file info set.
const char * rpmfiFGroup (rpmfi fi)
 Return current file group from file info set.
int rpmfiNext (rpmfi fi)
 Return next file iterator index.
rpmfi rpmfiInit (rpmfi fi, int fx)
 Initialize file iterator index.
int rpmfiNextD (rpmfi fi)
 Return next directory iterator index.
rpmfi rpmfiInitD (rpmfi fi, int dx)
 Initialize directory iterator index.
rpmfi rpmfiFree (rpmfi fi)
 Destroy a file info set.
rpmfi rpmfiNew (const rpmts ts, Header h, rpmTag tagN, int scareMem)
 Create and load a file info set.
rpmFileTypes rpmfiWhatis (rpm_mode_t mode)
 Return file type from mode_t.
int rpmfiCompare (const rpmfi afi, const rpmfi bfi)
 Return file info comparison.
rpmFileAction rpmfiDecideFate (const rpmfi ofi, rpmfi nfi, int skipMissing)
 Return file disposition.
int rpmfiConfigConflict (const rpmfi fi)
 Return whether file is conflicting config.
const char * rpmfiTypeString (rpmfi fi)
 Return formatted string representation of package disposition.

Variables

int _rpmfi_debug


Detailed Description

Structure(s) used for file info tag sets.

Definition in file rpmfi.h.


Define Documentation

#define RPMFILE_ALL   ~(RPMFILE_NONE)

Definition at line 68 of file rpmfi.h.

#define RPMFILE_STATE_MISSING   -1

Definition at line 46 of file rpmfi.h.

#define XFA_SKIPPING ( _a   )     ((_a) == FA_SKIP || (_a) == FA_SKIPNSTATE || (_a) == FA_SKIPNETSHARED || (_a) == FA_SKIPCOLOR)

Definition at line 88 of file rpmfi.h.


Typedef Documentation

File Attributes.

File States (when installed).


Enumeration Type Documentation

File Attributes.

Enumerator:
RPMFILE_NONE 
RPMFILE_CONFIG  from %config
RPMFILE_DOC  from %doc
RPMFILE_ICON  from %donotuse.
RPMFILE_MISSINGOK  from %config(missingok)
RPMFILE_NOREPLACE  from %config(noreplace)
RPMFILE_SPECFILE 
Todo:
(unnecessary) marks 1st file in srpm.
RPMFILE_GHOST  from %ghost
RPMFILE_LICENSE  from %license
RPMFILE_README  from %readme
RPMFILE_EXCLUDE  from %exclude, internal
RPMFILE_UNPATCHED  placeholder (SuSE)
RPMFILE_PUBKEY  from %pubkey
RPMFILE_POLICY  from %policy

Definition at line 51 of file rpmfi.h.

File States (when installed).

Enumerator:
RPMFILE_STATE_NORMAL 
RPMFILE_STATE_REPLACED 
RPMFILE_STATE_NOTINSTALLED 
RPMFILE_STATE_NETSHARED 
RPMFILE_STATE_WRONGCOLOR 

Definition at line 39 of file rpmfi.h.


Variable Documentation


Generated on Wed Dec 17 15:19:08 2008 for rpm by  doxygen 1.5.7.1