TianoCore EDK2 master
Loading...
Searching...
No Matches
ConfigurationManagerHelper.h File Reference

Go to the source code of this file.

Macros

#define GET_OBJECT_LIST(CmObjectNameSpace, CmObjectId, Type)
 

Detailed Description

Copyright (c) 2017 - 2019, ARM Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Glossary:
  • Cm or CM - Configuration Manager
  • Obj or OBJ - Object

Definition in file ConfigurationManagerHelper.h.

Macro Definition Documentation

◆ GET_OBJECT_LIST

#define GET_OBJECT_LIST (   CmObjectNameSpace,
  CmObjectId,
  Type 
)

The GET_OBJECT_LIST macro expands to a function that is used to retrieve an object or an object list from the Configuration Manager using the Configuration Manager Protocol interface.

The macro expands to a function which has the following prototype:

STATIC EFI_STATUS EFIAPI Get<CmObjectId> ( IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST CfgMgrProtocol, IN CONST CM_OBJECT_TOKEN Token OPTIONAL, OUT Type ** List, OUT UINT32 * Count OPTIONAL );

Generated function parameters:

Parameters
[in]CfgMgrProtocolPointer to the Configuration Manager protocol interface.
[in]TokenReference token for the Object.
[out]ListPointer to the Object list.
[out]CountCount of the objects returned in the list.

Macro Parameters:

Parameters
[in]CmObjectNameSpaceThe Object Namespace
[in]CmObjectIdObject Id.
[in]TypeStructure used to describe the Object.
Return values
EFI_SUCCESSSuccess.
EFI_INVALID_PARAMETERA parameter is invalid.
EFI_NOT_FOUNDThe required object information is not found.
EFI_BAD_BUFFER_SIZEThe size returned by the Configuration Manager is less than the Object size for the requested object.

Definition at line 50 of file ConfigurationManagerHelper.h.