mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[FS_REC]
* Remove one time inclusions from the main header and put them back where they belong. CORE-7716 svn path=/trunk/; revision=62005
This commit is contained in:
parent
0be53763b5
commit
65006cbdc6
8 changed files with 21 additions and 39 deletions
|
@ -10,6 +10,10 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "fs_rec.h"
|
||||
|
||||
#include <ntdddisk.h>
|
||||
#include <ntddcdrm.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
@ -221,4 +225,3 @@ FsRecReadBlock(IN PDEVICE_OBJECT DeviceObject,
|
|||
/* All went well */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "fs_rec.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "fs_rec.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "fs_rec.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "fs_rec.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
@ -7,36 +7,23 @@
|
|||
* Eric Kohl
|
||||
*/
|
||||
|
||||
//
|
||||
// IFS Headers
|
||||
//
|
||||
#include <ntifs.h>
|
||||
#include <ntdddisk.h>
|
||||
#include <ntddcdrm.h>
|
||||
|
||||
//
|
||||
// Tag for memory allocations
|
||||
//
|
||||
/* Tag for memory allocations */
|
||||
#define FSREC_TAG 'cRsF'
|
||||
|
||||
//
|
||||
// UDFS Offsets
|
||||
//
|
||||
/* UDFS Offsets */
|
||||
#define UDFS_VRS_START_OFFSET 32768
|
||||
#define UDFS_AVDP_SECTOR 256
|
||||
|
||||
//
|
||||
// Non-standard rounding macros
|
||||
//
|
||||
/* Non-standard rounding macros */
|
||||
#define ROUND_UP(n, align) \
|
||||
ROUND_DOWN(((ULONG)n) + (align) - 1, (align))
|
||||
|
||||
#define ROUND_DOWN(n, align) \
|
||||
(((ULONG)n) & ~((align) - 1l))
|
||||
|
||||
//
|
||||
// Conversion types and macros taken from internal ntifs headers
|
||||
//
|
||||
/* Conversion types and macros taken from internal ntifs headers */
|
||||
typedef union _UCHAR1
|
||||
{
|
||||
UCHAR Uchar[1];
|
||||
|
@ -82,9 +69,7 @@ typedef union _UCHAR4
|
|||
CopyUchar4(&(Bios)->LargeSectors, &(Pbios)->LargeSectors[0] ); \
|
||||
}
|
||||
|
||||
//
|
||||
// Packed versions of the BPB and Boot Sector
|
||||
//
|
||||
/* Packed versions of the BPB and Boot Sector */
|
||||
typedef struct _PACKED_BIOS_PARAMETER_BLOCK
|
||||
{
|
||||
UCHAR BytesPerSector[2];
|
||||
|
@ -114,9 +99,7 @@ typedef struct _PACKED_BOOT_SECTOR
|
|||
UCHAR SystemId[8];
|
||||
} PACKED_BOOT_SECTOR, *PPACKED_BOOT_SECTOR;
|
||||
|
||||
//
|
||||
// Unpacked version of the BPB
|
||||
//
|
||||
/* Unpacked version of the BPB */
|
||||
typedef struct BIOS_PARAMETER_BLOCK
|
||||
{
|
||||
USHORT BytesPerSector;
|
||||
|
@ -149,9 +132,7 @@ typedef struct BIOS_PARAMETER_BLOCK
|
|||
USHORT BackupBootSector;
|
||||
} BIOS_PARAMETER_BLOCK, *PBIOS_PARAMETER_BLOCK;
|
||||
|
||||
//
|
||||
// UDFS Structures
|
||||
//
|
||||
/* UDFS Structures */
|
||||
#include <pshpack1.h>
|
||||
typedef struct _TAG
|
||||
{
|
||||
|
@ -179,9 +160,7 @@ typedef struct _AVDP
|
|||
} AVDP, *PAVDP;
|
||||
#include <poppack.h>
|
||||
|
||||
//
|
||||
// Filesystem Types
|
||||
//
|
||||
/* Filesystem Types */
|
||||
typedef enum _FILE_SYSTEM_TYPE
|
||||
{
|
||||
FS_TYPE_UNUSED,
|
||||
|
@ -192,9 +171,7 @@ typedef enum _FILE_SYSTEM_TYPE
|
|||
FS_TYPE_EXT2,
|
||||
} FILE_SYSTEM_TYPE, *PFILE_SYSTEM_TYPE;
|
||||
|
||||
//
|
||||
// FS Recognizer State
|
||||
//
|
||||
/* FS Recognizer State */
|
||||
typedef enum _FS_REC_STATE
|
||||
{
|
||||
Pending,
|
||||
|
@ -202,9 +179,7 @@ typedef enum _FS_REC_STATE
|
|||
Unloading
|
||||
} FS_REC_STATE, *PFS_REC_STATE;
|
||||
|
||||
//
|
||||
// Device extension
|
||||
//
|
||||
/* Device extension */
|
||||
typedef struct _DEVICE_EXTENSION
|
||||
{
|
||||
FS_REC_STATE State;
|
||||
|
@ -212,9 +187,7 @@ typedef struct _DEVICE_EXTENSION
|
|||
PDEVICE_OBJECT Alternate;
|
||||
} DEVICE_EXTENSION, *PDEVICE_EXTENSION;
|
||||
|
||||
//
|
||||
// Prototypes
|
||||
//
|
||||
/* Prototypes */
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
FsRecCdfsFsControl(
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "fs_rec.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include "fs_rec.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue