{-# LANGUAGE OverloadedStrings #-}
module Network.MPD.Applicative.Output
( disableOutput
, enableOutput
, toggleOutput
, outputs
) where
import Network.MPD.Applicative.Internal
import Network.MPD.Commands.Arg hiding (Command)
import Network.MPD.Commands.Parse
import Network.MPD.Commands.Types
disableOutput :: Int -> Command ()
disableOutput n = Command emptyResponse ["disableoutput" <@> n]
enableOutput :: Int -> Command ()
enableOutput n = Command emptyResponse ["enableoutput" <@> n]
toggleOutput :: Int -> Command ()
toggleOutput n = Command emptyResponse ["toggleoutput" <@> n]
outputs :: Command [Device]
outputs = Command (liftParser parseOutputs) ["outputs"]