Refactor API classes to support both, WinUsb and Legacy API
To support both, WinUsb and Legacy driver APIs we need to abstract classes
that depend on driver API details and then implement two sets of the
actual classes: one for WinUsb, and another for the Legacy drivers, so
we can choose in runtime which objects should be instantiated, depending
on what type of driver we have underneath this API.
diff --git a/host/windows/usb/api/SOURCES b/host/windows/usb/api/SOURCES
index fcca802..4b9d360 100755
--- a/host/windows/usb/api/SOURCES
+++ b/host/windows/usb/api/SOURCES
@@ -85,12 +85,16 @@
PRECOMPILED_SOURCEFILE = stdafx.cpp
# Define source files for AdbWinApi.dll
-SOURCES = adb_api.cpp \
- adb_endpoint_object.cpp \
- adb_helper_routines.cpp \
- adb_interface.cpp \
- adb_interface_enum.cpp \
- adb_io_completion.cpp \
- adb_object_handle.cpp \
- AdbWinApi.cpp \
+SOURCES = adb_api.cpp \
+ adb_endpoint_object.cpp \
+ adb_winusb_endpoint_object.cpp \
+ adb_helper_routines.cpp \
+ adb_interface.cpp \
+ adb_winusb_interface.cpp \
+ adb_legacy_interface.cpp \
+ adb_interface_enum.cpp \
+ adb_io_completion.cpp \
+ adb_winusb_io_completion.cpp \
+ adb_object_handle.cpp \
+ AdbWinApi.cpp \
AdbWinApi.rc