summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-03-26 15:07:39 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-03-26 15:12:49 +0200
commita85fd267fca64f7c1b6e2269a00922ba1326fe7d (patch)
treebdfe42c30ce581364192ae800f8e6948b10a1321
parent6ae292cc726b37805424b71ea68be6022289a6b2 (diff)
card: add drop_master
-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;