summaryrefslogtreecommitdiff
path: root/source/Interpreter/OptionValueProperties.cpp
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2015-02-06 21:38:51 +0000
committerEd Maste <emaste@FreeBSD.org>2015-02-06 21:38:51 +0000
commit205afe679855a4ce8149cdaa94d3f0868ce796dc (patch)
tree09bc83f73246ee3c7a779605cd0122093d2a8a19 /source/Interpreter/OptionValueProperties.cpp
parent0cac4ca3916ac24ab6139d03cbfd18db9e715bfe (diff)
Diffstat (limited to 'source/Interpreter/OptionValueProperties.cpp')
-rw-r--r--source/Interpreter/OptionValueProperties.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/Interpreter/OptionValueProperties.cpp b/source/Interpreter/OptionValueProperties.cpp
index 0497ee1c15d7c..6ec2aa569fa38 100644
--- a/source/Interpreter/OptionValueProperties.cpp
+++ b/source/Interpreter/OptionValueProperties.cpp
@@ -81,6 +81,16 @@ OptionValueProperties::Initialize (const PropertyDefinition *defs)
}
void
+OptionValueProperties::SetValueChangedCallback (uint32_t property_idx,
+ OptionValueChangedCallback callback,
+ void *baton)
+{
+ Property *property = ProtectedGetPropertyAtIndex (property_idx);
+ if (property)
+ property->SetValueChangedCallback (callback, baton);
+}
+
+void
OptionValueProperties::AppendProperty(const ConstString &name,
const ConstString &desc,
bool is_global,