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

#include <completion.h>

Data Fields

uint32_t size
mln_status status
uint32_t value_size
uint64_t generation
uint64_t render_update_generation
mln_buffer_view diagnostic
const void * value
size_t value_count

Detailed Description

The result of an asynchronous function.

Lifetimes: diagnostic and value stay valid until the callback returns. value points at value_count results of the type that the function's annotation names, each value_size bytes apart, so read them with MLN_STRIDED_AT(). value is null when there is no result.

Field Documentation

◆ diagnostic

mln_buffer_view mln_completion_result::diagnostic

A message that explains a failure. Empty on success.

◆ generation

uint64_t mln_completion_result::generation

For a map command, the first mln_map_snapshot generation that includes the change.

◆ render_update_generation

uint64_t mln_completion_result::render_update_generation

For a map command, the first mln_render_frame_result map update generation that includes the change.

◆ size

uint32_t mln_completion_result::size

◆ status

mln_status mln_completion_result::status

◆ value

const void* mln_completion_result::value

◆ value_count

size_t mln_completion_result::value_count

◆ value_size

uint32_t mln_completion_result::value_size

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