MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_adapter_resource_rewrite_rule Struct Reference

#include <callback_adapter.h>

Detailed Description

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.


The documentation for this struct was generated from the following file: