aboutsummaryrefslogtreecommitdiff
path: root/paludis/dep_spec_annotations.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-19 16:46:09 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-19 16:46:09 +0000
commit17b625c28f10fbc765f1a99af433da1e39a9253e (patch)
treebb9afd6ea7d811dc67937d2fb54094e5fe78c77a /paludis/dep_spec_annotations.hh
parent7d994ad210d8fc308a506ad9c2cd3eeed4607a65 (diff)
downloadpaludis-17b625c28f10fbc765f1a99af433da1e39a9253e.tar.gz
paludis-17b625c28f10fbc765f1a99af433da1e39a9253e.tar.xz
Annotations have roles
Diffstat (limited to 'paludis/dep_spec_annotations.hh')
-rw-r--r--paludis/dep_spec_annotations.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/dep_spec_annotations.hh b/paludis/dep_spec_annotations.hh
index e28d4ab..0ff5167 100644
--- a/paludis/dep_spec_annotations.hh
+++ b/paludis/dep_spec_annotations.hh
@@ -31,12 +31,14 @@ namespace paludis
namespace n
{
typedef Name<struct key_name> key;
+ typedef Name<struct role_name> role;
typedef Name<struct value_name> value;
}
struct DepSpecAnnotation
{
NamedValue<n::key, std::string> key;
+ NamedValue<n::role, DepSpecAnnotationRole> role;
NamedValue<n::value, std::string> value;
};
@@ -55,6 +57,7 @@ namespace paludis
ConstIterator begin() const PALUDIS_ATTRIBUTE((warn_unused_result));
ConstIterator end() const PALUDIS_ATTRIBUTE((warn_unused_result));
ConstIterator find(const std::string &) const PALUDIS_ATTRIBUTE((warn_unused_result));
+ ConstIterator find(const DepSpecAnnotationRole) const PALUDIS_ATTRIBUTE((warn_unused_result));
};
extern template class Pimp<DepSpecAnnotations>;