2009-07-23 19:24:08 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Network Operations
|
|
|
|
* for USB Loader GX
|
|
|
|
*
|
|
|
|
* HTTP operations
|
|
|
|
* Written by dhewg/bushing modified by dimok
|
|
|
|
****************************************************************************/
|
2009-06-17 22:44:00 +02:00
|
|
|
#ifndef _NETWORKOPS_H_
|
|
|
|
#define _NETWORKOPS_H_
|
2009-05-28 14:12:52 +02:00
|
|
|
|
2009-06-13 23:10:37 +02:00
|
|
|
void Initialize_Network(void);
|
|
|
|
bool IsNetworkInit(void);
|
|
|
|
char * GetNetworkIP(void);
|
2009-06-17 22:44:00 +02:00
|
|
|
bool ShutdownWC24();
|
2009-05-28 14:12:52 +02:00
|
|
|
s32 network_request(const char * request);
|
2009-06-13 23:10:37 +02:00
|
|
|
s32 network_read(u8 *buf, u32 len);
|
|
|
|
s32 download_request(const char * url);
|
2009-05-28 14:12:52 +02:00
|
|
|
void CloseConnection();
|
2009-06-13 23:10:37 +02:00
|
|
|
int CheckUpdate();
|
|
|
|
|
|
|
|
void HaltNetworkThread();
|
2009-07-23 19:24:08 +02:00
|
|
|
void ResumeNetworkWait();
|
2009-06-13 23:10:37 +02:00
|
|
|
void ResumeNetworkThread();
|
|
|
|
void InitNetworkThread();
|
|
|
|
void ShutdownNetworkThread();
|
2009-05-28 14:12:52 +02:00
|
|
|
|
|
|
|
#endif
|