]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/blob - libkms++/atomicreq.h
9a8a7486180525039f449ef18460d75251a0666c
[android/external-libkmsxx.git] / libkms++ / atomicreq.h
1 #pragma once
3 #include <cstdint>
5 struct _drmModeAtomicReq;
7 #include "decls.h"
9 namespace kms
10 {
11 class AtomicReq
12 {
13 public:
14         AtomicReq(Card& card);
15         ~AtomicReq();
17         AtomicReq(const AtomicReq& other) = delete;
18         AtomicReq& operator=(const AtomicReq& other) = delete;
20         void add(uint32_t ob_id, uint32_t prop_id, uint64_t value);
21         void add(DrmObject *ob, Property *prop, uint64_t value);
23         int test();
24         int commit();
26 private:
27         Card& m_card;
28         _drmModeAtomicReq* m_req;
29 };
31 }