diff options
author | Baylac-Jacqué Félix <felix@alternativebit.fr> | 2017-09-09 16:44:19 +0200 |
---|---|---|
committer | Baylac-Jacqué Félix <felix@alternativebit.fr> | 2017-09-16 17:10:57 +0200 |
commit | b888759a791e62654a046c22221012f1cff4285a (patch) | |
tree | 5a41e05d5f06d96e9b3abca66c638d439eb09982 /src/Network/WireGuard/RPC.hs | |
parent | Extracted RPC types to proper module. (diff) | |
download | wireguard-hs-b888759a791e62654a046c22221012f1cff4285a.tar.xz wireguard-hs-b888759a791e62654a046c22221012f1cff4285a.zip |
Implemented RPC parsers.
Diffstat (limited to 'src/Network/WireGuard/RPC.hs')
-rw-r--r-- | src/Network/WireGuard/RPC.hs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Network/WireGuard/RPC.hs b/src/Network/WireGuard/RPC.hs index ae9e552..162b5b4 100644 --- a/src/Network/WireGuard/RPC.hs +++ b/src/Network/WireGuard/RPC.hs @@ -1,9 +1,7 @@ {-# LANGUAGE RecordWildCards #-} module Network.WireGuard.RPC - ( OpType(..), - RpcRequest(..), - runRPC, + ( runRPC, serveConduit, bytesToPair, showDevice, @@ -47,13 +45,14 @@ import Network.WireGuard.Foreign.UAPI (WgPeer(..), WgDevice deviceFlagRemoveFwmark, deviceFlagReplacePeers, deviceFlagRemovePrivateKey, deviceFlagRemovePresharedKey) import Network.WireGuard.Internal.Constant (keyLength) -import Network.WireGuard.Internal.RpcParsers (RpcRequest(..), RpcSetPayload(..), - OpType(..), requestParser) +import Network.WireGuard.Internal.RpcParsers (requestParser) import Network.WireGuard.Internal.State (Device(..), Peer(..), createPeer, invalidateSessions) import Network.WireGuard.Internal.Data.Types (PrivateKey, PublicKey, PresharedKey, KeyPair) +import Network.WireGuard.Internal.Data.RpcTypes (RpcRequest(..), RpcSetPayload(..), + OpType(..)) import Network.WireGuard.Internal.Util (catchIOExceptionAnd) -- | Run RPC service over a unix socket |