]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Guid/FileInfo.h
Clarify some definitions in HII Configure Routine Protocol
[mirror_edk2.git] / MdePkg / Include / Guid / FileInfo.h
CommitLineData
c2f83f0a 1/** @file\r
25cfda03
LG
2 Provides a GUID and a data structure that can be used with EFI_FILE_PROTOCOL.SetInfo()\r
3 and EFI_FILE_PROTOCOL.GetInfo() to set or get generic file information.\r
1a2f870c 4 This GUID is defined in UEFI specification.\r
c2f83f0a 5\r
25cfda03 6 Copyright (c) 2006 - 2008, Intel Corporation \r
c2f83f0a 7 All rights reserved. This program and the accompanying materials \r
8 are licensed and made available under the terms and conditions of the BSD License \r
9 which accompanies this distribution. The full text of the license may be found at \r
10 http://opensource.org/licenses/bsd-license.php \r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
14\r
c2f83f0a 15**/\r
16\r
17#ifndef __FILE_INFO_H__\r
18#define __FILE_INFO_H__\r
19\r
20#define EFI_FILE_INFO_ID \\r
21 { \\r
22 0x9576e92, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \\r
23 }\r
24\r
25typedef struct {\r
25cfda03
LG
26 ///\r
27 /// Size of the EFI_FILE_INFO structure, including the Nullterminated Unicode FileName string.\r
28 ///\r
c2f83f0a 29 UINT64 Size;\r
25cfda03
LG
30 ///\r
31 /// The size of the file in bytes.\r
32 ///\r
c2f83f0a 33 UINT64 FileSize;\r
25cfda03
LG
34 ///\r
35 /// PhysicalSize The amount of physical space the file consumes on the file system volume.\r
36 ///\r
c2f83f0a 37 UINT64 PhysicalSize;\r
25cfda03
LG
38 ///\r
39 /// The time the file was created.\r
40 ///\r
c2f83f0a 41 EFI_TIME CreateTime;\r
25cfda03
LG
42 ///\r
43 /// The time when the file was last accessed.\r
44 ///\r
c2f83f0a 45 EFI_TIME LastAccessTime;\r
25cfda03
LG
46 ///\r
47 /// The time when the file's contents were last modified.\r
48 ///\r
c2f83f0a 49 EFI_TIME ModificationTime;\r
25cfda03
LG
50 ///\r
51 /// The attribute bits for the file.\r
52 ///\r
c2f83f0a 53 UINT64 Attribute;\r
25cfda03
LG
54 ///\r
55 /// The Null-terminated Unicode name of the file.\r
56 ///\r
c2f83f0a 57 CHAR16 FileName[1];\r
58} EFI_FILE_INFO;\r
59\r
55d473ba 60///\r
61/// The FileName field of the EFI_FILE_INFO data structure is variable length.\r
62/// Whenever code needs to know the size of the EFI_FILE_INFO data structure, it needs to\r
63/// be the size of the data structure without the FileName field. The following macro\r
64/// computes this size correctly no matter how big the FileName array is declared.\r
65/// This is required to make the EFI_FILE_INFO data structure ANSI compilant.\r
66///\r
07636730 67#define SIZE_OF_EFI_FILE_INFO OFFSET_OF (EFI_FILE_INFO, FileName)\r
c2f83f0a 68\r
69extern EFI_GUID gEfiFileInfoGuid;\r
70\r
71#endif\r