Function

MaplibreNativeFfiResourceProviderCallback

Declaration

void
(* MaplibreNativeFfiResourceProviderCallback) (
  MaplibreNativeFfiResourceRequestInfo* request,
  MaplibreNativeFfiResourceRequest* handle,
  gpointer user_data
)

Description [src]

Serves a network request in place of the library.

Answer with maplibre_native_ffi_resource_request_complete(), or hand the request back to the library with maplibre_native_ffi_resource_request_pass_through(). Either can come now or later, from any thread. A request released without an answer fails.

See mln_resource_provider_callback in the C API reference.

Parameters

request

Type: MaplibreNativeFfiResourceRequestInfo

The value.

The data is owned by the caller of the function.
handle

Type: MaplibreNativeFfiResourceRequest

The handle.

The data is owned by the caller of the function.
user_data

Type: gpointer

The data that the callback’s setter received.

The argument can be NULL.
The data is owned by the caller of the function.