summaryrefslogtreecommitdiff
path: root/libkms++/atomicreq.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkms++/atomicreq.h')
-rw-r--r--libkms++/atomicreq.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/libkms++/atomicreq.h b/libkms++/atomicreq.h
deleted file mode 100644
index 6ebdbf8..0000000
--- a/libkms++/atomicreq.h
+++ /dev/null
@@ -1,36 +0,0 @@
-#pragma once
-
-#include <cstdint>
-#include <string>
-#include <map>
-
-struct _drmModeAtomicReq;
-
-#include "decls.h"
-
-namespace kms
-{
-class AtomicReq
-{
-public:
- AtomicReq(Card& card);
- ~AtomicReq();
-
- AtomicReq(const AtomicReq& other) = delete;
- AtomicReq& operator=(const AtomicReq& other) = delete;
-
- void add(uint32_t ob_id, uint32_t prop_id, uint64_t value);
- void add(DrmObject *ob, Property *prop, uint64_t value);
- void add(DrmObject *ob, const std::string& prop, uint64_t value);
- void add(DrmObject *ob, const std::map<std::string, uint64_t>& values);
-
- int test(bool allow_modeset = false);
- int commit(void* data, bool allow_modeset = false);
- int commit_sync(bool allow_modeset = false);
-
-private:
- Card& m_card;
- _drmModeAtomicReq* m_req;
-};
-
-}