CfgUSBLoader/source/http.h

36 lines
830 B
C
Raw Permalink Normal View History

#ifndef _HTTP_H_
#define _HTTP_H_
#include <errno.h>
#include <network.h>
#include <ogcsys.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include "dns.h"
/**
* A simple structure to keep track of the size of a malloc()ated block of memory
*/
struct block
{
u32 size;
u32 filesize;
unsigned char *data;
};
extern const struct block emptyblock;
struct block downloadfile(const char *url);
struct block downloadfile_noreferer(const char *url);
struct block downloadfile_progress(const char *url, int size);
struct block downloadfile_fname(const char *url, const char *fname);
struct block downloadfile_noreferer_fname(const char *url, const char *fname);
struct block downloadfile_progress_fname(const char *url, int size, const char *fname);
#endif /* _HTTP_H_ */