From 67bc5e8a9632028f9d5f44da9eafa38f0b59dfef Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 2 Oct 2020 14:46:33 +0300 Subject: Small Property improvements Signed-off-by: Tomi Valkeinen --- kms++/inc/kms++/drmpropobject.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kms++/inc/kms++/drmpropobject.h') 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; -- cgit v1.2.3