Add OmapCard and OmapFramebuffer
[android/external-libkmsxx.git] / kms++ / src / omap / omapcard.cpp
2 #include <kms++/omap/omapcard.h>
4 extern "C" {
5 #include <omap_drmif.h>
6 }
8 using namespace std;
10 namespace kms
11 {
12 OmapCard::OmapCard()
13         : OmapCard("/dev/dri/card0")
14 {
16 }
18 OmapCard::OmapCard(const string& device)
19         : Card(device)
20 {
21         m_omap_dev = omap_device_new(fd());
22 }
24 OmapCard::~OmapCard()
25 {
26         omap_device_del(m_omap_dev);
27 }
29 }