Function
MaplibreNativeFfiResourceTransformCallback
Declaration
void
(* MaplibreNativeFfiResourceTransformCallback) (
MaplibreNativeFfiResourceKind kind,
const char* url,
MaplibreNativeFfiResourceTransformRequest* request,
gpointer user_data
)
Description [src]
Rewrites the URL of a network request before the library sends it.
The request waits until you answer with
maplibre_native_ffi_resource_transform_request_complete() or
maplibre_native_ffi_resource_transform_request_fail(). To keep url,
complete with it. Releasing request without an answer fails the request.
You can answer now or later, from any thread.
See mln_resource_transform_callback in the
C API reference.
Parameters
kind-
Type:
MaplibreNativeFfiResourceKindThe value.
url-
Type:
const char*The text.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. request-
Type:
MaplibreNativeFfiResourceTransformRequestThe handle.
The data is owned by the caller of the function. user_data-
Type:
gpointerThe data that the callback’s setter received.
The argument can be NULL.The data is owned by the caller of the function.