summaryrefslogtreecommitdiff
path: root/kms++/src
diff options
context:
space:
mode:
Diffstat (limited to 'kms++/src')
-rw-r--r--kms++/src/drmpropobject.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kms++/src/drmpropobject.cpp b/kms++/src/drmpropobject.cpp
index f5a3c97..f91f913 100644
--- a/kms++/src/drmpropobject.cpp
+++ b/kms++/src/drmpropobject.cpp
@@ -80,6 +80,11 @@ unique_ptr<Blob> DrmPropObject::get_prop_value_as_blob(const string& name) const
return unique_ptr<Blob>(new Blob(card(), blob_id));
}
+int DrmPropObject::set_prop_value(Property* prop, uint64_t value)
+{
+ return drmModeObjectSetProperty(card().fd(), this->id(), this->object_type(), prop->id(), value);
+}
+
int DrmPropObject::set_prop_value(uint32_t id, uint64_t value)
{
return drmModeObjectSetProperty(card().fd(), this->id(), this->object_type(), id, value);