X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FLibCECC.cpp;h=29b08fd98ce429570f57c3e75b69ca69c3c36763;hb=5347b94bbd7455453754fd79b6aaa64aa368ce59;hp=b87e06c611f28946a58331a26d9d73e6e25e0d6b;hpb=3efda01ac7b070e09012a5725112eb44c17001b4;p=deb_libcec.git diff --git a/src/lib/LibCECC.cpp b/src/lib/LibCECC.cpp index b87e06c..29b08fd 100644 --- a/src/lib/LibCECC.cpp +++ b/src/lib/LibCECC.cpp @@ -416,4 +416,9 @@ void cec_rescan_devices(void) cec_parser->RescanActiveDevices(); } +int cec_is_libcec_active_source(void) +{ + return cec_parser ? (cec_parser->IsLibCECActiveSource() ? 1 : 0) : -1; +} + //@}