rpm  4.17.0
Files | Typedefs | Enumerations | Functions
File Classification API.

Structures and methods for build-time file classification. More...

Collaboration diagram for File Classification API.:

Files

file  rpmfc.h
 Structures and methods for build-time file classification.
 

Typedefs

typedef struct rpmfc_s * rpmfc
 
typedef rpmFlags FCOLOR_t
 
typedef const struct rpmfcTokens_s * rpmfcToken
 

Enumerations

enum  FCOLOR_e {
  RPMFC_BLACK = 0 , RPMFC_ELF32 = (1 << 0) , RPMFC_ELF64 = (1 << 1) , RPMFC_ELFMIPSN32 = (1 << 2) ,
  RPMFC_WHITE = (1 << 29) , RPMFC_INCLUDE = (1 << 30) , RPMFC_ERROR = (1 << 31)
}
 

Functions

void rpmfcPrint (const char *msg, rpmfc fc, FILE *fp)
 Print results of file classification. More...
 
rpmfc rpmfcFree (rpmfc fc)
 Destroy a file classifier. More...
 
rpmfc rpmfcCreate (const char *rootDir, rpmFlags flags)
 Create a file classifier. More...
 
RPM_GNUC_DEPRECATED rpmfc rpmfcNew (void)
 
rpmRC rpmfcClassify (rpmfc fc, ARGV_t argv, rpm_mode_t *fmode)
 Build file class dictionary and mappings. More...
 
rpmRC rpmfcApply (rpmfc fc)
 Build file/package dependency dictionary and mappings. More...
 
rpmds rpmfcProvides (rpmfc fc)
 Retrieve file classification provides. More...
 
rpmds rpmfcRequires (rpmfc fc)
 Retrieve file classification requires. More...
 
rpmds rpmfcRecommends (rpmfc fc)
 Retrieve file classification recommends. More...
 
rpmds rpmfcSuggests (rpmfc fc)
 Retrieve file classification suggests. More...
 
rpmds rpmfcSupplements (rpmfc fc)
 Retrieve file classification supplements. More...
 
rpmds rpmfcEnhances (rpmfc fc)
 Retrieve file classification enhances. More...
 
rpmds rpmfcConflicts (rpmfc fc)
 Retrieve file classification conflicts. More...
 
rpmds rpmfcObsoletes (rpmfc fc)
 Retrieve file classification obsoletes. More...
 
rpmds rpmfcOrderWithRequires (rpmfc fc)
 Retrieve file classification OrderWithRequires. More...
 
rpmds rpmfcDependencies (rpmfc fc, rpmTagVal tagN)
 Retrieve file classification dependencies. More...
 

Detailed Description

Structures and methods for build-time file classification.

Typedef Documentation

◆ FCOLOR_t

typedef rpmFlags FCOLOR_t

Definition at line 40 of file rpmfc.h.

◆ rpmfc

typedef struct rpmfc_s* rpmfc

Definition at line 21 of file rpmfc.h.

◆ rpmfcToken

typedef const struct rpmfcTokens_s* rpmfcToken

Definition at line 44 of file rpmfc.h.

Enumeration Type Documentation

◆ FCOLOR_e

enum FCOLOR_e
Enumerator
RPMFC_BLACK 
RPMFC_ELF32 
RPMFC_ELF64 
RPMFC_ELFMIPSN32 
RPMFC_WHITE 
RPMFC_INCLUDE 
RPMFC_ERROR 

Definition at line 25 of file rpmfc.h.

Function Documentation

◆ rpmfcApply()

rpmRC rpmfcApply ( rpmfc  fc)

Build file/package dependency dictionary and mappings.

Parameters
fcfile classifier
Returns
RPMRC_OK on success

◆ rpmfcClassify()

rpmRC rpmfcClassify ( rpmfc  fc,
ARGV_t  argv,
rpm_mode_t fmode 
)

Build file class dictionary and mappings.

Parameters
fcfile classifier
argvfiles to classify
fmodefiles mode_t array (or NULL)
Returns
RPMRC_OK on success

◆ rpmfcConflicts()

rpmds rpmfcConflicts ( rpmfc  fc)

Retrieve file classification conflicts.

Parameters
fcfile classifier
Returns
rpmds dependency set of fc conflicts

◆ rpmfcCreate()

rpmfc rpmfcCreate ( const char *  rootDir,
rpmFlags  flags 
)

Create a file classifier.

Parameters
rootDir(build) root directory
flags(unused)
Returns
new file classifier

◆ rpmfcDependencies()

rpmds rpmfcDependencies ( rpmfc  fc,
rpmTagVal  tagN 
)

Retrieve file classification dependencies.

Parameters
fcfile classifier
tagNname tag of the wanted dependency
Returns
rpmds dependency set of fc requires

◆ rpmfcEnhances()

rpmds rpmfcEnhances ( rpmfc  fc)

Retrieve file classification enhances.

Parameters
fcfile classifier
Returns
rpmds dependency set of fc enhances

◆ rpmfcFree()

rpmfc rpmfcFree ( rpmfc  fc)

Destroy a file classifier.

Parameters
fcfile classifier
Returns
NULL always

◆ rpmfcNew()

RPM_GNUC_DEPRECATED rpmfc rpmfcNew ( void  )
Deprecated:
Create a file classifier.
Returns
new file classifier

◆ rpmfcObsoletes()

rpmds rpmfcObsoletes ( rpmfc  fc)

Retrieve file classification obsoletes.

Parameters
fcfile classifier
Returns
rpmds dependency set of fc obsoletes

◆ rpmfcOrderWithRequires()

rpmds rpmfcOrderWithRequires ( rpmfc  fc)

Retrieve file classification OrderWithRequires.

Parameters
fcfile classifier
Returns
rpmds dependency set of fc obsoletes

◆ rpmfcPrint()

void rpmfcPrint ( const char *  msg,
rpmfc  fc,
FILE *  fp 
)

Print results of file classification.

Parameters
msgmessage prefix (NULL for none)
fcfile classifier
fpoutput file handle (NULL for stderr)

◆ rpmfcProvides()

rpmds rpmfcProvides ( rpmfc  fc)

Retrieve file classification provides.

Parameters
fcfile classifier
Returns
rpmds dependency set of fc provides

◆ rpmfcRecommends()

rpmds rpmfcRecommends ( rpmfc  fc)

Retrieve file classification recommends.

Parameters
fcfile classifier
Returns
rpmds dependency set of fc recommends

◆ rpmfcRequires()

rpmds rpmfcRequires ( rpmfc  fc)

Retrieve file classification requires.

Parameters
fcfile classifier
Returns
rpmds dependency set of fc requires

◆ rpmfcSuggests()

rpmds rpmfcSuggests ( rpmfc  fc)

Retrieve file classification suggests.

Parameters
fcfile classifier
Returns
rpmds dependency set of fc suggests

◆ rpmfcSupplements()

rpmds rpmfcSupplements ( rpmfc  fc)

Retrieve file classification supplements.

Parameters
fcfile classifier
Returns
rpmds dependency set of fc supplements