aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/unwritten/unwritten_repository_store.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-06 19:53:51 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-06 20:34:59 +0000
commit78fae8c23f0aa4070ed495ced4c4f20434f91c62 (patch)
treeadf844644b946f069e660796b12c65e87554dc9a /paludis/repositories/unwritten/unwritten_repository_store.hh
parent374a0586092fc10b7d08dba9a2af9fb689758cd4 (diff)
downloadpaludis-78fae8c23f0aa4070ed495ced4c4f20434f91c62.tar.gz
paludis-78fae8c23f0aa4070ed495ced4c4f20434f91c62.tar.xz
unwritten/repository.conf
Diffstat (limited to 'paludis/repositories/unwritten/unwritten_repository_store.hh')
-rw-r--r--paludis/repositories/unwritten/unwritten_repository_store.hh18
1 files changed, 18 insertions, 0 deletions
diff --git a/paludis/repositories/unwritten/unwritten_repository_store.hh b/paludis/repositories/unwritten/unwritten_repository_store.hh
index 3c43d0eb3..766ee94c4 100644
--- a/paludis/repositories/unwritten/unwritten_repository_store.hh
+++ b/paludis/repositories/unwritten/unwritten_repository_store.hh
@@ -22,6 +22,7 @@
#include <paludis/util/pimp.hh>
#include <paludis/util/fs_path-fwd.hh>
+#include <paludis/util/named_value.hh>
#include <paludis/name-fwd.hh>
#include <paludis/package_id-fwd.hh>
#include <paludis/environment-fwd.hh>
@@ -29,10 +30,24 @@
namespace paludis
{
+ namespace n
+ {
+ typedef Name<struct entry_suffix_name> entry_suffix;
+ typedef Name<struct name_name> name;
+ typedef Name<struct role_name> role;
+ }
+
namespace unwritten_repository
{
struct UnwrittenRepository;
+ struct UnwrittenRepositoryInformation
+ {
+ NamedValue<n::entry_suffix, std::string> entry_suffix;
+ NamedValue<n::name, std::string> name;
+ NamedValue<n::role, std::string> role;
+ };
+
class PALUDIS_VISIBLE UnwrittenRepositoryStore :
private Pimp<UnwrittenRepositoryStore>
{
@@ -64,6 +79,9 @@ namespace paludis
std::shared_ptr<const PackageIDSequence> package_ids(
const QualifiedPackageName & p) const PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ static UnwrittenRepositoryInformation repository_information(
+ const FSPath &) PALUDIS_ATTRIBUTE((warn_unused_result));
};
}