X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FAdapterDetection.cpp;fp=src%2Flib%2FCECDetect.cpp;h=747ea16d24565f882e1890a9cad50c07326007f5;hb=2abe74ebbd27d8c30060b3eebb363e10d3fbfd80;hp=a8aa7e1cd531c29adbfb94572f8fabfdeaf06395;hpb=828682d35c298ff062422521689258c363ea3579;p=deb_libcec.git diff --git a/src/lib/CECDetect.cpp b/src/lib/AdapterDetection.cpp similarity index 97% rename from src/lib/CECDetect.cpp rename to src/lib/AdapterDetection.cpp index a8aa7e1..747ea16 100644 --- a/src/lib/CECDetect.cpp +++ b/src/lib/AdapterDetection.cpp @@ -30,10 +30,9 @@ * http://www.pulse-eight.net/ */ -#include "CECDetect.h" +#include "AdapterDetection.h" #include "libPlatform/os-dependent.h" #include "util/StdString.h" -#include #if !defined(__WINDOWS__) #include @@ -101,7 +100,7 @@ bool FindComPort(CStdString &strLocation) } #endif -int CCECDetect::FindDevices(vector &deviceList, const char *strDevicePath /* = NULL */) +int CAdapterDetection::FindAdapters(vector &deviceList, const char *strDevicePath /* = NULL */) { int iFound(0); @@ -146,7 +145,7 @@ int CCECDetect::FindDevices(vector &deviceList, const char *strDevic CStdString strComm(strPath); if (FindComPort(strComm)) { - cec_device foundDev; + cec_adapter foundDev; foundDev.path = strPath; foundDev.comm = strComm; deviceList.push_back(foundDev); @@ -244,7 +243,7 @@ int CCECDetect::FindDevices(vector &deviceList, const char *strDevic if (_tcslen(strPortName) > 3 && _tcsnicmp(strPortName, _T("COM"), 3) == 0 && _ttoi(&(strPortName[3])) > 0) { - cec_device foundDev; + cec_adapter foundDev; foundDev.path = devicedetailData->DevicePath; foundDev.comm = strPortName; deviceList.push_back(foundDev);