Last change
on this file since 105681 was 105670, checked in by vboxsync, 9 months ago |
Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
1.5 KB
|
Line | |
---|
1 | /** @file
|
---|
2 | The internal definitions of EFI REST Resource JSON to C structure convertor
|
---|
3 | Protocol.
|
---|
4 |
|
---|
5 | (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
|
---|
6 | Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
---|
7 |
|
---|
8 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
9 |
|
---|
10 | **/
|
---|
11 |
|
---|
12 | #ifndef EFI_REST_JSON_STRUCTURE_INTERNAL_H_
|
---|
13 | #define EFI_REST_JSON_STRUCTURE_INTERNAL_H_
|
---|
14 |
|
---|
15 | #include <Library/BaseLib.h>
|
---|
16 | #include <Library/UefiLib.h>
|
---|
17 | #include <Library/UefiBootServicesTableLib.h>
|
---|
18 | #include <Library/UefiDriverEntryPoint.h>
|
---|
19 | #include <Library/BaseMemoryLib.h>
|
---|
20 | #include <Library/MemoryAllocationLib.h>
|
---|
21 |
|
---|
22 | ///
|
---|
23 | /// Internal structure to maintain the information of JSON to
|
---|
24 | /// C structure convertor.
|
---|
25 | ///
|
---|
26 | typedef struct _REST_JSON_STRUCTURE_INSTANCE {
|
---|
27 | LIST_ENTRY NextRestJsonStructureInstance; ///< Next convertor instance
|
---|
28 | UINTN NumberOfNameSpaceToConvert; ///< Number of resource type this convertor supports.
|
---|
29 | EFI_REST_JSON_RESOURCE_TYPE_IDENTIFIER *SupportedRsrcIndentifier; ///< The supported resource type array.
|
---|
30 | EFI_REST_JSON_STRUCTURE_TO_STRUCTURE JsonToStructure; ///< JSON to C structure function
|
---|
31 | EFI_REST_JSON_STRUCTURE_TO_JSON StructureToJson; ///< C structure to JSON function
|
---|
32 | EFI_REST_JSON_STRUCTURE_DESTORY_STRUCTURE DestroyStructure; ///< Destory C struture function.
|
---|
33 | } REST_JSON_STRUCTURE_INSTANCE;
|
---|
34 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.