summaryrefslogtreecommitdiff
path: root/kms++/inc
diff options
context:
space:
mode:
authorMatt Hoosier <matt.hoosier@garmin.com>2020-05-27 15:29:00 -0500
committerMatt Hoosier <matt.hoosier@garmin.com>2020-05-28 14:08:42 -0500
commit554f3f0231c432dea740e56d6a51a15983c93310 (patch)
tree5b8a7e630944ef168de903afc33c7fbe20ec083d /kms++/inc
parenta9480f87902840388497ff85062e73381317626f (diff)
card: add factory function for selecting card by name
Uses drmOpen() to do the heavy lifting.
Diffstat (limited to 'kms++/inc')
-rw-r--r--kms++/inc/kms++/card.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kms++/inc/kms++/card.h b/kms++/inc/kms++/card.h
index 9ca06b2..5c1cf7c 100644
--- a/kms++/inc/kms++/card.h
+++ b/kms++/inc/kms++/card.h
@@ -24,6 +24,8 @@ class Card
{
friend class Framebuffer;
public:
+ static std::unique_ptr<Card> open_named_card(const std::string& name);
+
Card(const std::string& dev_path = "");
Card(const std::string& driver, uint32_t idx);
Card(int fd, bool take_ownership);