aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/android/backend/Backend.java
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-09-05 18:33:42 -0500
committerSamuel Holland <samuel@sholland.org>2018-11-11 21:50:23 -0600
commit1d44e27caee1064096e2505b93b1e3164a5039c5 (patch)
tree8adb020e43111ff0420569c16c8c529f69b6a0e5 /app/src/main/java/com/wireguard/android/backend/Backend.java
parenttools: wg-quick: bump (diff)
downloadwireguard-android-1d44e27caee1064096e2505b93b1e3164a5039c5.tar.xz
wireguard-android-1d44e27caee1064096e2505b93b1e3164a5039c5.zip
Auto-format the source directories
Blame Jason for writing Java in vim.
Diffstat (limited to 'app/src/main/java/com/wireguard/android/backend/Backend.java')
-rw-r--r--app/src/main/java/com/wireguard/android/backend/Backend.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/src/main/java/com/wireguard/android/backend/Backend.java b/app/src/main/java/com/wireguard/android/backend/Backend.java
index 000a572a..64bb3d02 100644
--- a/app/src/main/java/com/wireguard/android/backend/Backend.java
+++ b/app/src/main/java/com/wireguard/android/backend/Backend.java
@@ -53,14 +53,11 @@ public interface Backend {
Statistics getStatistics(Tunnel tunnel) throws Exception;
/**
- * Set the state of a tunnel.
+ * Determine type name of underlying backend.
*
- * @param tunnel The tunnel to control the state of.
- * @param state The new state for this tunnel. Must be {@code UP}, {@code DOWN}, or
- * {@code TOGGLE}.
- * @return The updated state of the tunnel.
+ * @return Type name
*/
- State setState(Tunnel tunnel, State state) throws Exception;
+ String getTypeName();
/**
* Determine version of underlying backend.
@@ -71,9 +68,12 @@ public interface Backend {
String getVersion() throws Exception;
/**
- * Determine type name of underlying backend.
+ * Set the state of a tunnel.
*
- * @return Type name
+ * @param tunnel The tunnel to control the state of.
+ * @param state The new state for this tunnel. Must be {@code UP}, {@code DOWN}, or
+ * {@code TOGGLE}.
+ * @return The updated state of the tunnel.
*/
- String getTypeName();
+ State setState(Tunnel tunnel, State state) throws Exception;
}