TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | _EFI_REST_JSON_RESOURCE_TYPE_NAMESPACE |
struct | _EFI_REST_JSON_RESOURCE_TYPE_IDENTIFIER |
struct | _EFI_REST_JSON_STRUCTURE_SUPPORTED |
struct | _EFI_REST_JSON_STRUCTURE_HEADER |
struct | _EFI_REST_JSON_STRUCTURE_PROTOCOL |
Macros | |
#define | EFI_REST_JSON_STRUCTURE_PROTOCOL_GUID |
This file defines the EFI REST JSON Structure Protocol interface.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file RestJsonStructure.h.
#define EFI_REST_JSON_STRUCTURE_PROTOCOL_GUID |
GUID definitions
Definition at line 19 of file RestJsonStructure.h.
typedef CHAR8* EFI_REST_JSON_RESOURCE_TYPE_DATATYPE |
Definition at line 25 of file RestJsonStructure.h.
REST resource type identifier
REST resource type consists of name space and data type.
Structure defintions of resource name space.
The fields declared in this structure define the name and revision of payload delievered throught REST API.
typedef EFI_STATUS(EFIAPI * EFI_REST_JSON_STRUCTURE_DESTORY_STRUCTURE) (IN EFI_REST_JSON_STRUCTURE_PROTOCOL *This, IN EFI_REST_JSON_STRUCTURE_HEADER *JsonStructureHeader) |
This function destroys the REST JSON structure.
[in] | This | This is the EFI_REST_JSON_STRUCTURE_PROTOCOL instance. |
[in] | JsonStructureHeader | JSON structure to destroy. |
EFI_SUCCESS | |
Others |
Definition at line 122 of file RestJsonStructure.h.
typedef struct _EFI_REST_JSON_STRUCTURE_HEADER EFI_REST_JSON_STRUCTURE_HEADER |
The header file of JSON C structure
Definition at line 24 of file RestJsonStructure.h.
typedef EFI_STATUS(EFIAPI * EFI_REST_JSON_STRUCTURE_REGISTER) (IN EFI_REST_JSON_STRUCTURE_PROTOCOL *This, IN EFI_REST_JSON_STRUCTURE_SUPPORTED *JsonStructureSupported, IN EFI_REST_JSON_STRUCTURE_TO_STRUCTURE ToStructure, IN EFI_REST_JSON_STRUCTURE_TO_JSON ToJson, IN EFI_REST_JSON_STRUCTURE_DESTORY_STRUCTURE DestroyStructure) |
This function provides REST JSON resource to structure converter registration.
[in] | This | This is the EFI_REST_JSON_STRUCTURE_PROTOCOL instance. |
[in] | JsonStructureSupported | The type and version of REST JSON resource which this converter supports. |
[in] | ToStructure | The function to convert REST JSON resource to structure. |
[in] | ToJson | The function to convert REST JSON structure to JSON in text format. |
[in] | DestroyStructure | Destroy REST JSON structure returned in ToStructure() function. |
EFI_SUCCESS | Register successfully. |
Others | Fail to register. |
Definition at line 143 of file RestJsonStructure.h.
List of JSON to C structure conversions which this convertor supports.
typedef EFI_STATUS(EFIAPI * EFI_REST_JSON_STRUCTURE_TO_JSON) (IN EFI_REST_JSON_STRUCTURE_PROTOCOL *This, IN EFI_REST_JSON_STRUCTURE_HEADER *JsonStructureHeader, OUT CHAR8 **ResourceJsonText) |
Convert the given REST JSON structure into JSON text.
[in] | This | This is the EFI_REST_JSON_STRUCTURE_PROTOCOL instance. |
[in] | JsonStructureHeader | The point to EFI_REST_JSON_STRUCTURE_HEADER structure. |
[out] | ResourceJsonText | Pointer to receive REST JSON resource in text format. |
EFI_SUCCESS | |
Others |
Definition at line 104 of file RestJsonStructure.h.
typedef EFI_STATUS(EFIAPI * EFI_REST_JSON_STRUCTURE_TO_STRUCTURE) (IN EFI_REST_JSON_STRUCTURE_PROTOCOL *This, IN EFI_REST_JSON_RESOURCE_TYPE_IDENTIFIER *JsonRsrcIdentifier OPTIONAL, IN CHAR8 *ResourceJsonText, OUT EFI_REST_JSON_STRUCTURE_HEADER **JsonStructure) |
JSON-IN C Structure-OUT function. Convert the given REST JSON resource into structure.
[in] | This | This is the EFI_REST_JSON_STRUCTURE_PROTOCOL instance. |
[in] | JsonRsrcIdentifier | This indicates the resource type and version is given in ResourceJsonText. |
[in] | ResourceJsonText | REST JSON resource in text format. |
[out] | JsonStructure | Pointer to receive the pointer to EFI_REST_JSON_STRUCTURE_HEADER |
EFI_SUCCESS | @retval Others |
Definition at line 84 of file RestJsonStructure.h.