summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libkms++/card.cpp5
-rw-r--r--libkms++/card.h2
2 files changed, 7 insertions, 0 deletions
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;