aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/file_suffixes.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-18 22:44:26 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-18 22:48:57 +0000
commitbdf2d8a162a597af3a758e84e68c5f65ce088ef3 (patch)
treec079bf31cb6af8203dd572069dddcc0d293f394e /paludis/repositories/e/file_suffixes.hh
parent48c9c785ecd6a96f056b9ecefb6df980967dda22 (diff)
downloadpaludis-bdf2d8a162a597af3a758e84e68c5f65ce088ef3.tar.gz
paludis-bdf2d8a162a597af3a758e84e68c5f65ce088ef3.tar.xz
Split out helpers
Diffstat (limited to 'paludis/repositories/e/file_suffixes.hh')
-rw-r--r--paludis/repositories/e/file_suffixes.hh14
1 files changed, 12 insertions, 2 deletions
diff --git a/paludis/repositories/e/file_suffixes.hh b/paludis/repositories/e/file_suffixes.hh
index 4637a3815..e4d17e9ab 100644
--- a/paludis/repositories/e/file_suffixes.hh
+++ b/paludis/repositories/e/file_suffixes.hh
@@ -22,6 +22,8 @@
#include <paludis/util/pimp.hh>
#include <paludis/util/singleton.hh>
+#include <paludis/util/fs_path-fwd.hh>
+#include <paludis/name-fwd.hh>
#include <string>
namespace paludis
@@ -42,11 +44,19 @@ namespace paludis
public:
bool is_known_suffix(const std::string & s) const;
- std::string guess_eapi(const std::string & s) const;
+ const std::string manifest_key(const std::string & s) const;
- std::string manifest_key(const std::string & s) const;
+ const std::string get_package_file_manifest_key(const FSPath & e, const QualifiedPackageName & q) const;
+
+ bool is_package_file(const QualifiedPackageName & n, const FSPath & e) const;
+
+ const std::string guess_eapi_without_hint(const std::string & s) const;
+
+ const std::string guess_eapi_from_filename(const QualifiedPackageName &, const FSPath & e) const;
};
}
+
+ extern template class Singleton<erepository::FileSuffixes>;
}
#endif