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;
|
|
|
|
};
|
|
|
|
|
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);
|
2023-09-14 15:53:26 +03:00
|
|
|
unsigned int steamclient_unix_path_to_dos_path( bool api_result, const char *src, char *dst,
|
|
|
|
uint32_t dst_bytes, int is_url );
|
2023-09-24 11:19:52 +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
|
|
|
|
2023-09-30 15:02:30 +03:00
|
|
|
void *alloc_callback_wtou( int id, void *callback, int *callback_len );
|
|
|
|
void convert_callback_utow( int id, void *u_callback, int u_callback_len, void *w_callback, int w_callback_len );
|
2022-05-23 23:29:28 +03:00
|
|
|
|
2018-11-20 20:10:12 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2023-09-18 00:16:30 +03:00
|
|
|
|
|
|
|
#endif /* __STEAMCLIENT_PRIVATE_H */
|