202 lines
3.6 KiB
C++
202 lines
3.6 KiB
C++
#include <cstdint>
|
|
#include <cstddef>
|
|
#include "SceTypes.hpp"
|
|
|
|
extern "C" {
|
|
|
|
int sceHttp2AddRequestHeader(int id, const char* name, const char* value, uint32_t mode) {
|
|
(void)id;
|
|
(void)name;
|
|
(void)value;
|
|
(void)mode;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2CreateRequestWithURL(int tmpl_id, const char* method, const char* url, uint64_t content_length) {
|
|
(void)tmpl_id;
|
|
(void)method;
|
|
(void)url;
|
|
(void)content_length;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2CreateTemplate(int lib_http2_ctx_id, const char* user_agent, int http_ver, int is_auto_proxy_conf) {
|
|
(void)lib_http2_ctx_id;
|
|
(void)user_agent;
|
|
(void)http_ver;
|
|
|
|
(void)is_auto_proxy_conf;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2DeleteRequest(int req_id) {
|
|
(void)req_id;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2DeleteTemplate(int tmpl_id) {
|
|
(void)tmpl_id;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2GetAllResponseHeaders(int req_id, char** header, size_t* header_size) {
|
|
(void)req_id;
|
|
(void)header;
|
|
(void)header_size;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2GetResponseContentLength(int req_id, int* result, uint64_t* content_length) {
|
|
(void)req_id;
|
|
(void)result;
|
|
(void)content_length;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2GetStatusCode(int req_id, int* status_code) {
|
|
(void)req_id;
|
|
(void)status_code;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2Init(int libnet_mem_id, int libssl_ctx_id, size_t pool_size, int max_concurrent_request) {
|
|
(void)libnet_mem_id;
|
|
(void)libssl_ctx_id;
|
|
(void)pool_size;
|
|
(void)max_concurrent_request;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2ReadData(int req_id, void* data, size_t size) {
|
|
(void)req_id;
|
|
(void)data;
|
|
(void)size;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2ReadDataAsync(int req_id, void* data, size_t size, void* kqueue_option, void* option) {
|
|
(void)req_id;
|
|
(void)data;
|
|
(void)size;
|
|
(void)kqueue_option;
|
|
(void)option;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SendRequest(int req_id, const void* post_data, size_t size) {
|
|
(void)req_id;
|
|
(void)post_data;
|
|
(void)size;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SendRequestAsync(int req_id, const void* post_data, size_t size, void* kqueue_option, void* option) {
|
|
(void)req_id;
|
|
(void)post_data;
|
|
(void)size;
|
|
(void)kqueue_option;
|
|
(void)option;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetAuthEnabled(int id, int is_enable) {
|
|
(void)id;
|
|
(void)is_enable;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetAutoRedirect(int id, int enable) {
|
|
(void)id;
|
|
(void)enable;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetConnectionWaitTimeOut(int id, uint32_t usec) {
|
|
(void)id;
|
|
(void)usec;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetConnectTimeOut(int id, uint32_t usec) {
|
|
(void)id;
|
|
(void)usec;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetInflateGZIPEnabled(int id, int enable) {
|
|
(void)id;
|
|
(void)enable;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetRecvTimeOut(int id, uint32_t usec) {
|
|
(void)id;
|
|
(void)usec;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetRedirectCallback(int id, void* cb_func, void* user_arg) {
|
|
(void)id;
|
|
(void)cb_func;
|
|
(void)user_arg;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetRequestContentLength(int id, uint64_t content_length) {
|
|
(void)id;
|
|
(void)content_length;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetResolveTimeOut(int id, uint32_t usec) {
|
|
(void)id;
|
|
(void)usec;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetSendTimeOut(int id, uint32_t usec) {
|
|
(void)id;
|
|
(void)usec;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetSslCallback(int id, void* cb_func, void* user_arg) {
|
|
(void)id;
|
|
(void)cb_func;
|
|
(void)user_arg;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SetTimeOut(int id, uint32_t usec) {
|
|
(void)id;
|
|
(void)usec;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SslDisableOption(int id, uint32_t ssl_flags) {
|
|
(void)id;
|
|
(void)ssl_flags;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2SslEnableOption(int id, uint32_t ssl_flags) {
|
|
(void)id;
|
|
(void)ssl_flags;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2Term(int lib_http2_ctx_id) {
|
|
(void)lib_http2_ctx_id;
|
|
return 0;
|
|
}
|
|
|
|
int sceHttp2WaitAsync(int req_id, Http2AsyncResult* result, uint32_t* timeout, void* option) {
|
|
(void)req_id;
|
|
(void)result;
|
|
(void)timeout;
|
|
(void)option;
|
|
return 0;
|
|
}
|
|
|
|
}
|