bad char
[vg.git] / vg_steam_user_stats.h
1 #ifndef VG_STEAM_USER_STATS_H
2 #define VG_STEAM_USER_STATS_H
3
4 #include "vg_steam.h"
5
6 #if defined( VALVE_CALLBACK_PACK_SMALL )
7 #pragma pack( push, 4 )
8 #elif defined( VALVE_CALLBACK_PACK_LARGE )
9 #pragma pack( push, 8 )
10 #endif
11
12 typedef struct UserStatsReceived_t UserStatsReceived_t;
13 struct UserStatsReceived_t
14 {
15 u64 m_nGameID; // Game these stats are for
16 EResult m_eResult; // Success / error fetching the stats
17 CSteamID m_steamIDUser; // The user for whom the stats are retrieved for
18 };
19 enum { k_iUserStatsReceived = k_iSteamUserStatsCallbacks + 1 };
20
21 #pragma pack(pop)
22
23 typedef void ISteamUserStats;
24 ISteamUserStats *SteamAPI_SteamUserStats_v012(void);
25 ISteamUserStats *SteamAPI_SteamUserStats(void)
26 {
27 return SteamAPI_SteamUserStats_v012();
28 }
29
30 int SteamAPI_ISteamUserStats_RequestCurrentStats( ISteamUserStats* self );
31
32 int SteamAPI_ISteamUserStats_GetAchievement( ISteamUserStats *self,
33 const char *pchName,
34 int *pbAchieved );
35
36 int SteamAPI_ISteamUserStats_SetAchievement( ISteamUserStats *self,
37 const char *pchName );
38
39 int SteamAPI_ISteamUserStats_ClearAchievement( ISteamUserStats *self,
40 const char *pchName );
41
42 int SteamAPI_ISteamUserStats_StoreStats( ISteamUserStats* self );
43
44 #endif /* VG_STEAM_USER_STATS_H */