summaryrefslogtreecommitdiff
path: root/Remote/External
diff options
context:
space:
mode:
Diffstat (limited to 'Remote/External')
-rw-r--r--Remote/External/Types.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Remote/External/Types.hs b/Remote/External/Types.hs
index 40bd8d52e..e925f0e91 100644
--- a/Remote/External/Types.hs
+++ b/Remote/External/Types.hs
@@ -33,6 +33,7 @@ module Remote.External.Types (
import Common.Annex
import Annex.Exception
import Types.Key (file2key, key2file)
+import Types.StandardGroups (PreferredContentExpression)
import Utility.Metered (BytesProcessed(..))
import Logs.Transfer (Direction(..))
import Config.Cost (Cost)
@@ -167,6 +168,8 @@ data RemoteRequest
| SETCREDS Setting String String
| GETCREDS Setting
| GETUUID
+ | SETWANTED PreferredContentExpression
+ | GETWANTED
deriving (Show)
instance Receivable RemoteRequest where
@@ -178,6 +181,8 @@ instance Receivable RemoteRequest where
parseCommand "SETCREDS" = parse3 SETCREDS
parseCommand "GETCREDS" = parse1 GETCREDS
parseCommand "GETUUID" = parse0 GETUUID
+ parseCommand "SETWANTED" = parse1 SETWANTED
+ parseCommand "GETWANTED" = parse0 GETWANTED
parseCommand _ = parseFail
-- Responses to RemoteRequest.