From 19b6ce21cdf82edaa785fb182d667fdebb76d79b Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 3 Jan 2014 17:45:05 +0000 Subject: [PATCH] [USBHUB] * Cleanup the main header. * Improve the GUIDs situation. CORE-7716 svn path=/trunk/; revision=61503 --- reactos/drivers/usb/usbhub/CMakeLists.txt | 2 +- reactos/drivers/usb/usbhub/fdo.c | 2 ++ reactos/drivers/usb/usbhub/guid.c | 9 +++++++++ reactos/drivers/usb/usbhub/pdo.c | 2 ++ reactos/drivers/usb/usbhub/usbhub.h | 9 --------- 5 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 reactos/drivers/usb/usbhub/guid.c diff --git a/reactos/drivers/usb/usbhub/CMakeLists.txt b/reactos/drivers/usb/usbhub/CMakeLists.txt index 6e1a3cd9f6f..029840ae6dc 100644 --- a/reactos/drivers/usb/usbhub/CMakeLists.txt +++ b/reactos/drivers/usb/usbhub/CMakeLists.txt @@ -3,7 +3,7 @@ add_definitions(-DDEBUG_MODE) include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include) -add_library(usbhub SHARED fdo.c misc.c pdo.c hub_fdo.c usbhub.c usbhub.rc) +add_library(usbhub SHARED fdo.c misc.c pdo.c hub_fdo.c usbhub.c guid.c usbhub.rc) target_link_libraries(usbhub ${PSEH_LIB}) diff --git a/reactos/drivers/usb/usbhub/fdo.c b/reactos/drivers/usb/usbhub/fdo.c index 39cf3f883b6..ddeb84b6073 100644 --- a/reactos/drivers/usb/usbhub/fdo.c +++ b/reactos/drivers/usb/usbhub/fdo.c @@ -10,6 +10,8 @@ #include "usbhub.h" +#include + #define NDEBUG #include diff --git a/reactos/drivers/usb/usbhub/guid.c b/reactos/drivers/usb/usbhub/guid.c new file mode 100644 index 00000000000..50a60369ff3 --- /dev/null +++ b/reactos/drivers/usb/usbhub/guid.c @@ -0,0 +1,9 @@ +/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */ + +#include +#include +#include +#include +#include + +/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */ diff --git a/reactos/drivers/usb/usbhub/pdo.c b/reactos/drivers/usb/usbhub/pdo.c index c8043360e94..8103333dbc7 100644 --- a/reactos/drivers/usb/usbhub/pdo.c +++ b/reactos/drivers/usb/usbhub/pdo.c @@ -11,6 +11,8 @@ #include "usbhub.h" +#include + #define NDEBUG #include diff --git a/reactos/drivers/usb/usbhub/usbhub.h b/reactos/drivers/usb/usbhub/usbhub.h index 34058db3d29..2a93c80764f 100644 --- a/reactos/drivers/usb/usbhub/usbhub.h +++ b/reactos/drivers/usb/usbhub/usbhub.h @@ -1,20 +1,11 @@ #pragma once -#define INITGUID - -#include #include -#include #include #include -#include -#include -#include -#include #include //BROKEN: #include -#include #define USB_HUB_TAG 'hbsu' #define USB_MAXCHILDREN 127