|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <runtime.h>
Data Fields | |
| uint32_t | size |
| mln_resource_response_fields | fields |
| mln_resource_response_status | status |
| mln_resource_error_reason | error_reason |
| const uint8_t * | bytes |
| size_t | byte_count |
| mln_buffer_view | error_message |
| bool | must_revalidate |
| int64_t | modified_unix_ms |
| int64_t | expires_unix_ms |
| mln_buffer_view | etag |
| int64_t | retry_after_unix_ms |
The answer to a resource request.
| size_t mln_resource_response::byte_count |
| const uint8_t* mln_resource_response::bytes |
The resource, for MLN_RESOURCE_RESPONSE_STATUS_OK.
| mln_buffer_view mln_resource_response::error_message |
A description of the error, for MLN_RESOURCE_RESPONSE_STATUS_ERROR.
| mln_resource_error_reason mln_resource_response::error_reason |
Why the request failed, for MLN_RESOURCE_RESPONSE_STATUS_ERROR.
| mln_buffer_view mln_resource_response::etag |
Empty when the resource has no ETag.
| int64_t mln_resource_response::expires_unix_ms |
| mln_resource_response_fields mln_resource_response::fields |
| int64_t mln_resource_response::modified_unix_ms |
| bool mln_resource_response::must_revalidate |
Whether the library must request the resource again before it reuses this copy.
| int64_t mln_resource_response::retry_after_unix_ms |
When to retry, for MLN_RESOURCE_RESPONSE_STATUS_ERROR.
| uint32_t mln_resource_response::size |
| mln_resource_response_status mln_resource_response::status |