summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2015-11-06 21:55:11 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-11-06 21:59:41 +0200
commitf19497eb25de28d76cdbd425134e925e295c9468 (patch)
tree0357c307ba4fb41d25306692bba6ffd3de75d153
parent1857c46e0967adbf276d8a9afaf5dac9afa355e4 (diff)
card: add get_plane()
-rw-r--r--libkms++/card.cpp1
-rw-r--r--libkms++/card.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/libkms++/card.cpp b/libkms++/card.cpp
index 34dbc32..2852f4a 100644
--- a/libkms++/card.cpp
+++ b/libkms++/card.cpp
@@ -226,6 +226,7 @@ Connector* Card::get_connector(uint32_t id) const { return dynamic_cast<Connecto
Crtc* Card::get_crtc(uint32_t id) const { return dynamic_cast<Crtc*>(get_object(id)); }
Encoder* Card::get_encoder(uint32_t id) const { return dynamic_cast<Encoder*>(get_object(id)); }
Property* Card::get_prop(uint32_t id) const { return dynamic_cast<Property*>(get_object(id)); }
+Plane* Card::get_plane(uint32_t id) const { return dynamic_cast<Plane*>(get_object(id)); }
std::vector<kms::Pipeline> Card::get_connected_pipelines()
{
diff --git a/libkms++/card.h b/libkms++/card.h
index dc97703..ea84081 100644
--- a/libkms++/card.h
+++ b/libkms++/card.h
@@ -29,6 +29,7 @@ public:
Encoder* get_encoder(uint32_t id) const;
Property* get_prop(uint32_t id) const;
Property* get_prop(const std::string& name) const;
+ Plane* get_plane(uint32_t id) const;
bool master() const { return m_master; }
bool has_atomic() const { return m_has_atomic; }