2009-05-03 20:53:31 +02:00
|
|
|
#ifndef _HTTP_H_
|
|
|
|
#define _HTTP_H_
|
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
#include <ogcsys.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2010-09-19 01:16:05 +02:00
|
|
|
extern "C"
|
|
|
|
{
|
2009-05-03 20:53:31 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "dns.h"
|
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
/**
|
|
|
|
* A simple structure to keep track of the size of a malloc()ated block of memory
|
|
|
|
*/
|
|
|
|
struct block
|
|
|
|
{
|
2016-01-02 17:23:01 +01:00
|
|
|
u32 size;
|
|
|
|
unsigned char *data;
|
2011-07-26 00:28:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
extern const struct block emptyblock;
|
|
|
|
|
|
|
|
struct block downloadfile(const char *url);
|
|
|
|
s32 GetConnection(char * domain);
|
2009-05-03 20:53:31 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _HTTP_H_ */
|