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

#include <completion.h>

Data Fields

uint32_t size
mln_completion_callback callback
void * user_data
mln_user_data_release release_user_data
mln_delivery_queue queue

Detailed Description

The callback that receives an asynchronous function's result.

Lifetimes: When the function returns MLN_STATUS_OK, the callback runs once, and it can run before the function returns. When the function fails, the callback never runs. A command also accepts a null completion when the caller doesn't need its result.

Field Documentation

◆ callback

mln_completion_callback mln_completion::callback

◆ queue

mln_delivery_queue mln_completion::queue

◆ release_user_data

mln_user_data_release mln_completion::release_user_data

◆ size

uint32_t mln_completion::size

◆ user_data

void* mln_completion::user_data

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