| 272 | } |
| 273 | |
| 274 | void execute(vuart_av_thread &vuart, const void *pkt_buf) override { |
| 275 | const auto pkt = static_cast<const ps3av_pkt_enable_event *>(pkt_buf); |
| 276 | |
| 277 | if (vuart.get_reply_buf_free_size() < sizeof(ps3av_pkt_reply_hdr)) { |
| 278 | vuart.write_resp(pkt->hdr.cid, PS3AV_STATUS_BUFFER_OVERFLOW); |
| 279 | return; |
| 280 | } |
| 281 | |
| 282 | vuart.hdmi_events_bitmask |= pkt->event_bit; |
| 283 | |
| 284 | vuart.write_resp(pkt->hdr.cid, PS3AV_STATUS_SUCCESS); |
| 285 | } |
| 286 | }; |
| 287 | |
| 288 | struct av_disable_event_cmd : public ps3av_cmd { |
nothing calls this directly
no test coverage detected