xbmc
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KODI::WINDOWING::GBM::CDRMObject Class Reference
Inheritance diagram for KODI::WINDOWING::GBM::CDRMObject:
Inheritance graph
[legend]
Collaboration diagram for KODI::WINDOWING::GBM::CDRMObject:
Collaboration graph
[legend]

Classes

struct  DrmModeObjectPropertiesDeleter
 
struct  DrmModePropertyResDeleter
 

Public Member Functions

 CDRMObject (const CDRMObject &)=delete
 
CDRMObjectoperator= (const CDRMObject &)=delete
 
std::string GetTypeName () const
 
std::string GetPropertyName (uint32_t propertyId) const
 
uint32_t GetId () const
 
uint32_t GetPropertyId (const std::string &name) const
 
std::tuple< bool, uint64_t > GetPropertyValue (const std::string &name, const std::string &valueName) const
 
bool SetProperty (const std::string &name, uint64_t value)
 
bool SupportsProperty (const std::string &name)
 

Protected Member Functions

 CDRMObject (int fd)
 
bool GetProperties (uint32_t id, uint32_t type)
 

Protected Attributes

std::unique_ptr< drmModeObjectProperties, DrmModeObjectPropertiesDeleterm_props
 
std::vector< std::unique_ptr< drmModePropertyRes, DrmModePropertyResDeleter > > m_propsInfo
 
int m_fd {-1}
 

Member Function Documentation

◆ GetPropertyValue()

std::tuple< bool, uint64_t > CDRMObject::GetPropertyValue ( const std::string &  name,
const std::string &  valueName 
) const
Todo:
: improve with c++17

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