MythTV
master
mythtv
libs
libmythui
platforms
drm
mythdrmresources.h
Go to the documentation of this file.
1
#ifndef MYTHDRMRESOURCES_H
2
#define MYTHDRMRESOURCES_H
3
4
// Qt
5
#include <QString>
6
7
// MythTV
8
#include "
libmythui/mythuiexp.h
"
9
10
// libdrm
11
extern
"C"
{
12
#include <xf86drm.h>
13
#include <xf86drmMode.h>
14
}
15
16
// Std
17
#include <map>
18
#include <array>
19
#include <vector>
20
#include <memory>
21
22
using
DRMArray
= std::array<uint32_t,4>;
23
24
class
MUI_PUBLIC
MythDRMResources
25
{
26
public
:
27
MythDRMResources
(
int
FD);
28
~
MythDRMResources
();
29
drmModeResPtr operator->()
const
;
30
drmModeResPtr operator*()
const
;
31
32
private
:
33
drmModeResPtr m_resources {
nullptr
};
34
};
35
36
#endif
MUI_PUBLIC
#define MUI_PUBLIC
Definition:
mythuiexp.h:9
MythDRMResources
A simple wrapper around a drmModeResPtr that ensures proper cleanup.
Definition:
mythdrmresources.h:24
mythuiexp.h
DRMArray
std::array< uint32_t, 4 > DRMArray
Definition:
mythdrmresources.h:22
Generated on Mon Nov 25 2024 03:16:15 for MythTV by
1.8.17