cec: display a warning message if libCEC was not compiled with adapter detection...
[deb_libcec.git] / src / lib / adapter / USBCECAdapterDetection.cpp
index 8775b4e55bbb2444c8b9a841e3e57f0e3748773f..78b2760a3b43f369759debd7ca136416ef25d280 100644 (file)
@@ -115,6 +115,15 @@ bool FindComPort(CStdString &strLocation)
 }
 #endif
 
+bool CUSBCECAdapterDetection::CanAutodetect(void)
+{
+#if defined(__APPLE__) || defined(HAVE_LIBUDEV) || defined(__WINDOWS__) || defined(__FreeBSD__)
+  return true;
+#else
+  return false;
+#endif
+}
+
 uint8_t CUSBCECAdapterDetection::FindAdapters(cec_adapter *deviceList, uint8_t iBufSize, const char *strDevicePath /* = NULL */)
 {
   uint8_t iFound(0);