|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <callback_adapter.h>
One resource provider rule.
The kind field matches mln_resource_kind values, or MLN_ADAPTER_RESOURCE_KIND_ANY for every kind. The flags field is a bitwise OR of mln_adapter_url_match_flags values choosing how requested_url compares against mln_resource_request.requested_url. A null requested_url or an unknown flag bit makes the rule match nothing.
A matching request is completed with the rule's response without reaching the host. The response and its buffers are borrowed and must outlive the rule table.