yeah whatever
This commit is contained in:
@@ -12,6 +12,15 @@
|
||||
|
||||
#define NETWORK_DOLPHIN_IP_MAX 16
|
||||
|
||||
#ifdef DUSK_GAMECUBE
|
||||
// No DNS client is implemented for GameCube yet (see
|
||||
// networkSocketDolphinConnect) -- only literal IP addresses work.
|
||||
// A future resolver should query this server.
|
||||
#ifndef NETWORK_DOLPHIN_DNS_SERVER_IP
|
||||
#define NETWORK_DOLPHIN_DNS_SERVER_IP "0.0.0.0"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
char_t ip[NETWORK_DOLPHIN_IP_MAX];
|
||||
char_t netmask[NETWORK_DOLPHIN_IP_MAX];
|
||||
@@ -23,37 +32,39 @@ typedef struct {
|
||||
} networkdolphin_t;
|
||||
|
||||
/**
|
||||
* Initializes the Wii network stack via IOS. Does not connect; use
|
||||
* networkDolphinRequestConnection for that.
|
||||
* Initializes the network stack (IOS on Wii, bundled lwIP + BBA driver on
|
||||
* GameCube). Does not connect; use networkDolphinRequestConnection for
|
||||
* that.
|
||||
*
|
||||
* @return Error state (if any).
|
||||
*/
|
||||
errorret_t networkDolphinInit();
|
||||
|
||||
/**
|
||||
* Called each frame. No-op on Wii since connection is synchronous.
|
||||
* Called each frame. No-op since connection is synchronous.
|
||||
*
|
||||
* @return Error state (if any).
|
||||
*/
|
||||
errorret_t networkDolphinUpdate();
|
||||
|
||||
/**
|
||||
* Disposes the Wii network stack.
|
||||
* Disposes the network stack.
|
||||
*
|
||||
* @return Error state (if any).
|
||||
*/
|
||||
errorret_t networkDolphinDispose();
|
||||
|
||||
/**
|
||||
* Returns true if the Wii is connected to a network.
|
||||
* Returns true if connected to a network.
|
||||
*
|
||||
* @return True if connected.
|
||||
*/
|
||||
bool_t networkDolphinIsConnected();
|
||||
|
||||
/**
|
||||
* Requests the Wii to connect to the network using the Wi-Fi settings saved
|
||||
* in the Wii System Menu. Blocks until connected or failed.
|
||||
* Requests a connection to the network: the Wi-Fi settings saved in the
|
||||
* Wii System Menu on Wii, or DHCP over the Broadband Adapter on GameCube.
|
||||
* Blocks until connected or failed.
|
||||
*
|
||||
* @param onConnected Callback on successful connection.
|
||||
* @param onFailed Callback if connection fails.
|
||||
@@ -68,7 +79,7 @@ void networkDolphinRequestConnection(
|
||||
);
|
||||
|
||||
/**
|
||||
* Requests the Wii to disconnect from the network.
|
||||
* Requests to disconnect from the network.
|
||||
*
|
||||
* @param onComplete Callback when disconnection is complete.
|
||||
* @param user User data passed to the callback.
|
||||
|
||||
Reference in New Issue
Block a user