summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadRustRuntime/include
diff options
context:
space:
mode:
authorJon Petersson <jon.petersson@mullvad.net>2025-03-10 13:45:43 +0100
committerJon Petersson <jon.petersson@mullvad.net>2025-03-31 11:39:29 +0200
commitefbb2c3c0c95f7e7a195c03e9d2483ec731a578e (patch)
treec297326cb661c12986e00c14ef8f47bd0cd37337 /ios/MullvadRustRuntime/include
parent2640cd40b6a7a2468945b5c4c4be42bbe509c4e5 (diff)
downloadmullvadvpn-efbb2c3c0c95f7e7a195c03e9d2483ec731a578e.tar.xz
mullvadvpn-efbb2c3c0c95f7e7a195c03e9d2483ec731a578e.zip
Implement call for getting relays on Rust side
Diffstat (limited to 'ios/MullvadRustRuntime/include')
-rw-r--r--ios/MullvadRustRuntime/include/mullvad_rust_runtime.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h b/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h
index e054de0044..abdc8ea809 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 Option______u8 Option______u8;
+
typedef struct RequestCancelHandle RequestCancelHandle;
typedef struct RetryStrategy RetryStrategy;
@@ -43,6 +45,7 @@ typedef struct SwiftRetryStrategy {
typedef struct SwiftMullvadApiResponse {
uint8_t *body;
uintptr_t body_size;
+ uint8_t *etag;
uint16_t status_code;
uint8_t *error_description;
uint8_t *server_response_code;
@@ -113,6 +116,11 @@ struct SwiftCancelHandle mullvad_api_get_addresses(struct SwiftApiContext api_co
void *completion_cookie,
struct SwiftRetryStrategy retry_strategy);
+struct SwiftCancelHandle mullvad_api_get_relays(struct SwiftApiContext api_context,
+ void *completion_cookie,
+ struct SwiftRetryStrategy retry_strategy,
+ struct Option______u8 etag);
+
/**
* Called by the Swift side to signal that a Mullvad API call should be cancelled.
* After this call, the cancel token is no longer valid.