summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (from parent 1: 5322074)
raw | patch | inline | side by side (from parent 1: 5322074)
author | Tomi Valkeinen <tomi.valkeinen@iki.fi> | |
Sat, 3 Oct 2015 18:24:34 +0000 (21:24 +0300) | ||
committer | Tomi Valkeinen <tomi.valkeinen@iki.fi> | |
Sat, 3 Oct 2015 18:24:34 +0000 (21:24 +0300) |
libkms++/atomicreq.cpp | patch | blob | history | |
libkms++/atomicreq.h | patch | blob | history |
diff --git a/libkms++/atomicreq.cpp b/libkms++/atomicreq.cpp
index 236e5018876491a047651c393f2198be04ce510e..779491302551edfe9feeaba610b11409cd489f94 100644 (file)
--- a/libkms++/atomicreq.cpp
+++ b/libkms++/atomicreq.cpp
#endif // DRM_CLIENT_CAP_ATOMIC
#endif // DRM_CLIENT_CAP_ATOMIC
+using namespace std;
+
namespace kms
{
AtomicReq::AtomicReq(Card& card)
namespace kms
{
AtomicReq::AtomicReq(Card& card)
add(ob->id(), prop->id(), value);
}
add(ob->id(), prop->id(), value);
}
+void AtomicReq::add(DrmObject* ob, const string& prop, uint64_t value)
+{
+ add(ob, m_card.get_prop(prop), value);
+}
+
int AtomicReq::test()
{
uint32_t flags = DRM_MODE_ATOMIC_TEST_ONLY;
int AtomicReq::test()
{
uint32_t flags = DRM_MODE_ATOMIC_TEST_ONLY;
diff --git a/libkms++/atomicreq.h b/libkms++/atomicreq.h
index 89797dfaedb3ed0906a4a1130e631ea7068e98f1..55dd7c9c53ead612870a66c27b1907b8f5456049 100644 (file)
--- a/libkms++/atomicreq.h
+++ b/libkms++/atomicreq.h
#pragma once
#include <cstdint>
#pragma once
#include <cstdint>
+#include <string>
struct _drmModeAtomicReq;
struct _drmModeAtomicReq;
void add(uint32_t ob_id, uint32_t prop_id, uint64_t value);
void add(DrmObject *ob, Property *prop, uint64_t value);
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);
int test();
int commit(void* data);
int test();
int commit(void* data);