mpd/src
Max Kellermann 907af2ad02 Permission: refactor getPermissionFromPassword() to return std::optional
This replaces the output parameter (which is bad API design).  As a
side effect, it fixes the bad [[gnu::pure]] attribute added by commit
a636d2127 which caused optimizing compilers to miscompile calls to
that function.  "Pure" functions can be assumed to have no output
arguments, so the compiler can assume the function doesn't modify
them.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1282
2021-10-17 19:58:50 +02:00
..
android java/GlobalRef: remove method Set(), always require initialization 2021-08-28 08:08:30 +02:00
apple apple/AudioUnit: add AudioUnitSetPropertyT() 2020-07-02 14:59:40 +02:00
archive archive/{zzip,iso9660}: ignore file names which are invalid UTF-8 2021-10-13 15:51:08 +02:00
AudioCompress audio_{parser,config}: convert to C++ 2013-01-30 21:47:12 +01:00
client Permission: add option "host_permissions" 2021-10-14 14:44:18 +02:00
command Permission: refactor getPermissionFromPassword() to return std::optional 2021-10-17 19:58:50 +02:00
config Permission: add option "host_permissions" 2021-10-14 14:44:18 +02:00
db db/simple: add option to hide CUE target songs 2021-10-14 13:28:37 +02:00
decoder Log: remove the obsolete printf-style functions 2021-10-13 17:41:19 +02:00
encoder decoder/mad, ...: more libfmt logging 2021-06-25 20:52:08 +02:00
event Log: remove the obsolete printf-style functions 2021-10-13 17:41:19 +02:00
filter more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
fs more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
haiku Haiku: add version info to the resources like win32 does 2019-03-29 14:33:27 +01:00
input Log: remove the obsolete printf-style functions 2021-10-13 17:41:19 +02:00
io Merge branch 'v0.22.x' 2021-03-10 21:06:12 +01:00
java more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
lib meson.build: add missing libfmt dependencies 2021-10-15 14:26:59 +02:00
mixer Log: remove the obsolete printf-style functions 2021-10-13 17:41:19 +02:00
neighbor meson.build: add missing libfmt dependencies 2021-10-15 14:26:59 +02:00
net Permission: add option "host_permissions" 2021-10-14 14:44:18 +02:00
output output/shout: move shout_new() call to Enable() 2021-10-14 12:28:36 +02:00
pcm Log: remove the obsolete printf-style functions 2021-10-13 17:41:19 +02:00
player player/CrossFade: do not cross-fade songs shorter than 20 seconds 2021-10-14 13:47:24 +02:00
playlist meson.build: add missing libfmt dependencies 2021-10-15 14:26:59 +02:00
protocol protocol/ArgParser.cxx: Add missing #include <stdio.h> 2021-10-16 17:38:07 +02:00
queue command/QueueCommands: reimplement relative "move"/"moveid" offsets 2021-10-07 22:49:38 +02:00
song more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
sticker sticker/SongSticker: use AllocatedString for concatenation 2021-10-13 12:19:45 +02:00
storage meson.build: add missing libfmt dependencies 2021-10-15 14:26:59 +02:00
system system/FatalError: remove obsolete library 2021-10-13 16:53:01 +02:00
tag tag/FixString: use class AllocatedArray 2021-10-13 14:40:33 +02:00
thread more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
time remove std::make_pair 2021-09-07 21:13:22 -07:00
unix more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
util util/Alloc: remove unused library 2021-10-13 14:48:16 +02:00
win32 win32/Win32Main: throw on error 2021-10-13 16:37:56 +02:00
zeroconf meson.build: add missing libfmt dependencies 2021-10-15 14:26:59 +02:00
BulkEdit.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Chrono.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
CommandLine.cxx release v0.22.7 2021-05-19 18:43:19 +02:00
CommandLine.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
GitVersion.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
GitVersion.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
IcyMetaDataParser.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
IcyMetaDataParser.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Idle.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
Idle.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
IdleFlags.cxx constexpr/std::array conversions 2021-08-16 21:05:56 -07:00
IdleFlags.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
Instance.cxx db/update/InotifyUpdate: convert to class, no global variables 2021-10-13 18:47:56 +02:00
Instance.hxx db/update/InotifyUpdate: convert to class, no global variables 2021-10-13 18:47:56 +02:00
Listen.cxx Log: remove the obsolete printf-style functions 2021-10-13 17:41:19 +02:00
Listen.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
LocateUri.cxx LocateUri: implement UriPluginKind::STORAGE properly 2021-10-06 20:36:39 +02:00
LocateUri.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Log.cxx Log: remove the obsolete printf-style functions 2021-10-13 17:41:19 +02:00
Log.hxx Log: remove the obsolete printf-style functions 2021-10-13 17:41:19 +02:00
LogBackend.cxx LogBackend: pass std::string_view to Log() 2021-06-24 13:43:13 +02:00
LogBackend.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
LogInit.cxx decoder/mad, ...: more libfmt logging 2021-06-25 20:52:08 +02:00
LogInit.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
LogLevel.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
ls.cxx client/Response: add method Fmt() based on libfmt 2021-05-25 16:01:56 +02:00
ls.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
Main.cxx Main: make inotify errors non-fatal 2021-10-13 18:55:05 +02:00
Main.hxx Main: move top-level exception handler to main() 2021-10-13 16:37:34 +02:00
Mapper.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
Mapper.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
MixRampInfo.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
MusicBuffer.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
MusicBuffer.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
MusicChunk.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
MusicChunk.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
MusicChunkPtr.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
MusicChunkPtr.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
MusicPipe.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
MusicPipe.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
open.h copyright year 2021 2021-01-01 19:54:28 +01:00
Partition.cxx Partition, ...: use libfmt for logging 2021-06-24 21:40:11 +02:00
Partition.hxx command/QueueCommands: reimplement relative "move"/"moveid" offsets 2021-10-07 22:49:38 +02:00
Permission.cxx Permission: refactor getPermissionFromPassword() to return std::optional 2021-10-17 19:58:50 +02:00
Permission.hxx Permission: refactor getPermissionFromPassword() to return std::optional 2021-10-17 19:58:50 +02:00
PlaylistDatabase.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
PlaylistDatabase.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
PlaylistError.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
PlaylistError.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
PlaylistFile.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
PlaylistFile.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
PlaylistPrint.cxx queue/PlaylistEdit: convert start/end parameters to RangeArg 2021-02-15 22:51:09 +01:00
PlaylistPrint.hxx queue/PlaylistEdit: convert start/end parameters to RangeArg 2021-02-15 22:51:09 +01:00
PlaylistSave.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
PlaylistSave.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
PluginUnavailable.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
RemoteTagCache.cxx Log: remove the obsolete printf-style functions 2021-10-13 17:41:19 +02:00
RemoteTagCache.hxx RemoteTagCache: use [[gnu::pure]] 2021-10-13 10:31:51 +02:00
RemoteTagCacheHandler.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
ReplayGainConfig.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
ReplayGainGlobal.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
ReplayGainGlobal.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
ReplayGainInfo.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
ReplayGainInfo.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
ReplayGainMode.cxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
ReplayGainMode.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
SingleMode.cxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
SingleMode.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
SongLoader.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
SongLoader.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
SongPrint.cxx protocol/ArgParser: add function MakeArgError() 2021-05-27 16:01:44 +02:00
SongPrint.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
SongSave.cxx song/DetachedSong: copy the AudioFormat from LightSong 2021-02-18 22:16:11 +01:00
SongSave.hxx song/DetachedSong: copy the AudioFormat from LightSong 2021-02-18 22:16:11 +01:00
SongUpdate.cxx song/DetachedSong: copy the AudioFormat from LightSong 2021-02-18 22:16:11 +01:00
StateFile.cxx Partition, ...: use libfmt for logging 2021-06-24 21:40:11 +02:00
StateFile.hxx more [[gnu::...]] attributes 2021-10-13 12:07:05 +02:00
StateFileConfig.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
StateFileConfig.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
Stats.cxx client/Response: add method Fmt() based on libfmt 2021-05-25 16:01:56 +02:00
Stats.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagAny.cxx TagAny: invoke ScanGenericTags() on remote files 2021-06-23 20:49:30 +02:00
TagAny.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagArchive.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagArchive.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagFile.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagFile.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagPrint.cxx client/Response: add method Fmt() based on libfmt 2021-05-25 16:01:56 +02:00
TagPrint.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagSave.cxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagSave.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TagStream.cxx Merge branch 'v0.22.x' 2021-01-01 19:59:15 +01:00
TagStream.hxx copyright year 2021 2021-01-01 19:54:28 +01:00
TimePrint.cxx protocol/ArgParser: add function MakeArgError() 2021-05-27 16:01:44 +02:00
TimePrint.hxx copyright year 2021 2021-01-01 19:54:28 +01:00