[COMPBATT]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 27 Jan 2014 23:11:48 +0000 (23:11 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 27 Jan 2014 23:11:48 +0000 (23:11 +0000)
* Do not include debug.h from within the main header.
* Improve the GUIDs situation.
* Remove one time inclusions from the main header and put them back where they belong.
* Improve header inclusions.
CORE-7716

svn path=/trunk/; revision=61855

reactos/drivers/bus/acpi/compbatt/CMakeLists.txt
reactos/drivers/bus/acpi/compbatt/compbatt.c
reactos/drivers/bus/acpi/compbatt/compbatt.h
reactos/drivers/bus/acpi/compbatt/comppnp.c
reactos/drivers/bus/acpi/compbatt/guid.c [new file with mode: 0644]

index b61bc21..8923c64 100644 (file)
@@ -3,6 +3,7 @@ list(APPEND SOURCE
     compbatt.c
     compmisc.c
     comppnp.c
+    guid.c
     compbatt.rc)
 
 add_library(compbatt SHARED ${SOURCE})
index 1630d2f..c22f4c7 100644 (file)
@@ -10,6 +10,8 @@
 
 #include "compbatt.h"
 
+#include <debug.h>
+
 /* GLOBALS ********************************************************************/
 
 ULONG CompBattDebug;
index 792b893..7bb4efd 100644 (file)
@@ -6,11 +6,8 @@
  * PROGRAMMERS:     ReactOS Portable Systems Group
  */
 
-#include <ntddk.h>
-#include <initguid.h>
+#include <wdm.h>
 #include <batclass.h>
-#include <debug.h>
-#include <wdmguid.h>
 
 #define COMPBATT_BATTERY_INFORMATION_PRESENT    0x04
 #define COMPBATT_TAG_ASSIGNED                   0x80
index 4e32b14..5966cda 100644 (file)
@@ -10,6 +10,8 @@
 
 #include "compbatt.h"
 
+#include <wdmguid.h>
+
 /* FUNCTIONS ******************************************************************/
 
 NTSTATUS
diff --git a/reactos/drivers/bus/acpi/compbatt/guid.c b/reactos/drivers/bus/acpi/compbatt/guid.c
new file mode 100644 (file)
index 0000000..fde0eaa
--- /dev/null
@@ -0,0 +1,8 @@
+/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
+
+#include <wdm.h>
+#include <initguid.h>
+#include <wdmguid.h>
+#include <batclass.h>
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */