blob: bcaa12ba279533f866a57ab88e96b019ee5fdb0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/** @file
This header file defines Redfish service and Redfish data structures that
are used to communicate with Redfish Ex Protocol.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef REDFISH_SERVICE_DATA_H_
#define REDFISH_SERVICE_DATA_H_
#include <Uefi.h>
#include <Protocol/Http.h>
typedef VOID *REDFISH_SERVICE;
typedef VOID *REDFISH_PAYLOAD;
///
/// REDFISH_REQUEST definition.
///
typedef struct {
UINTN HeaderCount;
EFI_HTTP_HEADER *Headers;
CHAR8 *Content;
CHAR8 *ContentType;
UINTN ContentLength;
} REDFISH_REQUEST;
///
/// REDFISH_REQUEST definition.
///
typedef struct {
EFI_HTTP_STATUS_CODE *StatusCode;
UINTN HeaderCount;
EFI_HTTP_HEADER *Headers;
REDFISH_PAYLOAD Payload;
} REDFISH_RESPONSE;
#endif
|