UsbDk: place all system includes into stdafx.h

This makes include policy more strict and ensures
all system includes properly wrapped with extern "C"

Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
Dmitry Fleytman 2014-06-09 09:58:50 +03:00
parent 9d699219b8
commit d5d51dfd47
27 changed files with 22 additions and 36 deletions

View file

@ -23,8 +23,6 @@
#pragma once
#include <ntddk.h>
template <POOL_TYPE PoolType, ULONG Tag>
class CAllocatable
{

View file

@ -21,6 +21,7 @@
*
**********************************************************************/
#include "stdafx.h"
#include "ControlDevice.h"
#include "trace.h"
#include "DeviceAccess.h"

View file

@ -23,7 +23,6 @@
#pragma once
#include "stdafx.h"
#include "WdfDevice.h"
#include "Alloc.h"
#include "UsbDkUtil.h"

View file

@ -21,13 +21,14 @@
*
**********************************************************************/
#include "stdafx.h"
#include "DeviceAccess.h"
#include "trace.h"
#include "Irp.h"
#include "RegText.h"
#include "DeviceAccess.tmh"
#include "UsbIOCtl.h"
#include "stdafx.h"
#if !TARGET_OS_WIN_XP
bool CWdmUSBD::Create()

View file

@ -23,14 +23,6 @@
#pragma once
#include "stdafx.h"
#include "usb.h"
extern "C"
{
#include "usbdlib.h"
}
#include "Alloc.h"
#include "RegText.h"
#include "MemoryBuffer.h"

View file

@ -21,6 +21,7 @@
*
**********************************************************************/
#include "stdafx.h"
#include "driver.h"
#include "ControlDevice.h"
#include "FilterDevice.h"

View file

@ -21,13 +21,6 @@
*
**********************************************************************/
extern "C"
{
#include "stdafx.h"
#include <usb.h>
#include <wdfusb.h>
}
#include "trace.h"
//

View file

@ -21,6 +21,7 @@
*
**********************************************************************/
#include "stdafx.h"
#include "FilterDevice.h"
#include "trace.h"
#include "FilterDevice.tmh"

View file

@ -23,7 +23,6 @@
#pragma once
#include "stdafx.h"
#include "WdfDevice.h"
#include "Alloc.h"
#include "RegText.h"

View file

@ -21,6 +21,7 @@
*
**********************************************************************/
#include "stdafx.h"
#include "FilterStrategy.h"
#include "trace.h"
#include "FilterStrategy.tmh"

View file

@ -23,7 +23,6 @@
#pragma once
#include "stdafx.h"
#include "Alloc.h"
#include "UsbDkUtil.h"

View file

@ -21,6 +21,7 @@
*
**********************************************************************/
#include "stdafx.h"
#include "Irp.h"
CIrp::~CIrp()

View file

@ -23,7 +23,6 @@
#pragma once
#include "ntddk.h"
#include "Alloc.h"
#include "UsbDkUtil.h"

View file

@ -21,6 +21,7 @@
*
**********************************************************************/
#include "stdafx.h"
#include "MemoryBuffer.h"
CMemoryBuffer* CMemoryBuffer::GetMemoryBuffer(WDFMEMORY MemObj)

View file

@ -23,7 +23,6 @@
#pragma once
#include "stdafx.h"
#include "Alloc.h"
class CMemoryBuffer : public CAllocatable<NonPagedPool, 'BMHR'>

View file

@ -21,6 +21,7 @@
*
**********************************************************************/
#include "stdafx.h"
#include "RedirectorStrategy.h"
#include "trace.h"
#include "RedirectorStrategy.tmh"
@ -28,7 +29,6 @@
#include "UsbDkNames.h"
#include "ControlDevice.h"
#include "WdfRequest.h"
#include "Public.h"
//--------------------------------------------------------------------------------------------------
NTSTATUS CUsbDkRedirectorStrategy::MakeAvailable()

View file

@ -21,6 +21,7 @@
*
**********************************************************************/
#include "stdafx.h"
#include "Trace.h"
#include "RegText.h"
#include "regtext.tmh"

View file

@ -23,9 +23,6 @@
#pragma once
#include <ntddk.h>
#include <Ntstrsafe.h>
#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
class CWdmSpinLock

View file

@ -21,6 +21,7 @@
*
**********************************************************************/
#include "stdafx.h"
#include "UsbTarget.h"
#include "Trace.h"
#include "UsbTarget.tmh"

View file

@ -23,8 +23,6 @@
#pragma once
#include "stdafx.h"
#include "wdfusb.h"
#include "Alloc.h"
class CWdfUsbInterface;

View file

@ -21,6 +21,7 @@
*
**********************************************************************/
#include "stdafx.h"
#include "WdfDevice.h"
#include "trace.h"
#include "WdfDevice.tmh"

View file

@ -23,7 +23,6 @@
#pragma once
#include "stdafx.h"
#include "Alloc.h"
class CPreAllocatedDeviceInit : public CAllocatable<PagedPool, 'IDHR'>

View file

@ -20,8 +20,7 @@
* limitations under the License.
*
**********************************************************************/
#include <ntddk.h>
#include "stdafx.h"
#include "WdfRequest.h"
NTSTATUS CWdfRequest::SendAndForget(WDFIOTARGET Target)

View file

@ -23,8 +23,6 @@
#pragma once
#include "stdafx.h"
class CWdfRequest
{
public:

View file

@ -21,6 +21,7 @@
*
**********************************************************************/
#include "stdafx.h"
#include "WdfWorkitem.h"
CWdfWorkitem::~CWdfWorkitem()

View file

@ -23,8 +23,6 @@
#pragma once
#include "stdafx.h"
#include "Alloc.h"
class CWdfWorkitem : public CAllocatable<NonPagedPool, 'IWHR'>

View file

@ -9,6 +9,8 @@
#pragma warning(push,3)
#endif
extern "C"
{
#include <ntddk.h>
#include <wdf.h>
#include <usb.h>
@ -17,6 +19,12 @@
#include <UsbSpec.h>
#endif
#include <wdfusb.h>
#include <usbdlib.h>
#include <ntstrsafe.h>
#include <usbioctl.h>
}
#if TARGET_OS_WIN_XP
#pragma warning(pop)
#endif