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

mpd_pure int mpd_status_get_song_pos ( const struct mpd_status status  ) 

Returns the position of the currently playing song in the queue (beginning with 0) if a song is currently selected (always the case when state is PLAY or PAUSE). If there is no current song, -1 is returned.

Definition at line 311 of file status.c.

References mpd_status_get_song_pos(), and mpd_status::song_pos.

Referenced by mpd_status_get_song_pos().

{
      return status->song_pos;
}


Generated by  Doxygen 1.6.0   Back to index