GPCallback
A generic callback definition used to specify the callback supplied to GP SDK functions.
- typedef void (*GPCallback)(
- GPConnection * connection,
- void * arg,
- void * param );
Routine | Required Header | Distribution |
---|---|---|
GPCallback | <gp.h> | SDKZIP |
Parameters
- connection
- [in] The connection associated with the task.
- arg
- [in] Pointer to a response structure whose content depends on the task in progress.
- param
- [in] User-data that was passed into the original function.
Remarks
The arg parameter content varies depending on the task. For example, a callback that is specified when calling gpGetInfo() should cast its incoming arg pointer to type GPGetInfoResponseArg.
Section Reference: Gamespy Presence SDK
See Also: gpGetInfo, GPGetInfoResponseArg