X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2FLibCECC.cpp;h=1f8416b0d573064c7811171ef75800be2307528b;hb=8d84e2c0857878d0391aee40190919cf57d689e7;hp=d062dff9357f39ccdd76b6156eee1663a3ac58f2;hpb=1969b1409b16be8b82f89e87d94daf527f9d5969;p=deb_libcec.git diff --git a/src/lib/LibCECC.cpp b/src/lib/LibCECC.cpp index d062dff..1f8416b 100644 --- a/src/lib/LibCECC.cpp +++ b/src/lib/LibCECC.cpp @@ -124,10 +124,10 @@ int cec_get_next_command(cec_command *command) return -1; } -int cec_transmit(const CEC::cec_command &data, int bWaitForAck /* = true */) +int cec_transmit(const CEC::cec_command &data) { if (cec_parser) - return cec_parser->Transmit(data, bWaitForAck == 1) ? 1 : 0; + return cec_parser->Transmit(data) ? 1 : 0; return -1; } @@ -180,4 +180,11 @@ int cec_set_osd_string(cec_logical_address iLogicalAddress, cec_display_control return -1; } +int cec_switch_monitoring(int bEnable) +{ + if (cec_parser) + return cec_parser->SwitchMonitoring(bEnable == 1) ? 1 : 0; + return -1; +} + //@}