mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 00:55:06 +01:00
34 lines
556 B
C
34 lines
556 B
C
#ifndef _HTTP_H_
|
|
#define _HTTP_H_
|
|
|
|
#include <errno.h>
|
|
#include <network.h>
|
|
#include <ogcsys.h>
|
|
#include <string.h>
|
|
|
|
#include "dns.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
/**
|
|
* A simple structure to keep track of the size of a malloc()ated block of memory
|
|
*/
|
|
struct block
|
|
{
|
|
u32 size;
|
|
unsigned char *data;
|
|
};
|
|
|
|
extern const struct block emptyblock;
|
|
|
|
struct block downloadfile(u8 *buffer, u32 bufferSize, const char *url, bool (*f)(void *, int, int), void *ud);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* _HTTP_H_ */
|