gpGetBuddyStatus

GameSpy SDK

gpGetBuddyStatus

This function gets the status for a particular buddy on the buddy list.

GPResult gpGetBuddyStatus(
GPConnection * connection,
int index,
GPBuddyStatus * status );
RoutineRequired HeaderDistribution
gpGetBuddyStatus<gp.h>SDKZIP

Return Value

This function returns GP_NO_ERROR upon success. Otherwise a valid GPResult is returned.

Parameters

connection
[in] A GP connection interface.
index
[in] The array index of the buddy.
status
[out] The status of this buddy.

Remarks

This function is used to get the status of a particular buddy. index is a number greater than or equal to 0 and less than the total number of buddies.
This function will typically be called in response to the gpRecvBuddyStatus callback being called.

Section Reference: Gamespy Presence SDK