]> xenbits.xensource.com Git - pvdrivers/win/xeniface.git/commit
Refactor XenAgent
authorOwen Smith <owen.smith@citrix.com>
Mon, 5 Jul 2021 12:59:50 +0000 (13:59 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 12 Jul 2021 18:56:11 +0000 (19:56 +0100)
commit2676e07af5e81043cb5334bc0e8cb150807ab1de
tree988cc781678b575344ac3ddee3464c1e00a65f59
parentfd535fdb84369fb3d66c303c11e7e2fe2199078e
Refactor XenAgent

- Merge IDeviceCreator interface into CDeviceList base class
- Add CXenIfaceDeviceList and CConvDeviceList, derived from CDeviceList
- Moves IFace functionality to CXenIfaceDeviceList
- Moves Conv device functionality to CConvDeviceList
- Seperate RegisterDeviceNotification from SetupApi enumeration, so that static
  devices do not need to hold the handle open (i.e. Conv device)
- CConvDeviceList only opens the handle when neccessary, as the MS driver for
  the ACPI device only allows 1 open handle at a time.

Signed-off-by: Owen Smith <owen.smith@citrix.com>
src/xenagent/convdevice.cpp
src/xenagent/convdevice.h
src/xenagent/devicelist.cpp
src/xenagent/devicelist.h
src/xenagent/service.cpp
src/xenagent/service.h
src/xenagent/xenifacedevice.cpp
src/xenagent/xenifacedevice.h