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

31 lines
1.6 KiB
C

/* Opt-in build-only Source selector. Never reads credentials or starts I/O. */
#include "wine_source_profile.h"
#ifndef GW_SOURCE_ONLY_PROFILE
#define GW_SOURCE_ONLY_PROFILE 0
#endif
#if GW_SOURCE_ONLY_PROFILE == 0
static const struct gw_source_profile selected={1,sizeof(struct gw_source_profile),0,0,""};
#elif GW_SOURCE_ONLY_PROFILE == 2
static const struct gw_source_profile selected={1,sizeof(struct gw_source_profile),2,3724,"play.octowow.st"};
#elif GW_SOURCE_ONLY_PROFILE == 3
static const struct gw_source_profile selected={1,sizeof(struct gw_source_profile),3,3724,"praxis.go.ro"};
#elif GW_SOURCE_ONLY_PROFILE == 4
/* Explicit test fixture only: no DNS or public endpoint fallback. */
static const struct gw_source_profile selected={1,sizeof(struct gw_source_profile),4,3724,"127.0.0.1"};
#elif GW_SOURCE_ONLY_PROFILE == 5
#if !defined(GW_SOURCE_LOCAL_AUTH_IPV4) || !defined(GW_SOURCE_LOCAL_AUTH_PORT)
#error Local Source profile requires an explicit authentication endpoint
#endif
#if GW_SOURCE_LOCAL_AUTH_PORT < 1 || GW_SOURCE_LOCAL_AUTH_PORT > 65535
#error Local Source auth port is out of range
#endif
static const struct gw_source_profile selected={1,sizeof(struct gw_source_profile),5,GW_SOURCE_LOCAL_AUTH_PORT,GW_SOURCE_LOCAL_AUTH_IPV4};
#else
#error Unsupported Source-only build profile
#endif
__declspec(dllexport) LONG WINAPI gw_source_profile_kind(void){return (LONG)selected.kind;}
__declspec(dllexport) LONG WINAPI gw_source_profile_read(struct gw_source_profile *out){
if(!out||out->abi!=1||out->size!=sizeof(*out))return -1;
*out=selected;return (LONG)selected.kind;
}