todo update
git-svn-id: https://svn.musicpd.org/mpd/trunk@2605 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
30
TODO
30
TODO
@@ -2,36 +2,6 @@
|
|||||||
----
|
----
|
||||||
*) rewrite search, find, locate to tag LocateTagItem pairs
|
*) rewrite search, find, locate to tag LocateTagItem pairs
|
||||||
|
|
||||||
*) rewrite filename handling
|
|
||||||
*) use memory more efficiently, by iteratively constructing filename
|
|
||||||
*) create a function for creating directory names:
|
|
||||||
*) when creating the string, check that the same directory
|
|
||||||
string wasn't just created (store last Directory * ptr)
|
|
||||||
*) this should be very fast! and save memory
|
|
||||||
*) static char * buffer, that only grows in size during life
|
|
||||||
span
|
|
||||||
*) implement like:
|
|
||||||
static char * buffer = NULL;
|
|
||||||
static int bufferSize = 0;
|
|
||||||
static int lastDirectory * last = NULL;
|
|
||||||
static int pos;
|
|
||||||
|
|
||||||
if(last == thisOne) return buffer[pos];
|
|
||||||
|
|
||||||
pos = bufferSIze;
|
|
||||||
for(parentDir; !rootDir; parent = parent->parent) {
|
|
||||||
pos -= strlen(parent);
|
|
||||||
if(pos < 0) i{
|
|
||||||
realloc(-pos bytes);
|
|
||||||
pos = 0;
|
|
||||||
}
|
|
||||||
/* we don't want to append a '\0', so use
|
|
||||||
strncpy */
|
|
||||||
strncpy(buffer[pos], parent, strlen(parent));
|
|
||||||
}
|
|
||||||
|
|
||||||
return buffer;
|
|
||||||
|
|
||||||
*) implement listener socket protocol as documented here:
|
*) implement listener socket protocol as documented here:
|
||||||
http://www.musicpd.org/wiki/moin.cgi/MpdListenerProtocol
|
http://www.musicpd.org/wiki/moin.cgi/MpdListenerProtocol
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user