aboutsummaryrefslogtreecommitdiffstats
path: root/src/list.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-10 02:38:55 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-10 02:38:55 +0000
commit2d87ffa863b5eaa24862e925e767eb9a36bd58fe (patch)
tree98028112defc0aedfe282b88c8ba81b15ffdd53b /src/list.h
parent92a75471505391edd2f8f9af23188b4f7b17bbcb (diff)
downloadmpd-2d87ffa863b5eaa24862e925e767eb9a36bd58fe.tar.gz
mpd-2d87ffa863b5eaa24862e925e767eb9a36bd58fe.tar.xz
mpd-2d87ffa863b5eaa24862e925e767eb9a36bd58fe.zip
now we only allocate unique metadata items
git-svn-id: https://svn.musicpd.org/mpd/branches/r2562-metadata-handling-rewrite@2568 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/list.h b/src/list.h
index 4653237f0..86f4a239a 100644
--- a/src/list.h
+++ b/src/list.h
@@ -67,7 +67,7 @@ List * makeList(ListFreeDataFunc * freeDataFunc);
* _data_ -> data to be inserted in list
* returns 1 if successful, 0 otherwise
*/
-int insertInList(List * list,char * key,void * data);
+ListNode * insertInList(List * list,char * key,void * data);
int insertInListBeforeNode(List * list, ListNode * beforeNode, char * key,
void * data);
@@ -93,6 +93,8 @@ void deleteNodeFromList(List * list,ListNode * node);
*/
int findInList(List * list, char * key, void ** data);
+ListNode * findNodeInList(List * list, char * key);
+
/* frees memory malloc'd for list and its nodes
* _list_ -> List to be free'd
*/