libCEC 8.1.0
C / C++ API — control CEC-capable HDMI devices
Loading...
Searching...
No Matches
cec.h File Reference
#include "cectypes.h"
#include <string>
Include dependency graph for cec.h:

Go to the source code of this file.

Classes

class  CEC::ICECAdapter
 To create a new libCEC instance, call CECInitialise() and pass the configuration as argument. More...
 

Namespaces

namespace  CEC
 

Macros

#define CECEXPORTS_H_
 

Functions

void CECDestroy (CEC::ICECAdapter *instance)
 Unload the CEC adapter library.
 
CEC::ICECAdapterCECInitialise (CEC::libcec_configuration *configuration)
 Load the CEC adapter library.
 
bool CECStartBootloader (void)
 Try to connect to the adapter and send the "start bootloader" command, without initialising libCEC and going through all checks.
 

Macro Definition Documentation

◆ CECEXPORTS_H_

#define CECEXPORTS_H_

Definition at line 35 of file cec.h.

Function Documentation

◆ CECDestroy()

void CECDestroy ( CEC::ICECAdapter instance)

Unload the CEC adapter library.

◆ CECInitialise()

CEC::ICECAdapter * CECInitialise ( CEC::libcec_configuration configuration)

Load the CEC adapter library.

Parameters
configurationThe configuration to pass to libCEC
Returns
An instance of ICECAdapter or nullptr on error.

◆ CECStartBootloader()

bool CECStartBootloader ( void  )

Try to connect to the adapter and send the "start bootloader" command, without initialising libCEC and going through all checks.

Returns
True when the command was send, false otherwise.