|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <callback_adapter.h>
One resource rewrite 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 url compares against the request URL. A null url or an unknown flag bit makes the rule match nothing.
A null replacement_url leaves the URL unchanged. Both strings are borrowed and must outlive the rule table.