MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_runtime_event Struct Reference

#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
 

Detailed Description

Event payload returned by mln_runtime_poll_event().

Field Documentation

◆ message

const char* mln_runtime_event::message

Borrowed event message bytes. Null when message_size is 0.

◆ message_size

size_t mln_runtime_event::message_size

Number of bytes in message, excluding the trailing null terminator.

◆ payload

const void* mln_runtime_event::payload

Borrowed payload selected by payload_type. Null when payload_size is 0.

◆ payload_size

size_t mln_runtime_event::payload_size

Number of bytes in payload.

◆ payload_type

uint32_t mln_runtime_event::payload_type

◆ source

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.

◆ source_type

uint32_t mln_runtime_event::source_type

The documentation for this struct was generated from the following file: