Files
EDK2-fork/DynamicTablesPkg/Include/MetadataHelpers.h
Pierre Gondois 771b452507 DynamicTablesPkg: Add GetMetadataRoot() cb to DynamicTableFactory protocol
The newly added MetadataObjLib allows to store information either:
- generated by the DynamictTablesPkg framework
- provided by a ConfigurationManager
- parsed from another source of information

This information might be subject to validation/verification.
This step can only be done once the firmware tables generated
by the DynamictTablesPkg have been generated.

Add a new GetMetadataRoot() callback to the
EDKII_DYNAMIC_TABLE_FACTORY_PROTOCOL. This callback allows
to fetch the Metadata Root, allowing to access all the Metadata
information generated. This Metadata is then validated by the
DynamicTableManagerDxe.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
2025-06-11 12:24:35 +00:00

28 lines
609 B
C

/** @file
Metadata Helpers
Copyright (c) 2025, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef METADATA_HELPER_H_
#define METADATA_HELPER_H_
#include <Library/MetadataHandlerLib.h>
/** Get the Root handle of the MetadataObjLib.
During the firmware table generation, some Metadata information might be
generated by different generators. This Metadata might be subject to
additional validation.
@return The Metadata Root handle.
**/
METADATA_ROOT_HANDLE
EFIAPI
GetMetadataRoot (
VOID
);
#endif // METADATA_HELPER_H_