diff options
Diffstat (limited to 'android/src/main')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/service/endpoint/ServiceEndpoint.kt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/endpoint/ServiceEndpoint.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/endpoint/ServiceEndpoint.kt new file mode 100644 index 0000000000..d115958979 --- /dev/null +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/endpoint/ServiceEndpoint.kt @@ -0,0 +1,15 @@ +package net.mullvad.mullvadvpn.service.endpoint + +import android.os.Looper +import net.mullvad.mullvadvpn.ipc.DispatchingHandler +import net.mullvad.mullvadvpn.ipc.Request + +class ServiceEndpoint(looper: Looper) { + internal val dispatcher = DispatchingHandler(looper) { message -> + Request.fromMessage(message) + } + + fun onDestroy() { + dispatcher.onDestroy() + } +} |
