Module mpdpopm::messages

source ·
Expand description

§messages

Process incoming messages to the mpdpopm daemon.

§Introduction

The mpdpopm daemon accepts commands over a dedicated channel. It also provides for a generalized framework in which the mpdpopm administrator can define new commands backed by arbitrary command execution server-side.

§Commands

The following commands are built-in:

  • set rating: rate RATING( TRACK)?
  • set playcount: setpc PC( TRACK)?
  • set lastplayed: setlp TIMESTAMP( TRACK)?

There is no need to provide corresponding accessors since this functionality is already provided via “sticker get”. Dedicated accessors could provide the same functionality with slightly more convenience since the sticker name would not have to be specified (as with “sticker get”) & may be added at a later date.

I’m expanding the MPD filter functionality to include attributes tracked by mpdpopm:

  • findadd replacement: findadd FILTER [sort TYPE] [window START:END] (cf. here)

  • searchadd replacement: searchadd FILTER [sort TYPE] [window START:END] (cf. here)

Additional commands may be added through the generalized commands feature.

Structs§

  • Collective state needed for processing messages, both built-in & generalized

Enums§

Functions§

  • Break buf up into individual tokens while removing MPD-style quoting.

Type Aliases§