|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
Go to the source code of this file.
Data Structures | |
| struct | mln_completion_result |
| struct | mln_completion |
Typedefs | |
| typedef struct mln_completion_result | mln_completion_result |
| typedef void(*) | mln_completion_callback(void *user_data, const mln_completion_result *result) |
| typedef struct mln_completion | mln_completion |
Receive the result of an asynchronous function.
| typedef struct mln_completion mln_completion |
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.
| typedef void(*) mln_completion_callback(void *user_data, const mln_completion_result *result) |
Receives the result of an asynchronous function.
Lifetimes: result stays valid until the callback returns.
| typedef struct mln_completion_result mln_completion_result |
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.