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
5
6#ifndef MAPLIBRE_NATIVE_C_RUNTIME_H
7#define MAPLIBRE_NATIVE_C_RUNTIME_H
8
9#ifndef __cplusplus
10#include <stdbool.h>
11#endif
12
13#include <stddef.h>
14#include <stdint.h>
15
16#include "base.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22typedef enum mln_network_status : uint32_t {
23 MLN_NETWORK_STATUS_ONLINE = 1,
24 MLN_NETWORK_STATUS_OFFLINE = 2,
25} mln_network_status;
26
27typedef enum mln_ambient_cache_operation : uint32_t {
28 MLN_AMBIENT_CACHE_OPERATION_RESET_DATABASE = 1,
29 MLN_AMBIENT_CACHE_OPERATION_PACK_DATABASE = 2,
30 MLN_AMBIENT_CACHE_OPERATION_INVALIDATE = 3,
31 MLN_AMBIENT_CACHE_OPERATION_CLEAR = 4,
32} mln_ambient_cache_operation;
33
34typedef int64_t mln_offline_region_id;
35
36typedef enum mln_offline_region_definition_type : uint32_t {
37 MLN_OFFLINE_REGION_DEFINITION_TILE_PYRAMID = 1,
38 MLN_OFFLINE_REGION_DEFINITION_GEOMETRY = 2,
39} mln_offline_region_definition_type;
40
41typedef enum mln_offline_region_download_state : uint32_t {
42 MLN_OFFLINE_REGION_DOWNLOAD_INACTIVE = 0,
43 MLN_OFFLINE_REGION_DOWNLOAD_ACTIVE = 1,
44} mln_offline_region_download_state;
45
47typedef uint64_t mln_offline_operation_id;
48
50typedef enum mln_offline_operation_kind : uint32_t {
51 MLN_OFFLINE_OPERATION_AMBIENT_CACHE = 1,
52 MLN_OFFLINE_OPERATION_REGION_CREATE = 2,
53 MLN_OFFLINE_OPERATION_REGION_GET = 3,
54 MLN_OFFLINE_OPERATION_REGIONS_LIST = 4,
55 MLN_OFFLINE_OPERATION_REGIONS_MERGE_DATABASE = 5,
56 MLN_OFFLINE_OPERATION_REGION_UPDATE_METADATA = 6,
57 MLN_OFFLINE_OPERATION_REGION_GET_STATUS = 7,
58 MLN_OFFLINE_OPERATION_REGION_SET_OBSERVED = 8,
59 MLN_OFFLINE_OPERATION_REGION_SET_DOWNLOAD_STATE = 9,
60 MLN_OFFLINE_OPERATION_REGION_INVALIDATE = 10,
61 MLN_OFFLINE_OPERATION_REGION_DELETE = 11,
62 MLN_OFFLINE_OPERATION_SET_MAXIMUM_AMBIENT_CACHE_SIZE = 12,
64
66typedef enum mln_offline_operation_result_kind : uint32_t {
67 MLN_OFFLINE_OPERATION_RESULT_NONE = 0,
68 MLN_OFFLINE_OPERATION_RESULT_REGION = 1,
69 MLN_OFFLINE_OPERATION_RESULT_OPTIONAL_REGION = 2,
70 MLN_OFFLINE_OPERATION_RESULT_REGION_LIST = 3,
71 MLN_OFFLINE_OPERATION_RESULT_REGION_STATUS = 4,
73
76 uint32_t size;
79 uint64_t completed_resource_count;
80 uint64_t completed_resource_size;
81 uint64_t completed_tile_count;
82 uint64_t required_tile_count;
83 uint64_t completed_tile_size;
84 uint64_t required_resource_count;
85 bool required_resource_count_is_precise;
86 bool complete;
88
135typedef enum mln_runtime_event_type : uint32_t {
136 MLN_RUNTIME_EVENT_MAP_CAMERA_WILL_CHANGE = 1,
137 MLN_RUNTIME_EVENT_MAP_CAMERA_IS_CHANGING = 2,
138 MLN_RUNTIME_EVENT_MAP_CAMERA_DID_CHANGE = 3,
139 MLN_RUNTIME_EVENT_MAP_STYLE_LOADED = 4,
140 MLN_RUNTIME_EVENT_MAP_LOADING_STARTED = 5,
141 MLN_RUNTIME_EVENT_MAP_LOADING_FINISHED = 6,
142 MLN_RUNTIME_EVENT_MAP_LOADING_FAILED = 7,
143 MLN_RUNTIME_EVENT_MAP_IDLE = 8,
144 MLN_RUNTIME_EVENT_MAP_RENDER_UPDATE_AVAILABLE = 9,
145 MLN_RUNTIME_EVENT_MAP_RENDER_ERROR = 10,
146 MLN_RUNTIME_EVENT_MAP_STILL_IMAGE_FINISHED = 11,
147 MLN_RUNTIME_EVENT_MAP_STILL_IMAGE_FAILED = 12,
148 MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_STARTED = 13,
149 MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_FINISHED = 14,
150 MLN_RUNTIME_EVENT_MAP_RENDER_MAP_STARTED = 15,
151 MLN_RUNTIME_EVENT_MAP_RENDER_MAP_FINISHED = 16,
152 MLN_RUNTIME_EVENT_MAP_STYLE_IMAGE_MISSING = 17,
153 MLN_RUNTIME_EVENT_MAP_TILE_ACTION = 18,
154 MLN_RUNTIME_EVENT_OFFLINE_REGION_STATUS_CHANGED = 19,
155 MLN_RUNTIME_EVENT_OFFLINE_REGION_RESPONSE_ERROR = 20,
156 MLN_RUNTIME_EVENT_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED = 21,
157 MLN_RUNTIME_EVENT_OFFLINE_OPERATION_COMPLETED = 22,
158 MLN_RUNTIME_EVENT_MAP_CAMERA_TRANSITION_FINISHED = 23,
160
174typedef enum mln_runtime_event_mask : uint64_t {
177 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_WILL_CHANGE =
178 1ULL << MLN_RUNTIME_EVENT_MAP_CAMERA_WILL_CHANGE,
179 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_IS_CHANGING =
180 1ULL << MLN_RUNTIME_EVENT_MAP_CAMERA_IS_CHANGING,
181 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_DID_CHANGE =
182 1ULL << MLN_RUNTIME_EVENT_MAP_CAMERA_DID_CHANGE,
183 MLN_RUNTIME_EVENT_MASK_MAP_STYLE_LOADED =
184 1ULL << MLN_RUNTIME_EVENT_MAP_STYLE_LOADED,
185 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_STARTED =
186 1ULL << MLN_RUNTIME_EVENT_MAP_LOADING_STARTED,
187 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_FINISHED =
188 1ULL << MLN_RUNTIME_EVENT_MAP_LOADING_FINISHED,
189 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_FAILED =
190 1ULL << MLN_RUNTIME_EVENT_MAP_LOADING_FAILED,
191 MLN_RUNTIME_EVENT_MASK_MAP_IDLE = 1ULL << MLN_RUNTIME_EVENT_MAP_IDLE,
192 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_UPDATE_AVAILABLE =
193 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_UPDATE_AVAILABLE,
194 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_ERROR =
195 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_ERROR,
196 MLN_RUNTIME_EVENT_MASK_MAP_STILL_IMAGE_FINISHED =
197 1ULL << MLN_RUNTIME_EVENT_MAP_STILL_IMAGE_FINISHED,
198 MLN_RUNTIME_EVENT_MASK_MAP_STILL_IMAGE_FAILED =
199 1ULL << MLN_RUNTIME_EVENT_MAP_STILL_IMAGE_FAILED,
200 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_FRAME_STARTED =
201 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_STARTED,
202 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_FRAME_FINISHED =
203 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_FINISHED,
204 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_MAP_STARTED =
205 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_MAP_STARTED,
206 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_MAP_FINISHED =
207 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_MAP_FINISHED,
208 MLN_RUNTIME_EVENT_MASK_MAP_STYLE_IMAGE_MISSING =
209 1ULL << MLN_RUNTIME_EVENT_MAP_STYLE_IMAGE_MISSING,
210 MLN_RUNTIME_EVENT_MASK_MAP_TILE_ACTION = 1ULL
211 << MLN_RUNTIME_EVENT_MAP_TILE_ACTION,
212 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_TRANSITION_FINISHED =
213 1ULL << MLN_RUNTIME_EVENT_MAP_CAMERA_TRANSITION_FINISHED,
214 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_STATUS_CHANGED =
215 1ULL << MLN_RUNTIME_EVENT_OFFLINE_REGION_STATUS_CHANGED,
216 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_RESPONSE_ERROR =
217 1ULL << MLN_RUNTIME_EVENT_OFFLINE_REGION_RESPONSE_ERROR,
218 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED =
219 1ULL << MLN_RUNTIME_EVENT_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED,
220 MLN_RUNTIME_EVENT_MASK_OFFLINE_OPERATION_COMPLETED =
221 1ULL << MLN_RUNTIME_EVENT_OFFLINE_OPERATION_COMPLETED,
224 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_WILL_CHANGE |
225 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_IS_CHANGING |
226 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_DID_CHANGE |
227 MLN_RUNTIME_EVENT_MASK_MAP_STYLE_LOADED |
228 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_STARTED |
229 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_FINISHED |
230 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_FAILED |
231 MLN_RUNTIME_EVENT_MASK_MAP_IDLE |
232 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_UPDATE_AVAILABLE |
233 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_ERROR |
234 MLN_RUNTIME_EVENT_MASK_MAP_STILL_IMAGE_FINISHED |
235 MLN_RUNTIME_EVENT_MASK_MAP_STILL_IMAGE_FAILED |
236 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_FRAME_STARTED |
237 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_FRAME_FINISHED |
238 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_MAP_STARTED |
239 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_MAP_FINISHED |
240 MLN_RUNTIME_EVENT_MASK_MAP_STYLE_IMAGE_MISSING |
241 MLN_RUNTIME_EVENT_MASK_MAP_TILE_ACTION |
242 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_TRANSITION_FINISHED,
245 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_STATUS_CHANGED |
246 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_RESPONSE_ERROR |
247 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED |
248 MLN_RUNTIME_EVENT_MASK_OFFLINE_OPERATION_COMPLETED,
253
255typedef enum mln_runtime_event_source_type : uint32_t {
256 MLN_RUNTIME_EVENT_SOURCE_RUNTIME = 0,
257 MLN_RUNTIME_EVENT_SOURCE_MAP = 1,
259
266typedef enum mln_runtime_event_payload_type : uint32_t {
267 MLN_RUNTIME_EVENT_PAYLOAD_NONE = 0,
268 MLN_RUNTIME_EVENT_PAYLOAD_RENDER_FRAME = 1,
269 MLN_RUNTIME_EVENT_PAYLOAD_RENDER_MAP = 2,
270 MLN_RUNTIME_EVENT_PAYLOAD_TILE_ACTION = 4,
271 MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_STATUS = 5,
272 MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_RESPONSE_ERROR = 6,
273 MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_TILE_COUNT_LIMIT = 7,
274 MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_OPERATION_COMPLETED = 8,
275 MLN_RUNTIME_EVENT_PAYLOAD_CAMERA_TRANSITION_FINISHED = 9,
277
285
287typedef enum mln_render_mode : uint32_t {
288 MLN_RENDER_MODE_PARTIAL = 0,
289 MLN_RENDER_MODE_FULL = 1,
291
293typedef enum mln_tile_operation : uint32_t {
294 MLN_TILE_OPERATION_REQUESTED_FROM_CACHE = 0,
295 MLN_TILE_OPERATION_REQUESTED_FROM_NETWORK = 1,
296 MLN_TILE_OPERATION_LOAD_FROM_NETWORK = 2,
297 MLN_TILE_OPERATION_LOAD_FROM_CACHE = 3,
298 MLN_TILE_OPERATION_START_PARSE = 4,
299 MLN_TILE_OPERATION_END_PARSE = 5,
300 MLN_TILE_OPERATION_ERROR = 6,
301 MLN_TILE_OPERATION_CANCELLED = 7,
302 MLN_TILE_OPERATION_NULL = 8,
304
305typedef enum mln_resource_kind : uint32_t {
306 MLN_RESOURCE_KIND_UNKNOWN = 0,
307 MLN_RESOURCE_KIND_STYLE = 1,
308 MLN_RESOURCE_KIND_SOURCE = 2,
309 MLN_RESOURCE_KIND_TILE = 3,
310 MLN_RESOURCE_KIND_GLYPHS = 4,
311 MLN_RESOURCE_KIND_SPRITE_IMAGE = 5,
312 MLN_RESOURCE_KIND_SPRITE_JSON = 6,
313 MLN_RESOURCE_KIND_IMAGE = 7,
314} mln_resource_kind;
315
316typedef enum mln_resource_loading_method : uint32_t {
317 MLN_RESOURCE_LOADING_METHOD_ALL = 0,
318 MLN_RESOURCE_LOADING_METHOD_CACHE_ONLY = 1,
319 MLN_RESOURCE_LOADING_METHOD_NETWORK_ONLY = 2,
320} mln_resource_loading_method;
321
322typedef enum mln_resource_priority : uint32_t {
323 MLN_RESOURCE_PRIORITY_REGULAR = 0,
324 MLN_RESOURCE_PRIORITY_LOW = 1,
325} mln_resource_priority;
326
327typedef enum mln_resource_usage : uint32_t {
328 MLN_RESOURCE_USAGE_ONLINE = 0,
329 MLN_RESOURCE_USAGE_OFFLINE = 1,
330} mln_resource_usage;
331
332typedef enum mln_resource_storage_policy : uint32_t {
333 MLN_RESOURCE_STORAGE_POLICY_PERMANENT = 0,
334 MLN_RESOURCE_STORAGE_POLICY_VOLATILE = 1,
335} mln_resource_storage_policy;
336
337typedef enum mln_resource_response_status : uint32_t {
338 MLN_RESOURCE_RESPONSE_STATUS_OK = 0,
339 MLN_RESOURCE_RESPONSE_STATUS_ERROR = 1,
340 MLN_RESOURCE_RESPONSE_STATUS_NO_CONTENT = 2,
341 MLN_RESOURCE_RESPONSE_STATUS_NOT_MODIFIED = 3,
342} mln_resource_response_status;
343
344typedef enum mln_resource_error_reason : uint32_t {
345 MLN_RESOURCE_ERROR_REASON_NONE = 0,
346 MLN_RESOURCE_ERROR_REASON_NOT_FOUND = 1,
347 MLN_RESOURCE_ERROR_REASON_SERVER = 2,
348 MLN_RESOURCE_ERROR_REASON_CONNECTION = 3,
349 MLN_RESOURCE_ERROR_REASON_RATE_LIMIT = 4,
350 MLN_RESOURCE_ERROR_REASON_OTHER = 5,
351} mln_resource_error_reason;
352
353typedef enum mln_resource_provider_decision : uint32_t {
354 MLN_RESOURCE_PROVIDER_DECISION_PASS_THROUGH = 0,
355 MLN_RESOURCE_PROVIDER_DECISION_HANDLE = 1,
356} mln_resource_provider_decision;
357
368MLN_API mln_status mln_network_status_get(uint32_t* out_status) MLN_NOEXCEPT;
369
383MLN_API mln_status mln_network_status_set(uint32_t status) MLN_NOEXCEPT;
384
386typedef struct mln_runtime_options {
387 uint32_t size;
389 uint32_t flags;
396 const char* asset_path;
398 const char* cache_path;
409 uint64_t event_mask;
411
431
442
448
450typedef struct mln_tile_id {
451 uint32_t overscaled_z;
452 int32_t wrap;
453 uint32_t canonical_z;
454 uint32_t canonical_x;
455 uint32_t canonical_y;
457
468
482
493
500
503 mln_offline_region_id region_id;
504 uint64_t limit;
506
519
535 mln_runtime_event_offline_region_status offline_region_status;
536 mln_runtime_event_offline_region_response_error offline_region_response_error;
538 offline_region_tile_count_limit;
539 mln_runtime_event_offline_operation_completed offline_operation_completed;
540 mln_runtime_event_camera_transition_finished camera_transition_finished;
542
589
624
625typedef struct mln_resource_transform_response {
626 uint32_t size;
629 const char* url;
632 void* context;
633} mln_resource_transform_response;
634
649 mln_resource_transform_response* response, const char* url, size_t url_size
650) MLN_NOEXCEPT;
651
675 void* user_data, uint32_t kind, const char* url,
676 mln_resource_transform_response* out_response
677);
678
679typedef struct mln_resource_transform {
680 uint32_t size;
682 void* user_data;
683} mln_resource_transform;
684
685typedef struct mln_http_header_transform_response {
686 uint32_t size;
689 void* context;
690} mln_http_header_transform_response;
691
709 mln_http_header_transform_response* response, const char* name,
710 size_t name_size, const char* value, size_t value_size
711) MLN_NOEXCEPT;
712
730 void* user_data, uint32_t kind, const char* url,
731 mln_http_header_transform_response* out_response
732);
733
734typedef struct mln_http_header_transform {
735 uint32_t size;
737 void* user_data;
738} mln_http_header_transform;
739
740typedef struct mln_resource_request {
741 uint32_t size;
750 const char* requested_url;
763 const char* resolved_url;
764 uint32_t kind;
765 uint32_t loading_method;
766 uint32_t priority;
767 uint32_t usage;
768 uint32_t storage_policy;
769 bool has_range;
770 uint64_t range_start;
771 uint64_t range_end;
772 bool has_prior_modified;
773 int64_t prior_modified_unix_ms;
774 bool has_prior_expires;
775 int64_t prior_expires_unix_ms;
776 const char* prior_etag;
777 const uint8_t* prior_data;
778 size_t prior_data_size;
779} mln_resource_request;
780
781typedef struct mln_resource_response {
782 uint32_t size;
783 uint32_t status;
784 uint32_t error_reason;
786 const uint8_t* bytes;
787 size_t byte_count;
788 const char* error_message;
789 bool must_revalidate;
790 bool has_modified;
791 int64_t modified_unix_ms;
792 bool has_expires;
793 int64_t expires_unix_ms;
794 const char* etag;
795 bool has_retry_after;
796 int64_t retry_after_unix_ms;
797} mln_resource_response;
798
829 void* user_data, const mln_resource_request* request,
830 mln_resource_request_handle handle
831);
832
844typedef void (*mln_resource_request_cancel_callback)(void* user_data);
845
846typedef struct mln_resource_provider {
847 uint32_t size;
849 void* user_data;
850} mln_resource_provider;
851
856
875 const mln_runtime_options* options, mln_runtime* out_runtime
876) MLN_NOEXCEPT;
877
904 mln_runtime runtime, const mln_resource_provider* provider
905) MLN_NOEXCEPT;
906
924MLN_API mln_status
926
946 mln_resource_request_handle handle, const mln_resource_response* response
947) MLN_NOEXCEPT;
948
962 mln_resource_request_handle handle, bool* out_cancelled
963) MLN_NOEXCEPT;
964
991 mln_resource_request_handle handle,
992 mln_resource_request_cancel_callback callback, void* user_data,
993 bool* out_cancelled
994) MLN_NOEXCEPT;
995
1007 mln_resource_request_handle handle
1008) MLN_NOEXCEPT;
1009
1022 mln_resource_request_handle handle
1023) MLN_NOEXCEPT;
1024
1045 mln_runtime runtime, const mln_resource_transform* transform
1046) MLN_NOEXCEPT;
1047
1061MLN_API mln_status
1063
1085 mln_runtime runtime, const mln_http_header_transform* transform
1086) MLN_NOEXCEPT;
1087
1101MLN_API mln_status
1103
1121 mln_runtime runtime, uint32_t operation,
1122 mln_offline_operation_id* out_operation_id
1123) MLN_NOEXCEPT;
1124
1146 mln_runtime runtime, uint64_t size, mln_offline_operation_id* out_operation_id
1147) MLN_NOEXCEPT;
1148
1165 mln_runtime runtime, mln_offline_operation_id operation_id
1166) MLN_NOEXCEPT;
1167
1191MLN_API mln_status mln_runtime_destroy(mln_runtime runtime) MLN_NOEXCEPT;
1192
1258 mln_runtime runtime, int64_t timeout_ms, int64_t budget_ms
1259) MLN_NOEXCEPT;
1260
1278 mln_runtime runtime, mln_wake_source* out_source
1279) MLN_NOEXCEPT;
1280
1296MLN_API mln_status mln_wake_source_signal(mln_wake_source source) MLN_NOEXCEPT;
1297
1304MLN_API void mln_wake_source_destroy(mln_wake_source source) MLN_NOEXCEPT;
1305
1309
1363 mln_runtime runtime, size_t max_events, mln_runtime_event_batch* out_batch
1364) MLN_NOEXCEPT;
1365
1397MLN_API mln_status
1398mln_runtime_set_event_mask(mln_runtime runtime, uint64_t mask) MLN_NOEXCEPT;
1399
1417 mln_runtime runtime, uint64_t* out_mask
1418) MLN_NOEXCEPT;
1419
1420#ifdef __cplusplus
1421}
1422#endif
1423
1424#endif // MAPLIBRE_NATIVE_C_RUNTIME_H
uint64_t mln_runtime
Definition base.h:86
mln_status
Definition base.h:39
mln_status mln_runtime_set_resource_transform(mln_runtime runtime, const mln_resource_transform *transform)
mln_status mln_runtime_drain_events(mln_runtime runtime, size_t max_events, mln_runtime_event_batch *out_batch)
mln_tile_operation
Definition runtime.h:293
mln_status mln_runtime_get_event_mask(mln_runtime runtime, uint64_t *out_mask)
mln_runtime_event_mask
Definition runtime.h:174
@ MLN_RUNTIME_EVENT_MASK_ALL_MAP_EVENTS
Definition runtime.h:223
@ MLN_RUNTIME_EVENT_MASK_NONE
Definition runtime.h:176
@ MLN_RUNTIME_EVENT_MASK_ALL
Definition runtime.h:250
@ MLN_RUNTIME_EVENT_MASK_ALL_RUNTIME_EVENTS
Definition runtime.h:244
mln_status mln_network_status_get(uint32_t *out_status)
mln_runtime_event_payload_type
Definition runtime.h:266
mln_status mln_runtime_clear_resource_transform(mln_runtime runtime)
mln_status mln_runtime_clear_http_header_transform(mln_runtime runtime)
mln_status mln_runtime_pump(mln_runtime runtime, int64_t timeout_ms, int64_t budget_ms)
mln_status mln_runtime_set_resource_provider(mln_runtime runtime, const mln_resource_provider *provider)
mln_status mln_runtime_run_ambient_cache_operation_start(mln_runtime runtime, uint32_t operation, mln_offline_operation_id *out_operation_id)
mln_runtime_event_type
Definition runtime.h:135
mln_status mln_runtime_set_maximum_ambient_cache_size_start(mln_runtime runtime, uint64_t size, mln_offline_operation_id *out_operation_id)
void mln_resource_request_release(mln_resource_request_handle handle)
mln_status mln_runtime_clear_resource_provider(mln_runtime runtime)
mln_status mln_resource_request_set_cancel_callback(mln_resource_request_handle handle, mln_resource_request_cancel_callback callback, void *user_data, bool *out_cancelled)
mln_status mln_wake_source_signal(mln_wake_source source)
mln_status mln_resource_request_cancelled(mln_resource_request_handle handle, bool *out_cancelled)
mln_status mln_resource_request_wait_until_retired(mln_resource_request_handle handle)
mln_status mln_http_header_transform_response_set(mln_http_header_transform_response *response, const char *name, size_t name_size, const char *value, size_t value_size)
mln_status mln_runtime_set_http_header_transform(mln_runtime runtime, const mln_http_header_transform *transform)
uint32_t(* mln_resource_provider_callback)(void *user_data, const mln_resource_request *request, mln_resource_request_handle handle)
Definition runtime.h:828
void(* mln_resource_request_cancel_callback)(void *user_data)
Definition runtime.h:844
mln_status(* mln_http_header_transform_callback)(void *user_data, uint32_t kind, const char *url, mln_http_header_transform_response *out_response)
Definition runtime.h:729
mln_runtime_event_batch mln_runtime_event_batch_default(void)
mln_offline_operation_result_kind
Definition runtime.h:66
mln_runtime_event_source_type
Definition runtime.h:255
mln_status mln_runtime_create(const mln_runtime_options *options, mln_runtime *out_runtime)
mln_status mln_runtime_offline_operation_discard(mln_runtime runtime, mln_offline_operation_id operation_id)
mln_camera_change_mode
Definition runtime.h:279
@ MLN_CAMERA_CHANGE_MODE_IMMEDIATE
Definition runtime.h:281
@ MLN_CAMERA_CHANGE_MODE_ANIMATED
Definition runtime.h:283
void mln_wake_source_destroy(mln_wake_source source)
mln_status mln_runtime_wake_source_acquire(mln_runtime runtime, mln_wake_source *out_source)
mln_status mln_resource_request_complete(mln_resource_request_handle handle, const mln_resource_response *response)
mln_status mln_resource_transform_response_set_url(mln_resource_transform_response *response, const char *url, size_t url_size)
mln_status mln_runtime_destroy(mln_runtime runtime)
mln_runtime_options mln_runtime_options_default(void)
mln_status(* mln_resource_transform_callback)(void *user_data, uint32_t kind, const char *url, mln_resource_transform_response *out_response)
Definition runtime.h:674
uint64_t mln_offline_operation_id
Definition runtime.h:47
mln_offline_operation_kind
Definition runtime.h:50
mln_status mln_network_status_set(uint32_t status)
mln_status mln_runtime_set_event_mask(mln_runtime runtime, uint64_t mask)
mln_render_mode
Definition runtime.h:287
Definition runtime.h:75
uint32_t download_state
Definition runtime.h:78
Definition runtime.h:419
int64_t draw_call_count
Definition runtime.h:427
double encoding_time
Definition runtime.h:421
int64_t total_draw_call_count
Definition runtime.h:429
double rendering_time
Definition runtime.h:423
int64_t frame_count
Definition runtime.h:425
Definition runtime.h:597
size_t event_count
Definition runtime.h:610
size_t remaining_count
Definition runtime.h:622
const mln_runtime_event * events
Definition runtime.h:608
uint32_t event_size
Definition runtime.h:603
size_t messages_size
Definition runtime.h:617
const char * messages
Definition runtime.h:615
uint64_t transition_id
Definition runtime.h:480
uint32_t result_kind
Definition runtime.h:513
uint32_t operation_kind
Definition runtime.h:511
int32_t result_status
Definition runtime.h:515
uint32_t reason
Definition runtime.h:498
mln_offline_region_status status
Definition runtime.h:491
Definition runtime.h:433
bool needs_repaint
Definition runtime.h:437
uint32_t mode
Definition runtime.h:435
bool placement_changed
Definition runtime.h:439
Definition runtime.h:444
uint32_t mode
Definition runtime.h:446
Definition runtime.h:463
uint32_t operation
Definition runtime.h:465
Definition runtime.h:554
uint32_t type
Definition runtime.h:556
uint32_t message_offset
Definition runtime.h:580
uint32_t payload_type
Definition runtime.h:575
uint64_t source
Definition runtime.h:567
int32_t code
Definition runtime.h:573
uint32_t message_size
Definition runtime.h:585
mln_runtime_event_payload payload
Definition runtime.h:587
uint32_t source_type
Definition runtime.h:558
Definition runtime.h:386
const char * cache_path
Definition runtime.h:398
const char * asset_path
Definition runtime.h:396
uint32_t flags
Definition runtime.h:389
uint64_t event_mask
Definition runtime.h:409
Definition runtime.h:450
Definition runtime.h:531