diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-22 09:02:37 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-22 09:32:20 +0300 |
commit | 4fb69b7d20e90746855de122422ac9cabd78f66f (patch) | |
tree | 8ed6daddd199530f9fdf5c761f9c3b205bcbcd56 /kms++/src | |
parent | 19188a5529d0a3834fc534d3b233aa5c08b998f4 (diff) |
kms++: use DrmPropObject in AtomicReq
The objects to which we set properties with AtomicReq must have
properties, so they are DrmPropObjects instead of DrmObjects.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/src')
-rw-r--r-- | kms++/src/atomicreq.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kms++/src/atomicreq.cpp b/kms++/src/atomicreq.cpp index 01934ae..f2809af 100644 --- a/kms++/src/atomicreq.cpp +++ b/kms++/src/atomicreq.cpp @@ -44,17 +44,17 @@ void AtomicReq::add(uint32_t ob_id, uint32_t prop_id, uint64_t value) throw std::invalid_argument("foo"); } -void AtomicReq::add(DrmObject *ob, Property *prop, uint64_t value) +void AtomicReq::add(DrmPropObject* ob, Property *prop, uint64_t value) { add(ob->id(), prop->id(), value); } -void AtomicReq::add(DrmObject* ob, const string& prop, uint64_t value) +void AtomicReq::add(kms::DrmPropObject* ob, const string& prop, uint64_t value) { - add(ob, m_card.get_prop(prop), value); + add(ob, ob->get_prop(prop), value); } -void AtomicReq::add(DrmObject* ob, const map<string, uint64_t>& values) +void AtomicReq::add(kms::DrmPropObject* ob, const map<string, uint64_t>& values) { for(const auto& kvp : values) add(ob, kvp.first, kvp.second); |