• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 #include <kms++/omap/omapcard.h>
3 
4 extern "C" {
5 #include <omap_drmif.h>
6 }
7 
8 using namespace std;
9 
10 namespace kms
11 {
OmapCard()12 OmapCard::OmapCard()
13 	: OmapCard("/dev/dri/card0")
14 {
15 
16 }
17 
OmapCard(const string & device)18 OmapCard::OmapCard(const string& device)
19 	: Card(device)
20 {
21 	m_omap_dev = omap_device_new(fd());
22 }
23 
~OmapCard()24 OmapCard::~OmapCard()
25 {
26 	omap_device_del(m_omap_dev);
27 }
28 
29 }
30