XenevaOS
Loading...
Searching...
No Matches
file.h
Go to the documentation of this file.
1
30#ifndef __XE_FILE_H__
31#define __XE_FILE_H__
32
33#include "xnldr.h"
34#include "clib.h"
35#include "xnout.h"
36#ifdef _MSC_VER
37 #include <Uefi.h>
39 #include <Protocol/LoadFile.h>
40 #include <Protocol/LoadedImage.h>
41 #include <Guid/FileInfo.h>
42 #include <Guid/FileSystemInfo.h>
43#elif __GNUC__
44 #include <efi/efi.h>
45 #include <efi/efilib.h>
46#endif
47
48
53
54/*
55 * XEOpenAndReadFile -- open and reads a file
56 * @param ImageHandle -- Image handle passed by EFI firmware
57 * @param Filename -- name and path of the file
58 */
59extern XEFile* XEOpenAndReadFile(EFI_HANDLE ImageHandle, CHAR16* Filename);
60
61/*
62 * XECloseFile -- Close an opened file
63 * it just free up the buffer allocated
64 * @param file -- Pointer to the file buffer
65 */
66extern VOID XECloseFile(XEFile* file);
67
68#endif
UINT64 UINTN
Definition ProcessorBind.h:118
unsigned short CHAR16
Definition ProcessorBind.h:105
struct _XEFILE_ XEFile
VOID XECloseFile(XEFile *file)
Definition file.cpp:134
XEFile * XEOpenAndReadFile(EFI_HANDLE ImageHandle, CHAR16 *Filename)
Definition file.cpp:37
VOID * EFI_HANDLE
Definition UefiBaseType.h:37
#define VOID
Definition acefi.h:190
Definition file.h:49
VOID * kBuffer
Definition file.h:50
UINTN FileSize
Definition file.h:51