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
|
2009-07-30 07:41:12 +02:00
|
|
|
extern "C" {
|
2009-05-03 20:53:31 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "dns.h"
|
|
|
|
|
2009-07-30 07:41:12 +02:00
|
|
|
/**
|
|
|
|
* A simple structure to keep track of the size of a malloc()ated block of memory
|
|
|
|
*/
|
|
|
|
struct block {
|
|
|
|
u32 size;
|
|
|
|
unsigned char *data;
|
|
|
|
};
|
2009-05-03 20:53:31 +02:00
|
|
|
|
2009-07-30 07:41:12 +02:00
|
|
|
extern const struct block emptyblock;
|
2009-05-03 20:53:31 +02:00
|
|
|
|
2009-07-30 07:41:12 +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_ */
|