• Max Kellermann's avatar
    directory: don't pass fd to traverseAllIn() callbacks · 528be8a0
    Max Kellermann authored
    Database traversal should be generic, and not bound to a client
    connection.  This is the first step: no file descriptor for the
    callback functions forEachSong() and forEachDir().  If a callback
    needs the file descriptor, it has to be passed in the void*data
    pointer somehow; some callbacks might need a new struct for passing
    more than one parameter.  This might look a bit cumbersome right now,
    but our goal is to have a clean API.
    528be8a0
directory.h 1.88 KB