MythTV
master
mythtv
libs
libmythui
platforms
drm
mythdrmresources.cpp
Go to the documentation of this file.
1
// MythTV
2
#include "
platforms/drm/mythdrmresources.h
"
3
7
MythDRMResources::MythDRMResources
(
int
FD)
8
: m_resources(drmModeGetResources(FD))
9
{
10
}
11
12
MythDRMResources::~MythDRMResources
()
13
{
14
if
(
m_resources
)
15
drmModeFreeResources(
m_resources
);
16
}
17
18
drmModeResPtr
MythDRMResources::operator->
()
const
19
{
20
return
m_resources
;
21
}
22
23
drmModeResPtr
MythDRMResources::operator*
()
const
24
{
25
return
m_resources
;
26
}
27
28
mythdrmresources.h
MythDRMResources::operator*
drmModeResPtr operator*() const
Definition:
mythdrmresources.cpp:23
MythDRMResources::m_resources
drmModeResPtr m_resources
Definition:
mythdrmresources.h:33
MythDRMResources::operator->
drmModeResPtr operator->() const
Definition:
mythdrmresources.cpp:18
MythDRMResources::MythDRMResources
MythDRMResources(int FD)
Definition:
mythdrmresources.cpp:7
MythDRMResources::~MythDRMResources
~MythDRMResources()
Definition:
mythdrmresources.cpp:12
Generated on Tue Jan 7 2025 03:18:36 for MythTV by
1.8.17