summaryrefslogtreecommitdiff
path: root/lib/rpmds.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-12-30 02:37:01 +0000
committerjbj <devnull@localhost>2002-12-30 02:37:01 +0000
commit24e9464d2e30b02b4178198947b45fb45c165cbb (patch)
tree7ccb154af0641f7c55d4b56ca2d133a533ef552d /lib/rpmds.h
parent1b8508adc27371a944e730c218364eea110f8d9f (diff)
downloadlibrpm-tizen-24e9464d2e30b02b4178198947b45fb45c165cbb.tar.gz
librpm-tizen-24e9464d2e30b02b4178198947b45fb45c165cbb.tar.bz2
librpm-tizen-24e9464d2e30b02b4178198947b45fb45c165cbb.zip
- use rpmfiFDepends() underneath --fileprovide and --filerequire.
- python: add fi.FColor() and fi.FClass() methods. - calculate dependency color and refernces. - python: add ds.Color() and ds.Refs() methods. CVS patchset: 5987 CVS date: 2002/12/30 02:37:01
Diffstat (limited to 'lib/rpmds.h')
-rw-r--r--lib/rpmds.h40
1 files changed, 39 insertions, 1 deletions
diff --git a/lib/rpmds.h b/lib/rpmds.h
index a09e7b26f..f657cd553 100644
--- a/lib/rpmds.h
+++ b/lib/rpmds.h
@@ -38,7 +38,11 @@ struct rpmds_s {
/*@only@*/ /*@null@*/
const char ** EVR; /*!< Epoch-Version-Release. */
/*@only@*/ /*@null@*/
- int_32 * Flags; /*!< Flags identifying context/comparison. */
+ int_32 * Flags; /*!< Bit(s) identifying context/comparison. */
+/*@only@*/ /*@null@*/
+ int_32 * Color; /*!< Bit(s) calculated from file color(s). */
+/*@only@*/ /*@null@*/
+ int_32 * Refs; /*!< No. of file refs. */
rpmTag tagN; /*!< Header tag. */
rpmTagType Nt, EVRt, Ft; /*!< Tag data types. */
int_32 Count; /*!< No. of elements */
@@ -238,6 +242,40 @@ int rpmdsSetNoPromote(/*@null@*/ rpmds ds, int nopromote)
/*@modifies ds @*/;
/**
+ * Return current dependency color.
+ * @param ds dependency set
+ * @return current dependency color
+ */
+int_32 rpmdsColor(/*@null@*/ const rpmds ds)
+ /*@*/;
+
+/**
+ * Return current dependency color.
+ * @param ds dependency set
+ * @param color new dependency color
+ * @return previous dependency color
+ */
+int_32 rpmdsSetColor(/*@null@*/ const rpmds ds, int_32 color)
+ /*@*/;
+
+/**
+ * Return current dependency file refs.
+ * @param ds dependency set
+ * @return current dependency file refs, -1 on global
+ */
+int_32 rpmdsRefs(/*@null@*/ const rpmds ds)
+ /*@*/;
+
+/**
+ * Return current dependency color.
+ * @param ds dependency set
+ * @param refs new dependency refs
+ * @return previous dependency refs
+ */
+int_32 rpmdsSetRefs(/*@null@*/ const rpmds ds, int_32 refs)
+ /*@*/;
+
+/**
* Notify of results of dependency match.
* @param ds dependency set
* @param where where dependency was resolved (or NULL)