Repository navigation
Expand file tree
/
Copy pathExport.cpp
More file actions
191 lines (154 loc) · 5.17 KB
/
Copy pathExport.cpp
File metadata and controls
191 lines (154 loc) · 5.17 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#include <cstdint>
#include <cstddef>
#include "SceTypes.hpp"
#include "prx/libc/include/General.hpp"
struct HttpCacheHeader {
const char* name;
const char* value;
};
struct HttpCacheRequest {
std::uint32_t method;
std::uint32_t reserved;
const char* url;
std::size_t headerCount;
const HttpCacheHeader* headers;
};
struct HttpCacheResponseHeader {
std::uint32_t statusCode;
std::uint32_t reserved;
std::size_t headerCount;
const HttpCacheHeader* headers;
};
struct HttpCacheResponse {
std::uint32_t statusCode;
std::uint32_t reserved;
std::size_t headerCount;
const HttpCacheHeader* headers;
std::uint64_t contentLength;
};
struct HttpCacheQuotaEntry {
const char* name;
std::uint64_t size;
};
struct HttpCacheQuota {
std::size_t count;
const HttpCacheQuotaEntry* entries;
};
static_assert(sizeof(HttpCacheHeader) == 16);
static_assert(sizeof(HttpCacheRequest) == 32);
static_assert(offsetof(HttpCacheRequest, url) == 8);
static_assert(offsetof(HttpCacheRequest, headers) == 24);
static_assert(sizeof(HttpCacheResponseHeader) == 24);
static_assert(offsetof(HttpCacheResponseHeader, headers) == 16);
static_assert(sizeof(HttpCacheResponse) == 32);
static_assert(offsetof(HttpCacheResponse, contentLength) == 24);
static_assert(sizeof(HttpCacheQuotaEntry) == 16);
static_assert(sizeof(HttpCacheQuota) == 16);
extern "C" {
int APS5_VABI sceHttpCacheClear(std::int32_t cacheId, std::int32_t userId, const char* tag) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheClearAll(std::int32_t cacheId, std::int32_t userId) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheCompleteRequest(std::int32_t requestId) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheCreateRequest(std::int32_t cacheId, std::int32_t userId) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheCreateRequestWithTag(std::int32_t cacheId, std::int32_t userId, const char* tag) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheDeleteRequest(std::int32_t requestId) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheInit(std::size_t poolSize) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheReadData(std::int32_t requestId, std::size_t size, void* data) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheRetrieve(std::int32_t requestId, const HttpCacheRequest* request, HttpCacheResponse* response, HttpCacheRequest* nextRequest, std::int32_t* result) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheRetrieveWithMemoryPool(std::int32_t requestId, const HttpCacheRequest* request, HttpCacheResponse* response, HttpCacheRequest* nextRequest, std::int32_t* result, void* pool, std::size_t* requiredSize, std::size_t poolSize) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheRevalidate(std::int32_t requestId, const HttpCacheResponseHeader* header, HttpCacheResponse* response, std::int32_t* result) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheRevalidateWithMemoryPool(std::int32_t requestId, const HttpCacheResponseHeader* header, HttpCacheResponse* response, std::int32_t* result, void* pool, std::size_t* requiredSize, std::size_t poolSize) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheSetCacheSharing(std::uint8_t enabled) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheSetData(std::int32_t requestId, const void* data, std::size_t size) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheSetQuota(std::int32_t cacheId, const HttpCacheQuota* quota) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheSetResponseHeader(std::int32_t requestId, const HttpCacheResponseHeader* header) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheSystemClearAll(const char* path) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheSystemInit(const char* path) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheSystemSendStatistics() {
return 0;
}
int APS5_VABI sceHttpCacheSystemShutdown() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheSystemTerm() {
return 0;
}
int APS5_VABI sceHttpCacheTerm(std::int32_t cacheId) {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheClearAllUserTags() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheClearCacheInfo() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheDebugSetUrl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheRegisterCacheInfoUrl() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
int APS5_VABI sceHttpCacheRemoveTag() {
NotImplemented_nid_no_patch(__func__);
return 0;
}
}