|
Toast Engine
|
Dispatch table for one protobuf-backed event type over the FFI. More...
#include <proto_event.hpp>
Public Attributes | |
| int(* | send )(const uint8_t *data, uint32_t size) |
| C# -> engine: deserializes bytes and dispatches the event. | |
| void(* | subscribe )(Listener &, event_callback, void *user_data, char priority, const char *label) |
| engine -> C#: serializes the event and calls the C# callback | |
| void(* | unsubscribe )(Listener &, const char *label) |
| cancels a subscription by label | |
Dispatch table for one protobuf-backed event type over the FFI.
Populated by registerProtoEvent<T>() and stored in the proto registry. The three function pointers cover the three directions of the FFI bridge: sending from C#, subscribing from C#, and cancelling a subscription.