Files
praxisandClaude Fable 5.2 8e02dccb86 In-client stack: transport, session lifecycle and engine bridge
175 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

46 lines
1.2 KiB
C

#ifndef GW_OWNER_POLL_SELF_PRIVATE_H
#define GW_OWNER_POLL_SELF_PRIVATE_H
#include <stdint.h>
#include <windows.h>
struct GwPollHost {
uint32_t abi, size;
volatile uint32_t stage, calls, thread, error;
uint64_t owner, original_vtable, original_poll;
uint64_t methods[129];
};
struct GwPollBindRegion {
uintptr_t owner_global;
uintptr_t vtable_low, vtable_high;
uintptr_t code_low, code_high;
DWORD primary_thread;
};
struct GwPollOwnerSnapshot {
uint64_t owner, original_vtable, clone_vtable, generation;
DWORD primary_thread;
};
enum GwPollBindResult {
GW_POLL_BOUND = 0,
GW_POLL_REFUSED_STATE = 1,
GW_POLL_REFUSED_OWNER = 2,
GW_POLL_REFUSED_LAYOUT = 3,
GW_POLL_REFUSED_PAGE = 4,
GW_POLL_REFUSED_MODULE = 5,
GW_POLL_REFUSED_CAS = 6
};
int gw_poll_bind_once(const struct GwPollBindRegion *region,
struct GwPollHost *host,
void **frame_host_slot,
void (WINAPI *frame_callback)(void *));
int gw_poll_restore_once(const struct GwPollBindRegion *region);
int gw_poll_owner_snapshot(const struct GwPollBindRegion *region,
struct GwPollOwnerSnapshot *out);
void WINAPI gw_poll_self_dispatch(void *owner);
#endif