diff options
Diffstat (limited to 'ios/MullvadRustRuntime/include')
| -rw-r--r-- | ios/MullvadRustRuntime/include/mullvad_rust_runtime.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h b/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h index 77dac6b4da..958144c802 100644 --- a/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h +++ b/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h @@ -24,6 +24,8 @@ typedef struct EncryptedDnsProxyState EncryptedDnsProxyState; typedef struct ExchangeCancelToken ExchangeCancelToken; +typedef struct Map Map; + typedef struct RequestCancelHandle RequestCancelHandle; typedef struct RetryStrategy RetryStrategy; @@ -54,6 +56,10 @@ typedef struct CompletionCookie { void *inner; } CompletionCookie; +typedef struct ProblemReportMetadata { + struct Map *inner; +} ProblemReportMetadata; + typedef struct SwiftProblemReportRequest { const uint8_t *address; uintptr_t address_len; @@ -61,6 +67,7 @@ typedef struct SwiftProblemReportRequest { uintptr_t message_len; const uint8_t *log; uintptr_t log_len; + struct ProblemReportMetadata meta_data; } SwiftProblemReportRequest; typedef struct ProxyHandle { @@ -270,7 +277,15 @@ struct SwiftRetryStrategy mullvad_api_retry_strategy_exponential(uintptr_t max_r struct SwiftCancelHandle mullvad_api_send_problem_report(struct SwiftApiContext api_context, void *completion_cookie, struct SwiftRetryStrategy retry_strategy, - const struct SwiftProblemReportRequest *request); + struct SwiftProblemReportRequest request); + +struct ProblemReportMetadata swift_problem_report_meta_data_new(void); + +bool swift_problem_report_meta_data_add(struct ProblemReportMetadata map, + const char *key, + const char *value); + +void swift_problem_report_meta_data_free(struct ProblemReportMetadata map); /** * Initializes a valid pointer to an instance of `EncryptedDnsProxyState`. |
