36 #define GE_NOCONNECT 3
38 #define GE_DATAERROR 5
41 extern char gcd_secret_key[256];
42 extern char gcd_gamename[256];
66 int InitStatsConnection(
int gameport);
81 int IsStatsConnected();
90 void CloseStatsConnection(
void);
104 char *GetChallenge(statsgame_t game);
121 char *GenerateAuth(
char *challenge, gsi_char *password,
char response[33]);
130#define GenerateAuth GenerateAuthA
131#define PreAuthenticatePlayerCD PreAuthenticatePlayerCDA
132#define GetProfileIDFromCD GetProfileIDFromCDA
133#define GetPersistDataValues GetPersistDataValuesA
134#define GetPersistDataValuesModified GetPersistDataValuesModifiedA
135#define SetPersistDataValues SetPersistDataValuesA
137#define GenerateAuth GenerateAuthW
138#define PreAuthenticatePlayerCD PreAuthenticatePlayerCDW
139#define GetProfileIDFromCD GetProfileIDFromCDW
140#define GetPersistDataValues GetPersistDataValuesW
141#define GetPersistDataValuesModified GetPersistDataValuesModifiedW
142#define SetPersistDataValues SetPersistDataValuesW
153typedef enum {pd_private_ro, pd_private_rw, pd_public_ro, pd_public_rw} persisttype_t;
173typedef void (*PersAuthCallbackFn)(
int localid,
int profileid,
int authenticated, gsi_char *errmsg,
void *instance);
201typedef void (*PersDataCallbackFn)(
int localid,
int profileid, persisttype_t type,
int index,
int success, time_t modified,
char *data,
int len,
void *instance);
217typedef void (*PersDataSaveCallbackFn)(
int localid,
int profileid, persisttype_t type,
int index,
int success, time_t modified,
void *instance);
232typedef void (*ProfileCallbackFn)(
int localid,
int profileid,
int success,
void *instance);
272void PreAuthenticatePlayerPartner(
int localid,
const char* authtoken,
const char *challengeresponse, PersAuthCallbackFn callback,
void *instance);
273void PreAuthenticatePlayerPM(
int localid,
int profileid,
const char *challengeresponse, PersAuthCallbackFn callback,
void *instance);
274void PreAuthenticatePlayerCD(
int localid,
const gsi_char *nick,
const char *keyhash,
const char *challengeresponse, PersAuthCallbackFn callback,
void *instance);
294void GetProfileIDFromCD(
int localid,
const gsi_char *nick,
const char *keyhash, ProfileCallbackFn callback,
void *instance);
321void GetPersistData(
int localid,
int profileid, persisttype_t type,
int index, PersDataCallbackFn callback,
void *instance);
322void GetPersistDataModified(
int localid,
int profileid, persisttype_t type,
int index, time_t modifiedsince, PersDataCallbackFn callback,
void *instance);
349void GetPersistDataValues(
int localid,
int profileid, persisttype_t type,
int index, gsi_char *keys, PersDataCallbackFn callback,
void *instance);
350void GetPersistDataValuesModified(
int localid,
int profileid, persisttype_t type,
int index, time_t modifiedsince, gsi_char *keys, PersDataCallbackFn callback,
void *instance);
373void SetPersistData(
int localid,
int profileid, persisttype_t type,
int index,
const char *data,
int len, PersDataSaveCallbackFn callback,
void *instance);
395void SetPersistDataValues(
int localid,
int profileid, persisttype_t type,
int index,
const gsi_char *keyvalues, PersDataSaveCallbackFn callback,
void *instance);