Files
WoW-Hybrid-gateway/native/wine_account_ui_header.inc
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

23 lines
1.7 KiB
PHP

/* Existing account snapshot logic, shared with its focused boundary test. */
static void account_ui_header(struct gw_wire_account_ui_state* view){
memset(view,0,sizeof(*view));view->abi=1;view->size=sizeof(*view);
view->generation=ui_auth_generation;view->endpoint_kind=owned_endpoint.kind;
view->state=gw_wire_auth_data.state;view->error=gw_wire_auth_data.error;
view->auth_result=gw_wire_auth_data.auth_result;view->discovery_result=gw_wire_auth_data.discovery_result;
view->server_proof_verified=gw_wire_auth_data.server_proof_verified;
view->realm_count=gw_wire_auth_data.realm_count;view->selected_index=gw_wire_auth_data.selected_index;
view->transport_prepared=gw_wire_auth_data.transport_prepared;view->cancel=gw_wire_auth_data.cancel;
view->auth_port=gw_wire_auth_data.auth_port;
#if defined(GW_SOURCE_ONLY_PROFILE) && (GW_SOURCE_ONLY_PROFILE == 2 || GW_SOURCE_ONLY_PROFILE == 5)
{struct gw_source_profile profile={1,sizeof(profile),0,0,{0}};
int bound=gw_source_profile_read(&profile)==GW_SOURCE_ONLY_PROFILE && profile.auth_port>0 && profile.auth_port<=65535 &&
owned_endpoint.kind==1 && ui_auth_generation==credentials_generation && view->auth_port==profile.auth_port;
view->genuine_discovery=bound && view->generation && (view->state==2 || view->state==5) &&
view->server_proof_verified==1 && !view->auth_result && !view->discovery_result && !view->error && !view->cancel;}
#else
view->genuine_discovery=view->generation && (view->state==2 || view->state==5) &&
view->server_proof_verified==1 && !view->auth_result && !view->discovery_result &&
!view->error && !view->cancel && view->auth_port==3724;
#endif
}