[KS]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 2 Jan 2014 11:34:12 +0000 (11:34 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 2 Jan 2014 11:34:12 +0000 (11:34 +0000)
* Do not include debug.h into the main header.
* Remove one time inclusions from the main header and put them back where they belong.
* Move some inclusions to the main header.
* Remove inclusions and definitions that already exist in the main header.
CORE-7716

svn path=/trunk/; revision=61489

26 files changed:
reactos/drivers/ksfilter/ks/allocators.c
reactos/drivers/ksfilter/ks/api.c
reactos/drivers/ksfilter/ks/bag.c
reactos/drivers/ksfilter/ks/clocks.c
reactos/drivers/ksfilter/ks/connectivity.c
reactos/drivers/ksfilter/ks/device.c
reactos/drivers/ksfilter/ks/deviceinterface.c
reactos/drivers/ksfilter/ks/driver.c
reactos/drivers/ksfilter/ks/event.c
reactos/drivers/ksfilter/ks/filter.c
reactos/drivers/ksfilter/ks/filterfactory.c
reactos/drivers/ksfilter/ks/image.c
reactos/drivers/ksfilter/ks/irp.c
reactos/drivers/ksfilter/ks/kcom.c
reactos/drivers/ksfilter/ks/ksfunc.h
reactos/drivers/ksfilter/ks/ksiface.h
reactos/drivers/ksfilter/ks/kstypes.h
reactos/drivers/ksfilter/ks/methods.c
reactos/drivers/ksfilter/ks/misc.c
reactos/drivers/ksfilter/ks/pin.c
reactos/drivers/ksfilter/ks/priv.h
reactos/drivers/ksfilter/ks/property.c
reactos/drivers/ksfilter/ks/swenum.c
reactos/drivers/ksfilter/ks/topology.c
reactos/drivers/ksfilter/ks/unknown.c
reactos/drivers/ksfilter/ks/worker.c

index b3fbbbe..5c7457f 100644 (file)
@@ -6,9 +6,11 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 typedef enum
 {
     ALLOCATOR_NPAGED_LOOKASIDE,
index 5b50fcf..504b605 100644 (file)
@@ -6,9 +6,11 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 const GUID GUID_NULL              = {0x00000000L, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};
 const GUID KSMEDIUMSETID_Standard = {0x4747B320L, 0x62CE, 0x11CF, {0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00}};
 
index 87f7a2b..ec8beb0 100644 (file)
@@ -6,9 +6,11 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 typedef struct
 {
     LIST_ENTRY Entry;
index 2e3f03f..15a567d 100644 (file)
@@ -6,9 +6,11 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 typedef struct
 {
     LONGLONG Time;
index 7cd0fab..1d99526 100644 (file)
@@ -6,9 +6,11 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 KSPIN_INTERFACE StandardPinInterface = 
 {
     {STATIC_KSINTERFACESETID_Standard},
index c93b0b9..7b974dd 100644 (file)
@@ -6,9 +6,11 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 NTSTATUS
 NTAPI
 IKsDevice_fnQueryInterface(
index c1fdff8..4c98193 100644 (file)
@@ -1,5 +1,8 @@
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 NTSTATUS
 KspSetDeviceInterfacesState(
     IN PLIST_ENTRY ListHead,
index c6ef2c9..ed43717 100644 (file)
@@ -8,6 +8,9 @@
 
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 /*
     @implemented
 */
index 460f995..3671484 100644 (file)
@@ -8,6 +8,9 @@
 
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 BOOLEAN
 KspSynchronizedEventRoutine(
     IN KSEVENTS_LOCKTYPE EventsFlags,
index 384a00c..30ef76c 100644 (file)
@@ -6,9 +6,11 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 typedef struct
 {
     KSBASIC_HEADER Header;
index 51c9a65..c2b4e25 100644 (file)
@@ -6,9 +6,11 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 typedef struct
 {
     KSBASIC_HEADER Header;
index 55828b8..3cfa72f 100644 (file)
@@ -8,6 +8,12 @@
 
 #include "priv.h"
 
+#include <ntimage.h>
+#include <ndk/ldrfuncs.h>
+
+#define NDEBUG
+#include <debug.h>
+
 /*
     @implemented
 */
index 0c493ee..4ec985f 100644 (file)
@@ -6,9 +6,11 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 /*
     @implemented
 */
index 8921caf..be38e1a 100644 (file)
@@ -9,6 +9,9 @@
 
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 const GUID IID_IUnknown = {0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x46}};
 
 /* http://msdn2.microsoft.com/en-us/library/ms809781.aspx */
index fc039f1..83d57b2 100644 (file)
@@ -1,8 +1,5 @@
 #pragma once
 
-#include "ksiface.h"
-#include "kstypes.h"
-
 #define TAG_KSDEVICE 'DESK'
 #define TAG_KSOBJECT_TAG 'HOSK'
 
index f5e3888..a7c3f01 100644 (file)
@@ -1,8 +1,5 @@
 #pragma once
 
-#include <ntddk.h>
-#include <ks.h>
-
 #if !defined(DEFINE_ABSTRACT_UNKNOWN)
 
 #define DEFINE_ABSTRACT_UNKNOWN()                               \
index 0be5956..cd4aaca 100644 (file)
@@ -1,8 +1,5 @@
 #pragma once
 
-#include <ntddk.h>
-#include <ks.h>
-
 typedef struct
 {
     KoCreateObjectHandler CreateObjectHandler;
index 6263ce0..9636978 100644 (file)
@@ -8,6 +8,9 @@
 
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 NTSTATUS
 FindMethodHandler(
     IN PIO_STATUS_BLOCK IoStatus,
index 9ba4b26..fd86726 100644 (file)
@@ -6,9 +6,11 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 VOID
 CompleteRequest(
     PIRP Irp,
index 883f098..4a57476 100644 (file)
@@ -6,9 +6,13 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#include <bdamedia.h>
+
+#define NDEBUG
+#include <debug.h>
+
 typedef struct _KSISTREAM_POINTER
 {
     PFNKSSTREAMPOINTER Callback;
index eec30e2..43d859f 100644 (file)
@@ -1,21 +1,13 @@
 #define _KSDDK_
 
-#include <stdio.h>
-
 #include <ntifs.h>
-#define NDEBUG
-//#define YDEBUG
-#include <debug.h>
 #include <portcls.h>
 #include <kcom.h>
 #include <pseh/pseh2.h>
 
-#include <ntimage.h>
-#include <ndk/ldrfuncs.h>
-
+#include "ksiface.h"
+#include "kstypes.h"
 #include "ksfunc.h"
-#include "bdamedia.h"
-#include <swenum.h>
 
 #define TAG_DEVICE_HEADER 'KSDH'
 #define REG_PINFLAG_B_MANY 0x4 /* strmif.h */
index 757b393..b6b1911 100644 (file)
@@ -8,6 +8,9 @@
 
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 const GUID KSPROPTYPESETID_General = {0x97E99BA0L, 0xBDEA, 0x11CF, {0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00}};
 
 NTSTATUS
index f389f2d..d65fa1e 100644 (file)
@@ -6,9 +6,14 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#include <stdio.h>
+#include <swenum.h>
+
+#define NDEBUG
+#include <debug.h>
+
 LONG KsDeviceCount = 0;
 
 typedef NTSTATUS (NTAPI *PKSP_BUS_ENUM_CALLBACK)(
index 49ae659..7a9b447 100644 (file)
@@ -6,9 +6,10 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
 
 NTSTATUS
 NTAPI
index d33ffdb..6af2adf 100644 (file)
@@ -7,9 +7,11 @@
  *                  KJK::Hyperion
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 #ifdef _X86_
 #define KS_DECL_CXX(RET_) extern RET_ __fastcall
 #define KS_THIS(CLASS_)   CLASS_ * This, void * dummy_
index 639f9cd..f544d63 100644 (file)
@@ -6,9 +6,11 @@
  * PROGRAMMER:      Johannes Anderwald
  */
 
-
 #include "priv.h"
 
+#define NDEBUG
+#include <debug.h>
+
 /* ===============================================================
     Worker Management Functions
 */