2007-06-19 12:29:07 +02:00
|
|
|
/** @file
|
2008-12-08 04:24:04 +01:00
|
|
|
Provides a GUID and a data structure that can be used with EFI_FILE_PROTOCOL.SetInfo()
|
|
|
|
and EFI_FILE_PROTOCOL.GetInfo() to set or get generic file information.
|
2009-06-04 18:16:15 +02:00
|
|
|
This GUID is defined in UEFI specification.
|
2007-06-19 12:29:07 +02:00
|
|
|
|
2010-04-23 17:46:20 +02:00
|
|
|
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
2010-03-12 23:19:12 +01:00
|
|
|
This program and the accompanying materials are licensed and made available under
|
|
|
|
the terms and conditions of the BSD License that accompanies this distribution.
|
|
|
|
The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php.
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
2007-06-19 12:29:07 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __FILE_INFO_H__
|
|
|
|
#define __FILE_INFO_H__
|
|
|
|
|
|
|
|
#define EFI_FILE_INFO_ID \
|
|
|
|
{ \
|
|
|
|
0x9576e92, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef struct {
|
2008-12-08 04:24:04 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// The size of the EFI_FILE_INFO structure, including the Null-terminated FileName string.
|
2008-12-08 04:24:04 +01:00
|
|
|
///
|
2007-06-19 12:29:07 +02:00
|
|
|
UINT64 Size;
|
2008-12-08 04:24:04 +01:00
|
|
|
///
|
|
|
|
/// The size of the file in bytes.
|
|
|
|
///
|
2007-06-19 12:29:07 +02:00
|
|
|
UINT64 FileSize;
|
2008-12-08 04:24:04 +01:00
|
|
|
///
|
|
|
|
/// PhysicalSize The amount of physical space the file consumes on the file system volume.
|
|
|
|
///
|
2007-06-19 12:29:07 +02:00
|
|
|
UINT64 PhysicalSize;
|
2008-12-08 04:24:04 +01:00
|
|
|
///
|
|
|
|
/// The time the file was created.
|
|
|
|
///
|
2007-06-19 12:29:07 +02:00
|
|
|
EFI_TIME CreateTime;
|
2008-12-08 04:24:04 +01:00
|
|
|
///
|
|
|
|
/// The time when the file was last accessed.
|
|
|
|
///
|
2007-06-19 12:29:07 +02:00
|
|
|
EFI_TIME LastAccessTime;
|
2008-12-08 04:24:04 +01:00
|
|
|
///
|
|
|
|
/// The time when the file's contents were last modified.
|
|
|
|
///
|
2007-06-19 12:29:07 +02:00
|
|
|
EFI_TIME ModificationTime;
|
2008-12-08 04:24:04 +01:00
|
|
|
///
|
|
|
|
/// The attribute bits for the file.
|
|
|
|
///
|
2007-06-19 12:29:07 +02:00
|
|
|
UINT64 Attribute;
|
2008-12-08 04:24:04 +01:00
|
|
|
///
|
2009-09-24 10:56:33 +02:00
|
|
|
/// The Null-terminated name of the file.
|
2008-12-08 04:24:04 +01:00
|
|
|
///
|
2007-06-19 12:29:07 +02:00
|
|
|
CHAR16 FileName[1];
|
|
|
|
} EFI_FILE_INFO;
|
|
|
|
|
2008-08-14 04:54:46 +02:00
|
|
|
///
|
|
|
|
/// The FileName field of the EFI_FILE_INFO data structure is variable length.
|
|
|
|
/// Whenever code needs to know the size of the EFI_FILE_INFO data structure, it needs to
|
|
|
|
/// be the size of the data structure without the FileName field. The following macro
|
|
|
|
/// computes this size correctly no matter how big the FileName array is declared.
|
|
|
|
/// This is required to make the EFI_FILE_INFO data structure ANSI compilant.
|
|
|
|
///
|
2008-12-16 16:33:49 +01:00
|
|
|
#define SIZE_OF_EFI_FILE_INFO OFFSET_OF (EFI_FILE_INFO, FileName)
|
2007-06-19 12:29:07 +02:00
|
|
|
|
|
|
|
extern EFI_GUID gEfiFileInfoGuid;
|
|
|
|
|
|
|
|
#endif
|