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
137typedef enum mln_runtime_event_type : uint32_t {
138 MLN_RUNTIME_EVENT_MAP_CAMERA_WILL_CHANGE = 1,
139 MLN_RUNTIME_EVENT_MAP_CAMERA_IS_CHANGING = 2,
140 MLN_RUNTIME_EVENT_MAP_CAMERA_DID_CHANGE = 3,
141 MLN_RUNTIME_EVENT_MAP_STYLE_LOADED = 4,
142 MLN_RUNTIME_EVENT_MAP_LOADING_STARTED = 5,
143 MLN_RUNTIME_EVENT_MAP_LOADING_FINISHED = 6,
144 MLN_RUNTIME_EVENT_MAP_LOADING_FAILED = 7,
145 MLN_RUNTIME_EVENT_MAP_IDLE = 8,
146 MLN_RUNTIME_EVENT_MAP_RENDER_UPDATE_AVAILABLE = 9,
147 MLN_RUNTIME_EVENT_MAP_RENDER_ERROR = 10,
148 MLN_RUNTIME_EVENT_MAP_STILL_IMAGE_FINISHED = 11,
149 MLN_RUNTIME_EVENT_MAP_STILL_IMAGE_FAILED = 12,
150 MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_STARTED = 13,
151 MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_FINISHED = 14,
152 MLN_RUNTIME_EVENT_MAP_RENDER_MAP_STARTED = 15,
153 MLN_RUNTIME_EVENT_MAP_RENDER_MAP_FINISHED = 16,
154 MLN_RUNTIME_EVENT_MAP_STYLE_IMAGE_MISSING = 17,
155 MLN_RUNTIME_EVENT_MAP_TILE_ACTION = 18,
156 MLN_RUNTIME_EVENT_OFFLINE_REGION_STATUS_CHANGED = 19,
157 MLN_RUNTIME_EVENT_OFFLINE_REGION_RESPONSE_ERROR = 20,
158 MLN_RUNTIME_EVENT_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED = 21,
159 MLN_RUNTIME_EVENT_OFFLINE_OPERATION_COMPLETED = 22,
160 MLN_RUNTIME_EVENT_MAP_CAMERA_TRANSITION_FINISHED = 23,
162
176typedef enum mln_runtime_event_mask : uint64_t {
179 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_WILL_CHANGE =
180 1ULL << MLN_RUNTIME_EVENT_MAP_CAMERA_WILL_CHANGE,
181 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_IS_CHANGING =
182 1ULL << MLN_RUNTIME_EVENT_MAP_CAMERA_IS_CHANGING,
183 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_DID_CHANGE =
184 1ULL << MLN_RUNTIME_EVENT_MAP_CAMERA_DID_CHANGE,
185 MLN_RUNTIME_EVENT_MASK_MAP_STYLE_LOADED =
186 1ULL << MLN_RUNTIME_EVENT_MAP_STYLE_LOADED,
187 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_STARTED =
188 1ULL << MLN_RUNTIME_EVENT_MAP_LOADING_STARTED,
189 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_FINISHED =
190 1ULL << MLN_RUNTIME_EVENT_MAP_LOADING_FINISHED,
191 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_FAILED =
192 1ULL << MLN_RUNTIME_EVENT_MAP_LOADING_FAILED,
193 MLN_RUNTIME_EVENT_MASK_MAP_IDLE = 1ULL << MLN_RUNTIME_EVENT_MAP_IDLE,
194 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_UPDATE_AVAILABLE =
195 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_UPDATE_AVAILABLE,
196 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_ERROR =
197 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_ERROR,
198 MLN_RUNTIME_EVENT_MASK_MAP_STILL_IMAGE_FINISHED =
199 1ULL << MLN_RUNTIME_EVENT_MAP_STILL_IMAGE_FINISHED,
200 MLN_RUNTIME_EVENT_MASK_MAP_STILL_IMAGE_FAILED =
201 1ULL << MLN_RUNTIME_EVENT_MAP_STILL_IMAGE_FAILED,
202 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_FRAME_STARTED =
203 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_STARTED,
204 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_FRAME_FINISHED =
205 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_FRAME_FINISHED,
206 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_MAP_STARTED =
207 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_MAP_STARTED,
208 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_MAP_FINISHED =
209 1ULL << MLN_RUNTIME_EVENT_MAP_RENDER_MAP_FINISHED,
210 MLN_RUNTIME_EVENT_MASK_MAP_STYLE_IMAGE_MISSING =
211 1ULL << MLN_RUNTIME_EVENT_MAP_STYLE_IMAGE_MISSING,
212 MLN_RUNTIME_EVENT_MASK_MAP_TILE_ACTION = 1ULL
213 << MLN_RUNTIME_EVENT_MAP_TILE_ACTION,
214 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_TRANSITION_FINISHED =
215 1ULL << MLN_RUNTIME_EVENT_MAP_CAMERA_TRANSITION_FINISHED,
216 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_STATUS_CHANGED =
217 1ULL << MLN_RUNTIME_EVENT_OFFLINE_REGION_STATUS_CHANGED,
218 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_RESPONSE_ERROR =
219 1ULL << MLN_RUNTIME_EVENT_OFFLINE_REGION_RESPONSE_ERROR,
220 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED =
221 1ULL << MLN_RUNTIME_EVENT_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED,
222 MLN_RUNTIME_EVENT_MASK_OFFLINE_OPERATION_COMPLETED =
223 1ULL << MLN_RUNTIME_EVENT_OFFLINE_OPERATION_COMPLETED,
226 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_WILL_CHANGE |
227 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_IS_CHANGING |
228 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_DID_CHANGE |
229 MLN_RUNTIME_EVENT_MASK_MAP_STYLE_LOADED |
230 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_STARTED |
231 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_FINISHED |
232 MLN_RUNTIME_EVENT_MASK_MAP_LOADING_FAILED |
233 MLN_RUNTIME_EVENT_MASK_MAP_IDLE |
234 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_UPDATE_AVAILABLE |
235 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_ERROR |
236 MLN_RUNTIME_EVENT_MASK_MAP_STILL_IMAGE_FINISHED |
237 MLN_RUNTIME_EVENT_MASK_MAP_STILL_IMAGE_FAILED |
238 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_FRAME_STARTED |
239 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_FRAME_FINISHED |
240 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_MAP_STARTED |
241 MLN_RUNTIME_EVENT_MASK_MAP_RENDER_MAP_FINISHED |
242 MLN_RUNTIME_EVENT_MASK_MAP_STYLE_IMAGE_MISSING |
243 MLN_RUNTIME_EVENT_MASK_MAP_TILE_ACTION |
244 MLN_RUNTIME_EVENT_MASK_MAP_CAMERA_TRANSITION_FINISHED,
247 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_STATUS_CHANGED |
248 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_RESPONSE_ERROR |
249 MLN_RUNTIME_EVENT_MASK_OFFLINE_REGION_TILE_COUNT_LIMIT_EXCEEDED |
250 MLN_RUNTIME_EVENT_MASK_OFFLINE_OPERATION_COMPLETED,
255
257typedef enum mln_runtime_event_source_type : uint32_t {
258 MLN_RUNTIME_EVENT_SOURCE_RUNTIME = 0,
259 MLN_RUNTIME_EVENT_SOURCE_MAP = 1,
261
268typedef enum mln_runtime_event_payload_type : uint32_t {
269 MLN_RUNTIME_EVENT_PAYLOAD_NONE = 0,
270 MLN_RUNTIME_EVENT_PAYLOAD_RENDER_FRAME = 1,
271 MLN_RUNTIME_EVENT_PAYLOAD_RENDER_MAP = 2,
272 MLN_RUNTIME_EVENT_PAYLOAD_TILE_ACTION = 4,
273 MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_STATUS = 5,
274 MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_RESPONSE_ERROR = 6,
275 MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_REGION_TILE_COUNT_LIMIT = 7,
276 MLN_RUNTIME_EVENT_PAYLOAD_OFFLINE_OPERATION_COMPLETED = 8,
277 MLN_RUNTIME_EVENT_PAYLOAD_CAMERA_TRANSITION_FINISHED = 9,
279
287
289typedef enum mln_render_mode : uint32_t {
290 MLN_RENDER_MODE_PARTIAL = 0,
291 MLN_RENDER_MODE_FULL = 1,
293
295typedef enum mln_tile_operation : uint32_t {
296 MLN_TILE_OPERATION_REQUESTED_FROM_CACHE = 0,
297 MLN_TILE_OPERATION_REQUESTED_FROM_NETWORK = 1,
298 MLN_TILE_OPERATION_LOAD_FROM_NETWORK = 2,
299 MLN_TILE_OPERATION_LOAD_FROM_CACHE = 3,
300 MLN_TILE_OPERATION_START_PARSE = 4,
301 MLN_TILE_OPERATION_END_PARSE = 5,
302 MLN_TILE_OPERATION_ERROR = 6,
303 MLN_TILE_OPERATION_CANCELLED = 7,
304 MLN_TILE_OPERATION_NULL = 8,
306
307typedef enum mln_resource_kind : uint32_t {
308 MLN_RESOURCE_KIND_UNKNOWN = 0,
309 MLN_RESOURCE_KIND_STYLE = 1,
310 MLN_RESOURCE_KIND_SOURCE = 2,
311 MLN_RESOURCE_KIND_TILE = 3,
312 MLN_RESOURCE_KIND_GLYPHS = 4,
313 MLN_RESOURCE_KIND_SPRITE_IMAGE = 5,
314 MLN_RESOURCE_KIND_SPRITE_JSON = 6,
315 MLN_RESOURCE_KIND_IMAGE = 7,
316} mln_resource_kind;
317
318typedef enum mln_resource_loading_method : uint32_t {
319 MLN_RESOURCE_LOADING_METHOD_ALL = 0,
320 MLN_RESOURCE_LOADING_METHOD_CACHE_ONLY = 1,
321 MLN_RESOURCE_LOADING_METHOD_NETWORK_ONLY = 2,
322} mln_resource_loading_method;
323
324typedef enum mln_resource_priority : uint32_t {
325 MLN_RESOURCE_PRIORITY_REGULAR = 0,
326 MLN_RESOURCE_PRIORITY_LOW = 1,
327} mln_resource_priority;
328
329typedef enum mln_resource_usage : uint32_t {
330 MLN_RESOURCE_USAGE_ONLINE = 0,
331 MLN_RESOURCE_USAGE_OFFLINE = 1,
332} mln_resource_usage;
333
334typedef enum mln_resource_storage_policy : uint32_t {
335 MLN_RESOURCE_STORAGE_POLICY_PERMANENT = 0,
336 MLN_RESOURCE_STORAGE_POLICY_VOLATILE = 1,
337} mln_resource_storage_policy;
338
339typedef enum mln_resource_response_status : uint32_t {
340 MLN_RESOURCE_RESPONSE_STATUS_OK = 0,
341 MLN_RESOURCE_RESPONSE_STATUS_ERROR = 1,
342 MLN_RESOURCE_RESPONSE_STATUS_NO_CONTENT = 2,
343 MLN_RESOURCE_RESPONSE_STATUS_NOT_MODIFIED = 3,
344} mln_resource_response_status;
345
346typedef enum mln_resource_error_reason : uint32_t {
347 MLN_RESOURCE_ERROR_REASON_NONE = 0,
348 MLN_RESOURCE_ERROR_REASON_NOT_FOUND = 1,
349 MLN_RESOURCE_ERROR_REASON_SERVER = 2,
350 MLN_RESOURCE_ERROR_REASON_CONNECTION = 3,
351 MLN_RESOURCE_ERROR_REASON_RATE_LIMIT = 4,
352 MLN_RESOURCE_ERROR_REASON_OTHER = 5,
353} mln_resource_error_reason;
354
355typedef enum mln_resource_provider_decision : uint32_t {
356 MLN_RESOURCE_PROVIDER_DECISION_PASS_THROUGH = 0,
357 MLN_RESOURCE_PROVIDER_DECISION_HANDLE = 1,
358} mln_resource_provider_decision;
359
370MLN_API mln_status mln_network_status_get(uint32_t* out_status) MLN_NOEXCEPT;
371
385MLN_API mln_status mln_network_status_set(uint32_t status) MLN_NOEXCEPT;
386
388typedef struct mln_runtime_options {
389 uint32_t size;
391 uint32_t flags;
398 const char* asset_path;
400 const char* cache_path;
411 uint64_t event_mask;
413
433
444
450
452typedef struct mln_tile_id {
453 uint32_t overscaled_z;
454 int32_t wrap;
455 uint32_t canonical_z;
456 uint32_t canonical_x;
457 uint32_t canonical_y;
459
470
484
495
502
505 mln_offline_region_id region_id;
506 uint64_t limit;
508
521
537 mln_runtime_event_offline_region_status offline_region_status;
538 mln_runtime_event_offline_region_response_error offline_region_response_error;
540 offline_region_tile_count_limit;
541 mln_runtime_event_offline_operation_completed offline_operation_completed;
542 mln_runtime_event_camera_transition_finished camera_transition_finished;
544
591
626
627typedef struct mln_resource_transform_response {
628 uint32_t size;
631 const char* url;
634 void* context;
635} mln_resource_transform_response;
636
651 mln_resource_transform_response* response, const char* url, size_t url_size
652) MLN_NOEXCEPT;
653
677 void* user_data, uint32_t kind, const char* url,
678 mln_resource_transform_response* out_response
679);
680
681typedef struct mln_resource_transform {
682 uint32_t size;
684 void* user_data;
685} mln_resource_transform;
686
687typedef struct mln_http_header_transform_response {
688 uint32_t size;
691 void* context;
692} mln_http_header_transform_response;
693
711 mln_http_header_transform_response* response, const char* name,
712 size_t name_size, const char* value, size_t value_size
713) MLN_NOEXCEPT;
714
732 void* user_data, uint32_t kind, const char* url,
733 mln_http_header_transform_response* out_response
734);
735
736typedef struct mln_http_header_transform {
737 uint32_t size;
739 void* user_data;
740} mln_http_header_transform;
741
742typedef struct mln_resource_request {
743 uint32_t size;
752 const char* requested_url;
765 const char* resolved_url;
766 uint32_t kind;
767 uint32_t loading_method;
768 uint32_t priority;
769 uint32_t usage;
770 uint32_t storage_policy;
771 bool has_range;
772 uint64_t range_start;
773 uint64_t range_end;
774 bool has_prior_modified;
775 int64_t prior_modified_unix_ms;
776 bool has_prior_expires;
777 int64_t prior_expires_unix_ms;
778 const char* prior_etag;
779 const uint8_t* prior_data;
780 size_t prior_data_size;
781} mln_resource_request;
782
783typedef struct mln_resource_response {
784 uint32_t size;
785 uint32_t status;
786 uint32_t error_reason;
788 const uint8_t* bytes;
789 size_t byte_count;
790 const char* error_message;
791 bool must_revalidate;
792 bool has_modified;
793 int64_t modified_unix_ms;
794 bool has_expires;
795 int64_t expires_unix_ms;
796 const char* etag;
797 bool has_retry_after;
798 int64_t retry_after_unix_ms;
799} mln_resource_response;
800
831 void* user_data, const mln_resource_request* request,
832 mln_resource_request_handle handle
833);
834
846typedef void (*mln_resource_request_cancel_callback)(void* user_data);
847
848typedef struct mln_resource_provider {
849 uint32_t size;
851 void* user_data;
852} mln_resource_provider;
853
858
877 const mln_runtime_options* options, mln_runtime* out_runtime
878) MLN_NOEXCEPT;
879
906 mln_runtime runtime, const mln_resource_provider* provider
907) MLN_NOEXCEPT;
908
926MLN_API mln_status
928
948 mln_resource_request_handle handle, const mln_resource_response* response
949) MLN_NOEXCEPT;
950
964 mln_resource_request_handle handle, bool* out_cancelled
965) MLN_NOEXCEPT;
966
993 mln_resource_request_handle handle,
994 mln_resource_request_cancel_callback callback, void* user_data,
995 bool* out_cancelled
996) MLN_NOEXCEPT;
997
1009 mln_resource_request_handle handle
1010) MLN_NOEXCEPT;
1011
1024 mln_resource_request_handle handle
1025) MLN_NOEXCEPT;
1026
1047 mln_runtime runtime, const mln_resource_transform* transform
1048) MLN_NOEXCEPT;
1049
1063MLN_API mln_status
1065
1087 mln_runtime runtime, const mln_http_header_transform* transform
1088) MLN_NOEXCEPT;
1089
1103MLN_API mln_status
1105
1123 mln_runtime runtime, uint32_t operation,
1124 mln_offline_operation_id* out_operation_id
1125) MLN_NOEXCEPT;
1126
1148 mln_runtime runtime, uint64_t size, mln_offline_operation_id* out_operation_id
1149) MLN_NOEXCEPT;
1150
1167 mln_runtime runtime, mln_offline_operation_id operation_id
1168) MLN_NOEXCEPT;
1169
1193MLN_API mln_status mln_runtime_destroy(mln_runtime runtime) MLN_NOEXCEPT;
1194
1260 mln_runtime runtime, int64_t timeout_ms, int64_t budget_ms
1261) MLN_NOEXCEPT;
1262
1280 mln_runtime runtime, mln_wake_source* out_source
1281) MLN_NOEXCEPT;
1282
1298MLN_API mln_status mln_wake_source_signal(mln_wake_source source) MLN_NOEXCEPT;
1299
1306MLN_API void mln_wake_source_destroy(mln_wake_source source) MLN_NOEXCEPT;
1307
1311
1365 mln_runtime runtime, size_t max_events, mln_runtime_event_batch* out_batch
1366) MLN_NOEXCEPT;
1367
1399MLN_API mln_status
1400mln_runtime_set_event_mask(mln_runtime runtime, uint64_t mask) MLN_NOEXCEPT;
1401
1419 mln_runtime runtime, uint64_t* out_mask
1420) MLN_NOEXCEPT;
1421
1422#ifdef __cplusplus
1423}
1424#endif
1425
1426#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:295
mln_status mln_runtime_get_event_mask(mln_runtime runtime, uint64_t *out_mask)
mln_runtime_event_mask
Definition runtime.h:176
@ MLN_RUNTIME_EVENT_MASK_ALL_MAP_EVENTS
Definition runtime.h:225
@ MLN_RUNTIME_EVENT_MASK_NONE
Definition runtime.h:178
@ MLN_RUNTIME_EVENT_MASK_ALL
Definition runtime.h:252
@ MLN_RUNTIME_EVENT_MASK_ALL_RUNTIME_EVENTS
Definition runtime.h:246
mln_status mln_network_status_get(uint32_t *out_status)
mln_runtime_event_payload_type
Definition runtime.h:268
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:137
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:830
void(* mln_resource_request_cancel_callback)(void *user_data)
Definition runtime.h:846
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:731
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:257
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:281
@ MLN_CAMERA_CHANGE_MODE_IMMEDIATE
Definition runtime.h:283
@ MLN_CAMERA_CHANGE_MODE_ANIMATED
Definition runtime.h:285
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:676
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:289
Definition runtime.h:75
uint32_t download_state
Definition runtime.h:78
Definition runtime.h:421
int64_t draw_call_count
Definition runtime.h:429
double encoding_time
Definition runtime.h:423
int64_t total_draw_call_count
Definition runtime.h:431
double rendering_time
Definition runtime.h:425
int64_t frame_count
Definition runtime.h:427
Definition runtime.h:599
size_t event_count
Definition runtime.h:612
size_t remaining_count
Definition runtime.h:624
const mln_runtime_event * events
Definition runtime.h:610
uint32_t event_size
Definition runtime.h:605
size_t messages_size
Definition runtime.h:619
const char * messages
Definition runtime.h:617
uint64_t transition_id
Definition runtime.h:482
uint32_t result_kind
Definition runtime.h:515
uint32_t operation_kind
Definition runtime.h:513
int32_t result_status
Definition runtime.h:517
uint32_t reason
Definition runtime.h:500
mln_offline_region_status status
Definition runtime.h:493
Definition runtime.h:435
bool needs_repaint
Definition runtime.h:439
uint32_t mode
Definition runtime.h:437
bool placement_changed
Definition runtime.h:441
Definition runtime.h:446
uint32_t mode
Definition runtime.h:448
Definition runtime.h:465
uint32_t operation
Definition runtime.h:467
Definition runtime.h:556
uint32_t type
Definition runtime.h:558
uint32_t message_offset
Definition runtime.h:582
uint32_t payload_type
Definition runtime.h:577
uint64_t source
Definition runtime.h:569
int32_t code
Definition runtime.h:575
uint32_t message_size
Definition runtime.h:587
mln_runtime_event_payload payload
Definition runtime.h:589
uint32_t source_type
Definition runtime.h:560
Definition runtime.h:388
const char * cache_path
Definition runtime.h:400
const char * asset_path
Definition runtime.h:398
uint32_t flags
Definition runtime.h:391
uint64_t event_mask
Definition runtime.h:411
Definition runtime.h:452
Definition runtime.h:533