diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-22 12:38:30 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-07-10 19:38:37 +0300 |
commit | a706f157b86e90696808025db01de99646d51a77 (patch) | |
tree | 699133c93fab2fe8881fd51dcf53a963ab66976d /kms++/inc/kms++/drmpropobject.h | |
parent | b66820089b4823f82392b7a17aaf122d53e2b822 (diff) |
Fix property name lookup
Object types can have different properties with the same name, so we
need to move name-based property lookup from Card to DrmPropObject.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/inc/kms++/drmpropobject.h')
-rw-r--r-- | kms++/inc/kms++/drmpropobject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kms++/inc/kms++/drmpropobject.h b/kms++/inc/kms++/drmpropobject.h index ec28d45..38de584 100644 --- a/kms++/inc/kms++/drmpropobject.h +++ b/kms++/inc/kms++/drmpropobject.h @@ -14,6 +14,9 @@ class DrmPropObject : public DrmObject friend class Card; public: void refresh_props(); + + Property* get_prop(const std::string& name) const; + uint64_t get_prop_value(uint32_t id) const; uint64_t get_prop_value(const std::string& name) const; std::unique_ptr<Blob> get_prop_value_as_blob(const std::string& name) const; |