Author: akhaldi
Date: Wed Jul 27 19:37:34 2011
New Revision: 52939
URL:
http://svn.reactos.org/svn/reactos?rev=52939&view=rev
Log:
[CLASSPNP]
* Use classp.h as a PCH.
Modified:
trunk/reactos/drivers/storage/classpnp/CMakeLists.txt
trunk/reactos/drivers/storage/classpnp/classp.h
trunk/reactos/drivers/storage/classpnp/classpnp.rbuild
trunk/reactos/drivers/storage/classpnp/classwmi.c
trunk/reactos/drivers/storage/classpnp/dictlib.c
trunk/reactos/drivers/storage/classpnp/power.c
Modified: trunk/reactos/drivers/storage/classpnp/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/C…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/CMakeLists.txt [iso-8859-1] Wed Jul 27 19:37:34
2011
@@ -38,9 +38,8 @@
${CMAKE_CURRENT_BINARY_DIR}/class.def)
add_library(classpnp SHARED ${SOURCE})
+add_pch(classpnp classp.h)
target_link_libraries(classpnp ${PSEH_LIB} libcntpr)
-
set_module_type(classpnp kernelmodedriver)
add_importlibs(classpnp hal ntoskrnl)
-
add_cd_file(TARGET classpnp DESTINATION reactos/system32/drivers NO_CAB FOR all)
Modified: trunk/reactos/drivers/storage/classpnp/classp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/c…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/classp.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/classp.h [iso-8859-1] Wed Jul 27 19:37:34 2011
@@ -25,7 +25,6 @@
--*/
-
#include <stddef.h>
#include <stdarg.h>
#include <ntddk.h>
@@ -41,6 +40,8 @@
#include <mountdev.h>
#include <ioevent.h>
#include <pseh/pseh2.h>
+
+#include "wmistr.h"
extern CLASSPNP_SCAN_FOR_SPECIAL_INFO ClassBadItems[];
Modified: trunk/reactos/drivers/storage/classpnp/classpnp.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/c…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/classpnp.rbuild [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/classpnp.rbuild [iso-8859-1] Wed Jul 27
19:37:34 2011
@@ -34,4 +34,5 @@
<file>obsolete.c</file>
<file>debug.c</file>
<file>class.rc</file>
+ <pch>classp.h</pch>
</module>
Modified: trunk/reactos/drivers/storage/classpnp/classwmi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/c…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/classwmi.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/classwmi.c [iso-8859-1] Wed Jul 27 19:37:34
2011
@@ -21,17 +21,7 @@
--*/
-#include "stddef.h"
-#include "ntddk.h"
-#include "scsi.h"
-
-#include "classpnp.h"
-
-#include "mountdev.h"
-
-#include <stdarg.h>
-
-#include "wmistr.h"
+#include "classp.h"
NTSTATUS
ClassSystemControl(
Modified: trunk/reactos/drivers/storage/classpnp/dictlib.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/d…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/dictlib.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/dictlib.c [iso-8859-1] Wed Jul 27 19:37:34
2011
@@ -23,8 +23,7 @@
--*/
-#include <ntddk.h>
-#include <classpnp.h>
+#include "classp.h"
#define DICTIONARY_SIGNATURE 'dsig'
Modified: trunk/reactos/drivers/storage/classpnp/power.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/classpnp/p…
==============================================================================
--- trunk/reactos/drivers/storage/classpnp/power.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/classpnp/power.c [iso-8859-1] Wed Jul 27 19:37:34 2011
@@ -21,12 +21,7 @@
--*/
-#include "stddef.h"
-#include "ntddk.h"
-#include "scsi.h"
#include "classp.h"
-
-#include <stdarg.h>
#define CLASS_TAG_POWER 'WLcS'