RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Per Øyvind Karlsen
Root: /v/rpm/cvs Email: pkarlsen@rpm5.org
Module: rpm Date: 12-Dec-2007 02:40:54
Branch: rpm-4_5 Handle: 2007121201405300
Modified files: (Branch: rpm-4_5)
rpm CHANGES
rpm/lib librpm.vers rpmps.c rpmps.h
Log:
expose more functions in rpmps API
Summary:
Revision Changes Path
1.1360.2.57 +1 -0 rpm/CHANGES
1.2.2.2 +2 -0 rpm/lib/librpm.vers
2.10.2.2 +10 -0 rpm/lib/rpmps.c
2.9.2.2 +18 -0 rpm/lib/rpmps.h
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/CHANGES
============================================================================
$ cvs diff -u -r1.1360.2.56 -r1.1360.2.57 CHANGES
--- rpm/CHANGES 10 Dec 2007 21:10:55 -0000 1.1360.2.56
+++ rpm/CHANGES 12 Dec 2007 01:40:53 -0000 1.1360.2.57
@@ -1,4 +1,5 @@
4.4.9 -> 4.5:
+ - proyvind: expose more functions in rpmps API (as rpm.org, initially based on us ;p)
- proyvind: fix built-in zlib dependencies (from gb)
- proyvind: force generation of PIC code for static libs that can be built into a DSO (zlib, file) (from gb)
- proyvind: make rpm -bb --quiet" quiet as should be (from pixel)
@@ .
patch -p0 <<'@@ .'
Index: rpm/lib/librpm.vers
============================================================================
$ cvs diff -u -r1.2.2.1 -r1.2.2.2 librpm.vers
--- rpm/lib/librpm.vers 11 Dec 2007 13:56:30 -0000 1.2.2.1
+++ rpm/lib/librpm.vers 12 Dec 2007 01:40:53 -0000 1.2.2.2
@@ -247,6 +247,8 @@
rpmpsGetProblem;
rpmProblemGetPkgNEVR;
rpmProblemGetAltNEVR;
+ rpmProblemGetStr;
+ rpmProblemGetLong;
rpmProblemGetType;
rpmProblemKey;
rpmQueryPoptTable;
@@ .
patch -p0 <<'@@ .'
Index: rpm/lib/rpmps.c
============================================================================
$ cvs diff -u -r2.10.2.1 -r2.10.2.2 rpmps.c
--- rpm/lib/rpmps.c 6 Jun 2007 00:08:08 -0000 2.10.2.1
+++ rpm/lib/rpmps.c 12 Dec 2007 01:40:53 -0000 2.10.2.2
@@ -359,6 +359,16 @@
return(prob->altNEVR);
}
+char * rpmProblemGetStr(rpmProblem prob)
+{
+ return(prob->str1);
+}
+
+unsigned long long rpmProblemGetLong(rpmProblem prob)
+{
+ return(prob->ulong1);
+}
+
rpmProblemType rpmProblemGetType(rpmProblem prob)
{
return(prob->type);
@@ .
patch -p0 <<'@@ .'
Index: rpm/lib/rpmps.h
============================================================================
$ cvs diff -u -r2.9.2.1 -r2.9.2.2 rpmps.h
--- rpm/lib/rpmps.h 6 Jun 2007 00:08:08 -0000 2.9.2.1
+++ rpm/lib/rpmps.h 12 Dec 2007 01:40:53 -0000 2.9.2.2
@@ -223,6 +223,24 @@
/*@*/;
/**
+ * Return a generic data string from a problem
+ * @param prob rpm problem
+ * @return a generic data string
+ * @todo needs a better name
+ */
+char * rpmProblemGetStr(rpmProblem prob)
+ /*@*/;
+
+/**
+ * Return generic pointer/long attribute from a problem
+ * @param prob rpm problem
+ * @return a generic pointer/long attribute
+ * @todo needs a better name
+ */
+unsigned long long rpmProblemGetLong(rpmProblem prob)
+ /*@*/;
+
+/**
* Return the problem type
*
* @param prob rpm problem
@@ .
Received on Wed Dec 12 02:40:54 2007