MythTV master
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
9
10// libdrm
11extern "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
22using DRMArray = std::array<uint32_t,4>;
23
25{
26 public:
27 MythDRMResources(int FD);
29 drmModeResPtr operator->() const;
30 drmModeResPtr operator*() const;
31
32 private:
33 drmModeResPtr m_resources { nullptr };
34};
35
36#endif
A simple wrapper around a drmModeResPtr that ensures proper cleanup.
MythAVRational operator*(MythAVRational lhs, MythAVRational rhs)
std::array< uint32_t, 4 > DRMArray
#define MUI_PUBLIC
Definition: mythuiexp.h:9