TianoCore EDK2 master
Loading...
Searching...
No Matches
EdkIIRedfishHttpProtocol.h
Go to the documentation of this file.
1
10#ifndef EDKII_REDFISH_HTTP_PROTOCOL_H_
11#define EDKII_REDFISH_HTTP_PROTOCOL_H_
12
13#include <RedfishServiceData.h>
14#include <Library/JsonLib.h>
16
18
30typedef
31REDFISH_SERVICE
34 IN REDFISH_CONFIG_SERVICE_INFORMATION *RedfishConfigServiceInfo
35 );
36
48typedef
52 IN REDFISH_SERVICE RedfishService
53 );
54
67typedef
68EDKII_JSON_VALUE
71 IN REDFISH_PAYLOAD RedfishPayload
72 );
73
85typedef
89 IN REDFISH_REQUEST *Request
90 );
91
103typedef
107 IN REDFISH_RESPONSE *Response
108 );
109
120typedef
124 IN EFI_STRING Uri
125 );
126
145typedef
149 IN REDFISH_SERVICE Service,
150 IN EFI_STRING Uri,
151 IN REDFISH_REQUEST *Request OPTIONAL,
152 OUT REDFISH_RESPONSE *Response,
153 IN BOOLEAN UseCache
154 );
155
176typedef
180 IN REDFISH_SERVICE Service,
181 IN EFI_STRING Uri,
182 IN CHAR8 *Content,
183 IN UINTN ContentSize OPTIONAL,
184 IN CHAR8 *ContentType OPTIONAL,
185 OUT REDFISH_RESPONSE *Response
186 );
187
208typedef
212 IN REDFISH_SERVICE Service,
213 IN EFI_STRING Uri,
214 IN CHAR8 *Content,
215 IN UINTN ContentSize OPTIONAL,
216 IN CHAR8 *ContentType OPTIONAL,
217 OUT REDFISH_RESPONSE *Response
218 );
219
240typedef
244 IN REDFISH_SERVICE Service,
245 IN EFI_STRING Uri,
246 IN CHAR8 *Content,
247 IN UINTN ContentSize OPTIONAL,
248 IN CHAR8 *ContentType OPTIONAL,
249 OUT REDFISH_RESPONSE *Response
250 );
251
274typedef
278 IN REDFISH_SERVICE Service,
279 IN EFI_STRING Uri,
280 IN CHAR8 *Content OPTIONAL,
281 IN UINTN ContentSize OPTIONAL,
282 IN CHAR8 *ContentType OPTIONAL,
283 OUT REDFISH_RESPONSE *Response
284 );
285
290 UINT32 Version;
291 REDFISH_HTTP_CREATE_SERVICE CreateService;
292 REDFISH_HTTP_FREE_SERVICE FreeService;
293 REDFISH_HTTP_JSON_IN_PAYLOAD JsonInPayload;
294 REDFISH_HTTP_GET_RESOURCE GetResource;
295 REDFISH_HTTP_PATCH_RESOURCE PatchResource;
296 REDFISH_HTTP_PUT_RESOURCE PutResource;
297 REDFISH_HTTP_POST_RESOURCE PostResource;
298 REDFISH_HTTP_DELETE_RESOURCE DeleteResource;
299 REDFISH_HTTP_FREE_REQUEST FreeRequest;
300 REDFISH_HTTP_FREE_RESPONSE FreeResponse;
301 REDFISH_HTTP_EXPIRE_RESPONSE ExpireResponse;
302};
303
304#define EDKII_REDFISH_HTTP_PROTOCOL_REVISION 0x00001000
305
306extern EFI_GUID gEdkIIRedfishHttpProtocolGuid;
307
308#endif
UINT64 UINTN
EFI_STATUS(EFIAPI * REDFISH_HTTP_FREE_SERVICE)(IN EDKII_REDFISH_HTTP_PROTOCOL *This, IN REDFISH_SERVICE RedfishService)
EFI_STATUS(EFIAPI * REDFISH_HTTP_POST_RESOURCE)(IN EDKII_REDFISH_HTTP_PROTOCOL *This, IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN CHAR8 *Content, IN UINTN ContentSize OPTIONAL, IN CHAR8 *ContentType OPTIONAL, OUT REDFISH_RESPONSE *Response)
EFI_STATUS(EFIAPI * REDFISH_HTTP_EXPIRE_RESPONSE)(IN EDKII_REDFISH_HTTP_PROTOCOL *This, IN EFI_STRING Uri)
EDKII_JSON_VALUE(EFIAPI * REDFISH_HTTP_JSON_IN_PAYLOAD)(IN EDKII_REDFISH_HTTP_PROTOCOL *This, IN REDFISH_PAYLOAD RedfishPayload)
EFI_STATUS(EFIAPI * REDFISH_HTTP_PUT_RESOURCE)(IN EDKII_REDFISH_HTTP_PROTOCOL *This, IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN CHAR8 *Content, IN UINTN ContentSize OPTIONAL, IN CHAR8 *ContentType OPTIONAL, OUT REDFISH_RESPONSE *Response)
EFI_STATUS(EFIAPI * REDFISH_HTTP_FREE_RESPONSE)(IN EDKII_REDFISH_HTTP_PROTOCOL *This, IN REDFISH_RESPONSE *Response)
EFI_STATUS(EFIAPI * REDFISH_HTTP_PATCH_RESOURCE)(IN EDKII_REDFISH_HTTP_PROTOCOL *This, IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN CHAR8 *Content, IN UINTN ContentSize OPTIONAL, IN CHAR8 *ContentType OPTIONAL, OUT REDFISH_RESPONSE *Response)
EFI_STATUS(EFIAPI * REDFISH_HTTP_FREE_REQUEST)(IN EDKII_REDFISH_HTTP_PROTOCOL *This, IN REDFISH_REQUEST *Request)
REDFISH_SERVICE(EFIAPI * REDFISH_HTTP_CREATE_SERVICE)(IN EDKII_REDFISH_HTTP_PROTOCOL *This, IN REDFISH_CONFIG_SERVICE_INFORMATION *RedfishConfigServiceInfo)
EFI_STATUS(EFIAPI * REDFISH_HTTP_DELETE_RESOURCE)(IN EDKII_REDFISH_HTTP_PROTOCOL *This, IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN CHAR8 *Content OPTIONAL, IN UINTN ContentSize OPTIONAL, IN CHAR8 *ContentType OPTIONAL, OUT REDFISH_RESPONSE *Response)
EFI_STATUS(EFIAPI * REDFISH_HTTP_GET_RESOURCE)(IN EDKII_REDFISH_HTTP_PROTOCOL *This, IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN REDFISH_REQUEST *Request OPTIONAL, OUT REDFISH_RESPONSE *Response, IN BOOLEAN UseCache)
#define OPTIONAL
Definition: Base.h:290
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213