Logo Search packages:      
Sourcecode: libmpdclient version File versions  Download package

bool mpd_playlist_feed ( struct mpd_playlist playlist,
const struct mpd_pair pair 

Parses the pair, adding its information to the specified mpd_playlist object.

true if the pair was parsed and added to the playlist (or if the pair was not understood and ignored), false if this pair is the beginning of the next playlist

Definition at line 123 of file playlist.c.

References mpd_playlist::last_modified, mpd_playlist_feed(), mpd_pair::name, and mpd_pair::value.

Referenced by mpd_entity_feed(), mpd_playlist_feed(), and mpd_recv_playlist().

      assert(pair != NULL);
      assert(pair->name != NULL);
      assert(pair->value != NULL);

      if (strcmp(pair->name, "playlist") == 0)
            return false;

      if (strcmp(pair->name, "Last-Modified") == 0)
            playlist->last_modified =

      return true;

Generated by  Doxygen 1.6.0   Back to index