Method

MaplibreNativeFfiResourceRequestCancelHandlerset_callback

Declaration [src]

void
maplibre_native_ffi_resource_request_cancel_handler_set_callback (
  MaplibreNativeFfiResourceRequestCancelHandler* self,
  MaplibreNativeFfiResourceRequestCancelCallback callback,
  gpointer user_data,
  GDestroyNotify notify
)

Description [src]

Reports that the library no longer needs a resource request.

The request no longer accepts an answer, so stop working on it and release it.

See mln_resource_request_cancel_callback in the C API reference.

Parameters

callback

Type: MaplibreNativeFfiResourceRequestCancelCallback

The callback.

The argument can be NULL.
user_data

Type: gpointer

The data to pass to callback.

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

Type: GDestroyNotify

The function that frees user_data after the last call.