diff options
author | Joey Hess <joeyh@joeyh.name> | 2014-12-08 13:32:27 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2014-12-08 13:32:46 -0400 |
commit | 1285c91f8f9b3505b4c4137ee5d84c450468333b (patch) | |
tree | 087ed20920196ac85d5dca3127a63609eed4d254 /Remote/External | |
parent | 941844b60ffae1aeaf96f71eb1ac7d5c932b6621 (diff) |
External special remote protocol now includes commands for setting and getting the urls associated with a key.
Diffstat (limited to 'Remote/External')
-rw-r--r-- | Remote/External/Types.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Remote/External/Types.hs b/Remote/External/Types.hs index 3a69ae9ea..cdcb657ea 100644 --- a/Remote/External/Types.hs +++ b/Remote/External/Types.hs @@ -165,6 +165,9 @@ data RemoteRequest | GETWANTED | SETSTATE Key String | GETSTATE Key + | SETURLPRESENT Key String + | SETURLMISSING Key String + | GETURLS Key String | DEBUG String deriving (Show) @@ -182,6 +185,9 @@ instance Proto.Receivable RemoteRequest where parseCommand "GETWANTED" = Proto.parse0 GETWANTED parseCommand "SETSTATE" = Proto.parse2 SETSTATE parseCommand "GETSTATE" = Proto.parse1 GETSTATE + parseCommand "SETURLPRESENT" = Proto.parse2 SETURLPRESENT + parseCommand "SETURLMISSING" = Proto.parse2 SETURLMISSING + parseCommand "GETURLS" = Proto.parse2 GETURLS parseCommand "DEBUG" = Proto.parse1 DEBUG parseCommand _ = Proto.parseFail |