summaryrefslogtreecommitdiff
path: root/kms++/inc
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2020-10-02 14:46:33 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2020-10-02 14:46:33 +0300
commit67bc5e8a9632028f9d5f44da9eafa38f0b59dfef (patch)
tree7a8b54923c19297d841f4b45bcd566ac8e4ba87c /kms++/inc
parent70265487ec9a4ec3e41aeb1436973d952f621ddc (diff)
Small Property improvements
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/inc')
-rw-r--r--kms++/inc/kms++/drmpropobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kms++/inc/kms++/drmpropobject.h b/kms++/inc/kms++/drmpropobject.h
index 809caf5..48e0265 100644
--- a/kms++/inc/kms++/drmpropobject.h
+++ b/kms++/inc/kms++/drmpropobject.h
@@ -15,6 +15,8 @@ class DrmPropObject : public DrmObject
public:
void refresh_props();
+ bool has_prop(const std::string& name) const { return !!get_prop(name); }
+
Property* get_prop(const std::string& name) const;
uint64_t get_prop_value(uint32_t id) const;