From 82b200e00c2c7dbeae108b21b2bba39305300d4a Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 11 Jan 2019 12:09:40 +0200 Subject: card: add open_modesetting_card() Add open_modesetting_card() which iterates the DRM cards and returns the first one that has crtcs and connectors. Signed-off-by: Tomi Valkeinen --- kms++/inc/kms++/card.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kms++/inc') diff --git a/kms++/inc/kms++/card.h b/kms++/inc/kms++/card.h index 72111f1..4b0d877 100644 --- a/kms++/inc/kms++/card.h +++ b/kms++/inc/kms++/card.h @@ -3,6 +3,7 @@ #include #include #include +#include #include "decls.h" #include "pipeline.h" @@ -13,6 +14,8 @@ class Card { friend class Framebuffer; public: + static std::unique_ptr open_modesetting_card(); + Card(); Card(const std::string& dev_path); Card(const std::string& driver, uint32_t idx); -- cgit v1.2.3