aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-28Mapper: use class PathMax Kellermann3-5/+10
2015-02-28FileCommands: use PathTraitsFS typedefsMax Kellermann1-2/+2
2015-02-28fs/CheckFile: convert path to UTF-8 for error messageMax Kellermann1-6/+11
2015-02-28fs/FileInfo: use GetFileAttributesEx() on WIN32Max Kellermann1-1/+49
2015-02-28fs/FileSystem: remove unused WIN32 port of StatFile()Max Kellermann1-5/+4
2015-02-28fs/FileInfo: new library providing GetFileInfo()Max Kellermann10-70/+170
Replaces StatFile(), with a portable data object.
2015-02-28FileCommands: skip special files completelyMax Kellermann1-0/+2
Previously, MPD printed the time stamp without printing the file name. That made no sense.
2015-02-28storage/FileInfo: rename to StorageFileInfoMax Kellermann18-82/+91
2015-02-28fs/Path: make IsAbsolute() constMax Kellermann2-2/+2
2015-02-27fs/FileSystem: use GetFileAttributes() on WIN32 if possibleMax Kellermann1-2/+20
2015-02-27fs/FileSystem: merge CheckAccess() into PathExists()Max Kellermann2-17/+7
PathExists() should better do what CheckAccess() does, and CheckAccess() doesn't do what its name implies.
2015-02-26fs/DirectoryReader: use FindFirstFile(), FindNextFile() on WIN32Max Kellermann1-0/+85
2015-02-25fs/Traits: add constant CURRENT_DIRECTORYMax Kellermann3-2/+7
2015-02-25fs/AllocatedPath: add nullptr_t constructorMax Kellermann1-1/+3
2015-02-25fs/{Allocated,}Path,Charset: use PathTraitsFS typedefsMax Kellermann6-21/+19
2015-02-25fs/FileSystem: remove unused FOpenModesMax Kellermann1-20/+0
2015-02-25fs/io/File{Reader,OutputStream}: convert path to UTF-8 for error messageMax Kellermann2-7/+18
2015-02-25db/ExcludeList: use the TextFile class instead of stdio.hMax Kellermann1-17/+24
2015-02-16util/DynamicFifoBuffer: adjust include guardMax Kellermann1-3/+3
2015-02-13net/StaticSocketAdress: new class wrapping struct sockaddr_storageMax Kellermann3-7/+203
2015-02-12system/ByteOrder: use GCC built-ins if availableMax Kellermann1-6/+38
2015-02-10net/Resolver: relax size check in LocalAddressToString()Max Kellermann1-2/+20
Handles abstract sockets on Linux.
2015-02-10net/Resolver: move code to LocalAddressToString()Max Kellermann1-8/+16
2015-02-10net/SocketAddress: light wrapper for struct sockaddrMax Kellermann13-66/+198
2015-02-10system/{Resolver,Socket{Error,Util}}: move to new library libnet.aMax Kellermann12-9/+9
2015-02-10Listen: add "override"Max Kellermann1-2/+2
2015-02-10event/ServerSocket: remove obsolete macro DEFAULT_PORTMax Kellermann1-2/+0
2015-02-10event/ServerSocket: remove obsolete typedefMax Kellermann1-6/+0
2015-02-10fs/io/FileOutputStream: use CREATE_ALWAYS instead of TRUNCATE_EXISTINGMax Kellermann1-1/+1
Fixes yet another breakage of creating the database+state file on Windows.
2015-02-09command/{Queue,File}Commands: drop "file:///" prefix for absolute pathsMax Kellermann2-13/+15
Requiring this prefix makes the client's intention very clear, but it was too hard to understand why this prefix was needed. Initially, my intention was to differentiate from broken clients which prefix relate URIs with a slash; once MPD allowed that. In the past few years however, MPD has disallowed that, and there was no significant breakage (except for the "add /" special case which some clients apparently still do). So I figure it's about time to define that an URI that begins with a slash points to an arbitrary file on the file system.
2015-02-09fs/Charset: convert #ifdef to regular "if"Max Kellermann1-3/+5
2015-02-08fs/Charset: change FixSeparators() API to use std::string&&Max Kellermann1-11/+6
2015-02-07Listen: remove C-style "void"Max Kellermann1-1/+2
2015-02-06fs/io/FileOutputStream: don't auto-delete file on WIN32Max Kellermann1-0/+2
The file handle is never reset to INVALID_HANDLE_VALUE, and thus the destructor will assume the operation shall be cancelled and will delete the temporary file. This was a major breakage for saving the database file and the state file.
2015-02-06SongPrint: let CPP concatenate string literalsMax Kellermann1-2/+2
2015-02-06TagBuilder: allow adding duplicate tag types in Complement()Max Kellermann1-1/+10
Build a table of pre-existing tag types before adding new items. The old way would check HasType() each time, which would return true after the first instance of that tag type had been added, preventing duplicate tag types to be merged. This broke duplicate tag types loaded from the state file, because this code path uses TagBuilder::Complement().
2015-02-04tag/Rva2: convert pointers to referencesMax Kellermann1-9/+9
2015-02-04tag/Rva2: rename struct rva2_data to CamelCaseMax Kellermann1-6/+6
2015-02-04tag/Rva2: make enum rva2_channel strictly-typedMax Kellermann1-12/+12
2015-02-03lib/upnp/Discovery: remove locking from ExpireDevices()Max Kellermann2-7/+6
2015-02-02lib/upnp/Discovery: apply naming conventionMax Kellermann5-42/+42
2015-02-01output/sles: use AudioOutputWrapper::Create()Max Kellermann1-4/+6
2015-01-31DecoderThread: make variables more localMax Kellermann1-6/+3
2015-01-31decoder/sndfile, ...: update API documentationMax Kellermann9-13/+13
2015-01-30decoder/DsdLib: fix integer overflow in ID3 size calculationMax Kellermann1-2/+4
2015-01-30decoder/DsdLib: check size before seekingMax Kellermann1-4/+3
2015-01-30decoder/DsdLib: don't use InputStream::GetOffset() after seekingMax Kellermann1-3/+2
We already know the offset.
2015-01-30decoder/DsdLib: pass offset_type t dsdlib_tag_id3()Max Kellermann2-4/+2
2015-01-29db/update/Walk: use std::unique_ptr instead of std::auto_ptrMax Kellermann1-1/+1
std::auto_ptr is deprecated, and std::unique_ptr is much better anyway.
2015-01-29Avoid integer overflow in MonotonicClock{S,MS,US}PHO1-6/+6
This is Darwin specific: the previous implementation was causing an integer overflow when base.numer is very large. On PPC Darwin, the timebase info is 1000000000/33330116 and this is too large for integer arithmetic.