FFI glue between native events and their protobuf.
More...
#include "event.hpp"
#include "ffi/events.h"
#include "listener.hpp"
#include <cstdint>
#include <string>
#include <vector>
Go to the source code of this file.
|
|
void | event::_detail::registerProtoEntry (std::string name, ProtoEntry entry) |
| | Inserts a ProtoEntry into the global proto registry under the protobuf message name.
|
|
template<ExposedEvent T> |
| void | event::registerProtoEvent () |
|
auto | event::_detail::protoRegistrars () -> std::vector< void(*)()> & |
| | Returns the global list of proto registration callbacks; each TOAST_PROTO_EVENT() macro appends one entry.
|
FFI glue between native events and their protobuf.
- Author
- Xein
- Date
- 15 Jun 2026
◆ TOAST_PROTO_CAT
| #define TOAST_PROTO_CAT |
( |
| a, |
|
|
| b ) |
Value:TOAST_PROTO_CAT_IMPL(a, b)
◆ TOAST_PROTO_CAT_IMPL
| #define TOAST_PROTO_CAT_IMPL |
( |
| a, |
|
|
| b ) |
◆ TOAST_PROTO_EVENT
| #define TOAST_PROTO_EVENT |
( |
| EventType | ) |
|
Value:static const ::event::_detail::ProtoAutoRegister<EventType> TOAST_PROTO_CAT(_proto_auto_, __LINE__) { }
Place next to a ProtoTraits<EventType> specialization to expose it over the FFI.