| 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 | { |
nothing calls this directly
no test coverage detected