This commit is contained in:
jcarsey
2009-06-29 16:28:23 +00:00
parent 894d038a8d
commit b82bfcc17f
4 changed files with 17 additions and 14 deletions

View File

@ -349,8 +349,8 @@ FileHandleGetFileName (
Function to read a single line (up to but not including the \n) from a file. Function to read a single line (up to but not including the \n) from a file.
@param[in] Handle FileHandle to read from @param[in] Handle FileHandle to read from
@param[in][out] Buffer pointer to buffer to read into @param[in,out] Buffer pointer to buffer to read into
@param[in][out] Size pointer to number of bytes in buffer @param[in,out] Size pointer to number of bytes in buffer
@param[in[ Truncate if TRUE then allows for truncation of the line to fit. @param[in[ Truncate if TRUE then allows for truncation of the line to fit.
if FALSE will reset the position to the begining of the if FALSE will reset the position to the begining of the
line if the buffer is not large enough. line if the buffer is not large enough.

View File

@ -135,7 +135,7 @@ ShellOpenFileByDevicePath(
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
ShellOpenFileByName( ShellOpenFileByName(
IN CHAR16 *FilePath, IN CONST CHAR16 *FilePath,
OUT EFI_FILE_HANDLE *FileHandle, OUT EFI_FILE_HANDLE *FileHandle,
IN UINT64 OpenMode, IN UINT64 OpenMode,
IN UINT64 Attributes IN UINT64 Attributes
@ -171,7 +171,7 @@ ShellOpenFileByName(
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
ShellCreateDirectory( ShellCreateDirectory(
IN CHAR16 *DirectoryName, IN CONST CHAR16 *DirectoryName,
OUT EFI_FILE_HANDLE *FileHandle OUT EFI_FILE_HANDLE *FileHandle
); );

View File

@ -648,8 +648,8 @@ FileHandleGetSize (
if Destination's current length (including NULL terminator) is already more then if Destination's current length (including NULL terminator) is already more then
CurrentSize, then ASSERT() CurrentSize, then ASSERT()
@param[in][out] Destination The String to append onto @param[in,out] Destination The String to append onto
@param[in][out] CurrentSize on call the number of bytes in Destination. On @param[in,out] CurrentSize on call the number of bytes in Destination. On
return possibly the new size (still in bytes). if NULL return possibly the new size (still in bytes). if NULL
then allocate whatever is needed. then allocate whatever is needed.
@param[in] Source The String to append from @param[in] Source The String to append from
@ -808,8 +808,8 @@ FileHandleGetFileName (
Function to read a single line (up to but not including the \n) from a file. Function to read a single line (up to but not including the \n) from a file.
@param[in] Handle FileHandle to read from @param[in] Handle FileHandle to read from
@param[in][out] Buffer pointer to buffer to read into @param[in,out] Buffer pointer to buffer to read into
@param[in][out] Size pointer to number of bytes in buffer @param[in,out] Size pointer to number of bytes in buffer
@param[in[ Truncate if TRUE then allows for truncation of the line to fit. @param[in[ Truncate if TRUE then allows for truncation of the line to fit.
if FALSE will reset the position to the begining of the if FALSE will reset the position to the begining of the
line if the buffer is not large enough. line if the buffer is not large enough.

View File

@ -562,7 +562,7 @@ ShellOpenFileByDevicePath(
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
ShellOpenFileByName( ShellOpenFileByName(
IN CHAR16 *FileName, IN CONST CHAR16 *FileName,
OUT EFI_FILE_HANDLE *FileHandle, OUT EFI_FILE_HANDLE *FileHandle,
IN UINT64 OpenMode, IN UINT64 OpenMode,
IN UINT64 Attributes IN UINT64 Attributes
@ -599,7 +599,7 @@ ShellOpenFileByName(
// since this will use EFI method again that will open it. // since this will use EFI method again that will open it.
// //
ASSERT(mEfiShellEnvironment2 != NULL); ASSERT(mEfiShellEnvironment2 != NULL);
FilePath = mEfiShellEnvironment2->NameToPath (FileName); FilePath = mEfiShellEnvironment2->NameToPath ((CHAR16*)FileName);
if (FileDevicePath != NULL) { if (FileDevicePath != NULL) {
return (ShellOpenFileByDevicePath(&FilePath, return (ShellOpenFileByDevicePath(&FilePath,
&DeviceHandle, &DeviceHandle,
@ -640,7 +640,7 @@ ShellOpenFileByName(
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
ShellCreateDirectory( ShellCreateDirectory(
IN CHAR16 *DirectoryName, IN CONST CHAR16 *DirectoryName,
OUT EFI_FILE_HANDLE *FileHandle OUT EFI_FILE_HANDLE *FileHandle
) )
{ {
@ -1220,7 +1220,7 @@ typedef struct {
the ShellCloseFileMetaArg function. the ShellCloseFileMetaArg function.
@param[in] FileList the EFI shell list type @param[in] FileList the EFI shell list type
@param[in][out] ListHead the list to add to @param[in,out] ListHead the list to add to
@retval the resultant head of the double linked new format list; @retval the resultant head of the double linked new format list;
**/ **/
@ -1923,7 +1923,10 @@ ShellCommandLineGetRawValue (
// //
// enumerate through the list of parametrs // enumerate through the list of parametrs
// //
for (Node = GetFirstNode(CheckPackage) ; !IsNull (CheckPackage, Node) ; Node = GetNextNode(CheckPackage, Node) ) { for ( Node = GetFirstNode(CheckPackage)
; !IsNull (CheckPackage, Node)
; Node = GetNextNode(CheckPackage, Node)
){
// //
// If the position matches, return the value // If the position matches, return the value
// //
@ -1940,7 +1943,7 @@ ShellCommandLineGetRawValue (
If the string would grow bigger than NewSize it will halt and return error. If the string would grow bigger than NewSize it will halt and return error.
@param[in] SourceString String with source buffer @param[in] SourceString String with source buffer
@param[in][out] NewString String with resultant buffer @param[in,out] NewString String with resultant buffer
@param[in] NewSize Size in bytes of NewString @param[in] NewSize Size in bytes of NewString
@param[in] FindTarget String to look for @param[in] FindTarget String to look for
@param[in[ ReplaceWith String to replace FindTarget with @param[in[ ReplaceWith String to replace FindTarget with