mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-23 12:20:00 +00:00
sync with devkit psp
This commit is contained in:
@@ -17,6 +17,12 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum
|
||||
{
|
||||
PSP_HTTP_VERSION_1_0,
|
||||
PSP_HTTP_VERSION_1_1
|
||||
} PspHttpHttpVersion;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
PSP_HTTP_METHOD_GET,
|
||||
@@ -25,6 +31,41 @@ typedef enum
|
||||
|
||||
} PspHttpMethod;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
PSP_HTTP_AUTH_BASIC,
|
||||
PSP_HTTP_AUTH_DIGEST
|
||||
} PspHttpAuthType;
|
||||
|
||||
|
||||
typedef enum
|
||||
{
|
||||
PSP_HTTP_PROXY_AUTO,
|
||||
PSP_HTTP_PROXY_MANUAL
|
||||
} PspHttpProxyMode;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
PSP_HTTP_HEADER_OVERWRITE,
|
||||
PSP_HTTP_HEADER_ADD
|
||||
} PspHttpAddHeaderMode;
|
||||
|
||||
/* Memory function types */
|
||||
typedef void *(*PspHttpMallocFunction)(SceSize size);
|
||||
typedef void *(*PspHttpReallocFunction)(void *p, SceSize size);
|
||||
typedef void (*PspHttpFreeFunction)(void *p);
|
||||
|
||||
typedef int (*PspHttpPasswordCB)(
|
||||
int request,
|
||||
PspHttpAuthType auth_type,
|
||||
const unsigned char *realm,
|
||||
unsigned char *username,
|
||||
unsigned char *password,
|
||||
SceBool need_entity,
|
||||
unsigned char **entity_body,
|
||||
SceSize *entity_size,
|
||||
SceBool *save);
|
||||
|
||||
/**
|
||||
* Init the http library.
|
||||
*
|
||||
@@ -319,6 +360,32 @@ int sceHttpsEnd(void);
|
||||
*/
|
||||
int sceHttpsLoadDefaultCert(int unknown1, int unknown2);
|
||||
|
||||
int sceHttpDisableAuth(int id);
|
||||
|
||||
int sceHttpDisableCache(int id);
|
||||
|
||||
int sceHttpEnableAuth(int id);
|
||||
|
||||
int sceHttpEnableCache(int id);
|
||||
|
||||
int sceHttpEndCache(void);
|
||||
|
||||
int sceHttpGetAllHeader(int request, unsigned char **header, unsigned int *header_size);
|
||||
|
||||
int sceHttpGetNetworkErrno(int request, int *err_num);
|
||||
|
||||
int sceHttpGetProxy(int id, int *activate_flag, int *mode, unsigned char *proxy_host, SceSize len, unsigned short *proxy_port);
|
||||
|
||||
int sceHttpInitCache(SceSize max_size);
|
||||
|
||||
int sceHttpSetAuthInfoCB(int id, PspHttpPasswordCB cbfunc);
|
||||
|
||||
int sceHttpSetProxy(int id, int activate_flag, int mode, const unsigned char *new_proxy_host, unsigned short new_proxy_port);
|
||||
|
||||
int sceHttpSetResHeaderMaxSize(int id, unsigned int header_size);
|
||||
|
||||
int sceHttpSetMallocFunction(PspHttpMallocFunction malloc_func, PspHttpFreeFunction free_func, PspHttpReallocFunction realloc_func);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user