[USBHUB]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 3 Jan 2014 17:45:05 +0000 (17:45 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 3 Jan 2014 17:45:05 +0000 (17:45 +0000)
* Cleanup the main header.
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=61503

reactos/drivers/usb/usbhub/CMakeLists.txt
reactos/drivers/usb/usbhub/fdo.c
reactos/drivers/usb/usbhub/guid.c [new file with mode: 0644]
reactos/drivers/usb/usbhub/pdo.c
reactos/drivers/usb/usbhub/usbhub.h

index 6e1a3cd..029840a 100644 (file)
@@ -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})
 
index 39cf3f8..ddeb84b 100644 (file)
@@ -10,6 +10,8 @@
 
 #include "usbhub.h"
 
+#include <stdio.h>
+
 #define NDEBUG
 #include <debug.h>
 
diff --git a/reactos/drivers/usb/usbhub/guid.c b/reactos/drivers/usb/usbhub/guid.c
new file mode 100644 (file)
index 0000000..50a6036
--- /dev/null
@@ -0,0 +1,9 @@
+/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
+
+#include <wdm.h>
+#include <initguid.h>
+#include <wdmguid.h>
+#include <hubbusif.h>
+#include <usbbusif.h>
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
index c804336..8103333 100644 (file)
@@ -11,6 +11,8 @@
 
 #include "usbhub.h"
 
+#include <wdmguid.h>
+
 #define NDEBUG
 #include <debug.h>
 
index 34058db..2a93c80 100644 (file)
@@ -1,20 +1,11 @@
 #pragma once
 
-#define INITGUID
-
-#include <ntifs.h>
 #include <ntddk.h>
-#include <wdmguid.h>
 #include <hubbusif.h>
 #include <usbbusif.h>
-#include <usbioctl.h>
-#include <usb.h>
-#include <stdarg.h>
-#include <stdio.h>
 #include <usbdlib.h>
 
 //BROKEN: #include <usbprotocoldefs.h>
-#include <pseh/pseh2.h>
 
 #define USB_HUB_TAG 'hbsu'
 #define USB_MAXCHILDREN 127