summaryrefslogtreecommitdiff
path: root/build/rpmfc.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-09-25 22:46:02 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-09-25 22:46:02 +0300
commitd16bdb1550c3c3c13a40ad9cb6869564a6abbc38 (patch)
tree149fe2ff6115db97e435b09a4809995f6cf464e1 /build/rpmfc.h
parentb813710a4ca26743291cbdbbb3831d5a3e103356 (diff)
downloadrpm-d16bdb1550c3c3c13a40ad9cb6869564a6abbc38.tar.gz
rpm-d16bdb1550c3c3c13a40ad9cb6869564a6abbc38.tar.bz2
rpm-d16bdb1550c3c3c13a40ad9cb6869564a6abbc38.zip
Hide rpmfc structure internals from the API
Diffstat (limited to 'build/rpmfc.h')
-rw-r--r--build/rpmfc.h44
1 files changed, 14 insertions, 30 deletions
diff --git a/build/rpmfc.h b/build/rpmfc.h
index cd621daef..aa79fd279 100644
--- a/build/rpmfc.h
+++ b/build/rpmfc.h
@@ -11,36 +11,6 @@ typedef struct rpmfc_s * rpmfc;
/**
*/
-struct rpmfc_s {
- int nfiles; /*!< no. of files */
- int fknown; /*!< no. of classified files */
- int fwhite; /*!< no. of "white" files */
- int ix; /*!< current file index */
- int skipProv; /*!< Don't auto-generate Provides:? */
- int skipReq; /*!< Don't auto-generate Requires:? */
- int tracked; /*!< Versioned Provides: tracking dependency added? */
- size_t brlen; /*!< strlen(spec->buildRoot) */
-
- ARGV_t fn; /*!< (#files) file names */
- ARGI_t fcolor; /*!< (#files) file colors */
- ARGI_t fcdictx; /*!< (#files) file class dictionary indices */
- ARGI_t fddictx; /*!< (#files) file depends dictionary start */
- ARGI_t fddictn; /*!< (#files) file depends dictionary no. entries */
- ARGV_t cdict; /*!< (#classes) file class dictionary */
- ARGV_t ddict; /*!< (#dependencies) file depends dictionary */
- ARGI_t ddictx; /*!< (#dependencies) file->dependency mapping */
-
- rpmds provides; /*!< (#provides) package provides */
- rpmds requires; /*!< (#requires) package requires */
-
- StringBuf sb_java; /*!< concatenated list of java colored files. */
- StringBuf sb_perl; /*!< concatenated list of perl colored files. */
- StringBuf sb_python;/*!< concatenated list of python colored files. */
-
-};
-
-/**
- */
enum FCOLOR_e {
RPMFC_BLACK = 0,
RPMFC_ELF32 = (1 << 0),
@@ -159,6 +129,20 @@ int rpmfcApply(rpmfc fc);
*/
int rpmfcGenerateDepends(const rpmSpec spec, Package pkg);
+/**
+ * Retrieve file classification provides
+ * @param fc file classifier
+ * @return rpmds dependency set of fc provides
+ */
+rpmds rpmfcProvides(rpmfc fc);
+
+/**
+ * Retrieve file classification requires
+ * @param fc file classifier
+ * @return rpmds dependency set of fc requires
+ */
+rpmds rpmfcRequires(rpmfc fc);
+
#ifdef __cplusplus
}
#endif