Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | lib/nfs/FileReader: postpone the nfs_close_async() call | Max Kellermann | 2014-10-01 | 4 | -6/+92 |
| | | | | | | If an async opertion is in progress, nfs_close_async() will make libnfs crash because the RPC callback will dereference an object that was freed by nfs_close_async(). | ||||
* | lib/nfs/Connection: fix memory leak when cancelling Open() | Max Kellermann | 2014-10-01 | 2 | -5/+23 |
| | | | | Close the newly allocated file handle passed to the callback. | ||||
* | lib/nfs/Connection: remove Mutex | Max Kellermann | 2014-10-01 | 2 | -18/+12 |
| | | | | | All locks are currenly held from only a single thread (the IOThread) and thus we don't need the Mutex. | ||||
* | lib/nfs/Connection: add method GetEventLoop() | Max Kellermann | 2014-10-01 | 2 | -1/+5 |
| | |||||
* | lib/nfs/Connection: remove obsolete flag postponed_destroy | Max Kellermann | 2014-10-01 | 2 | -18/+2 |
| | |||||
* | lib/nfs/Connection: remove deprecated move constructor workaround | Max Kellermann | 2014-10-01 | 1 | -16/+0 |
| | | | | | Not used anymore because NfsManager now uses boost::intrusive::set instead of std::map. | ||||
* | lib/nfs/Manager: use boost::intrusive::map | Max Kellermann | 2014-10-01 | 2 | -37/+78 |
| | | | | | Reduce overhead for storing the key twice, and more overhead while looking up the connection to remove it after a failure. | ||||
* | lib/nfs/Glue: add assertion | Max Kellermann | 2014-10-01 | 1 | -0/+4 |
| | |||||
* | lib/nfs/Glue: destruct the NfsManager in the I/O thread | Max Kellermann | 2014-10-01 | 3 | -5/+8 |
| | | | | | This allows eliminating the indirection code from the NfsConnection destructor. | ||||
* | lib/nfs/Glue: eliminate class NfsGlue | Max Kellermann | 2014-10-01 | 1 | -17/+1 |
| | | | | It's just a useless wrapper for class NfsManager. | ||||
* | lib/nfs/Cancellable: use boost::intrusive::list | Max Kellermann | 2014-10-01 | 3 | -40/+18 |
| | | | | | Reduce Remove() overhead because we don't have to walk the list to find an iterator by reference. | ||||
* | nfs/Connection: check for disappearing libnfs socket | Max Kellermann | 2014-08-31 | 1 | -0/+18 |
| | |||||
* | nfs/Connection: use only BroadcastError() | Max Kellermann | 2014-08-31 | 1 | -4/+1 |
| | | | | | Since BroadcastError() calls BroadcastMountError(), there's no need to check mount_finished here. | ||||
* | nfs/Connection: nfs_get_fd() can return -1 | Max Kellermann | 2014-08-31 | 1 | -0/+3 |
| | | | | | While reconnecting to the NFS server, the socket is -1, because there is no socket. Fixes a potential crash (assertion failure). | ||||
* | nfs/Connection: use nfs_get_error() for mount error | Max Kellermann | 2014-08-31 | 1 | -2/+3 |
| | |||||
* | nfs/Connection: fix assertion failure | Max Kellermann | 2014-08-31 | 1 | -1/+3 |
| | |||||
* | *: add missing Compiler.h includes | Max Kellermann | 2014-08-30 | 2 | -0/+2 |
| | | | | Necessary for "final" on gcc 4.6. | ||||
* | Tag: use SignedSongTime for the song duration | Max Kellermann | 2014-08-29 | 1 | -1/+1 |
| | |||||
* | input/ffmpeg: use av_strerror() | Max Kellermann | 2014-08-18 | 2 | -0/+74 |
| | | | | Generate more detailed error messages. | ||||
* | {input,decoder}/ffmpeg: move ffmpeg_domain to lib/ffmpeg/Domain.cxx | Max Kellermann | 2014-08-18 | 2 | -0/+51 |
| | | | | Eliminate duplicate definition (in input plugin and decoder plugin). | ||||
* | icu: include strings.h for strcasecmp | François Revol | 2014-08-16 | 1 | -0/+1 |
| | | | | Again, POSIX says strcasecmp is not in string.h. | ||||
* | fs/io/GzipOutputStream,GunzipReader: move zlib_domain to src/lib/zlib/Domain.cxx | Max Kellermann | 2014-08-11 | 2 | -0/+51 |
| | |||||
* | lib/nfs/Connection: include poll.h | Max Kellermann | 2014-06-30 | 1 | -0/+2 |
| | |||||
* | lib/nfs/Manager: gcc 4.7 compatibility hack | Max Kellermann | 2014-06-17 | 3 | -0/+32 |
| | | | | std::map::emplace() is only available from gcc 4.8 on. | ||||
* | input/nfs: use the asynchronous libnfs API | Max Kellermann | 2014-06-17 | 11 | -0/+1398 |
| | | | | More robust and cancellable. | ||||
* | lib/icu/Init: call u_init() and u_cleanup() | Max Kellermann | 2014-06-10 | 1 | -0/+14 |
| | | | | Make valgrind happy. | ||||
* | lib/icu: add IcuInit(), IcuFinish() | Max Kellermann | 2014-06-10 | 3 | -8/+78 |
| | |||||
* | InputStream: "protect" attributes | Max Kellermann | 2014-05-12 | 1 | -1/+1 |
| | |||||
* | icu/Collate: use u_strFoldCase() instead of ucol_getSortKey() | Max Kellermann | 2014-05-12 | 1 | -10/+41 |
| | | | | Turns out ucol_getSortKey() does not what I thought it does. | ||||
* | icu/Collate: UCharFromUTF8() returns WritableBuffer<UChar> | Max Kellermann | 2014-05-12 | 1 | -19/+20 |
| | |||||
* | icu/Collate: initialize error_code | Max Kellermann | 2014-05-12 | 1 | -1/+1 |
| | | | | Fixes the broken "search" command. | ||||
* | InputStream: convert to class | Max Kellermann | 2014-05-11 | 1 | -1/+1 |
| | |||||
* | icu/Collate: fix memory leak in IcuCaseFold() | Max Kellermann | 2014-04-09 | 1 | -0/+1 |
| | |||||
* | icu/Collate: pass UErrorCode* to ucol_strcollUTF8() | Max Kellermann | 2014-02-24 | 1 | -1/+2 |
| | | | | Fixes crash after database update. | ||||
* | icu/Collate: initialize the error code before ucol_open() | Max Kellermann | 2014-02-24 | 1 | -1/+1 |
| | | | | Fixes initialization failure. | ||||
* | SongSort, ...: use libicu instead of GLib's g_utf8_*() | Max Kellermann | 2014-02-24 | 4 | -0/+267 |
| | |||||
* | input/nfs: move nfs_domain to lib/nfs/Domain.cxx | Max Kellermann | 2014-02-08 | 2 | -0/+51 |
| | |||||
* | */smbclient: protect all libsmbclient calls with a mutex | Max Kellermann | 2014-02-06 | 3 | -0/+59 |
| | | | | | libsmbclient is not thread-safe nor reentrant. We must protect all function calls with a global mutex, unfortunately. | ||||
* | neighbor/smbclient: move smbclient_domain to lib/smbclient/Domain.cxx | Max Kellermann | 2014-02-06 | 2 | -0/+51 |
| | |||||
* | neighbor/upnp: UPnP media server discovery | Max Kellermann | 2014-01-26 | 1 | -0/+5 |
| | |||||
* | upnp: initialize the client handle only once | Max Kellermann | 2014-01-26 | 2 | -53/+62 |
| | | | | | | Eliminate class LibUPnP and move the code to ClientInit.cxx. Its initialization function can be called multiple times, but UpnpRegisterClient() is called at most once. | ||||
* | upnp: move library initialization to Init.cxx | Max Kellermann | 2014-01-26 | 3 | -17/+111 |
| | | | | Allow calling UpnpGlobalInit() multiple times. | ||||
* | upnp/discovery: use a plain UpnpClient_Handle instead of class LibUPnP | Max Kellermann | 2014-01-26 | 2 | -8/+6 |
| | |||||
* | upnp: add class UpnpCallback | Max Kellermann | 2014-01-26 | 5 | -26/+64 |
| | | | | | | | Each Upnp*Async() call passes a new cookie pointer, and the cookie passed to UpnpRegisterClient() appears to be ignored. Using this interface is a more elegant approach than having one single "handler" function. | ||||
* | upnp: remove obsolete global variable "theLib" | Max Kellermann | 2014-01-26 | 1 | -6/+0 |
| | |||||
* | upnp/Discovery: add listener interface | Max Kellermann | 2014-01-26 | 2 | -2/+36 |
| | |||||
* | db/upnp: move generic code to lib/upnp/ | Max Kellermann | 2014-01-26 | 16 | -0/+1663 |
| | |||||
* | lib/smbclient/Init: return empty username/password | Max Kellermann | 2014-01-26 | 1 | -2/+2 |
| | | | | This appears to be the right thing to do when we want anonymous login. | ||||
* | input/smbclient: move code to lib/smbclient/Init.cxx | Max Kellermann | 2014-01-25 | 2 | -0/+84 |
| | |||||
* | DespotifyUtils, Expat: move to lib/ | Max Kellermann | 2014-01-24 | 4 | -0/+445 |