ddnet/src/steam/steam_api_flat.h

68 lines
1.7 KiB
C
Raw Normal View History

2020-09-10 22:02:46 +00:00
#ifndef STEAM_STEAM_API_FLAT_H
#define STEAM_STEAM_API_FLAT_H
2020-08-20 10:17:44 +00:00
#include <base/dynamic.h>
#include <stdint.h>
2020-08-20 10:17:44 +00:00
#ifndef STEAMAPI
#define STEAMAPI DYNAMIC_IMPORT
#endif
extern "C" {
2020-08-20 10:17:44 +00:00
typedef uint64_t CSteamID;
typedef int32_t HSteamPipe;
typedef int32_t HSteamUser;
struct CallbackMsg_t
{
HSteamUser m_hSteamUser;
int m_iCallback;
unsigned char *m_pubParam;
int m_cubParam;
};
struct GameRichPresenceJoinRequested_t
{
enum
{
k_iCallback = 337
};
CSteamID m_steamIDFriend;
char m_rgchConnect[256];
};
struct NewUrlLaunchParameters_t
{
enum
{
k_iCallback = 1014
};
unsigned char m_EmptyStructDontUse;
};
struct ISteamApps;
2020-08-20 10:17:44 +00:00
struct ISteamFriends;
STEAMAPI bool SteamAPI_Init(); // Returns true on success.
STEAMAPI HSteamPipe SteamAPI_GetHSteamPipe();
2020-08-20 10:17:44 +00:00
STEAMAPI void SteamAPI_Shutdown();
STEAMAPI void SteamAPI_ManualDispatch_Init();
STEAMAPI void SteamAPI_ManualDispatch_FreeLastCallback(HSteamPipe SteamPipe);
STEAMAPI bool SteamAPI_ManualDispatch_GetNextCallback(HSteamPipe SteamPipe, CallbackMsg_t *pCallbackMsg);
STEAMAPI void SteamAPI_ManualDispatch_RunFrame(HSteamPipe SteamPipe);
STEAMAPI ISteamApps *SteamAPI_SteamApps_v008();
STEAMAPI int SteamAPI_ISteamApps_GetLaunchCommandLine(ISteamApps *pSelf, char *pBuffer, int BufferSize);
STEAMAPI const char *SteamAPI_ISteamApps_GetLaunchQueryParam(ISteamApps *pSelf, const char *pKey);
2020-08-20 10:17:44 +00:00
STEAMAPI ISteamFriends *SteamAPI_SteamFriends_v017();
STEAMAPI void SteamAPI_ISteamFriends_ClearRichPresence(ISteamFriends *pSelf);
2020-08-20 10:17:44 +00:00
STEAMAPI const char *SteamAPI_ISteamFriends_GetPersonaName(ISteamFriends *pSelf);
STEAMAPI bool SteamAPI_ISteamFriends_SetRichPresence(ISteamFriends *pSelf, const char *pKey, const char *pValue);
2020-08-20 10:17:44 +00:00
}
2020-09-10 22:02:46 +00:00
#endif // STEAM_STEAM_API_FLAT_H