REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760 Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params. Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|   Report Status Code Library for MM Phase.
 | |
| 
 | |
|   Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 | |
|   SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| **/
 | |
| 
 | |
| #ifndef _MM_RSC_LIB_H_
 | |
| #define _MM_RSC_LIB_H_
 | |
| 
 | |
| /**
 | |
|   Returns the first protocol instance that matches the given protocol.
 | |
| 
 | |
|   @param[in]  Protocol          Provides the protocol to search for.
 | |
|   @param[in]  Registration      Optional registration key returned from
 | |
|                                 RegisterProtocolNotify().
 | |
|   @param[out]  Interface        On return, a pointer to the first interface that matches Protocol and
 | |
|                                 Registration.
 | |
| 
 | |
|   @retval EFI_SUCCESS           A protocol instance matching Protocol was found and returned in
 | |
|                                 Interface.
 | |
|   @retval EFI_NOT_FOUND         No protocol instances were found that match Protocol and
 | |
|                                 Registration.
 | |
|   @retval EFI_INVALID_PARAMETER Interface is NULL.
 | |
|                                 Protocol is NULL.
 | |
| 
 | |
| **/
 | |
| EFI_STATUS
 | |
| InternalLocateProtocol (
 | |
|   IN  EFI_GUID  *Protocol,
 | |
|   IN  VOID      *Registration  OPTIONAL,
 | |
|   OUT VOID      **Interface
 | |
|   );
 | |
| 
 | |
| #endif // _MM_RSC_LIB_H_
 |