aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-08 16:29:19 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-08 16:29:19 +0100
commit1b2791f403d75f591e9c3b091f69277db37bdae1 (patch)
tree8521ad7b247d19d911fc0df71247f7ca35fe1494
parent815e11334707b7322f904cf2e93a50b9f9aefa13 (diff)
downloadpaludis-1b2791f403d75f591e9c3b091f69277db37bdae1.tar.gz
paludis-1b2791f403d75f591e9c3b091f69277db37bdae1.tar.xz
Provide access to all requirements
-rw-r--r--paludis/dep_spec.cc6
-rw-r--r--paludis/dep_spec.hh7
2 files changed, 13 insertions, 0 deletions
diff --git a/paludis/dep_spec.cc b/paludis/dep_spec.cc
index e0de73a..4a4c026 100644
--- a/paludis/dep_spec.cc
+++ b/paludis/dep_spec.cc
@@ -959,6 +959,12 @@ PackageDepSpec::all_choice_requirements() const
return _imp->all_choices;
}
+const std::shared_ptr<const PackageDepSpecRequirementSequence>
+PackageDepSpec::requirements() const
+{
+ return _imp->data->requirements();
+}
+
std::string
PackageDepSpec::_as_string() const
{
diff --git a/paludis/dep_spec.hh b/paludis/dep_spec.hh
index 3e802c7..289dfb2 100644
--- a/paludis/dep_spec.hh
+++ b/paludis/dep_spec.hh
@@ -398,6 +398,13 @@ namespace paludis
const std::shared_ptr<const ChoiceRequirementSequence> all_choice_requirements() const;
/**
+ * Fetch all our requirements.
+ *
+ * \since 0.61
+ */
+ const std::shared_ptr<const PackageDepSpecRequirementSequence> requirements() const;
+
+ /**
* Access to our data.
*/
const std::shared_ptr<const PackageDepSpecData> data() const;