Method

MaplibreNativeFfiLogHandlerset_callback

Declaration [src]

void
maplibre_native_ffi_log_handler_set_callback (
  MaplibreNativeFfiLogHandler* self,
  MaplibreNativeFfiLogCallback callback,
  gpointer user_data,
  GDestroyNotify notify
)

Description [src]

Receives a log message.

Runs on the thread-default main context of the thread that started the call.

See mln_log_callback in the C API reference.

Parameters

callback

Type: MaplibreNativeFfiLogCallback

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.