aboutsummaryrefslogtreecommitdiffstats
path: root/src/dirvec.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-10-13{dir,song}vec: remove unused *_destroy routinesEric Wong1-7/+0
Blindly destroying these without freeing the underlying elements was a bad idea, always. Our iterators suck less nowadays and we can traverse them and free() each element safely.
2008-10-12directory: always maintain sorted properties vectorsEric Wong1-2/+0
This allows clients to see sorted results while we're updating the DB and removes the need for us to have to sort manually. We'll have to write separate routines for managing stored playlists with songvecs eventually; but that's for another day.
2008-10-12dirvec: add dirvec_for_each iteratorEric Wong1-0/+3
This will make it easier to introduce locking
2008-10-11dirvec: added dirvec_clear()Max Kellermann1-0/+5
2008-10-11dirvec: constant pointers in dirvec_find()Max Kellermann1-1/+1
dirvec_find() does not modify the object, thus it should get a const pointer.
2008-10-11directory: moved dirvec struct declaration to dirvec.hMax Kellermann1-1/+6
No idea why it was created in directory.h, but it should be in dirvec.h.
2008-10-11directory: converted typedef Directory to struct directoryMax Kellermann1-4/+4
The struct can be forward-declared by other headers, which relaxes the header dependencies.
2008-10-11dirvec: moved code to dirvec.cMax Kellermann1-62/+5
Having all functions as static (non-inline) functions generates GCC warnings, and duplicates binary code across several object files. Most of dirvec's methods are too complex for becoming inline functions. Move them all to dirvec.c and publish the prototypes in dirvec.h.
2008-09-28directory: replace DirectoryList with dirvecEric Wong1-0/+73
Small memory reduction compared to songvec since most users have much fewer dirs than songs, but still nice to have.