MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
runtime.h
Go to the documentation of this file.
1
6
7#ifndef MAPLIBRE_NATIVE_C_RUNTIME_H
8#define MAPLIBRE_NATIVE_C_RUNTIME_H
9
10#ifndef __cplusplus
11#include <stdbool.h>
12#endif
13
14#include <stddef.h>
15#include <stdint.h>
16
17#include "base.h"
18#include "completion.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
29
60
62typedef int64_t mln_offline_region_id;
63
69
75
96
152
154typedef enum MLN_BINDING("kind=bitmask") mln_runtime_event_flag : uint64_t {
234
236typedef uint64_t mln_runtime_event_flags;
237
243
259
265
278
287
296
309
321
329
335
341
347
359
371
374 mln_network_status* out_status MLN_BINDING("direction=out"),
375 mln_diagnostic* out_diagnostic
376) MLN_NOEXCEPT;
377
387 mln_network_status status, mln_diagnostic* out_diagnostic
388) MLN_NOEXCEPT;
389
405
419
427
436
441
446
451
461typedef struct mln_tile_id {
462 uint32_t overscaled_z;
463 int32_t wrap;
464 uint32_t canonical_z;
465 uint32_t canonical_x;
466 uint32_t canonical_y;
468
476
484 const mln_buffer_view* font_stack MLN_BINDING("length=font_count");
486 uint32_t first;
487 uint32_t last;
490
500
506
512
524
528 MLN_BINDING("variant=MLN_RUNTIME_EVENT_PAYLOAD_CAMERA_CHANGE");
530 MLN_BINDING("variant=MLN_RUNTIME_EVENT_PAYLOAD_LOADING_FAILED");
532 MLN_BINDING("variant=MLN_RUNTIME_EVENT_PAYLOAD_RENDER_FRAME");
534 MLN_BINDING("variant=MLN_RUNTIME_EVENT_PAYLOAD_STYLE_IMAGE");
536 MLN_BINDING("variant=MLN_RUNTIME_EVENT_PAYLOAD_TILE_ACTION");
538 MLN_BINDING("variant=MLN_RUNTIME_EVENT_PAYLOAD_SOURCE_CHANGED");
540 MLN_BINDING("variant=MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_STATUS");
542 MLN_BINDING(
543 "variant=MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_RESPONSE_ERROR"
544 );
547 "variant=MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_TILE_COUNT_LIMIT"
548 );
550 MLN_BINDING("variant=MLN_RUNTIME_EVENT_PAYLOAD_GLYPHS");
552 MLN_BINDING("variant=MLN_RUNTIME_EVENT_PAYLOAD_SPRITE");
554
573
581typedef struct mln_event_batch_view {
582 uint32_t size;
583 uint32_t event_size;
585 MLN_BINDING("length=event_count;stride=event_size");
587} mln_event_batch_view MLN_BINDING("kind=slice");
588
595MLN_BINDING("capture=manual")
597 void* user_data, const mln_event_batch_view* events
598);
599
602 uint32_t size;
604 void* user_data MLN_BINDING("kind=context");
606 mln_delivery_queue queue MLN_BINDING("kind=delivery_queue");
607} mln_runtime_event_handler MLN_BINDING(
608 "kind=callback_registration;release=release_user_data"
610
627
629typedef uint32_t mln_resource_kind_flags;
630
631// This block uses line comments because its examples contain URL patterns that
632// a block comment cannot carry.
633
638typedef enum MLN_BINDING("kind=bitmask") mln_url_match_flag : uint32_t {
646
648typedef uint32_t mln_url_match_flags;
649
658
669
680
694 void* user_data, mln_resource_kind kind, mln_buffer_view url,
695 mln_resource_transform_request request MLN_BINDING("ownership=owned")
696);
697
699typedef enum MLN_BINDING(
700 "kind=bitmask"
704
707
718
730
748
755 uint32_t size;
756 mln_resource_transform_callback callback MLN_BINDING("nullable=true");
757 void* user_data MLN_BINDING("kind=context");
759 mln_delivery_queue queue MLN_BINDING("kind=delivery_queue");
764 const mln_resource_transform_rule* rules MLN_BINDING("length=rule_count");
766} mln_resource_transform MLN_BINDING(
767 "kind=callback_registration;release=release_user_data"
769
772 uint32_t size;
773 void* context MLN_BINDING("kind=context;lifetime=call");
774} mln_http_header_transform_response MLN_BINDING("kind=callback_response");
775
788 mln_buffer_view value, mln_diagnostic* out_diagnostic
789) MLN_NOEXCEPT;
790
803MLN_BINDING("failure=MLN_STATUS_NATIVE_ERROR")
805 void* user_data, mln_resource_kind kind, mln_buffer_view url,
806 mln_http_header_transform_response* out_response MLN_BINDING("direction=out")
807);
808
815 uint32_t size;
816 mln_http_header_transform_callback callback MLN_BINDING("nullable=true");
817 void* user_data MLN_BINDING("kind=context");
820 const mln_http_header_rule* rules MLN_BINDING("length=rule_count");
822} mln_http_header_transform MLN_BINDING(
823 "kind=callback_registration;release=release_user_data"
825
827typedef struct mln_resource_range {
828 uint64_t start;
829 uint64_t end;
831
838
841
849 uint32_t size;
865 MLN_BINDING("mask=fields;bit=MLN_RESOURCE_REQUEST_RANGE");
867 MLN_BINDING("mask=fields;bit=MLN_RESOURCE_REQUEST_PRIOR_MODIFIED");
869 MLN_BINDING("mask=fields;bit=MLN_RESOURCE_REQUEST_PRIOR_EXPIRES");
872 const uint8_t* prior_data
873 MLN_BINDING("length=prior_data_size;encoding=bytes");
876
885
888
890typedef struct mln_resource_response {
891 uint32_t size;
897 const uint8_t* bytes MLN_BINDING("length=byte_count;encoding=bytes");
907 MLN_BINDING("mask=fields;bit=MLN_RESOURCE_RESPONSE_MODIFIED");
909 MLN_BINDING("mask=fields;bit=MLN_RESOURCE_RESPONSE_EXPIRES");
914 MLN_BINDING("mask=fields;bit=MLN_RESOURCE_RESPONSE_RETRY_AFTER");
916
929 void* user_data, const mln_resource_request_info* request,
930 mln_resource_request handle MLN_BINDING("ownership=owned")
931);
941MLN_BINDING("borrowed_owner=handle")
943 void* user_data, mln_resource_request handle
944);
945
954 "kind=callback_registration;release=release_user_data"
956
958typedef struct mln_resource_provider {
959 uint32_t size;
961 void* user_data MLN_BINDING("kind=context");
963 mln_delivery_queue queue MLN_BINDING("kind=delivery_queue");
968 const mln_resource_route* routes MLN_BINDING("length=route_count");
970} mln_resource_provider MLN_BINDING(
971 "kind=callback_registration;release=release_user_data"
973
985MLN_BINDING("blocks=thread_start")
987 const mln_runtime_options* options MLN_BINDING("nullable=true"),
988 mln_runtime* out_runtime MLN_BINDING("direction=out"),
989 mln_diagnostic* out_diagnostic
990) MLN_NOEXCEPT;
991
999MLN_BINDING("execution=command")
1001 mln_runtime runtime, const mln_resource_provider* provider,
1002 const mln_completion* completion, mln_diagnostic* out_diagnostic
1003) MLN_NOEXCEPT;
1004
1009MLN_BINDING("execution=command")
1011 mln_runtime runtime, const mln_completion* completion,
1012 mln_diagnostic* out_diagnostic
1013) MLN_NOEXCEPT;
1014
1027MLN_BINDING("consumes=always")
1029 mln_resource_request handle, const mln_resource_response* response,
1030 mln_diagnostic* out_diagnostic
1031) MLN_NOEXCEPT;
1032
1045MLN_BINDING("consumes=always")
1047 mln_resource_request handle, mln_diagnostic* out_diagnostic
1048) MLN_NOEXCEPT;
1049
1052 mln_resource_request handle, bool* out_cancelled MLN_BINDING("direction=out"),
1053 mln_diagnostic* out_diagnostic
1054) MLN_NOEXCEPT;
1055
1067MLN_BINDING("accepted_unless=out_cancelled")
1069 mln_resource_request handle,
1071 bool* out_cancelled MLN_BINDING("direction=out"),
1072 mln_diagnostic* out_diagnostic
1073) MLN_NOEXCEPT;
1074
1083) MLN_NOEXCEPT;
1084
1090MLN_BINDING("execution=command")
1092 mln_runtime runtime, const mln_resource_transform* transform,
1093 const mln_completion* completion, mln_diagnostic* out_diagnostic
1094) MLN_NOEXCEPT;
1095
1097MLN_BINDING("execution=command")
1099 mln_runtime runtime, const mln_completion* completion,
1100 mln_diagnostic* out_diagnostic
1101) MLN_NOEXCEPT;
1102
1113MLN_BINDING("consumes=always")
1116 mln_diagnostic* out_diagnostic
1117) MLN_NOEXCEPT;
1118
1131MLN_BINDING("consumes=always")
1134 const mln_resource_transform_error* error, mln_diagnostic* out_diagnostic
1135) MLN_NOEXCEPT;
1136
1145) MLN_NOEXCEPT;
1146
1157MLN_BINDING("execution=command")
1159 mln_runtime runtime, const mln_http_header_transform* transform,
1160 const mln_completion* completion, mln_diagnostic* out_diagnostic
1161) MLN_NOEXCEPT;
1162
1164MLN_BINDING("execution=command")
1166 mln_runtime runtime, const mln_completion* completion,
1167 mln_diagnostic* out_diagnostic
1168) MLN_NOEXCEPT;
1169
1171MLN_BINDING("execution=operation")
1173 mln_runtime runtime, mln_cache_database_operation operation,
1174 const mln_completion* completion, mln_diagnostic* out_diagnostic
1175) MLN_NOEXCEPT;
1176
1183MLN_BINDING("execution=operation")
1185 mln_runtime runtime, uint64_t size, const mln_completion* completion,
1186 mln_diagnostic* out_diagnostic
1187) MLN_NOEXCEPT;
1188
1194MLN_BINDING("execution=lifecycle")
1196 mln_runtime runtime, const mln_completion* completion,
1197 mln_diagnostic* out_diagnostic
1198) MLN_NOEXCEPT;
1199
1206 mln_runtime runtime, mln_diagnostic* out_diagnostic
1207) MLN_NOEXCEPT;
1208
1214MLN_BINDING("execution=command")
1216 mln_runtime runtime, const mln_runtime_event_handler* handler,
1217 const mln_completion* completion, mln_diagnostic* out_diagnostic
1218) MLN_NOEXCEPT;
1219
1221MLN_BINDING("execution=command")
1223 mln_runtime runtime, const mln_completion* completion,
1224 mln_diagnostic* out_diagnostic
1225) MLN_NOEXCEPT;
1226
1227#ifdef __cplusplus
1228}
1229#endif
1230
1231#endif // MAPLIBRE_NATIVE_C_RUNTIME_H
uint64_t mln_resource_transform_request
Definition base.h:142
uint64_t mln_delivery_queue
Definition base.h:169
void(*) mln_user_data_release(void *user_data)
Definition base.h:191
uint64_t mln_runtime
Definition base.h:107
uint64_t mln_resource_request
Definition base.h:137
mln_status
Definition base.h:41
mln_status mln_resource_transform_request_fail(mln_resource_transform_request request, const mln_resource_transform_error *error, mln_diagnostic *out_diagnostic)
mln_status mln_runtime_run_cache_database_operation(mln_runtime runtime, mln_cache_database_operation operation, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_resource_request_field
Definition runtime.h:833
@ MLN_RESOURCE_REQUEST_RANGE
Definition runtime.h:834
@ MLN_RESOURCE_REQUEST_PRIOR_EXPIRES
Definition runtime.h:836
@ MLN_RESOURCE_REQUEST_PRIOR_MODIFIED
Definition runtime.h:835
mln_status mln_runtime_dispose(mln_runtime runtime, mln_diagnostic *out_diagnostic)
mln_status mln_runtime_create(const mln_runtime_options *options, mln_runtime *out_runtime, mln_diagnostic *out_diagnostic)
mln_status mln_resource_request_pass_through(mln_resource_request handle, mln_diagnostic *out_diagnostic)
mln_resource_response_field
Definition runtime.h:880
@ MLN_RESOURCE_RESPONSE_RETRY_AFTER
Definition runtime.h:883
@ MLN_RESOURCE_RESPONSE_MODIFIED
Definition runtime.h:881
@ MLN_RESOURCE_RESPONSE_EXPIRES
Definition runtime.h:882
uint32_t mln_url_match_flags
Definition runtime.h:648
mln_tile_operation
Definition runtime.h:298
@ MLN_TILE_OPERATION_ERROR
Definition runtime.h:305
@ MLN_TILE_OPERATION_NULL
Definition runtime.h:307
@ MLN_TILE_OPERATION_CANCELLED
Definition runtime.h:306
@ MLN_TILE_OPERATION_END_PARSE
Definition runtime.h:304
@ MLN_TILE_OPERATION_REQUESTED_FROM_NETWORK
Definition runtime.h:300
@ MLN_TILE_OPERATION_REQUESTED_FROM_CACHE
Definition runtime.h:299
@ MLN_TILE_OPERATION_START_PARSE
Definition runtime.h:303
@ MLN_TILE_OPERATION_LOAD_FROM_NETWORK
Definition runtime.h:301
@ MLN_TILE_OPERATION_LOAD_FROM_CACHE
Definition runtime.h:302
mln_runtime_event_payload_type
Definition runtime.h:245
@ MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_TILE_COUNT_LIMIT
Definition runtime.h:255
@ MLN_RUNTIME_EVENT_PAYLOAD_LOADING_FAILED
Definition runtime.h:248
@ MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_STATUS
Definition runtime.h:253
@ MLN_RUNTIME_EVENT_PAYLOAD_TILE_ACTION
Definition runtime.h:251
@ MLN_RUNTIME_EVENT_PAYLOAD_SOURCE_CHANGED
Definition runtime.h:252
@ MLN_RUNTIME_EVENT_PAYLOAD_NONE
Definition runtime.h:246
@ MLN_RUNTIME_EVENT_PAYLOAD_STYLE_IMAGE
Definition runtime.h:250
@ MLN_RUNTIME_EVENT_PAYLOAD_RENDER_FRAME
Definition runtime.h:249
@ MLN_RUNTIME_EVENT_PAYLOAD_CAMERA_CHANGE
Definition runtime.h:247
@ MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_RESPONSE_ERROR
Definition runtime.h:254
@ MLN_RUNTIME_EVENT_PAYLOAD_GLYPHS
Definition runtime.h:256
@ MLN_RUNTIME_EVENT_PAYLOAD_SPRITE
Definition runtime.h:257
mln_status mln_runtime_clear_http_header_transform(mln_runtime runtime, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_resource_kind
Definition runtime.h:311
@ MLN_RESOURCE_KIND_STYLE
Definition runtime.h:313
@ MLN_RESOURCE_KIND_UNKNOWN
Definition runtime.h:312
@ MLN_RESOURCE_KIND_SPRITE_JSON
Definition runtime.h:318
@ MLN_RESOURCE_KIND_SPRITE_IMAGE
Definition runtime.h:317
@ MLN_RESOURCE_KIND_IMAGE
Definition runtime.h:319
@ MLN_RESOURCE_KIND_GLYPHS
Definition runtime.h:316
@ MLN_RESOURCE_KIND_SOURCE
Definition runtime.h:314
@ MLN_RESOURCE_KIND_TILE
Definition runtime.h:315
mln_offline_region_definition_type
Definition runtime.h:65
@ MLN_OFFLINE_REGION_DEFINITION_GEOMETRY
Definition runtime.h:67
@ MLN_OFFLINE_REGION_DEFINITION_TILE_PYRAMID
Definition runtime.h:66
mln_status mln_runtime_set_maximum_ambient_cache_size(mln_runtime runtime, uint64_t size, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_network_status
Definition runtime.h:25
@ MLN_NETWORK_STATUS_ONLINE
Definition runtime.h:26
@ MLN_NETWORK_STATUS_OFFLINE
Definition runtime.h:27
mln_status mln_runtime_set_http_header_transform(mln_runtime runtime, const mln_http_header_transform *transform, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_camera_change_source
Definition runtime.h:267
@ MLN_CAMERA_CHANGE_SOURCE_MOMENTUM
Definition runtime.h:276
@ MLN_CAMERA_CHANGE_SOURCE_COMMAND
Definition runtime.h:272
@ MLN_CAMERA_CHANGE_SOURCE_GESTURE
Definition runtime.h:274
mln_runtime_event_type
Definition runtime.h:105
@ MLN_RUNTIME_EVENT_MAP_IDLE
Definition runtime.h:123
@ MLN_RUNTIME_EVENT_MAP_TILE_ACTION
Definition runtime.h:132
@ MLN_RUNTIME_EVENT_MAP_SPRITE_LOADED
Definition runtime.h:149
@ MLN_RUNTIME_EVENT_MAP_SPRITE_REQUESTED
Definition runtime.h:148
@ MLN_RUNTIME_EVENT_OFFLINE_REGION_RESPONSE_ERROR
Definition runtime.h:137
@ MLN_RUNTIME_EVENT_MAP_SOURCE_CHANGED
Definition runtime.h:134
@ MLN_RUNTIME_EVENT_OFFLINE_REGION_STATUS_CHANGED
Definition runtime.h:135
@ MLN_RUNTIME_EVENT_MAP_STYLE_IMAGE_MISSING
Definition runtime.h:130
@ MLN_RUNTIME_EVENT_MAP_LOADING_FAILED
Definition runtime.h:118
@ MLN_RUNTIME_EVENT_MAP_GLYPHS_REQUESTED
Definition runtime.h:145
@ MLN_RUNTIME_EVENT_MAP_GLYPHS_ERROR
Definition runtime.h:147
@ MLN_RUNTIME_EVENT_MAP_LOADING_FINISHED
Definition runtime.h:116
@ MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_FINISHED
Definition runtime.h:126
@ MLN_RUNTIME_EVENT_MAP_CAMERA_WILL_CHANGE
Definition runtime.h:106
@ MLN_RUNTIME_EVENT_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED
Definition runtime.h:144
@ MLN_RUNTIME_EVENT_MAP_SPRITE_ERROR
Definition runtime.h:150
@ MLN_RUNTIME_EVENT_MAP_RENDER_MAP_FINISHED
Definition runtime.h:128
@ MLN_RUNTIME_EVENT_MAP_STYLE_LOADED
Definition runtime.h:109
@ MLN_RUNTIME_EVENT_MAP_CAMERA_IS_CHANGING
Definition runtime.h:107
@ MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_STARTED
Definition runtime.h:125
@ MLN_RUNTIME_EVENT_MAP_RENDER_MAP_STARTED
Definition runtime.h:127
@ MLN_RUNTIME_EVENT_MAP_GLYPHS_LOADED
Definition runtime.h:146
@ MLN_RUNTIME_EVENT_MAP_LOADING_STARTED
Definition runtime.h:111
@ MLN_RUNTIME_EVENT_MAP_CAMERA_DID_CHANGE
Definition runtime.h:108
@ MLN_RUNTIME_EVENT_MAP_RENDER_ERROR
Definition runtime.h:124
mln_status mln_network_get_status(mln_network_status *out_status, mln_diagnostic *out_diagnostic)
uint32_t mln_resource_transform_error_fields
Definition runtime.h:706
mln_status mln_resource_transform_request_complete(mln_resource_transform_request request, mln_buffer_view url, mln_diagnostic *out_diagnostic)
int64_t mln_offline_region_id
Definition runtime.h:62
mln_status mln_runtime_set_event_handler(mln_runtime runtime, const mln_runtime_event_handler *handler, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_status mln_runtime_release(mln_runtime runtime, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_resource_kind_flag
Definition runtime.h:612
@ MLN_RESOURCE_KIND_FLAG_SOURCE
Definition runtime.h:615
@ MLN_RESOURCE_KIND_FLAG_IMAGE
Definition runtime.h:620
@ MLN_RESOURCE_KIND_FLAG_GLYPHS
Definition runtime.h:617
@ MLN_RESOURCE_KIND_FLAG_TILE
Definition runtime.h:616
@ MLN_RESOURCE_KIND_FLAG_UNKNOWN
Definition runtime.h:613
@ MLN_RESOURCE_KIND_FLAG_SPRITE_JSON
Definition runtime.h:619
@ MLN_RESOURCE_KIND_FLAG_STYLE
Definition runtime.h:614
@ MLN_RESOURCE_KIND_FLAG_ALL
Definition runtime.h:621
@ MLN_RESOURCE_KIND_FLAG_SPRITE_IMAGE
Definition runtime.h:618
mln_status(*) mln_http_header_transform_callback(void *user_data, mln_resource_kind kind, mln_buffer_view url, mln_http_header_transform_response *out_response)
Definition runtime.h:804
mln_status mln_network_set_status(mln_network_status status, mln_diagnostic *out_diagnostic)
mln_runtime_event_flag
Definition runtime.h:154
@ MLN_RUNTIME_EVENT_FLAG_MAP_LOADING_FAILED
Definition runtime.h:168
@ MLN_RUNTIME_EVENT_FLAG_ALL_MAP_EVENTS
Definition runtime.h:205
@ MLN_RUNTIME_EVENT_FLAG_ALL_RUNTIME_EVENTS
Definition runtime.h:227
@ MLN_RUNTIME_EVENT_FLAG_MAP_GLYPHS_LOADED
Definition runtime.h:195
@ MLN_RUNTIME_EVENT_FLAG_MAP_LOADING_STARTED
Definition runtime.h:164
@ MLN_RUNTIME_EVENT_FLAG_MAP_GLYPHS_REQUESTED
Definition runtime.h:193
@ MLN_RUNTIME_EVENT_FLAG_MAP_SPRITE_ERROR
Definition runtime.h:203
@ MLN_RUNTIME_EVENT_FLAG_MAP_RENDER_ERROR
Definition runtime.h:171
@ MLN_RUNTIME_EVENT_FLAG_MAP_RENDER_MAP_STARTED
Definition runtime.h:177
@ MLN_RUNTIME_EVENT_FLAG_MAP_SOURCE_CHANGED
Definition runtime.h:185
@ MLN_RUNTIME_EVENT_FLAG_NONE
Definition runtime.h:155
@ MLN_RUNTIME_EVENT_FLAG_MAP_RENDER_MAP_FINISHED
Definition runtime.h:179
@ MLN_RUNTIME_EVENT_FLAG_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED
Definition runtime.h:191
@ MLN_RUNTIME_EVENT_FLAG_ALL
Definition runtime.h:231
@ MLN_RUNTIME_EVENT_FLAG_MAP_IDLE
Definition runtime.h:170
@ MLN_RUNTIME_EVENT_FLAG_MAP_LOADING_FINISHED
Definition runtime.h:166
@ MLN_RUNTIME_EVENT_FLAG_MAP_RENDER_FRAME_FINISHED
Definition runtime.h:175
@ MLN_RUNTIME_EVENT_FLAG_MAP_SPRITE_LOADED
Definition runtime.h:201
@ MLN_RUNTIME_EVENT_FLAG_MAP_CAMERA_WILL_CHANGE
Definition runtime.h:156
@ MLN_RUNTIME_EVENT_FLAG_OFFLINE_REGION_STATUS_CHANGED
Definition runtime.h:187
@ MLN_RUNTIME_EVENT_FLAG_MAP_STYLE_IMAGE_MISSING
Definition runtime.h:181
@ MLN_RUNTIME_EVENT_FLAG_MAP_CAMERA_DID_CHANGE
Definition runtime.h:160
@ MLN_RUNTIME_EVENT_FLAG_MAP_CAMERA_IS_CHANGING
Definition runtime.h:158
@ MLN_RUNTIME_EVENT_FLAG_MAP_SPRITE_REQUESTED
Definition runtime.h:199
@ MLN_RUNTIME_EVENT_FLAG_MAP_STYLE_LOADED
Definition runtime.h:162
@ MLN_RUNTIME_EVENT_FLAG_OFFLINE_REGION_RESPONSE_ERROR
Definition runtime.h:189
@ MLN_RUNTIME_EVENT_FLAG_MAP_GLYPHS_ERROR
Definition runtime.h:197
@ MLN_RUNTIME_EVENT_FLAG_MAP_TILE_ACTION
Definition runtime.h:183
@ MLN_RUNTIME_EVENT_FLAG_MAP_RENDER_FRAME_STARTED
Definition runtime.h:173
mln_map_load_error
Definition runtime.h:280
@ MLN_MAP_LOAD_ERROR_UNKNOWN
Definition runtime.h:281
@ MLN_MAP_LOAD_ERROR_STYLE_PARSE
Definition runtime.h:283
@ MLN_MAP_LOAD_ERROR_STYLE_LOAD
Definition runtime.h:285
mln_resource_response_status
Definition runtime.h:349
@ MLN_RESOURCE_RESPONSE_STATUS_ERROR
Definition runtime.h:351
@ MLN_RESOURCE_RESPONSE_STATUS_OK
Definition runtime.h:350
@ MLN_RESOURCE_RESPONSE_STATUS_NOT_MODIFIED
Definition runtime.h:357
@ MLN_RESOURCE_RESPONSE_STATUS_NO_CONTENT
Definition runtime.h:353
mln_status mln_resource_request_is_cancelled(mln_resource_request handle, bool *out_cancelled, mln_diagnostic *out_diagnostic)
void mln_resource_transform_request_release(mln_resource_transform_request request)
mln_status mln_runtime_set_resource_transform(mln_runtime runtime, const mln_resource_transform *transform, const mln_completion *completion, mln_diagnostic *out_diagnostic)
uint32_t mln_resource_request_fields
Definition runtime.h:840
void(*) mln_resource_transform_callback(void *user_data, mln_resource_kind kind, mln_buffer_view url, mln_resource_transform_request request)
Definition runtime.h:693
mln_runtime_event_source_type
Definition runtime.h:239
@ MLN_RUNTIME_EVENT_SOURCE_RUNTIME
Definition runtime.h:240
@ MLN_RUNTIME_EVENT_SOURCE_MAP
Definition runtime.h:241
mln_resource_transform_error_field
Definition runtime.h:701
@ MLN_RESOURCE_TRANSFORM_ERROR_RETRY_AFTER
Definition runtime.h:702
mln_resource_storage_policy
Definition runtime.h:343
@ MLN_RESOURCE_STORAGE_POLICY_PERMANENT
Definition runtime.h:344
@ MLN_RESOURCE_STORAGE_POLICY_VOLATILE
Definition runtime.h:345
mln_camera_change_mode
Definition runtime.h:261
@ MLN_CAMERA_CHANGE_MODE_IMMEDIATE
Definition runtime.h:262
@ MLN_CAMERA_CHANGE_MODE_ANIMATED
Definition runtime.h:263
mln_status mln_resource_request_set_cancel_callback(mln_resource_request handle, const mln_resource_request_cancel_handler *handler, bool *out_cancelled, mln_diagnostic *out_diagnostic)
mln_url_match_flag
Definition runtime.h:638
@ MLN_URL_MATCH_GLOB
Definition runtime.h:644
void mln_resource_request_release(mln_resource_request handle)
mln_resource_error_reason
Definition runtime.h:361
@ MLN_RESOURCE_ERROR_REASON_RATE_LIMIT
Definition runtime.h:369
@ MLN_RESOURCE_ERROR_REASON_OTHER
Definition runtime.h:363
@ MLN_RESOURCE_ERROR_REASON_SERVER
Definition runtime.h:366
@ MLN_RESOURCE_ERROR_REASON_CONNECTION
Definition runtime.h:368
@ MLN_RESOURCE_ERROR_REASON_NOT_FOUND
Definition runtime.h:364
mln_offline_region_download_state
Definition runtime.h:71
@ MLN_OFFLINE_REGION_DOWNLOAD_ACTIVE
Definition runtime.h:73
@ MLN_OFFLINE_REGION_DOWNLOAD_INACTIVE
Definition runtime.h:72
void(*) mln_runtime_event_callback(void *user_data, const mln_event_batch_view *events)
Definition runtime.h:596
mln_resource_priority
Definition runtime.h:331
@ MLN_RESOURCE_PRIORITY_REGULAR
Definition runtime.h:332
@ MLN_RESOURCE_PRIORITY_LOW
Definition runtime.h:333
uint32_t mln_resource_kind_flags
Definition runtime.h:629
mln_status mln_runtime_clear_event_handler(mln_runtime runtime, const mln_completion *completion, mln_diagnostic *out_diagnostic)
void(*) mln_resource_provider_callback(void *user_data, const mln_resource_request_info *request, mln_resource_request handle)
Definition runtime.h:928
mln_status mln_runtime_set_resource_provider(mln_runtime runtime, const mln_resource_provider *provider, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_resource_usage
Definition runtime.h:337
@ MLN_RESOURCE_USAGE_ONLINE
Definition runtime.h:338
@ MLN_RESOURCE_USAGE_OFFLINE
Definition runtime.h:339
uint64_t mln_runtime_event_flags
Definition runtime.h:236
mln_status mln_runtime_clear_resource_transform(mln_runtime runtime, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_resource_loading_method
Definition runtime.h:323
@ MLN_RESOURCE_LOADING_METHOD_ALL
Definition runtime.h:325
@ MLN_RESOURCE_LOADING_METHOD_NETWORK_ONLY
Definition runtime.h:327
@ MLN_RESOURCE_LOADING_METHOD_CACHE_ONLY
Definition runtime.h:326
mln_status mln_resource_request_complete(mln_resource_request handle, const mln_resource_response *response, mln_diagnostic *out_diagnostic)
mln_render_mode
Definition runtime.h:292
@ MLN_RENDER_MODE_FULL
Definition runtime.h:294
@ MLN_RENDER_MODE_PARTIAL
Definition runtime.h:293
mln_status mln_runtime_clear_resource_provider(mln_runtime runtime, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_cache_database_operation
Definition runtime.h:37
@ MLN_CACHE_DATABASE_OPERATION_RESET
Definition runtime.h:58
@ MLN_CACHE_DATABASE_OPERATION_INVALIDATE
Definition runtime.h:48
@ MLN_CACHE_DATABASE_OPERATION_CLEAR
Definition runtime.h:42
@ MLN_CACHE_DATABASE_OPERATION_PACK
Definition runtime.h:53
mln_status mln_http_header_transform_response_set_header(mln_http_header_transform_response *response, mln_buffer_view name, mln_buffer_view value, mln_diagnostic *out_diagnostic)
uint32_t mln_resource_response_fields
Definition runtime.h:887
void(*) mln_resource_request_cancel_callback(void *user_data, mln_resource_request handle)
Definition runtime.h:942
Definition base.h:178
Definition completion.h:66
Definition base.h:84
Definition runtime.h:581
uint32_t event_size
Definition runtime.h:583
uint32_t size
Definition runtime.h:582
const mln_runtime_event * events
Definition runtime.h:585
size_t event_count
Definition runtime.h:586
Definition runtime.h:671
uint32_t size
Definition runtime.h:672
size_t header_count
Definition runtime.h:678
const mln_http_header * headers
Definition runtime.h:677
mln_resource_kind_flags kinds
Definition runtime.h:674
mln_url_match_flags flags
Definition runtime.h:675
mln_buffer_view url
Definition runtime.h:676
Definition runtime.h:771
uint32_t size
Definition runtime.h:772
void * context
Definition runtime.h:773
Definition runtime.h:814
mln_user_data_release release_user_data
Definition runtime.h:818
uint32_t size
Definition runtime.h:815
void * user_data
Definition runtime.h:817
size_t rule_count
Definition runtime.h:821
const mln_http_header_rule * rules
Definition runtime.h:820
mln_http_header_transform_callback callback
Definition runtime.h:816
Definition runtime.h:665
mln_buffer_view name
Definition runtime.h:666
mln_buffer_view value
Definition runtime.h:667
Definition runtime.h:77
uint64_t completed_resource_size
Definition runtime.h:82
uint64_t completed_tile_size
Definition runtime.h:86
mln_offline_region_download_state download_state
Definition runtime.h:78
uint64_t required_tile_count
Definition runtime.h:84
bool required_resource_count_is_precise
Definition runtime.h:92
bool complete
Definition runtime.h:94
uint64_t completed_resource_count
Definition runtime.h:80
uint64_t required_resource_count
Definition runtime.h:91
uint64_t completed_tile_count
Definition runtime.h:83
Definition runtime.h:407
int64_t draw_call_count
Definition runtime.h:415
double rendering_time_ms
Definition runtime.h:411
double encoding_time_ms
Definition runtime.h:409
int64_t total_draw_call_count
Definition runtime.h:417
int64_t frame_count
Definition runtime.h:413
Definition runtime.h:958
uint32_t size
Definition runtime.h:959
const mln_resource_route * routes
Definition runtime.h:968
mln_resource_provider_callback callback
Definition runtime.h:960
void * user_data
Definition runtime.h:961
mln_delivery_queue queue
Definition runtime.h:963
size_t route_count
Definition runtime.h:969
mln_user_data_release release_user_data
Definition runtime.h:962
Definition runtime.h:827
uint64_t end
Definition runtime.h:829
uint64_t start
Definition runtime.h:828
Definition runtime.h:947
void * user_data
Definition runtime.h:950
mln_delivery_queue queue
Definition runtime.h:952
uint32_t size
Definition runtime.h:948
mln_resource_request_cancel_callback callback
Definition runtime.h:949
mln_user_data_release release_user_data
Definition runtime.h:951
Definition runtime.h:848
mln_resource_kind kind
Definition runtime.h:858
size_t prior_data_size
Definition runtime.h:874
mln_resource_request_fields fields
Definition runtime.h:850
mln_resource_loading_method loading_method
Definition runtime.h:859
uint32_t size
Definition runtime.h:849
mln_buffer_view prior_etag
Definition runtime.h:871
const uint8_t * prior_data
Definition runtime.h:873
int64_t prior_modified_unix_ms
Definition runtime.h:867
mln_buffer_view requested_url
Definition runtime.h:852
mln_buffer_view resolved_url
Definition runtime.h:857
mln_resource_range range
Definition runtime.h:865
int64_t prior_expires_unix_ms
Definition runtime.h:869
mln_resource_usage usage
Definition runtime.h:861
mln_resource_priority priority
Definition runtime.h:860
mln_resource_storage_policy storage_policy
Definition runtime.h:862
Definition runtime.h:890
bool must_revalidate
Definition runtime.h:905
mln_resource_response_status status
Definition runtime.h:893
int64_t expires_unix_ms
Definition runtime.h:909
int64_t modified_unix_ms
Definition runtime.h:907
mln_resource_error_reason error_reason
Definition runtime.h:895
mln_resource_response_fields fields
Definition runtime.h:892
uint32_t size
Definition runtime.h:891
mln_buffer_view etag
Definition runtime.h:911
int64_t retry_after_unix_ms
Definition runtime.h:914
size_t byte_count
Definition runtime.h:898
mln_buffer_view error_message
Definition runtime.h:900
const uint8_t * bytes
Definition runtime.h:897
Definition runtime.h:651
mln_url_match_flags flags
Definition runtime.h:655
uint32_t size
Definition runtime.h:652
mln_buffer_view url
Definition runtime.h:656
mln_resource_kind_flags kinds
Definition runtime.h:654
Definition runtime.h:709
mln_buffer_view message
Definition runtime.h:713
uint32_t size
Definition runtime.h:710
mln_resource_transform_error_fields fields
Definition runtime.h:711
int64_t retry_after_unix_ms
Definition runtime.h:716
mln_resource_error_reason reason
Definition runtime.h:712
Definition runtime.h:738
size_t parameter_count
Definition runtime.h:746
uint32_t size
Definition runtime.h:739
mln_buffer_view url
Definition runtime.h:743
const mln_url_query_parameter * parameters
Definition runtime.h:745
mln_url_match_flags flags
Definition runtime.h:742
mln_resource_kind_flags kinds
Definition runtime.h:741
Definition runtime.h:754
const mln_resource_transform_rule * rules
Definition runtime.h:764
void * user_data
Definition runtime.h:757
mln_delivery_queue queue
Definition runtime.h:759
mln_user_data_release release_user_data
Definition runtime.h:758
mln_resource_transform_callback callback
Definition runtime.h:756
uint32_t size
Definition runtime.h:755
size_t rule_count
Definition runtime.h:765
Definition runtime.h:432
mln_camera_change_mode mode
Definition runtime.h:433
mln_camera_change_source source
Definition runtime.h:434
Definition runtime.h:482
uint32_t last
Definition runtime.h:487
bool font_face
Definition runtime.h:488
const mln_buffer_view * font_stack
Definition runtime.h:484
uint32_t first
Definition runtime.h:486
size_t font_count
Definition runtime.h:485
Definition runtime.h:601
void * user_data
Definition runtime.h:604
mln_user_data_release release_user_data
Definition runtime.h:605
mln_delivery_queue queue
Definition runtime.h:606
uint32_t size
Definition runtime.h:602
mln_runtime_event_callback callback
Definition runtime.h:603
Definition runtime.h:438
mln_map_load_error error
Definition runtime.h:439
mln_resource_error_reason reason
Definition runtime.h:510
mln_offline_region_id region_id
Definition runtime.h:509
mln_offline_region_id region_id
Definition runtime.h:503
mln_offline_region_status status
Definition runtime.h:504
mln_offline_region_id region_id
Definition runtime.h:517
uint64_t limit
Definition runtime.h:522
Definition runtime.h:421
bool needs_repaint
Definition runtime.h:423
mln_rendering_stats stats
Definition runtime.h:425
mln_render_mode mode
Definition runtime.h:422
bool placement_changed
Definition runtime.h:424
Definition runtime.h:448
mln_buffer_view source_id
Definition runtime.h:449
Definition runtime.h:496
mln_buffer_view id
Definition runtime.h:497
mln_buffer_view url
Definition runtime.h:498
Definition runtime.h:443
mln_buffer_view image_id
Definition runtime.h:444
Definition runtime.h:470
mln_buffer_view source_id
Definition runtime.h:472
mln_tile_operation operation
Definition runtime.h:473
mln_tile_id tile_id
Definition runtime.h:474
Definition runtime.h:556
uint64_t generation
Definition runtime.h:565
uint64_t source
Definition runtime.h:560
mln_runtime_event_payload_type payload_type
Definition runtime.h:566
mln_runtime_event_source_type source_type
Definition runtime.h:558
mln_runtime_event_payload payload
Definition runtime.h:571
mln_runtime_event_type type
Definition runtime.h:557
mln_buffer_view message
Definition runtime.h:568
Definition runtime.h:391
mln_buffer_view asset_path
Definition runtime.h:397
mln_buffer_view cache_path
Definition runtime.h:403
uint32_t size
Definition runtime.h:392
Definition runtime.h:461
int32_t wrap
Definition runtime.h:463
uint32_t canonical_y
Definition runtime.h:466
uint32_t overscaled_z
Definition runtime.h:462
uint32_t canonical_x
Definition runtime.h:465
uint32_t canonical_z
Definition runtime.h:464
Definition runtime.h:726
mln_buffer_view name
Definition runtime.h:727
mln_buffer_view value
Definition runtime.h:728
Definition runtime.h:526
mln_runtime_event_offline_region_response_error offline_region_response_error
Definition runtime.h:544
mln_runtime_event_glyphs glyphs
Definition runtime.h:550
mln_runtime_event_offline_region_status offline_region_status
Definition runtime.h:540
mln_runtime_event_render_frame render_frame
Definition runtime.h:532
mln_runtime_event_sprite sprite
Definition runtime.h:552
mln_runtime_event_source_changed source_changed
Definition runtime.h:538
mln_runtime_event_style_image style_image
Definition runtime.h:534
mln_runtime_event_loading_failed loading_failed
Definition runtime.h:530
mln_runtime_event_camera_change camera_change
Definition runtime.h:528
mln_runtime_event_tile_action tile_action
Definition runtime.h:536
mln_runtime_event_offline_region_tile_count_limit offline_region_tile_count_limit
Definition runtime.h:548