Expand description
Shared, bounded newline-JSON IPC for accessory workers. Camera workers retain their separate length-prefixed JSON and binary frame protocol.
Constants§
Functions§
- parse
- read_
request - EOF, a partial final request, and oversized input terminate the session. This bounds memory before allocation, including when a caller never sends a newline.
- reply
- serve
- Dispatch requests and poll idle devices. The caller retains device-specific shutdown policy.
- stdin_
requests - write_
reply - Write one response without allowing a closed parent pipe to panic the worker.