diff options
| author | Jon Petersson <jon.petersson@mullvad.net> | 2025-03-19 16:32:36 +0100 |
|---|---|---|
| committer | Jon Petersson <jon.petersson@mullvad.net> | 2025-03-31 11:39:29 +0200 |
| commit | b6a47bc377db48f39414d7587995b41bff4f8901 (patch) | |
| tree | 9d5eadcd15c4391e95f223a57db98c5228507d42 /ios/MullvadRustRuntime/include | |
| parent | eb72686c74607872ee510b432a442ea10baa1b86 (diff) | |
| download | mullvadvpn-b6a47bc377db48f39414d7587995b41bff4f8901.tar.xz mullvadvpn-b6a47bc377db48f39414d7587995b41bff4f8901.zip | |
Move Mullvad API functions to new file
Diffstat (limited to 'ios/MullvadRustRuntime/include')
| -rw-r--r-- | ios/MullvadRustRuntime/include/mullvad_rust_runtime.h | 14 |
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 8ebdea8863..8a199559b5 100644 --- a/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h +++ b/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h @@ -114,6 +114,20 @@ struct SwiftCancelHandle mullvad_api_get_addresses(struct SwiftApiContext api_co void *completion_cookie, struct SwiftRetryStrategy retry_strategy); +/** + * # Safety + * + * `api_context` must be pointing to a valid instance of `SwiftApiContext`. A `SwiftApiContext` is created + * by calling `mullvad_api_init_new`. + * + * `completion_cookie` must be pointing to a valid instance of `CompletionCookie`. `CompletionCookie` is + * safe because the pointer in `MullvadApiCompletion` is valid for the lifetime of the process where this + * type is intended to be used. + * + * `etag` must be a pointer to a null terminated string. + * + * This function is not safe to call multiple times with the same `CompletionCookie`. + */ struct SwiftCancelHandle mullvad_api_get_relays(struct SwiftApiContext api_context, void *completion_cookie, struct SwiftRetryStrategy retry_strategy, |
