Max Kellermann
96c681e2db
dirvec: added dirvec_clear()
2008-10-09 15:37:41 +02:00
Max Kellermann
a5480108f8
dirvec: constant pointers in dirvec_find()
...
dirvec_find() does not modify the object, thus it should get a const
pointer.
2008-10-09 15:24:34 +02:00
Max Kellermann
68f716a28b
directory: moved dirvec struct declaration to dirvec.h
...
No idea why it was created in directory.h, but it should be in
dirvec.h.
2008-10-09 15:24:05 +02:00
Max Kellermann
25f67da58c
directory: converted typedef Directory to struct directory
...
The struct can be forward-declared by other headers, which relaxes the
header dependencies.
2008-10-08 10:49:05 +02:00
Max Kellermann
4cfd356e12
dirvec: moved code to dirvec.c
...
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-10-08 06:55:10 +02:00
Eric Wong
3b8bc33a04
directory: replace DirectoryList with dirvec
...
Small memory reduction compared to songvec since most users have
much fewer dirs than songs, but still nice to have.
2008-09-29 13:11:40 +02:00