summaryrefslogtreecommitdiff
path: root/lib/rpmps.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-06-11 10:31:14 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-06-11 10:31:14 +0300
commit1ae76f69df0eacf8f7fc7aab6b920010a5dde25f (patch)
treea3b4fbe861d5eef61c55c2745a0be91e52865e2e /lib/rpmps.h
parent55d3bbd4b87ea7eec48cfa573bdac9001a8cc4da (diff)
downloadlibrpm-tizen-1ae76f69df0eacf8f7fc7aab6b920010a5dde25f.tar.gz
librpm-tizen-1ae76f69df0eacf8f7fc7aab6b920010a5dde25f.tar.bz2
librpm-tizen-1ae76f69df0eacf8f7fc7aab6b920010a5dde25f.zip
Make rpmps generic number field 64bit, rename getter method
- rename the parameters + internal use to more generic "number" - rename ugly and dumb rpmProblemGetLong() to rpmProblemGetDiskNeed() and return rpm_loff_t - the number field is used for some other purposes too (whether dep problem is for installed package), work around this for now by just defining rpmProblemGetDiskNeed() result value as undefined on non-disk related problems ;)
Diffstat (limited to 'lib/rpmps.h')
-rw-r--r--lib/rpmps.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/rpmps.h b/lib/rpmps.h
index f0d578358..0fc800d54 100644
--- a/lib/rpmps.h
+++ b/lib/rpmps.h
@@ -68,7 +68,7 @@ typedef enum rpmProblemType_e {
* @param dn directory name
* @param bn file base name
* @param altNEVR related (e.g. through a dependency) package name
- * @param ulong1 generic pointer/long attribute
+ * @param number generic number attribute
* @return rpmProblem
*/
rpmProblem rpmProblemCreate(rpmProblemType type,
@@ -76,7 +76,7 @@ rpmProblem rpmProblemCreate(rpmProblemType type,
fnpyKey key,
const char * dn, const char * bn,
const char * altNEVR,
- unsigned long ulong1);
+ uint64_t number);
/** \ingroup rpmps
* Destroy a problem item.
@@ -120,13 +120,15 @@ fnpyKey rpmProblemGetKey(const rpmProblem prob);
* @todo needs a better name
*/
const char * rpmProblemGetStr(const rpmProblem prob);
+
/** \ingroup rpmps
- * Return generic pointer/long attribute from a problem
+ * Return disk requirement (needed disk space / number of inodes)
+ * depending on problem type. On problem types other than RPMPROB_DISKSPACE
+ * and RPMPROB_DISKNODES return value is undefined.
* @param prob rpm problem
- * @return a generic pointer/long attribute
- * @todo needs a better name
+ * @return disk requirement
*/
-unsigned long rpmProblemGetLong(const rpmProblem prob);
+rpm_loff_t rpmProblemGetDiskNeed(const rpmProblem prob);
/** \ingroup rpmps
* Return formatted string representation of a problem.
@@ -223,14 +225,14 @@ void rpmpsAppendProblem(rpmps ps, rpmProblem prob);
* @param dn directory name
* @param bn file base name
* @param altNEVR related (e.g. through a dependency) package name
- * @param ulong1 generic pointer/long attribute
+ * @param number generic number attribute
*/
void rpmpsAppend(rpmps ps, rpmProblemType type,
const char * pkgNEVR,
fnpyKey key,
const char * dn, const char * bn,
const char * altNEVR,
- unsigned long ulong1);
+ uint64_t number);
/** \ingroup rpmps
* Filter a problem set.