Platform Apply Configuration
IntroductionThis header contains function prototypes called by the WAC engine that must be implemented by the platform. These functions are called when the platform needs to apply a configuration. Functions
PlatformApplyAirPlayPlayPasswordThis function is called by the WAC engine when the configuration includes an AirPlay Play Password. This function must be implemented by the platform. The platform should store the password in persistant memory and notify AirPlay of the change. OSStatus PlatformApplyAirPlayPlayPassword( const char *const inPlayPassword ); ParametersReturn ValuekNoErr if successful or an error code indicating failure. PlatformApplyNameThis function is called by the WAC engine when the configuration has been received and the user has changed the name of the device. This function must be implemented by the platform. The name should be saved to persistent memory and used wherever your device can be identified, including but not limited to the bonjour device name. OSStatus PlatformApplyName( const char *const inName ); ParametersReturn ValuekNoErr if successful or an error code indicating failure. PlatformJoinDestinationWiFiNetworkThis function is called by the WAC engine when it is time to join the destination Wi-Fi network. This function must be implemented by the platform. The SSID and PSK (when applicable) should be stored in persistent memory and auto joined upon reboots and/or connectivity loss. OSStatus PlatformJoinDestinationWiFiNetwork( const char *const inSSID, const uint8_t *const inWiFiPSK, size_t inWiFiPSKLen ); ParametersReturn ValuekNoErr if successful or an error code indicating failure. |