Author: hpoussin
Date: Sat Mar 28 13:33:19 2009
New Revision: 40266
URL:
http://svn.reactos.org/svn/reactos?rev=40266&view=rev
Log:
Add some defines, to be used later in freeldr
Modified:
trunk/reactos/include/reactos/arc/arc.h
Modified: trunk/reactos/include/reactos/arc/arc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/arc/arc.h?…
==============================================================================
--- trunk/reactos/include/reactos/arc/arc.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/arc/arc.h [iso-8859-1] Sat Mar 28 13:33:19 2009
@@ -29,6 +29,26 @@
EROFS,
EMAXIMUM
} ARC_CODES;
+
+typedef enum _SEEKMODE
+{
+ SeekAbsolute,
+ SeekRelative,
+} SEEKMODE;
+
+typedef enum _OPENMODE
+{
+ OpenReadOnly,
+ OpenWriteOnly,
+ OpenReadWrite,
+ CreateWriteOnly,
+ CreateReadOnly,
+ SupersedeWriteOnly,
+ SupersedeReadOnly,
+ SupersedeReadWrite,
+ OpenDirectory,
+ CreateDirectory,
+} OPENMODE;
typedef enum _IDENTIFIER_FLAG
{
@@ -455,4 +475,21 @@
FIRMWARE_INFORMATION_LOADER_BLOCK FirmwareInformation;
} LOADER_PARAMETER_BLOCK, *PLOADER_PARAMETER_BLOCK;
+typedef int CONFIGTYPE;
+typedef struct tagFILEINFORMATION
+{
+ LARGE_INTEGER StartingAddress;
+ LARGE_INTEGER EndingAddress;
+ LARGE_INTEGER CurrentAddress;
+ CONFIGTYPE Type;
+ ULONG FileNameLength;
+ UCHAR Attributes;
+ CHAR Filename[32];
+} FILEINFORMATION;
+
+typedef LONG (*ARC_CLOSE)(ULONG FileId);
+typedef LONG (*ARC_GET_FILE_INFORMATION)(ULONG FileId, FILEINFORMATION* Information);
+typedef LONG (*ARC_OPEN)(CHAR* Path, OPENMODE OpenMode, ULONG* FileId);
+typedef LONG (*ARC_READ)(ULONG FileId, VOID* Buffer, ULONG N, ULONG* Count);
+typedef LONG (*ARC_SEEK)(ULONG FileId, LARGE_INTEGER* Position, SEEKMODE SeekMode);
#endif