1 #include <string.h>
2 #include <iostream>
3 #include <stdexcept>
4
5 #include <xf86drm.h>
6 #include <xf86drmMode.h>
7
8 #include <kms++/kms++.h>
9
10 using namespace std;
11
12 namespace kms
13 {
14
DrmObject(Card & card,uint32_t object_type)15 DrmObject::DrmObject(Card& card, uint32_t object_type)
16 :m_card(card), m_id(-1), m_object_type(object_type), m_idx(0)
17 {
18 }
19
DrmObject(Card & card,uint32_t id,uint32_t object_type,uint32_t idx)20 DrmObject::DrmObject(Card& card, uint32_t id, uint32_t object_type, uint32_t idx)
21 :m_card(card), m_id(id), m_object_type(object_type), m_idx(idx)
22 {
23 }
24
~DrmObject()25 DrmObject::~DrmObject()
26 {
27
28 }
29
set_id(uint32_t id)30 void DrmObject::set_id(uint32_t id)
31 {
32 m_id = id;
33 }
34 }
35