]>
Commit | Line | Data |
---|---|---|
5692db78 AC |
1 | /** @file\r |
2 | The internal definitions of EFI REST Resource JSON to C structure convertor\r | |
3 | Protocol.\r | |
4 | \r | |
5 | (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r | |
6 | \r | |
7 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
8 | \r | |
9 | **/\r | |
10 | \r | |
11 | #ifndef EFI_REST_JSON_STRUCTURE_INTERNAL_H_\r | |
12 | #define EFI_REST_JSON_STRUCTURE_INTERNAL_H_\r | |
13 | \r | |
14 | #include <Library/BaseLib.h>\r | |
15 | #include <Library/UefiLib.h>\r | |
16 | #include <Library/UefiBootServicesTableLib.h>\r | |
17 | #include <Library/UefiDriverEntryPoint.h>\r | |
18 | #include <Library/BaseMemoryLib.h>\r | |
19 | #include <Library/MemoryAllocationLib.h>\r | |
20 | \r | |
21 | ///\r | |
22 | /// Internal structure to maintain the information of JSON to\r | |
23 | /// C structure convertor.\r | |
24 | ///\r | |
25 | typedef struct _REST_JSON_STRUCTURE_INSTANCE {\r | |
39de741e MK |
26 | LIST_ENTRY NextRestJsonStructureInstance; ///< Next convertor instance\r |
27 | UINTN NumberOfNameSpaceToConvert; ///< Number of resource type this convertor supports.\r | |
28 | EFI_REST_JSON_RESOURCE_TYPE_IDENTIFIER *SupportedRsrcIndentifier; ///< The resource type linklist\r | |
29 | EFI_REST_JSON_STRUCTURE_TO_STRUCTURE JsonToStructure; ///< JSON to C structure function\r | |
30 | EFI_REST_JSON_STRUCTURE_TO_JSON StructureToJson; ///< C structure to JSON function\r | |
31 | EFI_REST_JSON_STRUCTURE_DESTORY_STRUCTURE DestroyStructure; ///< Destory C struture function.\r | |
5692db78 AC |
32 | } REST_JSON_STRUCTURE_INSTANCE;\r |
33 | #endif\r |