summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2022-03-31 11:00:56 +0200
committerDavid Lönnhager <david.l@mullvad.net>2022-03-31 11:29:18 +0200
commit00fd04e646fe9c2ca5ec210c9f15cb773851d13e (patch)
tree806f0014ee8c563c4f39ddfae0ccdbc3a775c978 /android
parentcbdbbd3800c0d442e7560b347dbe0d3366bf9b18 (diff)
downloadmullvadvpn-00fd04e646fe9c2ca5ec210c9f15cb773851d13e.tar.xz
mullvadvpn-00fd04e646fe9c2ca5ec210c9f15cb773851d13e.zip
Add update_device to Android interface
Diffstat (limited to 'android')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadDaemon.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadDaemon.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadDaemon.kt
index ea66d6b308..2aefe71a91 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadDaemon.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/service/MullvadDaemon.kt
@@ -128,6 +128,8 @@ class MullvadDaemon(vpnService: MullvadVpnService) {
fun getDevice(): DeviceConfig? = getDevice(daemonInterfaceAddress)
+ fun updateDevice() = updateDevice(daemonInterfaceAddress)
+
fun removeDevice(accountToken: String, deviceId: String): RemoveDeviceResult {
return removeDevice(daemonInterfaceAddress, accountToken, deviceId)
}
@@ -215,6 +217,7 @@ class MullvadDaemon(vpnService: MullvadVpnService) {
): List<Device>?
private external fun getDevice(daemonInterfaceAddress: Long): DeviceConfig?
+ private external fun updateDevice(daemonInterfaceAddress: Long)
private external fun removeDevice(
daemonInterfaceAddress: Long,
accountToken: String?,