From cb9d1b3d275fac683a4128b93a76ab72c99a0209 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Wed, 26 Sep 2007 08:25:35 +0000 Subject: Playlist queue patch (http://musicpd.org/mantis/view.php?id=1478) version 11. This adds the following commands: * queueid Add song to the queue. * dequeue Remove song from from the queue * queueinfo List the queue To the statusfield it adds the following entry: playlistqueue: UID can be used by clients to track changes in the playlist queue. git-svn-id: https://svn.musicpd.org/mpd/trunk@6927 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/list.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/list.h') diff --git a/src/list.h b/src/list.h index 5938934ff..35451ec24 100644 --- a/src/list.h +++ b/src/list.h @@ -100,6 +100,12 @@ int findInList(List * list, char *key, void **data); the info would be found */ int findNodeInList(List * list, char *key, ListNode ** node, int *pos); +/* + * returns ListNode at position _pos_ from first node. If no ListNode exists + * at position _pos_ returns NULL + */ +ListNode *getNodeByPosition(List *list, int pos); + /* frees memory malloc'd for list and its nodes * _list_ -> List to be free'd */ -- cgit v1.2.3