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

mpd_pure struct mpd_playlist* mpd_entity_get_playlist ( const struct mpd_entity entity  )  [read]

Obtains a pointer to the mpd_playlist object enclosed by this mpd_entity. Calling this function is only allowed of mpd_entity_get_type() has returned MPD_ENTITY_TYPE_PLAYLIST.

the directory object

Definition at line 121 of file entity.c.

References mpd_entity::info, mpd_entity_get_playlist(), MPD_ENTITY_TYPE_PLAYLIST, mpd_entity::playlistFile, and mpd_entity::type.

Referenced by mpd_entity_get_playlist().

      assert(entity != NULL);
      assert(entity->type == MPD_ENTITY_TYPE_PLAYLIST);

      return entity->info.playlistFile;

Generated by  Doxygen 1.6.0   Back to index