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

mpd_malloc struct mpd_playlist* mpd_playlist_begin ( const struct mpd_pair pair  )  [read]

Begins parsing a new playlist.

pair the first pair in this playlist (name must be "playlist")
the new mpd_entity object, or NULL on error (out of memory, or pair name is not "playlist")

Definition at line 110 of file playlist.c.

References mpd_playlist_begin(), mpd_pair::name, and mpd_pair::value.

Referenced by mpd_playlist_begin(), and mpd_recv_playlist().

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

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

      return mpd_playlist_new(pair->value);

Generated by  Doxygen 1.6.0   Back to index