feat(controller-status): add per-controller connection-status field to CtrlPeer schema (task 8.1)

Adds CtrlPeer.status (UInt8, next free ordinal @3 after port) plus the
matching xce_ctrlpeer_t.status typemap field, verified field-for-field
against the regenerated codec with a genuine encode/decode round-trip
test. No sourcing/rendering logic yet (task 8.2/8.3) -- field defaults
to 0 (unknown) until wired.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RLSNJhNoULvVcUhXEFafQC
This commit is contained in:
Rongsong Shen 2026-09-16 14:12:04 +00:00
parent 8a1964d483
commit 1b278c0e9a
No known key found for this signature in database
GPG key ID: 5BCDAAE0123E9FE2
4 changed files with 122 additions and 1 deletions

View file

@ -264,6 +264,7 @@ typedef struct {
char* name;
char* host;
uint32_t port;
uint8_t status; /* @3: 0=unknown 1=ok 2=catching-up 3=dead (Req 13.1) */
} xce_ctrlpeer_t;
typedef struct {