2018-01-18 19:24:05 +03:00
|
|
|
/* TODO these should be generated */
|
2023-09-18 00:16:30 +03:00
|
|
|
#ifndef __STEAMCLIENT_PRIVATE_H
|
|
|
|
#define __STEAMCLIENT_PRIVATE_H
|
2018-11-20 20:10:12 +03:00
|
|
|
|
2023-09-14 15:53:26 +03:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
2023-09-19 20:59:23 +03:00
|
|
|
#include <stdint.h>
|
2023-09-14 15:53:26 +03:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2023-09-30 15:02:30 +03:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
|
|
|
|
#include "steamclient_structs.h"
|
|
|
|
#include "unixlib.h"
|
2023-09-18 00:16:30 +03:00
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
#include "wine/list.h"
|
2023-09-14 15:53:26 +03:00
|
|
|
|
2023-09-24 15:50:45 +03:00
|
|
|
#ifndef __cplusplus
|
|
|
|
#include "cxx.h"
|
|
|
|
#else
|
|
|
|
typedef void (*vtable_ptr)(void);
|
|
|
|
#endif
|
|
|
|
|
2018-11-20 20:10:12 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2023-09-19 22:30:14 +03:00
|
|
|
#define W_CDECL __cdecl
|
|
|
|
#define W_STDCALL __stdcall
|
|
|
|
#define U_CDECL __attribute__((sysv_abi))
|
|
|
|
#define U_STDCALL __attribute__((sysv_abi))
|
|
|
|
|
2023-09-24 15:50:45 +03:00
|
|
|
struct w_steam_iface
|
|
|
|
{
|
|
|
|
vtable_ptr *vtable;
|
|
|
|
void *u_iface;
|
|
|
|
};
|
|
|
|
|
2023-09-30 15:14:10 +03:00
|
|
|
typedef struct w_steam_iface *(*iface_constructor)( void * );
|
|
|
|
extern iface_constructor find_iface_constructor( const char *iface_version ) DECLSPEC_HIDDEN;
|
|
|
|
extern struct w_steam_iface *create_winISteamNetworkingFakeUDPPort_SteamNetworkingFakeUDPPort001( void * ) DECLSPEC_HIDDEN;
|
2023-09-29 12:35:29 +03:00
|
|
|
|
2022-06-10 12:24:47 +03:00
|
|
|
struct SteamInputActionEvent_t;
|
2023-09-18 00:16:30 +03:00
|
|
|
typedef void (*CDECL win_SteamInputActionEventCallbackPointer)( struct SteamInputActionEvent_t * );
|
|
|
|
void lin_SteamInputActionEventCallbackPointer( struct SteamInputActionEvent_t *dat );
|
2022-06-10 12:24:47 +03:00
|
|
|
|
2023-09-24 15:50:45 +03:00
|
|
|
struct w_steam_iface *create_win_interface(const char *name, void *linux_side);
|
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
|
|
|
|
2023-09-30 15:10:56 +03:00
|
|
|
extern void start_callback_thread(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void stop_callback_thread(void) DECLSPEC_HIDDEN;
|
|
|
|
|
2022-10-22 22:22:27 +03:00
|
|
|
void init_rtti( char *base );
|
|
|
|
|
2023-09-30 15:14:10 +03:00
|
|
|
#include "steamclient_generated.h"
|
|
|
|
|
2018-11-20 20:10:12 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2023-09-18 00:16:30 +03:00
|
|
|
|
|
|
|
#endif /* __STEAMCLIENT_PRIVATE_H */
|