aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-09-05 13:06:14 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-09-05 13:06:14 +0100
commit85c9d08a87a6d5c9c78048e0495df1544c41f6bd (patch)
tree7f0e76c4ad65e36b7e1a448531bda206ad1fb2ed
parent0ad796a9ebe1a3706b3d97c100633fff3bc8b10c (diff)
downloadpaludis-85c9d08a87a6d5c9c78048e0495df1544c41f6bd.tar.gz
paludis-85c9d08a87a6d5c9c78048e0495df1544c41f6bd.tar.xz
BlockDepSpec::set_block_kind
-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));
};