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

#include <runtime.h>

Data Fields

mln_resource_transform_callback callback
mln_user_data_release release_user_data
mln_delivery_queue queue

Detailed Description

Resource transform state.

The struct itself is borrowed for the registering call. Exactly one of callback and queue is set.

Field Documentation

◆ callback

mln_resource_transform_callback mln_resource_transform::callback

Required in callback mode; null in queue mode.

◆ queue

mln_delivery_queue mln_resource_transform::queue

Optional. Queue delivery: each request is copied with its handle into an MLN_DELIVERY_TYPE_RESOURCE_TRANSFORM delivery carrying user_data. A request the queue refuses keeps its URL. After replacement, clear, or runtime teardown retires the registration, the queue receives one MLN_DELIVERY_TYPE_RETIRED delivery carrying user_data, after the registration's last request.

◆ release_user_data

mln_user_data_release mln_resource_transform::release_user_data

Optional. Releases user_data exactly once for each accepted registration, after replacement, clear, or runtime teardown has retired the registration and every in-flight callback has returned. Requests the callback already received keep their handles.

Its threads and its handoff follow mln_resource_provider.release_user_data. Null in queue mode.


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