// replaced EFI_LIST_ENTRY with LIST_ENTRY for simplicity.\r
// they are identical outside of the name.\r
typedef struct {\r
- LIST_ENTRY Link;\r
- EFI_STATUS Status;\r
- CONST CHAR16 *FullName;\r
- CONST CHAR16 *FileName;\r
- EFI_FILE_HANDLE Handle;\r
- EFI_FILE_INFO *Info;\r
+ LIST_ENTRY Link; /// Linked list members\r
+ EFI_STATUS Status; /// Status of opening the file. Valid only if Handle != NULL.\r
+ CONST CHAR16 *FullName; /// Fully qualified filename.\r
+ CONST CHAR16 *FileName; /// name of this file.\r
+ EFI_FILE_HANDLE Handle; /// Handle for interacting with the opened file or NULL if closed.\r
+ EFI_FILE_INFO *Info; /// Pointer to the FileInfo struct for this file or NULL.\r
} EFI_SHELL_FILE_INFO;\r
/**\r
Returns whether any script files are currently being processed.\r
@retval EFI_SUCCESS The file was opened. FileHandle points to the new file's handle.\r
@retval EFI_INVALID_PARAMETER One of the parameters has an invalid value.\r
@retval EFI_UNSUPPORTED could not open the file path\r
- @retval EFI_NOT_FOUND the specified file could not be found on the devide, or could not\r
+ @retval EFI_NOT_FOUND The specified file could not be found on the device, or could not\r
file the file system on the device.\r
@retval EFI_NO_MEDIA the device has no medium.\r
@retval EFI_MEDIA_CHANGED The device has a different medium in it or the medium is no\r
);\r
\r
/**\r
- This function returns the alias associated with a command.\r
+ This function returns the command associated with a alias or a list of all\r
+ alias'.\r
\r
- @param[in] Command Points to the null-terminated shell command. \r
- If this parameter is NULL, then all commands \r
+ @param[in] Alias Points to the null-terminated shell alias. \r
+ If this parameter is NULL, then all \r
aliases will be returned in ReturnedData.\r
-\r
- @retutn If Command is not NULL, it will return a pointer to \r
- the null-terminated alias for the shell command. \r
- If Command is NULL, ReturnedData points to a \91;\92 \r
- delimited list of command and alias tuples (e.g. \r
- ReturnedData = \93md;mkdir;rd;rm;cp;copy;fs0:\test\r
- app\myfavoriteprogram.efi;mfp\94) that are null-terminated. \r
+ @param[out] Volatile upon return of a single command if TRUE indicates\r
+ this is stored in a volatile fashion. FALSE otherwise.\r
+ @return If Alias is not NULL, it will return a pointer to \r
+ the null-terminated command for that alias. \r
+ If Alias is NULL, ReturnedData points to a \91;\92 \r
+ delimited list of alias (e.g. \r
+ ReturnedData = \93dir;del;copy;mfp\94) that is null-terminated. \r
@retval NULL an error ocurred\r
- @retval NULL no alias was found for Command\r
+ @retval NULL Alias was not a valid Alias\r
**/\r
typedef \r
CONST CHAR16 *\r
(EFIAPI *EFI_SHELL_GET_ALIAS)(\r
- IN CONST CHAR16 *Command\r
+ IN CONST CHAR16 *Alias,\r
+ OUT BOOLEAN *Volatile OPTIONAL\r
);\r
\r
/**\r
For a description of volatile and non-volatile environment variables, see UEFI Shell \r
2.0 specification section 3.6.1.\r
\r
- @param[in] Name Points to the null-terminated environment variable name.\r
- @param[in] Value Points to the null-terminated environment variable value. If the value is an\r
+ @param[in] Name Points to the null-terminated environment variable name.\r
+ @param[in] Value Points to the null-terminated environment variable value. If the value is an\r
empty string then the environment variable is deleted.\r
- @param[in] Volatile Indicates whether the variable is non-volatile (FALSE) or volatile (TRUE).\r
+ @param[in] Volatile Indicates whether the variable is non-volatile (FALSE) or volatile (TRUE).\r
\r
@retval EFI_SUCCESS The environment variable was successfully updated.\r
**/\r