summaryrefslogtreecommitdiff
path: root/build/rpmspec.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-12-22 02:11:05 +0000
committerjbj <devnull@localhost>2002-12-22 02:11:05 +0000
commitb63b4a5d122e8dfb631c8fa75a9a7a92708080ec (patch)
tree83f213dc374fadf65b4c520e03bda0bc0ebf685b /build/rpmspec.h
parent1f6cdca2d549e02f3e65afa27b80cb852e283cd2 (diff)
downloadrpm-b63b4a5d122e8dfb631c8fa75a9a7a92708080ec.tar.gz
rpm-b63b4a5d122e8dfb631c8fa75a9a7a92708080ec.tar.bz2
rpm-b63b4a5d122e8dfb631c8fa75a9a7a92708080ec.zip
- simplify specfile query linkage loop.
- drill rpmts into parseSpec(), carrying Spec along. CVS patchset: 5958 CVS date: 2002/12/22 02:11:05
Diffstat (limited to 'build/rpmspec.h')
-rw-r--r--build/rpmspec.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/build/rpmspec.h b/build/rpmspec.h
index 1f04558f9..5bfec8d59 100644
--- a/build/rpmspec.h
+++ b/build/rpmspec.h
@@ -8,10 +8,6 @@
/** \ingroup rpmbuild
*/
-typedef struct Spec_s * Spec;
-
-/** \ingroup rpmbuild
- */
typedef struct Package_s * Package;
/** \ingroup rpmbuild
@@ -235,14 +231,17 @@ extern "C" {
/*@modifies spec, fileSystem, internalState @*/;
/** \ingroup rpmbuild
- * @param spec spec file control structure
- * @return NULL always
+ * Function to query spec file(s).
+ * @param ts transaction set
+ * @param qva parsed query/verify options
+ * @param arg query argument
+ * @return 0 on success, else no. of failures
*/
-/*@-declundef@*/
-extern /*@null@*/ Spec (*freeSpecVec) (Spec spec) /* XXX FIXME */
- /*@globals fileSystem, internalState @*/
- /*@modifies spec, fileSystem, internalState @*/;
-/*@=declundef@*/
+int rpmspecQuery(rpmts ts, QVA_t qva, const char * arg)
+ /*@globals rpmGlobalMacroContext,
+ fileSystem, internalState @*/
+ /*@modifies ts, qva, rpmGlobalMacroContext,
+ fileSystem, internalState @*/;
/** \ingroup rpmbuild
*/