Files | |
file | rpmfc.h |
Structures and methods for build-time file classification. | |
Typedefs | |
typedef struct rpmfc_s * | rpmfc |
typedef enum FCOLOR_e | FCOLOR_t |
typedef struct rpmfcTokens_s * | rpmfcToken |
Enumerations | |
enum | FCOLOR_e { RPMFC_BLACK = 0, RPMFC_ELF32 = (1 << 0), RPMFC_ELF64 = (1 << 1), RPMFC_ELFMIPSN32 = (1 << 2) } |
Functions | |
int | rpmfcExec (ARGV_const_t av, StringBuf sb_stdin, StringBuf *sb_stdoutp, int failnonzero) |
Return helper output. | |
int | rpmfcColoring (const char *fmstr) |
Return file color given file(1) string. | |
void | rpmfcPrint (const char *msg, rpmfc fc, FILE *fp) |
Print results of file classification. | |
rpmfc | rpmfcFree (rpmfc fc) |
Destroy a file classifier. | |
rpmfc | rpmfcNew (void) |
Create a file classifier. | |
rpmRC | rpmfcClassify (rpmfc fc, ARGV_t argv, rpm_mode_t *fmode) |
Build file class dictionary and mappings. | |
rpmRC | rpmfcApply (rpmfc fc) |
Build file/package dependency dictionary and mappings. | |
rpmRC | rpmfcGenerateDepends (const rpmSpec spec, Package pkg) |
Generate package dependencies. | |
rpmds | rpmfcProvides (rpmfc fc) |
Retrieve file classification provides. | |
rpmds | rpmfcRequires (rpmfc fc) |
Retrieve file classification requires. |
typedef struct rpmfcTokens_s* rpmfcToken |
enum FCOLOR_e |
Build file/package dependency dictionary and mappings.
fc | file classifier |
rpmRC rpmfcClassify | ( | rpmfc | fc, | |
ARGV_t | argv, | |||
rpm_mode_t * | fmode | |||
) |
Build file class dictionary and mappings.
fc | file classifier | |
argv | files to classify | |
fmode | files mode_t array (or NULL) |
int rpmfcColoring | ( | const char * | fmstr | ) |
Return file color given file(1) string.
fmstr | file(1) string |
int rpmfcExec | ( | ARGV_const_t | av, | |
StringBuf | sb_stdin, | |||
StringBuf * | sb_stdoutp, | |||
int | failnonzero | |||
) |
Return helper output.
av | helper argv (with possible macros) | |
sb_stdin | helper input |
*sb_stdoutp | helper output |
failnonzero | IS non-zero helper exit status a failure? |
Destroy a file classifier.
fc | file classifier |
Generate package dependencies.
spec | spec file control | |
pkg | package control |
rpmfc rpmfcNew | ( | void | ) |
Create a file classifier.
void rpmfcPrint | ( | const char * | msg, | |
rpmfc | fc, | |||
FILE * | fp | |||
) |
Print results of file classification.
msg | message prefix (NULL for none) | |
fc | file classifier | |
fp | output file handle (NULL for stderr) |
Retrieve file classification provides.
fc | file classifier |