VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/RedfishPkg/Library/RedfishContentCodingLibNull/RedfishContentCodingLibNull.c

Last change on this file was 99404, checked in by vboxsync, 2 years ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette