diff options
Diffstat (limited to 'paludis/dep_spec_annotations.hh')
-rw-r--r-- | paludis/dep_spec_annotations.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/dep_spec_annotations.hh b/paludis/dep_spec_annotations.hh index e28d4ab86..0ff516788 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>; |