From c5cee811d1f0794c813745dff158057be9ce49af Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 11 Apr 2016 19:11:09 +0300 Subject: atomicreq: add commit_sync() --- libkms++/atomicreq.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libkms++/atomicreq.cpp') diff --git a/libkms++/atomicreq.cpp b/libkms++/atomicreq.cpp index a11d382..f2aa322 100644 --- a/libkms++/atomicreq.cpp +++ b/libkms++/atomicreq.cpp @@ -76,4 +76,11 @@ int AtomicReq::commit(void* data) return drmModeAtomicCommit(m_card.fd(), m_req, flags, data); } + +int AtomicReq::commit_sync() +{ + uint32_t flags = 0; + + return drmModeAtomicCommit(m_card.fd(), m_req, flags, 0); +} } -- cgit v1.2.3