DynamicTablesPkg[all]  1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ConfigurationManagerHelper.h File Reference

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

Macro Definition Documentation

#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.