summaryrefslogtreecommitdiff
path: root/kms++/src/omap/omapcard.cpp
blob: e811b6d45445d8c06439edef50a63c264e2d7233 (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

#include <kms++/omap/omapcard.h>

extern "C" {
#include <omap_drmif.h>
}

using namespace std;

namespace kms
{
OmapCard::OmapCard()
	: OmapCard("/dev/dri/card0")
{

}

OmapCard::OmapCard(const string& device)
	: Card(device)
{
	m_omap_dev = omap_device_new(fd());
}

OmapCard::~OmapCard()
{
	omap_device_del(m_omap_dev);
}

}