X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FLibCECC.cpp;h=79157658df088d7231b6a0e4ad838bea45746f6c;hb=3080bcc31b1b5747906198fe91337c8cbd24ed3b;hp=ccdd5b6a339b86762b2058db713ef0d7d6f16f70;hpb=2492216a2285656be7a2b548eddd986fd8d6c2b3;p=deb_libcec.git diff --git a/src/lib/LibCECC.cpp b/src/lib/LibCECC.cpp index ccdd5b6..7915765 100644 --- a/src/lib/LibCECC.cpp +++ b/src/lib/LibCECC.cpp @@ -173,4 +173,18 @@ int cec_set_inactive_view(void) return -1; } +int cec_set_osd_string(cec_logical_address iLogicalAddress, cec_display_control duration, const char *strMessage) +{ + if (cec_parser) + return cec_parser->SetOSDString(iLogicalAddress, duration, strMessage) ? 1 : 0; + return -1; +} + +int cec_switch_monitoring(int bEnable) +{ + if (cec_parser) + return cec_parser->SwitchMonitoring(bEnable == 1) ? 1 : 0; + return -1; +} + //@}