rpmps.h File Reference

Structures and prototypes used for an "rpmps" problem set. More...

#include <stdio.h>
#include <rpm/rpmtypes.h>

Include dependency graph for rpmps.h:

Go to the source code of this file.

Typedefs

typedef enum rpmprobFilterFlags_e rpmprobFilterFlags
typedef struct rpmProblem_s * rpmProblem
 Raw data for an element of a problem set.
typedef struct rpmps_s * rpmps
 Transaction problems found while processing a transaction set/.
typedef struct rpmpsi_s * rpmpsi
typedef enum rpmProblemType_e rpmProblemType
 Enumerate transaction set problem types.

Enumerations

enum  rpmprobFilterFlags_e {
  RPMPROB_FILTER_NONE = 0, RPMPROB_FILTER_IGNOREOS = (1 << 0), RPMPROB_FILTER_IGNOREARCH = (1 << 1), RPMPROB_FILTER_REPLACEPKG = (1 << 2),
  RPMPROB_FILTER_FORCERELOCATE = (1 << 3), RPMPROB_FILTER_REPLACENEWFILES = (1 << 4), RPMPROB_FILTER_REPLACEOLDFILES = (1 << 5), RPMPROB_FILTER_OLDPACKAGE = (1 << 6),
  RPMPROB_FILTER_DISKSPACE = (1 << 7), RPMPROB_FILTER_DISKNODES = (1 << 8)
}
enum  rpmProblemType_e {
  RPMPROB_BADARCH, RPMPROB_BADOS, RPMPROB_PKG_INSTALLED, RPMPROB_BADRELOCATE,
  RPMPROB_REQUIRES, RPMPROB_CONFLICT, RPMPROB_NEW_FILE_CONFLICT, RPMPROB_FILE_CONFLICT,
  RPMPROB_OLDPACKAGE, RPMPROB_DISKSPACE, RPMPROB_DISKNODES
}
 Enumerate transaction set problem types. More...

Functions

rpmProblem rpmProblemCreate (rpmProblemType type, const char *pkgNEVR, fnpyKey key, const char *dn, const char *bn, const char *altNEVR, uint64_t number)
 Create a problem item.
rpmProblem rpmProblemFree (rpmProblem prob)
 Destroy a problem item.
const char * rpmProblemGetPkgNEVR (const rpmProblem prob)
 Return package NEVR.
const char * rpmProblemGetAltNEVR (const rpmProblem prob)
 Return related (e.g.
rpmProblemType rpmProblemGetType (const rpmProblem prob)
 Return type of problem (dependency, diskpace etc).
fnpyKey rpmProblemGetKey (const rpmProblem prob)
 Return filename or python object address of a problem.
const char * rpmProblemGetStr (const rpmProblem prob)
 Return a generic data string from a problem.
rpm_loff_t rpmProblemGetDiskNeed (const rpmProblem prob)
 Return disk requirement (needed disk space / number of inodes) depending on problem type.
char * rpmProblemString (const rpmProblem prob)
 Return formatted string representation of a problem.
rpmps rpmpsUnlink (rpmps ps, const char *msg)
 Unreference a problem set instance.
rpmps rpmpsLink (rpmps ps, const char *msg)
 Reference a problem set instance.
int rpmpsNumProblems (rpmps ps)
 Return number of problems in set.
rpmpsi rpmpsInitIterator (rpmps ps)
 Initialize problem set iterator.
rpmpsi rpmpsFreeIterator (rpmpsi psi)
 Destroy problem set iterator.
int rpmpsNextIterator (rpmpsi psi)
 Return next problem set iterator index.
rpmProblem rpmpsGetProblem (rpmpsi psi)
 Return current problem from problem set.
rpmps rpmpsCreate (void)
 Create a problem set.
rpmps rpmpsFree (rpmps ps)
 Destroy a problem set.
void rpmpsPrint (FILE *fp, rpmps ps)
 Print problems to file handle.
void rpmpsAppendProblem (rpmps ps, rpmProblem prob)
 Append a problem to current set of problems.
void rpmpsAppend (rpmps ps, rpmProblemType type, const char *pkgNEVR, fnpyKey key, const char *dn, const char *bn, const char *altNEVR, uint64_t number)
 Append a problem to current set of problems.
int rpmpsTrim (rpmps ps, rpmps filter)
 Filter a problem set.

Variables

int _rpmps_debug


Detailed Description

Structures and prototypes used for an "rpmps" problem set.

Definition in file rpmps.h.


Typedef Documentation

typedef struct rpmProblem_s* rpmProblem

Raw data for an element of a problem set.

Definition at line 37 of file rpmps.h.

typedef struct rpmpsi_s* rpmpsi

Definition at line 44 of file rpmps.h.


Variable Documentation


Generated on Sat Apr 18 17:12:59 2009 for rpm by  doxygen 1.5.7.1