[CMBATT]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 27 Jan 2014 22:55:47 +0000 (22:55 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 27 Jan 2014 22:55:47 +0000 (22:55 +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=61854

reactos/drivers/bus/acpi/cmbatt/CMakeLists.txt
reactos/drivers/bus/acpi/cmbatt/cmbatt.c
reactos/drivers/bus/acpi/cmbatt/cmbatt.h
reactos/drivers/bus/acpi/cmbatt/cmbwmi.c
reactos/drivers/bus/acpi/cmbatt/cmexec.c
reactos/drivers/bus/acpi/cmbatt/guid.c [new file with mode: 0644]

index 7e7ddc5..6354a66 100644 (file)
@@ -4,6 +4,7 @@ list(APPEND SOURCE
     cmexec.c
     cmbpnp.c
     cmbwmi.c
+    guid.c
     cmbatt.rc)
 
 add_library(cmbatt SHARED ${SOURCE})
index 2e6f9bf..a9bddd4 100644 (file)
@@ -10,6 +10,8 @@
 
 #include "cmbatt.h"
 
+#include <debug.h>
+
 /* GLOBALS ********************************************************************/
 
 ULONG CmBattDebug;
index 8f952d2..1d17279 100644 (file)
@@ -6,13 +6,10 @@
  * PROGRAMMERS:     ReactOS Portable Systems Group
  */
 
-#include <ntddk.h>
-#include <initguid.h>
+#include <wdm.h>
 #include <batclass.h>
-#include <acpiioct.h>
 #include <wmilib.h>
 #include <wdmguid.h>
-#include <debug.h>
 
 #define IOCTL_BATTERY_QUERY_UNIQUE_ID  \
     CTL_CODE(FILE_DEVICE_BATTERY, 0x101, METHOD_BUFFERED, FILE_READ_ACCESS) // 0x294404 
index 1bb01b6..2a5a73f 100644 (file)
@@ -10,6 +10,8 @@
 
 #include "cmbatt.h"
 
+#include <debug.h>
+
 /* GLOBALS ********************************************************************/
 
 WMIGUIDREGINFO CmBattWmiGuidList[1] =
index beb646a..f808b5d 100644 (file)
@@ -10,6 +10,9 @@
 
 #include "cmbatt.h"
 
+#include <acpiioct.h>
+#include <debug.h>
+
 /* FUNCTIONS ******************************************************************/
 
 NTSTATUS
diff --git a/reactos/drivers/bus/acpi/cmbatt/guid.c b/reactos/drivers/bus/acpi/cmbatt/guid.c
new file mode 100644 (file)
index 0000000..3f4468b
--- /dev/null
@@ -0,0 +1,6 @@
+/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
+
+#include <initguid.h>
+#include <wdmguid.h>
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */