summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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; }