From a85fd267fca64f7c1b6e2269a00922ba1326fe7d Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 26 Mar 2016 15:07:39 +0200 Subject: card: add drop_master --- libkms++/card.cpp | 5 +++++ libkms++/card.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'libkms++') diff --git a/libkms++/card.cpp b/libkms++/card.cpp index d5b823f..4fd971d 100644 --- a/libkms++/card.cpp +++ b/libkms++/card.cpp @@ -132,6 +132,11 @@ Card::~Card() close(m_fd); } +void Card::drop_master() +{ + drmDropMaster(fd()); +} + void Card::restore_modes() { for (auto conn : get_connectors()) diff --git a/libkms++/card.h b/libkms++/card.h index 6cf0c02..baae915 100644 --- a/libkms++/card.h +++ b/libkms++/card.h @@ -22,6 +22,8 @@ public: int fd() const { return m_fd; } + void drop_master(); + Connector* get_first_connected_connector() const; DrmObject* get_object(uint32_t id) const; -- cgit v1.2.3