Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
No Matches
CFDEventMonitor Class Reference

#include <FDEventMonitor.h>

Inheritance diagram for CFDEventMonitor:
IPlatformService CThread


struct  MonitoredFD

Public Types

typedef void(* EventCallback) (int id, int fd, short revents, void *data)

Public Member Functions

 CFDEventMonitor ()
 ~CFDEventMonitor () override
void AddFD (const MonitoredFD &monitoredFD, int &id)
void AddFDs (const std::vector< MonitoredFD > &monitoredFDs, std::vector< int > &ids)
void RemoveFD (int id)
void RemoveFDs (const std::vector< int > &ids)
- Public Member Functions inherited from IPlatformService
virtual ~IPlatformService ()=default

Protected Member Functions

void Process () override

Detailed Description

Monitor a file descriptor with callback on poll() events.

Member Typedef Documentation

◆ EventCallback

typedef void(* CFDEventMonitor::EventCallback) (int id, int fd, short revents, void *data)

Constructor & Destructor Documentation

◆ CFDEventMonitor()

CFDEventMonitor::CFDEventMonitor ( )

◆ ~CFDEventMonitor()

CFDEventMonitor::~CFDEventMonitor ( )

Member Function Documentation

◆ AddFD()

void CFDEventMonitor::AddFD ( const MonitoredFD & monitoredFD,
int & id )

◆ AddFDs()

void CFDEventMonitor::AddFDs ( const std::vector< MonitoredFD > & monitoredFDs,
std::vector< int > & ids )

◆ Process()

void CFDEventMonitor::Process ( void )

Reimplemented from CThread.

◆ RemoveFD()

void CFDEventMonitor::RemoveFD ( int id)

◆ RemoveFDs()

void CFDEventMonitor::RemoveFDs ( const std::vector< int > & ids)

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