RestJsonStructureInternal.h 1.4 KB

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