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

Function CecAlertManaged

src/dotnetlib/CecSharpTypes.h:2153–2166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2151 }
2152
2153 int CecAlertManaged(const CEC::libcec_alert alert, const CEC::libcec_parameter &data)
2154 {
2155 try {
2156 CecParameterType newType = (CecParameterType)data.paramType;
2157 if (newType == CecParameterType::ParameterTypeString)
2158 {
2159 System::String^ newData = gcnew System::String(data.paramData ? (const char*)data.paramData : "", 0, 128);
2160 CecParameter^ newParam = gcnew CecParameter(newType, newData);
2161 return ReceiveAlert((CecAlert)alert, newParam);
2162 }
2163 }
2164 catch (...) {}
2165 return 0;
2166 }
2167
2168 int CecMenuManaged(const CEC::cec_menu_state newVal)
2169 {

Callers

nothing calls this directly

Calls 1

ReceiveAlertFunction · 0.85

Tested by

no test coverage detected