175 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
43 lines
2.6 KiB
C
43 lines
2.6 KiB
C
#ifndef GW_WINE_SESSION_RETIREMENT_H
|
|
#define GW_WINE_SESSION_RETIREMENT_H
|
|
#include <stdint.h>
|
|
#define GW_SESSION_EPOCH_LIMIT 64u
|
|
struct gw_session_retirement_control {
|
|
uint32_t abi,size;
|
|
volatile int32_t state;
|
|
uint32_t expected_credentials_generation,completed_credentials_generation,next_credentials_generation;
|
|
int32_t previous_account_error,previous_pipe_error,previous_world_error,previous_policy_error,result;
|
|
int32_t previous_frame_error;
|
|
uint64_t owner;
|
|
};
|
|
struct gw_session_pipe_callbacks { uint32_t abi,size,count,reserved; uint64_t callbacks[GW_SESSION_EPOCH_LIMIT][2]; };
|
|
struct gw_session_pipe_receivers { uint32_t abi,size,count,reserved; uint64_t objects[GW_SESSION_EPOCH_LIMIT]; };
|
|
struct gw_session_pipe_tables { uint32_t abi,size,count,reserved; uint64_t methods[GW_SESSION_EPOCH_LIMIT][10]; };
|
|
_Static_assert(sizeof(struct gw_session_retirement_control)==56,"Retirement ABI differs");
|
|
_Static_assert(sizeof(struct gw_session_pipe_callbacks)==1040,"Epoch callback ABI differs");
|
|
_Static_assert(sizeof(struct gw_session_pipe_receivers)==528,"Epoch receiver ABI differs");
|
|
_Static_assert(sizeof(struct gw_session_pipe_tables)==5136,"Epoch pipe table ABI differs");
|
|
extern __declspec(dllexport) struct gw_session_retirement_control gw_wire_session_retirement_data;
|
|
extern __declspec(dllexport) struct gw_session_pipe_callbacks gw_wire_session_pipe_callbacks;
|
|
extern __declspec(dllexport) struct gw_session_pipe_receivers gw_wire_session_pipe_receivers;
|
|
extern __declspec(dllexport) struct gw_session_pipe_tables gw_wire_session_pipe_tables;
|
|
uint32_t WINAPI gw_wire_account_generation(void);
|
|
int WINAPI gw_wire_account_retirement_ready(uint32_t expected);
|
|
int WINAPI gw_wire_account_retire_generation(uint32_t expected);
|
|
uint32_t WINAPI gw_wire_pipe_generation(void);
|
|
int WINAPI gw_wire_pipe_receiver_allowed(uint64_t receiver);
|
|
int WINAPI gw_wire_pipe_retirement_lock(void);
|
|
void WINAPI gw_wire_pipe_retirement_unlock(void);
|
|
int WINAPI gw_wire_pipe_retirement_ready(void* owner,uint32_t expected);
|
|
void WINAPI gw_wire_pipe_retire_generation(uint32_t next);
|
|
/* The original owner CS is acquired before the pipe SRW lock. These helpers
|
|
* never wait, mutate the native queue, or release original native objects. */
|
|
int WINAPI gw_wire_channel_retirement_lock(void* owner);
|
|
void WINAPI gw_wire_channel_retirement_unlock(void* owner);
|
|
int WINAPI gw_wire_channel_retirement_ready(void* owner);
|
|
void WINAPI gw_wire_channel_retire_generation(void);
|
|
void WINAPI gw_wire_realm_retire_generation(void);
|
|
int WINAPI gw_wire_session_retirement_request_if_terminal(void* owner);
|
|
void WINAPI gw_wire_session_retire(void* owner,int32_t previous_frame_error);
|
|
#endif
|