Module Mpd.Protocol
type ack_error=type response=|Ok of string option|Error of ack_error * int * string * stringType of the response of the mpd server.
val error_name : ack_error -> stringGet the error name of the error type.
val str_error_to_val : string -> ack_errorReturn the related type for the error returned by the server as a string.
val parse_error_response : string -> ack_error * int * string * stringParse the error response of the mpd server into the error type.
val parse_response : string -> responseParse the mpd server response
type mpd_response=|Incomplete|Complete of string * intType used to describe a data while reading through a socket.
val full_mpd_banner : string -> mpd_responsefetch mpd banner
val request_response : string -> mpd_responsefetch request response.
val command_response : string -> mpd_responsefetch command response.
val full_mpd_idle_event : string -> mpd_responseGet the Mpd response for an idle command.