dpkg 1.22.7-3-g89f48
|
Go to the source code of this file.
Data Structures | |
struct | dpkg_version |
Data structure representing a Debian version. More... | |
Macros | |
#define | DPKG_VERSION_OBJECT(e, v, r) (struct dpkg_version){ .epoch = (e), .version = (v), .revision = (r) } |
Compound literal for a dpkg_version. | |
#define | DPKG_VERSION_INIT DPKG_VERSION_OBJECT(0, NULL, NULL) |
Functions | |
void | dpkg_version_blank (struct dpkg_version *version) |
Turn the passed version into an empty version. | |
bool | dpkg_version_is_informative (const struct dpkg_version *version) |
Test if a version is not empty. | |
int | dpkg_version_compare (const struct dpkg_version *a, const struct dpkg_version *b) |
Compares two Debian versions. | |
bool | dpkg_version_relate (const struct dpkg_version *a, enum dpkg_relation rel, const struct dpkg_version *b) |
Check if two versions have a certain relation. | |
Variables | |
enum DPKG_ATTR_ENUM_FLAGS | dpkg_relation |
Enum constants for the supported relation operations that can be done on Debian versions. | |
DPKG_RELATION_NONE = 0 | |
The “none” relation, sentinel value. | |
DPKG_RELATION_EQ = DPKG_BIT(0) | |
Equality relation (‘=’). | |
DPKG_RELATION_LT = DPKG_BIT(1) | |
Less than relation (‘<<’). | |
DPKG_RELATION_LE = DPKG_RELATION_LT | DPKG_RELATION_EQ | |
Less than or equal to relation (‘<=’). | |
DPKG_RELATION_GT = DPKG_BIT(2) | |
Greater than relation (‘>>’). | |
DPKG_RELATION_GE = DPKG_RELATION_GT | DPKG_RELATION_EQ | |
Greater than or equal to relation (‘>=’). | |
DPKG_RELATION_EQ = DPKG_BIT(0) |
Equality relation (‘=’).
Referenced by dpkg_version_relate(), f_dependency(), pkg_virtual_deppossi_satisfied(), and varbufdependency().
DPKG_RELATION_GE = DPKG_RELATION_GT | DPKG_RELATION_EQ |
Greater than or equal to relation (‘>=’).
Referenced by dpkg_version_relate(), and varbufdependency().
DPKG_RELATION_GT = DPKG_BIT(2) |
Greater than relation (‘>>’).
Referenced by dpkg_version_relate(), f_dependency(), and varbufdependency().
DPKG_RELATION_LE = DPKG_RELATION_LT | DPKG_RELATION_EQ |
Less than or equal to relation (‘<=’).
Referenced by dpkg_version_relate(), and varbufdependency().
DPKG_RELATION_LT = DPKG_BIT(1) |
Less than relation (‘<<’).
Referenced by dpkg_version_relate(), f_dependency(), and varbufdependency().
DPKG_RELATION_NONE = 0 |
The “none” relation, sentinel value.
Referenced by dpkg_version_relate(), f_dependency(), pkg_virtual_deppossi_satisfied(), and varbufdependency().