summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadRustRuntime/include
diff options
context:
space:
mode:
authormojganii <mojgan.jelodar@codic.se>2025-03-18 17:05:17 +0100
committermojganii <mojgan.jelodar@codic.se>2025-04-15 15:38:45 +0200
commit59f4f47a1ed3e89d6273ba1cb8a9749ef45e49b9 (patch)
treea4acf78d94df4d9762d7713790122815e06a64ac /ios/MullvadRustRuntime/include
parenteffafb699b8f6831cbc6df0bcaa51766d9a44718 (diff)
downloadmullvadvpn-59f4f47a1ed3e89d6273ba1cb8a9749ef45e49b9.tar.xz
mullvadvpn-59f4f47a1ed3e89d6273ba1cb8a9749ef45e49b9.zip
Implement mullvad_api_send_problem_report in Rust
Diffstat (limited to 'ios/MullvadRustRuntime/include')
-rw-r--r--ios/MullvadRustRuntime/include/mullvad_rust_runtime.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h b/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h
index 12ce0fd4c0..77dac6b4da 100644
--- a/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h
+++ b/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h
@@ -54,6 +54,15 @@ typedef struct CompletionCookie {
void *inner;
} CompletionCookie;
+typedef struct SwiftProblemReportRequest {
+ const uint8_t *address;
+ uintptr_t address_len;
+ const uint8_t *message;
+ uintptr_t message_len;
+ const uint8_t *log;
+ uintptr_t log_len;
+} SwiftProblemReportRequest;
+
typedef struct ProxyHandle {
void *context;
uint16_t port;
@@ -258,6 +267,11 @@ struct SwiftRetryStrategy mullvad_api_retry_strategy_exponential(uintptr_t max_r
uint32_t factor,
uint64_t max_delay_sec);
+struct SwiftCancelHandle mullvad_api_send_problem_report(struct SwiftApiContext api_context,
+ void *completion_cookie,
+ struct SwiftRetryStrategy retry_strategy,
+ const struct SwiftProblemReportRequest *request);
+
/**
* Initializes a valid pointer to an instance of `EncryptedDnsProxyState`.
*