rpm 4.19.92
The RPM Package Manager
Loading...
Searching...
No Matches
Files | Typedefs | Functions
Problem Set API.

Problem Set API. More...

Collaboration diagram for Problem Set API.:

Files

file  rpmps.h
 

Typedefs

typedef struct rpmpsi_s * rpmpsi
 

Functions

rpmps rpmpsLink (rpmps ps)
 
int rpmpsNumProblems (rpmps ps)
 
rpmpsi rpmpsInitIterator (rpmps ps)
 
rpmpsi rpmpsFreeIterator (rpmpsi psi)
 
rpmProblem rpmpsiNext (rpmpsi psi)
 
int rpmpsNextIterator (rpmpsi psi)
 
rpmProblem rpmpsGetProblem (rpmpsi psi)
 
rpmps rpmpsCreate (void)
 
rpmps rpmpsFree (rpmps ps)
 
void rpmpsPrint (FILE *fp, rpmps ps)
 
void rpmpsAppendProblem (rpmps ps, rpmProblem prob)
 
int rpmpsMerge (rpmps dest, rpmps src)
 

Detailed Description

Problem Set API.

Typedef Documentation

◆ rpmpsi

typedef struct rpmpsi_s* rpmpsi

Problem set iterator

Function Documentation

◆ rpmpsAppendProblem()

void rpmpsAppendProblem ( rpmps  ps,
rpmProblem  prob 
)

Append a problem to current set of problems.

Parameters
psproblem set
probrpmProblem

◆ rpmpsCreate()

rpmps rpmpsCreate ( void  )

Create a problem set.

Returns
new problem set

◆ rpmpsFree()

rpmps rpmpsFree ( rpmps  ps)

Destroy a problem set.

Parameters
psproblem set
Returns
NULL always

◆ rpmpsFreeIterator()

rpmpsi rpmpsFreeIterator ( rpmpsi  psi)

Destroy problem set iterator.

Parameters
psiproblem set iterator
Returns
problem set iterator (NULL)

◆ rpmpsGetProblem()

rpmProblem rpmpsGetProblem ( rpmpsi  psi)

Return current problem from problem set

Parameters
psiproblem set iterator
Returns
current rpmProblem

◆ rpmpsiNext()

rpmProblem rpmpsiNext ( rpmpsi  psi)

Return next problem from iterator

Parameters
psiproblem set iterator
Returns
next problem (weak ref), NULL on termination

◆ rpmpsInitIterator()

rpmpsi rpmpsInitIterator ( rpmps  ps)

Initialize problem set iterator.

Parameters
psproblem set
Returns
problem set iterator

◆ rpmpsLink()

rpmps rpmpsLink ( rpmps  ps)

Reference a problem set instance.

Parameters
pstransaction set
Returns
new transaction set reference

◆ rpmpsMerge()

int rpmpsMerge ( rpmps  dest,
rpmps  src 
)

Merge problem set into another.

Parameters
destdestination problem set
srcsource problem set
Returns
number of problems merged

◆ rpmpsNextIterator()

int rpmpsNextIterator ( rpmpsi  psi)

Return next problem set iterator index

Parameters
psiproblem set iterator
Returns
iterator index, -1 on termination

◆ rpmpsNumProblems()

int rpmpsNumProblems ( rpmps  ps)

Return number of problems in set.

Parameters
psproblem set
Returns
number of problems

◆ rpmpsPrint()

void rpmpsPrint ( FILE *  fp,
rpmps  ps 
)

Print problems to file handle.

Parameters
fpfile handle (NULL uses stderr)
psproblem set