MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / CecCommandHandlerCB

Function CecCommandHandlerCB

src/dotnetlib/CecSharpTypesUnmanaged.h:200–206  ·  view source on GitHub ↗

Called by libCEC to have the client handle the command and prevent further process by libCEC Pointer to the callback struct The raw CEC data 1 when handled by the client, 0 otherwise

Source from the content-addressed store, hash-verified

198 /// <param name="command">The raw CEC data</param>
199 /// <return>1 when handled by the client, 0 otherwise</return>
200 static int CecCommandHandlerCB(void* cbParam, const CEC::cec_command* command)
201 {
202 struct UnmanagedCecCallbacks* cb = static_cast<struct UnmanagedCecCallbacks*>(cbParam);
203 if (!!cb && !!cb->commandHandlerCB)
204 return cb->commandHandlerCB(command);
205 return 0;
206 }
207
208 /// <summary>
209 /// Assign the callback methods in the g_cecCallbacks struct and return a pointer to it

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected