diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-11-21 19:58:48 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-12-16 12:36:00 +0000 |
| commit | 2b70f64462bc39487228de2713ca24f812e2dff5 (patch) | |
| tree | f45bec796b1775115e2d94d2cd04633a2ef43485 /android/src | |
| parent | 82a26607160ba67dfbeb49c49a03192eedc8cc16 (diff) | |
| download | mullvadvpn-2b70f64462bc39487228de2713ca24f812e2dff5.tar.xz mullvadvpn-2b70f64462bc39487228de2713ca24f812e2dff5.zip | |
Add `isOpen` property to `CreateTunResult`
Diffstat (limited to 'android/src')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/talpid/CreateTunResult.kt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/android/src/main/kotlin/net/mullvad/talpid/CreateTunResult.kt b/android/src/main/kotlin/net/mullvad/talpid/CreateTunResult.kt index c65de790b0..276ed81521 100644 --- a/android/src/main/kotlin/net/mullvad/talpid/CreateTunResult.kt +++ b/android/src/main/kotlin/net/mullvad/talpid/CreateTunResult.kt @@ -1,7 +1,14 @@ package net.mullvad.talpid sealed class CreateTunResult { - class Success(val tunFd: Int) : CreateTunResult() + open val isOpen + get() = false + + class Success(val tunFd: Int) : CreateTunResult() { + override val isOpen + get() = true + } + class PermissionDenied : CreateTunResult() class TunnelDeviceError : CreateTunResult() } |
