summaryrefslogtreecommitdiff
path: root/kms++/src/drmobject.cpp
blob: f01c8af77f43b95b102da7d1c9f583dfc601178e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <cstring>
#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;
}
} // namespace kms