PSP networking matches linux now.

This commit is contained in:
2026-04-17 16:32:45 -05:00
parent bdb3cbd109
commit 39c775872a
4 changed files with 120 additions and 70 deletions
+20 -5
View File
@@ -34,10 +34,6 @@ typedef struct {
void *onConnectedUser;
void (*onConnected)(void *user);
void (*onFailed)(errorret_t error, void *user);
// Used during disconnecting
void *onCompleteUser;
void (*onComplete)(void *user);
} networkpsp_t;
/**
@@ -84,4 +80,23 @@ void networkPSPRequestConnection(
void (*onFailed)(errorret_t error, void *user),
void (*onDisconnect)(errorret_t error, void *user),
void *user
);
);
/**
* Requests the PSP to disconnect from the network (Shows the Wi-Fi disconnecting).
*
* @param onComplete Callback when disconnection is complete.
* @param user User data to pass to the callback.
*/
void networkPSPRequestDisconnection(
void (*onComplete)(void *user),
void *user
);
/**
* Disposes the PSP sce net libraries, doesn't unload the modules and won't
* term the dialog if it's active.
*
* @return Error state (if any).
*/
errorret_t networkPSPTerm();