aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 419dd2a..6a5f716 100644
--- a/paludis/dep_spec.cc
+++ b/paludis/dep_spec.cc
@@ -458,6 +458,12 @@ BlockDepSpec::block_kind() const
return _kind;
}
+void
+BlockDepSpec::set_block_kind(const BlockKind k)
+{
+ _kind = k;
+}
+
std::shared_ptr<DepSpec>
BlockDepSpec::clone() const
{
diff --git a/paludis/dep_spec.hh b/paludis/dep_spec.hh
index 8e710f9..0b99291 100644
--- a/paludis/dep_spec.hh
+++ b/paludis/dep_spec.hh
@@ -627,6 +627,13 @@ namespace paludis
*/
BlockKind block_kind() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ /**
+ * Change our blocker strength.
+ *
+ * \since 0.55
+ */
+ void set_block_kind(const BlockKind);
+
virtual std::shared_ptr<DepSpec> clone() const PALUDIS_ATTRIBUTE((warn_unused_result));
};