2018-01-18 19:24:05 +03:00
|
|
|
/* TODO these should be generated */
|
2018-11-20 20:10:12 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2022-06-10 12:24:47 +03:00
|
|
|
#include "windef.h"
|
|
|
|
|
2018-01-18 19:24:05 +03:00
|
|
|
typedef struct __winISteamClient winISteamClient;
|
|
|
|
typedef struct __winISteamUser winISteamUser;
|
|
|
|
typedef struct __winISteamGameServer winISteamGameServer;
|
|
|
|
typedef struct __winISteamFriends winISteamFriends;
|
|
|
|
typedef struct __winISteamUtils winISteamUtils;
|
|
|
|
typedef struct __winISteamMatchmaking winISteamMatchmaking;
|
|
|
|
typedef struct __winISteamMatchmakingServers winISteamMatchmakingServers;
|
|
|
|
typedef struct __winISteamUserStats winISteamUserStats;
|
|
|
|
typedef struct __winISteamGameServerStats winISteamGameServerStats;
|
|
|
|
typedef struct __winISteamApps winISteamApps;
|
|
|
|
typedef struct __winISteamNetworking winISteamNetworking;
|
|
|
|
typedef struct __winISteamRemoteStorage winISteamRemoteStorage;
|
|
|
|
typedef struct __winISteamRemoteScreenshots winISteamRemoteScreenshots;
|
|
|
|
typedef struct __winISteamScreenshots winISteamScreenshots;
|
|
|
|
typedef struct __winISteamHTTP winISteamHTTP;
|
|
|
|
typedef struct __winISteamUnifiedMessages winISteamUnifiedMessages;
|
|
|
|
typedef struct __winISteamController winISteamController;
|
|
|
|
typedef struct __winISteamUGC winISteamUGC;
|
|
|
|
typedef struct __winISteamAppList winISteamAppList;
|
|
|
|
typedef struct __winISteamMusic winISteamMusic;
|
|
|
|
typedef struct __winISteamMusicRemote winISteamMusicRemote;
|
|
|
|
typedef struct __winISteamHTMLSurface winISteamHTMLSurface;
|
|
|
|
typedef struct __winISteamInventory winISteamInventory;
|
|
|
|
typedef struct __winISteamVideo winISteamVideo;
|
|
|
|
typedef struct __winISteamMasterServerUpdater winISteamMasterServerUpdater;
|
|
|
|
typedef struct __winISteamContentServer winISteamContentServer;
|
|
|
|
typedef struct __winISteamParentalSettings winISteamParentalSettings;
|
2019-02-25 18:44:23 +03:00
|
|
|
typedef struct __winISteamGameSearch winISteamGameSearch;
|
|
|
|
typedef struct __winISteamInput winISteamInput;
|
|
|
|
typedef struct __winISteamParties winISteamParties;
|
2019-08-16 16:39:30 +03:00
|
|
|
typedef struct __winISteamRemotePlay winISteamRemotePlay;
|
2021-12-20 18:48:44 +03:00
|
|
|
typedef struct __winISteamNetworkingFakeUDPPort winISteamNetworkingFakeUDPPort;
|
2018-01-18 19:24:05 +03:00
|
|
|
typedef struct __winX winX;
|
|
|
|
|
2022-06-10 12:24:47 +03:00
|
|
|
struct SteamInputActionEvent_t;
|
|
|
|
typedef void (*CDECL win_SteamInputActionEventCallbackPointer)(SteamInputActionEvent_t *);
|
|
|
|
void lin_SteamInputActionEventCallbackPointer(SteamInputActionEvent_t *dat);
|
|
|
|
|
2018-01-18 19:24:05 +03:00
|
|
|
void *create_win_interface(const char *name, void *linux_side);
|
2019-06-17 21:05:41 +03:00
|
|
|
unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src, char *dst, uint32 dst_bytes, int is_url);
|
|
|
|
bool steamclient_dos_path_to_unix_path(const char *src, char *dst, int is_url);
|
2018-11-20 20:10:12 +03:00
|
|
|
const char **steamclient_dos_to_unix_stringlist(const char **src);
|
|
|
|
void steamclient_free_stringlist(const char **out);
|
|
|
|
const char *steamclient_isteamcontroller_getglyph(int origin, const char *lin_path);
|
2021-10-08 19:09:30 +03:00
|
|
|
const char *steamclient_isteaminput_getglyph(int origin, const char *lin_path);
|
2021-10-08 20:58:43 +03:00
|
|
|
const char *steamclient_isteaminput_getglyph_xbox(int origin, const char *lin_path);
|
2022-06-13 22:02:14 +03:00
|
|
|
const char *steamclient_isteaminput_getglyph_png(int origin, int size, int flags, const char *lin_path);
|
2022-06-10 12:23:18 +03:00
|
|
|
const char *steamclient_isteaminput_getglyph_svg(int origin, int flags, const char *lin_path);
|
2019-06-17 18:50:11 +03:00
|
|
|
uint32 manual_convert_nNativeKeyCode(uint32 win_vk);
|
2019-02-07 23:50:38 +03:00
|
|
|
void *create_LinuxISteamMatchmakingServerListResponse(void *win, const char *version);
|
|
|
|
void *create_LinuxISteamMatchmakingPingResponse(void *win, const char *version);
|
|
|
|
void *create_LinuxISteamMatchmakingPlayersResponse(void *win, const char *version);
|
|
|
|
void *create_LinuxISteamMatchmakingRulesResponse(void *win, const char *version);
|
2022-06-15 01:54:51 +03:00
|
|
|
void *manual_convert_SteamAPIWarningMessageHook_t(void *win_func);
|
2019-05-17 22:48:34 +03:00
|
|
|
void *manual_convert_FSteamNetworkingSocketsDebugOutput(void *win_func);
|
2019-08-15 22:50:30 +03:00
|
|
|
void *manual_convert_SteamAPI_CheckCallbackRegistered_t(void *win_func);
|
2018-10-30 22:09:49 +03:00
|
|
|
|
2018-11-20 20:10:12 +03:00
|
|
|
extern char g_tmppath[PATH_MAX];
|
|
|
|
|
2018-10-30 22:09:49 +03:00
|
|
|
typedef uint64 SteamAPICall_t; //for ancient SDKs
|
2018-10-30 19:30:28 +03:00
|
|
|
bool do_cb_wrap(HSteamPipe pipe, void *linux_side, bool (*cpp_func)(void *, SteamAPICall_t, void *, int, int, bool *), SteamAPICall_t call, void *callback, int callback_len, int cb_expected, bool *failed);
|
2018-01-18 19:38:13 +03:00
|
|
|
|
2021-11-03 18:00:12 +03:00
|
|
|
void *alloc_mem_for_iface(size_t size, const char *iface_version);
|
2022-06-24 06:02:39 +03:00
|
|
|
void *alloc_vtable(void *vtable, unsigned int method_count, const char *iface_version);
|
2021-11-03 18:00:12 +03:00
|
|
|
|
2022-05-23 23:29:28 +03:00
|
|
|
enum callback_type
|
|
|
|
{
|
|
|
|
SOCKET_DEBUG_OUTPUT = 1,
|
2022-06-15 01:54:51 +03:00
|
|
|
STEAM_API_WARNING_HOOK,
|
2023-08-24 05:06:09 +03:00
|
|
|
STEAM_API_CALLBACK_ONE_PARAM,
|
2022-05-23 23:29:28 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
struct callback_data
|
|
|
|
{
|
|
|
|
enum callback_type type;
|
|
|
|
void *func;
|
|
|
|
int complete;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned int type;
|
|
|
|
const char *msg;
|
|
|
|
}
|
|
|
|
sockets_debug_output;
|
2022-06-15 01:54:51 +03:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
int severity;
|
|
|
|
const char *msg;
|
|
|
|
}
|
|
|
|
steam_api_warning_hook;
|
2023-08-24 05:06:09 +03:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
void *param;
|
|
|
|
}
|
|
|
|
steam_api_callback_one_param;
|
2022-05-23 23:29:28 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
void execute_callback(struct callback_data *cb_data);
|
2023-08-24 05:06:09 +03:00
|
|
|
BOOL is_native_thread(void);
|
2023-08-25 05:42:23 +03:00
|
|
|
bool after_shutdown(bool);
|
|
|
|
HSteamPipe after_steam_pipe_create(HSteamPipe pipe);
|
2022-05-23 23:29:28 +03:00
|
|
|
|
2018-11-20 20:10:12 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-01-18 19:38:13 +03:00
|
|
|
#define TRACE WINE_TRACE
|
|
|
|
#define ERR WINE_ERR
|
|
|
|
#define WARN WINE_WARN
|
2019-12-11 22:59:25 +03:00
|
|
|
#define FIXME WINE_FIXME
|