Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ All notable changes to this project are documented in this file.
- Two event names, or two reverse-call names, of one library that hash to the same
`nameId` are now a compile error: a polled message carries that id instead of
the name, so the host could not tell them apart.
- **Typed listeners for the liveness events.** The C, C++ and Rust bindings now
have a typed registration for `not_responding` and `responding`, with no
`{.ffiEvent.}` declared: C `<lib>_ctx_add_not_responding_listener`, C++
`addOnNotRespondingListener`, Rust `add_not_responding_listener`. They share the
decoder of declared events. Both payloads carry `reason` (`NotRespondingReason`:
`heartbeat` or `queueFull`), so a host tells a wedged FFI thread from a sustained
queue overflow. The builtin C typedefs are guarded, so two library headers fit in
one translation unit. The CDDL schema does not list the builtin types. The raw
`add_event_listener` still works, and stays the way to receive
`reverse_worker_blocked` and `reverse_worker_recovered`.
- **Rust: per-call timeout.** `ctx.with_timeout(Some(d)).echo(..)` and
`.echo_async(..)` override the ctx default for one call; `with_timeout(None)`
waits for the terminal `RET_OK`/`RET_ERR` with no Rust-side limit. Instance
Expand Down
195 changes: 195 additions & 0 deletions examples/echo/c_bindings/echo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading