|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <runtime.h>
Data Fields | |
| uint32_t | source_type |
| void * | source |
| uint32_t | payload_type |
| const void * | payload |
| size_t | payload_size |
| const char * | message |
| size_t | message_size |
Event payload returned by mln_runtime_poll_event().
| const char* mln_runtime_event::message |
Borrowed event message bytes. Null when message_size is 0.
| size_t mln_runtime_event::message_size |
Number of bytes in message, excluding the trailing null terminator.
| const void* mln_runtime_event::payload |
Borrowed payload selected by payload_type. Null when payload_size is 0.
| size_t mln_runtime_event::payload_size |
Number of bytes in payload.
| uint32_t mln_runtime_event::payload_type |
One of mln_runtime_event_payload_type.
| void* mln_runtime_event::source |
Source handle for this event. For map-originated events, this is an mln_map*. For runtime-originated events, this is an mln_runtime*. Borrowed; valid while the source handle remains live.
| uint32_t mln_runtime_event::source_type |
One of mln_runtime_event_source_type.