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

Function CecMenuCB

src/dotnetlib/CecSharpTypesUnmanaged.h:173–179  ·  view source on GitHub ↗

Called by libCEC to send back a menu state change to the application Pointer to the callback struct The new menu state 1 when handled, 0 otherwise

Source from the content-addressed store, hash-verified

171 /// <param name="newVal">The new menu state</param>
172 /// <return>1 when handled, 0 otherwise</return>
173 static int CecMenuCB(void* cbParam, const CEC::cec_menu_state newVal)
174 {
175 struct UnmanagedCecCallbacks* cb = static_cast<struct UnmanagedCecCallbacks*>(cbParam);
176 if (!!cb && !!cb->menuCB)
177 return cb->menuCB(newVal);
178 return 0;
179 }
180
181 /// <summary>
182 /// Called by libCEC to notify the application that the source that is handled by libCEC was (de)activated

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected