Ream v0.1.0-1
C++ graphics library for Linux
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
RDRMFdHandle Struct Reference

A DRM device file descriptor paired with arbitrary user data. More...

#include <RDRMPlatformHandle.h>

Public Member Functions

bool operator== (const RDRMFdHandle &other) const
 Compares two handles for equality based on their file descriptor.
 

Public Attributes

int fd
 The DRM device file descriptor.
 
void * userData
 Opaque user-provided data associated with the file descriptor.
 

Detailed Description

A DRM device file descriptor paired with arbitrary user data.

Used by RDRMPlatformHandle to identify the set of DRM devices a client can access. Equality and hashing are based solely on the file descriptor (fd), so userData does not participate in set membership.

Member Function Documentation

◆ operator==()

bool operator== ( const RDRMFdHandle other) const
inline

Compares two handles for equality based on their file descriptor.

Parameters
otherThe handle to compare against.
Returns
true if both handles have the same file descriptor.

Member Data Documentation

◆ fd

int fd

The DRM device file descriptor.

◆ userData

void* userData

Opaque user-provided data associated with the file descriptor.