PSP net code first pass

This commit is contained in:
2026-04-15 15:50:43 -05:00
parent 133685ea37
commit e51cdc8992
12 changed files with 611 additions and 16 deletions
+22 -2
View File
@@ -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();