Alexander Morozov amorozov@etersoft.ru writes:
From ed6e12ca39e194829ad8d6be4fbd91d9f276d435 Mon Sep 17 00:00:00 2001 From: Alexander Morozov amorozov@etersoft.ru Date: Fri, 3 Oct 2008 17:57:00 +0400 Subject: [PATCH] Add support of WDM drivers for USB devices.
configure.ac | 14 ++ dlls/wineusbhub/Makefile.in | 15 ++ dlls/wineusbhub/wineusbhub.c | 291 +++++++++++++++++++++++++++++++++++++++ dlls/wineusbhub/wineusbhub.spec | 7 + programs/winedevice/Makefile.in | 2 +- programs/winedevice/device.c | 79 +++++++++++- programs/wineusb/Makefile.in | 15 ++ programs/wineusb/main.c | 224 ++++++++++++++++++++++++++++++ server/device.c | 111 +++++++++++++++ server/protocol.def | 16 ++ tools/wine.inf.in | 10 ++ 11 files changed, 782 insertions(+), 2 deletions(-)
Your design needs a lot more thought. You can't add all these Wine-specific modules, or make winedevice special-case usb devices, or poll the server for the add_device request like you do. All this needs to be properly integrated in the existing infrastructure.