summaryrefslogtreecommitdiff
path: root/kms++/inc
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-22 12:38:30 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-07-10 19:38:37 +0300
commita706f157b86e90696808025db01de99646d51a77 (patch)
tree699133c93fab2fe8881fd51dcf53a963ab66976d /kms++/inc
parentb66820089b4823f82392b7a17aaf122d53e2b822 (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')
-rw-r--r--kms++/inc/kms++/card.h1
-rw-r--r--kms++/inc/kms++/drmpropobject.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/kms++/inc/kms++/card.h b/kms++/inc/kms++/card.h
index 5ecaecf..09c9bba 100644
--- a/kms++/inc/kms++/card.h
+++ b/kms++/inc/kms++/card.h
@@ -32,7 +32,6 @@ public:
Encoder* get_encoder(uint32_t id) const;
Plane* get_plane(uint32_t id) const;
Property* get_prop(uint32_t id) const;
- Property* get_prop(const std::string& name) const;
bool master() const { return m_master; }
bool has_atomic() const { return m_has_atomic; }
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;