PSP net code first pass
This commit is contained in:
@@ -59,14 +59,34 @@ errorret_t networkLinuxInit();
|
||||
/**
|
||||
* Updates the network manager, called once per frame to handle completed
|
||||
* HTTP requests.
|
||||
*
|
||||
*
|
||||
* @return Any error that occurs.
|
||||
*/
|
||||
errorret_t networkLinuxUpdate();
|
||||
|
||||
/**
|
||||
* Returns true — Linux uses the OS network stack which is always available.
|
||||
*
|
||||
* @return true
|
||||
*/
|
||||
bool_t networkLinuxIsConnected();
|
||||
|
||||
/**
|
||||
* No-op — Linux connection is managed by the OS. Calls onConnected immediately.
|
||||
*
|
||||
* @param onConnected Callback invoked immediately.
|
||||
* @param onFailed Unused.
|
||||
* @param user Passed to onConnected.
|
||||
*/
|
||||
void networkLinuxRequestConnection(
|
||||
void (*onConnected)(void *user),
|
||||
void (*onFailed)(errorret_t error, void *user),
|
||||
void *user
|
||||
);
|
||||
|
||||
/**
|
||||
* Disposes the network manager.
|
||||
*
|
||||
*
|
||||
* @return Any error that occurs.
|
||||
*/
|
||||
errorret_t networkLinuxDispose();
|
||||
|
||||
Reference in New Issue
Block a user