TianoCore EDK2 master
Loading...
Searching...
No Matches
redfishPayload.h
Go to the documentation of this file.
1
19#ifndef LIBREDFISH_REDFISH_PAYLOAD_H_
20#define LIBREDFISH_REDFISH_PAYLOAD_H_
21
23#include <Library/JsonLib.h>
24#include <jansson.h>
25#include <redfishService.h>
26#include <redpath.h>
27
29createRedfishPayload (
30 json_t *value,
31 redfishService *service
32 );
33
35getPayloadByNodeName (
36 redfishPayload *payload,
37 const char *nodeName,
38 EFI_HTTP_STATUS_CODE **StatusCode
39 );
40
42getPayloadByIndex (
43 redfishPayload *payload,
44 size_t index,
45 EFI_HTTP_STATUS_CODE **StatusCode
46 );
47
49getPayloadForPath (
50 redfishPayload *payload,
51 redPathNode *redpath,
52 EFI_HTTP_STATUS_CODE **StatusCode
53 );
54
56getPayloadForPathString (
57 redfishPayload *payload,
58 const char *string,
59 EFI_HTTP_STATUS_CODE **StatusCode
60 );
61
63patchPayload (
64 redfishPayload *target,
65 redfishPayload *payload,
66 EFI_HTTP_STATUS_CODE **StatusCode
67 );
68
70postContentToPayload (
71 redfishPayload *target,
72 const char *data,
73 size_t dataSize,
74 const char *contentType,
75 EFI_HTTP_STATUS_CODE **StatusCode
76 );
77
79postPayload (
80 redfishPayload *target,
81 redfishPayload *payload,
82 EFI_HTTP_STATUS_CODE **StatusCode
83 );
84
85void
86cleanupPayload (
87 redfishPayload *payload
88 );
89
90bool
91isPayloadCollection (
92 redfishPayload *Payload
93 );
94
95size_t
96getCollectionSize (
97 redfishPayload *payload
98 );
99
101getPayloadByIndex (
102 redfishPayload *payload,
103 size_t index,
104 EFI_HTTP_STATUS_CODE **StatusCode
105 );
106
107#endif
EFI_HTTP_STATUS_CODE
Definition: Http.h:59