WAC Server API
IntroductionThis header contains the functions your WAC application must call to interact with the WAC server. Functions
WACServerStart(WACContext_t * const)This function stops the WAC engine asynchronously. WAC will respond with an WACCallbackMessage_Stopped message to the callback provided to WACServerStart. OSStatus WACServerStop( WACContext_t *const inContext ); Return ValuekNoErr if successful or an error code indicating failure. WACServerStart(WACContext_t * const, void *)This function starts the WAC engine with the selected platform parameters. This will start the asynchronous WAC callback messages to inform the application of the WAC process status. // TODO: This should take the platform params OSStatus WACServerStart( WACContext_t *const inContext, void *WACPlatformCallback ); ParametersReturn ValuekNoErr if successful or an error code indicating failure. WACServerStopThis function stops the WAC engine asynchronously. WAC will respond with an WACCallbackMessage_Stopped message to the callback provided to WACServerStart. OSStatus WACServerStop( WACContext_t *const inContext ); Return ValuekNoErr if successful or an error code indicating failure. Typedefs
WACCallbackMessage_tCallback message types to the host WAC application on the platform. typedef enum { WACCallbackMessage_Initializing = 0, WACCallbackMessage_Ready = 1, WACCallbackMessage_ConfigStart = 2, WACCallbackMessage_ConfigReceived = 3, WACCallbackMessage_ConfigComplete = 4, WACCallbackMessage_Stopped = 5, // TODO: Use the error status WACCallbackMessage_Error = 6 } WACCallbackMessage_t; WACPlatformParameters_tParameters controlled by the platform to configure the WAC process. typedef struct { uint8_t macAddress[ 6 ]; bool isUnconfigured; ; bool supportsAirPlay; bool supportsAirPrint; bool supports2_4GHzWiFi; bool supports5GHzWiFi; bool supportsWakeOnWireless; char *firmwareRevision; char *hardwareRevision; char *serialNumber; char *name; char *model; char *manufacturer; char **supportedExternalAccessoryProtocols; uint8_t numSupportedExternalAccessoryProtocols; char *preferredAppBundleSeedIdentifier; } WACPlatformParameters_t; Fields
|