Mercurial > audlegacy
diff audacious/playlist.c @ 984:bcd1ebd0a7c1 trunk
[svn] - jumptofile and queue support fun
author | nhjm449 |
---|---|
date | Fri, 28 Apr 2006 22:46:00 -0700 |
parents | 03d141f44b4d |
children | 1a73946ddfbd |
line wrap: on
line diff
--- a/audacious/playlist.c Fri Apr 28 22:44:06 2006 -0700 +++ b/audacious/playlist.c Fri Apr 28 22:46:00 2006 -0700 @@ -1010,6 +1010,34 @@ return tmp != NULL; } +gint +playlist_get_queue_position_number(guint pos) +{ + PlaylistEntry *entry; + gint tmp; + + PLAYLIST_LOCK(); + entry = g_list_nth_data(playlist, pos); + tmp = g_list_index(queued_list, entry); + PLAYLIST_UNLOCK(); + + return tmp; +} + +gint +playlist_get_queue_qposition_number(guint pos) +{ + PlaylistEntry *entry; + gint tmp; + + PLAYLIST_LOCK(); + entry = g_list_nth_data(queued_list, pos); + tmp = g_list_index(playlist, entry); + PLAYLIST_UNLOCK(); + + return tmp; +} + void playlist_clear_queue(void) {