]>
Commit | Line | Data |
---|---|---|
35f87da8 AC |
1 | /** @file\r |
2 | NULL instace of RedfishContentCodingLib\r | |
3 | \r | |
4 | (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>\r | |
5 | \r | |
6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
7 | \r | |
8 | **/\r | |
9 | #include <Uefi.h>\r | |
10 | \r | |
11 | /**\r | |
12 | This is the function to encode the content use the\r | |
13 | algorithm indicated in ContentEncodedValue. The naming of\r | |
14 | ContentEncodedValue is follow HTTP spec or could be a\r | |
15 | platform-specific value.\r | |
16 | \r | |
17 | @param[in] ContentEncodedValue HTTP conent encoded value.\r | |
18 | The value could be one of below\r | |
19 | or any which is platform-specific.\r | |
20 | - HTTP_CONTENT_ENCODING_IDENTITY "identity"\r | |
21 | - HTTP_CONTENT_ENCODING_GZIP "gzip"\r | |
22 | - HTTP_CONTENT_ENCODING_COMPRESS "compress"\r | |
23 | - HTTP_CONTENT_ENCODING_DEFLATE "deflate"\r | |
24 | - HTTP_CONTENT_ENCODING_BROTLI "br"\r | |
25 | @param[in] OriginalContent Original content.\r | |
26 | @param[in] OriginalContentLength The length of original content.\r | |
27 | @param[out] EncodedContentPointer Pointer to receive the encoded content pointer.\r | |
28 | @param[out] EncodedContentLength Length of encoded content.\r | |
29 | \r | |
30 | @retval EFI_SUCCESS Content is encoded successfully.\r | |
31 | @retval EFI_UNSUPPORTED No supported encoding funciton,\r | |
32 | @retval EFI_INVALID_PARAMETER One of the given parameter is invalid.\r | |
33 | \r | |
34 | **/\r | |
35 | EFI_STATUS\r | |
36 | RedfishContentEncode (\r | |
39de741e MK |
37 | IN CHAR8 *ContentEncodedValue,\r |
38 | IN CHAR8 *OriginalContent,\r | |
39 | IN UINTN OriginalContentLength,\r | |
40 | OUT VOID **EncodedContentPointer,\r | |
41 | OUT UINTN *EncodedContentLength\r | |
35f87da8 AC |
42 | )\r |
43 | {\r | |
44 | return EFI_UNSUPPORTED;\r | |
45 | }\r | |
46 | \r | |
47 | /**\r | |
48 | This is the function to decode the content use the\r | |
49 | algorithm indicated in ContentEncodedValue. The naming of\r | |
50 | ContentEncodedValue is follow HTTP spec or could be a\r | |
51 | platform-specific value.\r | |
52 | \r | |
53 | @param[in] ContentDecodedValue HTTP conent decoded value.\r | |
54 | The value could be one of below\r | |
55 | or any which is platform-specific.\r | |
56 | - HTTP_CONTENT_ENCODING_IDENTITY "identity"\r | |
57 | - HTTP_CONTENT_ENCODING_GZIP "gzip"\r | |
58 | - HTTP_CONTENT_ENCODING_COMPRESS "compress"\r | |
59 | - HTTP_CONTENT_ENCODING_DEFLATE "deflate"\r | |
60 | - HTTP_CONTENT_ENCODING_BROTLI "br"\r | |
61 | @param[in] ContentPointer Original content.\r | |
62 | @param[in] ContentLength The length of original content.\r | |
63 | @param[out] DecodedContentPointer Pointer to receive decoded content pointer.\r | |
64 | @param[out] DecodedContentLength Length of decoded content.\r | |
65 | \r | |
66 | @retval EFI_SUCCESS Content is decoded successfully.\r | |
67 | @retval EFI_UNSUPPORTED No supported decoding funciton,\r | |
68 | @retval EFI_INVALID_PARAMETER One of the given parameter is invalid.\r | |
69 | \r | |
70 | **/\r | |
71 | EFI_STATUS\r | |
72 | RedfishContentDecode (\r | |
39de741e MK |
73 | IN CHAR8 *ContentDecodedValue,\r |
74 | IN VOID *ContentPointer,\r | |
75 | IN UINTN ContentLength,\r | |
76 | OUT VOID **DecodedContentPointer,\r | |
77 | OUT UINTN *DecodedContentLength\r | |
35f87da8 AC |
78 | )\r |
79 | {\r | |
80 | return EFI_UNSUPPORTED;\r | |
81 | }\r |