aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-11-01 14:50:27 +0000
committerThierry Vignaud <tv@mageia.org>2012-11-01 14:50:27 +0000
commit494d762dd4e027965257abbf90339d7f7e330e8c (patch)
tree0683ca5a21ab93dacd61048e30e55705eee8be8a /URPM.xs
parent5de60c8e8aa8feefa5c09ea37d5dd441135fc243 (diff)
downloadperl-URPM-494d762dd4e027965257abbf90339d7f7e330e8c.tar
perl-URPM-494d762dd4e027965257abbf90339d7f7e330e8c.tar.gz
perl-URPM-494d762dd4e027965257abbf90339d7f7e330e8c.tar.bz2
perl-URPM-494d762dd4e027965257abbf90339d7f7e330e8c.tar.xz
perl-URPM-494d762dd4e027965257abbf90339d7f7e330e8c.zip
explain the 'flags' signifiance
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs15
1 files changed, 15 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index e93f982..7a2db58 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -77,6 +77,21 @@ typedef struct s_Transaction* URPM__DB;
typedef struct s_Transaction* URPM__Transaction;
typedef struct s_Package* URPM__Package;
+/*
+ * URPM__Package->flag is an unsigned int:
+ * bit : significance
+ * 0..20: ID
+ * 21-23: rate
+ * 24: BASE
+ * 25: SKIP
+ * 26: DISABLE_OBSOLETE
+ * 27: INSTALLED
+ * 28: REQUESTED
+ * 29: REQUIRED
+ * 30: UPGRADE
+ * 31: NO_HEADER_FREE
+ * */
+
#define FLAG_ID_MASK 0x001fffffU
#define FLAG_RATE_MASK 0x00e00000U
#define FLAG_BASE 0x01000000U