Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::WINDOWING::GBM::CGBMUtils Class Reference

A wrapper for gbm c classes to allow OOP and RAII. More...

#include <GBMUtils.h>

Classes

class  CGBMDevice
 A wrapper for gbm_device to allow OOP and RAII. More...
 

Public Member Functions

 CGBMUtils (const CGBMUtils &)=delete
 
CGBMUtilsoperator= (const CGBMUtils &)=delete
 
 CGBMUtils ()=default
 
 ~CGBMUtils ()=default
 
bool CreateDevice (int fd)
 Create a gbm device for allocating buffers.
 
CGBMUtils::CGBMDeviceGetDevice () const
 Get the CGBMDevice object.
 

Detailed Description

A wrapper for gbm c classes to allow OOP and RAII.

Constructor & Destructor Documentation

◆ CGBMUtils() [1/2]

KODI::WINDOWING::GBM::CGBMUtils::CGBMUtils ( const CGBMUtils & )
delete

◆ CGBMUtils() [2/2]

KODI::WINDOWING::GBM::CGBMUtils::CGBMUtils ( )
default

◆ ~CGBMUtils()

KODI::WINDOWING::GBM::CGBMUtils::~CGBMUtils ( )
default

Member Function Documentation

◆ CreateDevice()

bool CGBMUtils::CreateDevice ( int fd)

Create a gbm device for allocating buffers.

Parameters
fdThe file descriptor for a backend device
Returns
true The device creation succeeded
false The device creation failed

◆ GetDevice()

CGBMUtils::CGBMDevice & KODI::WINDOWING::GBM::CGBMUtils::GetDevice ( ) const
inline

Get the CGBMDevice object.

Returns
CGBMDevice* A pointer to the CGBMDevice object

◆ operator=()

CGBMUtils & KODI::WINDOWING::GBM::CGBMUtils::operator= ( const CGBMUtils & )
delete

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