From e5b3484d2723f7c9ecc8eb84c6574888799844e1 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 21 Sep 2017 00:57:47 +0200 Subject: update ics-openvpn: add new aidl interface definitions --- .../de/blinkt/openvpn/core/IServiceStatus.aidl | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 app/src/main/aidl/de/blinkt/openvpn/core/IServiceStatus.aidl (limited to 'app/src/main/aidl/de/blinkt/openvpn/core/IServiceStatus.aidl') diff --git a/app/src/main/aidl/de/blinkt/openvpn/core/IServiceStatus.aidl b/app/src/main/aidl/de/blinkt/openvpn/core/IServiceStatus.aidl new file mode 100644 index 00000000..5a5cbdb5 --- /dev/null +++ b/app/src/main/aidl/de/blinkt/openvpn/core/IServiceStatus.aidl @@ -0,0 +1,36 @@ +// StatusIPC.aidl +package de.blinkt.openvpn.core; + +// Declare any non-default types here with import statements +import de.blinkt.openvpn.core.IStatusCallbacks; +import android.os.ParcelFileDescriptor; +import de.blinkt.openvpn.core.TrafficHistory; + + +interface IServiceStatus { + /** + * Registers to receive OpenVPN Status Updates and gets a + * ParcelFileDescript back that contains the log up to that point + */ + ParcelFileDescriptor registerStatusCallback(in IStatusCallbacks cb); + + /** + * Remove a previously registered callback interface. + */ + void unregisterStatusCallback(in IStatusCallbacks cb); + + /** + * Returns the last connedcted VPN + */ + String getLastConnectedVPN(); + + /** + * Sets a cached password + */ + void setCachedPassword(in String uuid, int type, String password); + + /** + * Gets the traffic history + */ + TrafficHistory getTrafficHistory(); +} -- cgit v1.2.3