Beatmup
Beatmup::DRM::ModeResources Class Reference

#include <drm.hpp>

Public Member Functions

 ModeResources ()
 
 ModeResources (Device &device)
 
 ~ModeResources ()
 
drmModeRes * getPointer ()
 

Private Member Functions

 ModeResources (const ModeResources &)=delete
 

Private Attributes

drmModeRes * resources
 

Detailed Description

Definition at line 74 of file drm.hpp.

Constructor & Destructor Documentation

◆ ModeResources() [1/3]

Beatmup::DRM::ModeResources::ModeResources ( const ModeResources )
privatedelete

◆ ModeResources() [2/3]

Beatmup::DRM::ModeResources::ModeResources ( )
inline

Definition at line 79 of file drm.hpp.

79 : resources(nullptr) {}
drmModeRes * resources
Definition: drm.hpp:77

◆ ModeResources() [3/3]

Beatmup::DRM::ModeResources::ModeResources ( Device device)
inline

Definition at line 81 of file drm.hpp.

81  {
82  resources = drmModeGetResources(device.getHandle());
83  if (!resources)
84  throw DRMError("Cannot get DRM resources");
85  }

◆ ~ModeResources()

Beatmup::DRM::ModeResources::~ModeResources ( )
inline

Definition at line 87 of file drm.hpp.

87  {
88  if (resources)
89  drmModeFreeResources(resources);
90  }

Member Function Documentation

◆ getPointer()

drmModeRes* Beatmup::DRM::ModeResources::getPointer ( )
inline

Definition at line 92 of file drm.hpp.

92 { return resources; }

Member Data Documentation

◆ resources

drmModeRes* Beatmup::DRM::ModeResources::resources
private

Definition at line 77 of file drm.hpp.


The documentation for this class was generated from the following file: