aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lib/icu/Converter: add TODO commentMax Kellermann2014-11-301-0/+1
|
* lib/icu/Collate: move code to Util.cxxMax Kellermann2014-11-303-44/+117
|
* fs/Charset: move code to wrapper class IcuConverterMax Kellermann2014-11-302-0/+152
| | | | Prepare for a ICU-based backend without GLib.
* lib/nfs/FileReader: clean up on disconnectMax Kellermann2014-11-251-1/+1
| | | | | Avoids crash because Close() invokes a call on a destructed NfsConnection.
* lib/nfs/FileReader: move code to CancelOrClose()Max Kellermann2014-11-252-0/+16
|
* lib/nfs/FileReader: reset state in OnNfsConnectionFailed()Max Kellermann2014-11-251-0/+2
| | | | | Avoid calling NfsConnection::RemoveLease(), because the lease has been removed already.
* lib/nfs/FileReader: update "state" in OnNfsError()Max Kellermann2014-11-251-0/+24
| | | | | | Clean up the "state" to indicate that there is no longer any asynchronous operation. Fixes another NFS-related crash due to cleanup of a non-existing asynchronous operation.
* lib/nfs/Manager: defer NfsConnection destructionMax Kellermann2014-11-252-9/+54
| | | | | Avoids a crash that occurs when NfsConnection::OnSocketReady() dereferences itself before returning.
* lib/nfs/Connection: broadcast error before closing connectionMax Kellermann2014-11-251-4/+4
| | | | | | During the NfsLease::OnNfsConnectionFailed() call, the old (defunct) nfs_context may be used to close file handles. Such code does not yet exist, but will be added soon to fix other bugs.
* lib/nfs/Connection: cancel DeferredMonitor on disconnectMax Kellermann2014-11-251-0/+4
| | | | | Fixes potential second mount attempt after the old connection to the NFS server was shut down.
* lib/nfs/FileReader: include Compiler.h for "final" fallbackMax Kellermann2014-11-251-0/+1
|
* lib/upnp/ContentDirectoryService: swap uri_apply_base() parametersMax Kellermann2014-11-071-1/+1
| | | | | | When uri_apply_base() was moved from db/upnp/Util.cpp to util/UriUtil.cpp, the parameter order was changed, however without swapping the parameters in the ContentDirectoryService constructor.
* lib/upnp/Discovery: add missing stdlib.h includeMax Kellermann2014-11-021-0/+1
|
* db/upnp/Util: move caturl() to util/UriUtil.cxxMax Kellermann2014-10-103-32/+2
|
* storage/nfs: use the libnfs async APIMax Kellermann2014-10-092-0/+169
| | | | Share the NFS connection with the NFS input plugin.
* lib/nfs/Connection: reduce Error instance allocationsMax Kellermann2014-10-091-3/+2
|
* lib/nfs/Glue: add assertionMax Kellermann2014-10-091-0/+1
|
* lib/nfs/Connection: add methods {Open,Read,Close}Directory()Max Kellermann2014-10-072-0/+53
|
* lib/nfs/Connection: add method Stat(path)Max Kellermann2014-10-072-0/+33
|
* lib/nfs/Connection: make GetEventLoop() publicMax Kellermann2014-10-061-4/+4
|
* lib/nfs/Base: kludge to reduce number of NFS mountsMax Kellermann2014-10-053-7/+124
| | | | | | | Creating a NfsStorage sets its own export_name as the "base". Now NfsFileReader can use this information to derive the export_name to be mounted, instead of guessing. This solves the "too many connection" problem on the NFS server while updating the database.
* lib/nfs/FileReader: postpone the nfs_close_async() callMax Kellermann2014-10-014-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 Kellermann2014-10-012-5/+23
| | | | Close the newly allocated file handle passed to the callback.
* lib/nfs/Connection: remove MutexMax Kellermann2014-10-012-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 Kellermann2014-10-012-1/+5
|
* lib/nfs/Connection: remove obsolete flag postponed_destroyMax Kellermann2014-10-012-18/+2
|
* lib/nfs/Connection: remove deprecated move constructor workaroundMax Kellermann2014-10-011-16/+0
| | | | | Not used anymore because NfsManager now uses boost::intrusive::set instead of std::map.
* lib/nfs/Manager: use boost::intrusive::mapMax Kellermann2014-10-012-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 assertionMax Kellermann2014-10-011-0/+4
|
* lib/nfs/Glue: destruct the NfsManager in the I/O threadMax Kellermann2014-10-013-5/+8
| | | | | This allows eliminating the indirection code from the NfsConnection destructor.
* lib/nfs/Glue: eliminate class NfsGlueMax Kellermann2014-10-011-17/+1
| | | | It's just a useless wrapper for class NfsManager.
* lib/nfs/Cancellable: use boost::intrusive::listMax Kellermann2014-10-013-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 socketMax Kellermann2014-08-311-0/+18
|
* nfs/Connection: use only BroadcastError()Max Kellermann2014-08-311-4/+1
| | | | | Since BroadcastError() calls BroadcastMountError(), there's no need to check mount_finished here.
* nfs/Connection: nfs_get_fd() can return -1Max Kellermann2014-08-311-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 errorMax Kellermann2014-08-311-2/+3
|
* nfs/Connection: fix assertion failureMax Kellermann2014-08-311-1/+3
|
* *: add missing Compiler.h includesMax Kellermann2014-08-302-0/+2
| | | | Necessary for "final" on gcc 4.6.
* Tag: use SignedSongTime for the song durationMax Kellermann2014-08-291-1/+1
|
* input/ffmpeg: use av_strerror()Max Kellermann2014-08-182-0/+74
| | | | Generate more detailed error messages.
* {input,decoder}/ffmpeg: move ffmpeg_domain to lib/ffmpeg/Domain.cxxMax Kellermann2014-08-182-0/+51
| | | | Eliminate duplicate definition (in input plugin and decoder plugin).
* icu: include strings.h for strcasecmpFrançois Revol2014-08-161-0/+1
| | | | Again, POSIX says strcasecmp is not in string.h.
* fs/io/GzipOutputStream,GunzipReader: move zlib_domain to src/lib/zlib/Domain.cxxMax Kellermann2014-08-112-0/+51
|
* lib/nfs/Connection: include poll.hMax Kellermann2014-06-301-0/+2
|
* lib/nfs/Manager: gcc 4.7 compatibility hackMax Kellermann2014-06-173-0/+32
| | | | std::map::emplace() is only available from gcc 4.8 on.
* input/nfs: use the asynchronous libnfs APIMax Kellermann2014-06-1711-0/+1398
| | | | More robust and cancellable.
* lib/icu/Init: call u_init() and u_cleanup()Max Kellermann2014-06-101-0/+14
| | | | Make valgrind happy.
* lib/icu: add IcuInit(), IcuFinish()Max Kellermann2014-06-103-8/+78
|
* InputStream: "protect" attributesMax Kellermann2014-05-121-1/+1
|
* icu/Collate: use u_strFoldCase() instead of ucol_getSortKey()Max Kellermann2014-05-121-10/+41
| | | | Turns out ucol_getSortKey() does not what I thought it does.