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
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "dns.h"
|
|
|
|
|
|
|
|
/**
|
2009-05-28 14:12:52 +02:00
|
|
|
* A simple structure to keep track of the size of a malloc()ated block of memory
|
2009-05-03 20:53:31 +02:00
|
|
|
*/
|
|
|
|
struct block
|
|
|
|
{
|
|
|
|
u32 size;
|
|
|
|
unsigned char *data;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern const struct block emptyblock;
|
|
|
|
|
2009-05-28 14:12:52 +02:00
|
|
|
struct block downloadfile(const char *url);
|
|
|
|
s32 GetConnection(char * domain);
|
2009-05-03 20:53:31 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _HTTP_H_ */
|