2008-12-24 09:02:04 +01:00
|
|
|
/****************************************************************************
|
2010-01-27 23:20:37 +01:00
|
|
|
* Snes9x Nintendo Wii/Gamecube Port
|
2008-12-24 09:02:04 +01:00
|
|
|
*
|
2010-01-27 23:20:37 +01:00
|
|
|
* Tantric 2008-2010
|
2008-12-24 09:02:04 +01:00
|
|
|
*
|
|
|
|
* http.h
|
|
|
|
*
|
|
|
|
* HTTP operations
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _HTTP_H_
|
|
|
|
#define _HTTP_H_
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
HTTPR_OK,
|
|
|
|
HTTPR_ERR_CONNECT,
|
|
|
|
HTTPR_ERR_REQUEST,
|
|
|
|
HTTPR_ERR_STATUS,
|
|
|
|
HTTPR_ERR_TOOBIG,
|
|
|
|
HTTPR_ERR_RECEIVE
|
|
|
|
} http_res;
|
|
|
|
|
2010-06-23 19:34:19 +02:00
|
|
|
int http_request (const char *url, FILE * hfile, u8 * buffer, const u32 max_size, bool silent);
|
2008-12-24 09:02:04 +01:00
|
|
|
|
|
|
|
#endif
|