2023-09-30 14:02:30 +02:00
|
|
|
#ifndef __STEAMCLIENT_STRUCTS_H
|
|
|
|
#define __STEAMCLIENT_STRUCTS_H
|
|
|
|
|
2023-09-23 23:51:24 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <array>
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#define U64_ARRAY( type, count, name ) std::array<type, count> name
|
|
|
|
#define U32_ARRAY( type, count, name ) std::array<type, count> name
|
|
|
|
#define W64_ARRAY( type, count, name ) std::array<type, count> name
|
|
|
|
#define W32_ARRAY( type, count, name ) std::array<type, count> name
|
|
|
|
#else
|
|
|
|
#define U64_ARRAY( type, count, name ) type name[count]
|
|
|
|
#define U32_ARRAY( type, count, name ) type name[count]
|
|
|
|
#define W64_ARRAY( type, count, name ) type name[count]
|
|
|
|
#define W32_ARRAY( type, count, name ) type name[count]
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define W_CDECL __cdecl
|
|
|
|
#define W_STDCALL __stdcall
|
|
|
|
#define U_CDECL __attribute__((sysv_abi))
|
|
|
|
#define U_STDCALL __attribute__((sysv_abi))
|
|
|
|
|
|
|
|
#ifdef __i386__
|
|
|
|
#define U64_PTR( decl, name ) uint64_t name
|
|
|
|
#define U32_PTR( decl, name ) decl
|
|
|
|
#define W64_PTR( decl, name ) uint64_t name
|
|
|
|
#define W32_PTR( decl, name ) decl
|
|
|
|
#define U_PTR U32_PTR
|
|
|
|
#define W_PTR W32_PTR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __x86_64__
|
|
|
|
#define U64_PTR( decl, name ) decl
|
|
|
|
#define U32_PTR( decl, name ) uint32_t name
|
|
|
|
#define W64_PTR( decl, name ) decl
|
|
|
|
#define W32_PTR( decl, name ) uint32_t name
|
|
|
|
#define U_PTR U64_PTR
|
|
|
|
#define W_PTR W64_PTR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct { uint8_t _[8]; } CSteamID;
|
|
|
|
typedef struct { uint8_t _[8]; } CGameID;
|
|
|
|
typedef struct { uint8_t _[20]; } SteamIPAddress_t;
|
2023-09-30 14:02:30 +02:00
|
|
|
typedef struct { uint8_t _[120]; } ScePadTriggerEffectParam;
|
|
|
|
typedef char *SteamNetworkingErrMsg;
|
|
|
|
|
|
|
|
typedef struct SteamDatagramRelayAuthTicket SteamDatagramRelayAuthTicket;
|
|
|
|
typedef struct SteamDatagramHostedAddress SteamDatagramHostedAddress;
|
|
|
|
typedef struct SteamDatagramGameCoordinatorServerLogin SteamDatagramGameCoordinatorServerLogin;
|
2023-09-23 23:51:24 +02:00
|
|
|
|
|
|
|
#include "steamclient_structs_generated.h"
|
|
|
|
|
2023-09-28 22:22:25 +02:00
|
|
|
#define PATH_MAX 4096
|
2023-10-03 11:04:33 +02:00
|
|
|
extern char *g_tmppath;
|
2023-09-28 22:22:25 +02:00
|
|
|
|
2023-09-23 23:51:24 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* __cplusplus */
|
2023-09-30 14:02:30 +02:00
|
|
|
|
|
|
|
#endif /* __STEAMCLIENT_STRUCTS_H */
|