SAKERequestCallback
Callback called when a request completes.
- typedef void (*SAKERequestCallback)(
- SAKE sake,
- SAKERequest request,
- SAKERequestResult result,
- void * inputData,
- void * outputData,
- void * userData );
Routine | Required Header | Distribution |
---|---|---|
SAKERequestCallback | <sake.h> | SDKZIP |
Parameters
- sake
- [out] The sake object.
- request
- [out] State of the sake request.
- result
- [out] The result of the request; SAKERequestResult_SUCCESS means success, any other value indicates failure.
- inputData
- [ref] Pointer to the input object which was passed into the request.
- outputData
- [ref] Pointer to an output object for this request, which should be cast to the appropriate type based on the request made.
- userData
- [ref] Pointer to the userData passed into the request function.
Remarks
Not all request types have output objects. If a request type does not have an output object, then outputData will be always be NULL when the callback is called.
Section Reference: Gamespy Sake SDK
See Also: SAKERequestResult