diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 21:46:24 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 21:46:24 +0300 |
commit | 9916712a62169606d845510028a3ea6f84bd442f (patch) | |
tree | aca4e1bec39500812111c43a8ecee862edae0002 /kms++/src/drmobject.cpp | |
parent | 736b295100ce441e800457bcbd08cb36db543ff2 (diff) |
kms++: organize into subdirs
Diffstat (limited to 'kms++/src/drmobject.cpp')
-rw-r--r-- | kms++/src/drmobject.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/kms++/src/drmobject.cpp b/kms++/src/drmobject.cpp new file mode 100644 index 0000000..f94fc5d --- /dev/null +++ b/kms++/src/drmobject.cpp @@ -0,0 +1,34 @@ +#include <string.h> +#include <iostream> +#include <stdexcept> + +#include <xf86drm.h> +#include <xf86drmMode.h> + +#include <kms++/kms++.h> + +using namespace std; + +namespace kms +{ + +DrmObject::DrmObject(Card& card, uint32_t object_type) + :m_card(card), m_id(-1), m_object_type(object_type), m_idx(0) +{ +} + +DrmObject::DrmObject(Card& card, uint32_t id, uint32_t object_type, uint32_t idx) + :m_card(card), m_id(id), m_object_type(object_type), m_idx(idx) +{ +} + +DrmObject::~DrmObject() +{ + +} + +void DrmObject::set_id(uint32_t id) +{ + m_id = id; +} +} |