|
rpm 4.20.0
The RPM Package Manager
|


Go to the source code of this file.
Macros | |
| #define | RPMSENSE_SENSEMASK 15 /* Mask to get senses, ie serial, */ |
| #define | RPMSENSE_TRIGGER (RPMSENSE_TRIGGERPREIN | RPMSENSE_TRIGGERIN | RPMSENSE_TRIGGERUN | RPMSENSE_TRIGGERPOSTUN) |
| #define | _ALL_REQUIRES_MASK |
| #define | _notpre(_x) ((_x) & ~RPMSENSE_PREREQ) |
| #define | _INSTALL_ONLY_MASK _notpre(RPMSENSE_SCRIPT_PRE|RPMSENSE_SCRIPT_POST|RPMSENSE_RPMLIB|RPMSENSE_KEYRING|RPMSENSE_PRETRANS|RPMSENSE_POSTTRANS) |
| #define | _ERASE_ONLY_MASK _notpre(RPMSENSE_SCRIPT_PREUN|RPMSENSE_SCRIPT_POSTUN|RPMSENSE_PREUNTRANS|RPMSENSE_POSTUNTRANS) |
| #define | _UNORDERED_ONLY_MASK _notpre(RPMSENSE_RPMLIB|RPMSENSE_CONFIG|RPMSENSE_PRETRANS|RPMSENSE_POSTTRANS|RPMSENSE_PREUNTRANS|RPMSENSE_POSTUNTRANS|RPMSENSE_SCRIPT_VERIFY|RPMSENSE_META) |
| #define | _FORCE_ORDER_ONLY_MASK _notpre(RPMSENSE_SCRIPT_PRE|RPMSENSE_SCRIPT_POST|RPMSENSE_SCRIPT_PREUN|RPMSENSE_SCRIPT_POSTUN) |
| #define | isLegacyPreReq(_x) (((_x) & _ALL_REQUIRES_MASK) == RPMSENSE_PREREQ) |
| #define | isInstallPreReq(_x) ((_x) & _INSTALL_ONLY_MASK) |
| #define | isErasePreReq(_x) ((_x) & _ERASE_ONLY_MASK) |
| #define | isUnorderedReq(_x) |
| #define | isTransientReq(_x) |
Typedefs | |
| typedef rpmFlags | rpmsenseFlags |
| typedef enum rpmrichOp_e | rpmrichOp |
| typedef enum rpmrichParseType_e | rpmrichParseType |
| typedef rpmRC(* | rpmrichParseFunction) (void *cbdata, rpmrichParseType type, const char *n, int nl, const char *e, int el, rpmsenseFlags sense, rpmrichOp op, char **emsg) |
Enumerations | |
| enum | rpmsenseFlags_e { RPMSENSE_ANY = 0 , RPMSENSE_LESS = (1 << 1) , RPMSENSE_GREATER = (1 << 2) , RPMSENSE_EQUAL = (1 << 3) , RPMSENSE_POSTTRANS = (1 << 5) , RPMSENSE_PREREQ = (1 << 6) , RPMSENSE_PRETRANS = (1 << 7) , RPMSENSE_INTERP = (1 << 8) , RPMSENSE_SCRIPT_PRE = (1 << 9) , RPMSENSE_SCRIPT_POST = (1 << 10) , RPMSENSE_SCRIPT_PREUN = (1 << 11) , RPMSENSE_SCRIPT_POSTUN = (1 << 12) , RPMSENSE_SCRIPT_VERIFY = (1 << 13) , RPMSENSE_FIND_REQUIRES = (1 << 14) , RPMSENSE_FIND_PROVIDES = (1 << 15) , RPMSENSE_TRIGGERIN = (1 << 16) , RPMSENSE_TRIGGERUN = (1 << 17) , RPMSENSE_TRIGGERPOSTUN = (1 << 18) , RPMSENSE_MISSINGOK = (1 << 19) , RPMSENSE_PREUNTRANS = (1 << 20) , RPMSENSE_POSTUNTRANS = (1 << 21) , RPMSENSE_RPMLIB = (1 << 24) , RPMSENSE_TRIGGERPREIN = (1 << 25) , RPMSENSE_KEYRING = (1 << 26) , RPMSENSE_CONFIG = (1 << 28) , RPMSENSE_META = (1 << 29) } |
| enum | rpmrichOp_e { RPMRICHOP_NONE = 0 , RPMRICHOP_SINGLE = 1 , RPMRICHOP_AND = 2 , RPMRICHOP_OR = 3 , RPMRICHOP_IF = 4 , RPMRICHOP_ELSE = 5 , RPMRICHOP_WITH = 6 , RPMRICHOP_WITHOUT = 7 , RPMRICHOP_UNLESS = 8 } |
| enum | rpmrichParseType_e { RPMRICH_PARSE_SIMPLE = 1 , RPMRICH_PARSE_ENTER = 2 , RPMRICH_PARSE_LEAVE = 3 , RPMRICH_PARSE_OP = 4 } |
Functions | |
| rpmsenseFlags | rpmSanitizeDSFlags (rpmTagVal tagN, rpmsenseFlags Flags) |
| rpmsenseFlags | rpmParseDSFlags (const char *str, size_t len) |
| rpmds | rpmdsLink (rpmds ds) |
| rpmds | rpmdsFree (rpmds ds) |
| rpmds | rpmdsNew (Header h, rpmTagVal tagN, int flags) |
| char * | rpmdsNewDNEVR (const char *dspfx, const rpmds ds) |
| rpmds | rpmdsThis (Header h, rpmTagVal tagN, rpmsenseFlags Flags) |
| rpmds | rpmdsSingle (rpmTagVal tagN, const char *N, const char *EVR, rpmsenseFlags Flags) |
| rpmds | rpmdsCurrent (rpmds ds) |
| int | rpmdsPutToHeader (rpmds ds, Header h) |
| int | rpmdsCount (const rpmds ds) |
| int | rpmdsIx (const rpmds ds) |
| int | rpmdsSetIx (rpmds ds, int ix) |
| const char * | rpmdsDNEVR (const rpmds ds) |
| char | rpmdsD (const rpmds ds) |
| rpmTagVal | rpmdsDToTagN (char deptype) |
| const char * | rpmdsN (const rpmds ds) |
| const char * | rpmdsEVR (const rpmds ds) |
| int | rpmdsTi (const rpmds ds) |
| rpmsenseFlags | rpmdsFlags (const rpmds ds) |
| rpmTagVal | rpmdsTagN (const rpmds ds) |
| rpmTagVal | rpmdsTagEVR (const rpmds ds) |
| rpmTagVal | rpmdsTagF (const rpmds ds) |
| rpmTagVal | rpmdsTagTi (const rpmds ds) |
| unsigned int | rpmdsInstance (rpmds ds) |
| int | rpmdsIsWeak (rpmds ds) |
| int | rpmdsIsReverse (rpmds ds) |
| int | rpmdsIsSysuser (rpmds ds, char **sysuser) |
| rpm_color_t | rpmdsColor (const rpmds ds) |
| rpm_color_t | rpmdsSetColor (const rpmds ds, rpm_color_t color) |
| int | rpmdsNext (rpmds ds) |
| rpmds | rpmdsInit (rpmds ds) |
| int | rpmdsFind (rpmds ds, const rpmds ods) |
| int | rpmdsMerge (rpmds *dsp, rpmds ods) |
| int | rpmdsSearch (rpmds ds, rpmds ods) |
| int | rpmdsCompare (const rpmds A, const rpmds B) |
| int | rpmdsAnyMatchesDep (const Header h, const rpmds req, int nopromote) |
| int | rpmdsMatchesDep (const Header h, int ix, const rpmds req, int nopromote) |
| int | rpmdsNVRMatchesDep (const Header h, const rpmds req, int nopromote) |
| int | rpmdsRpmlib (rpmds *dsp, const void *tblp) |
| rpmds | rpmdsNewPool (rpmstrPool pool, Header h, rpmTagVal tagN, int flags) |
| rpmds | rpmdsThisPool (rpmstrPool pool, Header h, rpmTagVal tagN, rpmsenseFlags Flags) |
| rpmds | rpmdsSinglePool (rpmstrPool pool, rpmTagVal tagN, const char *N, const char *EVR, rpmsenseFlags Flags) |
| rpmds | rpmdsSinglePoolTix (rpmstrPool pool, rpmTagVal tagN, const char *N, const char *EVR, rpmsenseFlags Flags, int triggerIndex) |
| int | rpmdsRpmlibPool (rpmstrPool pool, rpmds *dsp, const void *tblp) |
| rpmRC | rpmrichParse (const char **dstrp, char **emsg, rpmrichParseFunction cb, void *cbdata) |
| rpmRC | rpmrichParseForTag (const char **dstrp, char **emsg, rpmrichParseFunction cb, void *cbdata, rpmTagVal tagN) |
| int | rpmdsIsRich (rpmds dep) |
| const char * | rpmrichOpStr (rpmrichOp op) |
| rpmRC | rpmdsParseRichDep (rpmds dep, rpmds *leftds, rpmds *rightds, rpmrichOp *op, char **emsg) |
Structure(s) used for dependency tag sets.
| #define _ALL_REQUIRES_MASK |
| #define isTransientReq | ( | _x | ) |
| #define isUnorderedReq | ( | _x | ) |
| int rpmdsIsRich | ( | rpmds | dep | ) |
Return if current depenency is rich
| dep | the dependency |
| rpmRC rpmdsParseRichDep | ( | rpmds | dep, |
| rpmds * | leftds, | ||
| rpmds * | rightds, | ||
| rpmrichOp * | op, | ||
| char ** | emsg ) |
Parse a rich dependency string
| dep | the dependency |
| leftds | returns the left dependency |
| rightds | returns the right dependency |
| op | returns the rich dep op |
| emsg | returns the error string |
| int rpmdsRpmlib | ( | rpmds * | dsp, |
| const void * | tblp ) |
Load rpmlib provides into a dependency set.
| [out] | *dsp | (loaded) dependency set |
| tblp | rpmlib provides table (NULL uses internal table) |
| int rpmdsRpmlibPool | ( | rpmstrPool | pool, |
| rpmds * | dsp, | ||
| const void * | tblp ) |
Load rpmlib provides into a dependency set.
| pool | shared string pool (or NULL for private pool) | |
| [out] | *dsp | (loaded) dependency set |
| tblp | rpmlib provides table (NULL uses internal table) |
| const char * rpmrichOpStr | ( | rpmrichOp | op | ) |
Return a string representation of the rich dependency op
| op | the dependency op |
| rpmRC rpmrichParse | ( | const char ** | dstrp, |
| char ** | emsg, | ||
| rpmrichParseFunction | cb, | ||
| void * | cbdata ) |
Parse a rich dependency string
| dstrp | pointer to sting, will be updated |
| emsg | returns the error string, can be NULL |
| cb | callback function |
| cbdata | callback function data |
| rpmRC rpmrichParseForTag | ( | const char ** | dstrp, |
| char ** | emsg, | ||
| rpmrichParseFunction | cb, | ||
| void * | cbdata, | ||
| rpmTagVal | tagN ) |
Parse a rich dependency string for a specific tag
| dstrp | pointer to sting, will be updated |
| emsg | returns the error string, can be NULL |
| cb | callback function |
| cbdata | callback function data |
| tagN | type of dependency |