xbmc
Classes | Public Member Functions | List of all members
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
 
bool CreateDevice (int fd)
 Create a gbm device for allocating buffers. More...
 
CGBMUtils::CGBMDeviceGetDevice () const
 Get the CGBMDevice object. More...
 

Detailed Description

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

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

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