diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-06-29 13:25:23 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-06-29 13:25:23 +0300 |
commit | 5666baaa8413bcd77344bee9117aab9321477b01 (patch) | |
tree | 9944e641d7d818e213b95b7e7e6c7afe50eb46fa /kms++/src | |
parent | dc9a7df509f7ed318669392afae454496bc49234 (diff) |
drmpropobject: add set_prop_value(Property* prop, uint64_t value)
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/src')
-rw-r--r-- | kms++/src/drmpropobject.cpp | 5 |
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); |