summaryrefslogtreecommitdiff
path: root/build/rpmfc.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-12-01 11:09:02 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-12-01 11:09:02 +0200
commita66ca57369d355c4555a3d486f0d61185f56b4dc (patch)
tree420ffff7a33a91232c849ce1d57f8375c1cd7f8f /build/rpmfc.h
parentab68421992b1a9d03685a8288f6bef401335394d (diff)
downloadrpm-a66ca57369d355c4555a3d486f0d61185f56b4dc.tar.gz
rpm-a66ca57369d355c4555a3d486f0d61185f56b4dc.tar.bz2
rpm-a66ca57369d355c4555a3d486f0d61185f56b4dc.zip
Remember buildroot directory in rpmfc struct
- New constructor rpmfcCreate() which takes buildroot as an argument, and "flags" argument for future use. Calculate brlen at initialization now that we can. - Preserve rpmfcNew() as a compatibility wrapper as it's something somebody could, in theory, have used legitimately.
Diffstat (limited to 'build/rpmfc.h')
-rw-r--r--build/rpmfc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/rpmfc.h b/build/rpmfc.h
index ab3256812..f3d3e6645 100644
--- a/build/rpmfc.h
+++ b/build/rpmfc.h
@@ -61,10 +61,21 @@ rpmfc rpmfcFree(rpmfc fc);
/** \ingroup rpmfc
* Create a file classifier.
+ * @param rootDir (build) root directory
+ * @param flags (unused)
* @return new file classifier
*/
+rpmfc rpmfcCreate(const char *rootDir, rpmFlags flags);
+
+/** \ingroup rpmfc
+ * @deprecated
+ * Create a file classifier.
+ * @return new file classifier
+ */
+RPM_GNUC_DEPRECATED
rpmfc rpmfcNew(void);
+
/** \ingroup rpmfc
* Build file class dictionary and mappings.
* @param fc file classifier