aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-08-14protocol/Result: move current_command to class ResponseMax Kellermann2-4/+0
2015-08-14protocol/Result: move command_list_num to class ResponseMax Kellermann2-2/+0
2015-08-14protocol/Result: move error code to class ResponseMax Kellermann2-37/+0
2015-08-12client/Response: new Client wrapper class for writing responsesMax Kellermann2-47/+40
2015-08-11command/Request: add parser methodsMax Kellermann1-0/+4
Wrapper for protocol/ArgParser.cxx.
2015-08-11protocol/ArgParser: add overload with max_value parameterMax Kellermann2-5/+29
2015-08-11protocol/ArgParser: use std::numeric_limitsMax Kellermann2-3/+3
Using unsigned(-1) renders undefined behavior.
2015-08-11protocol/ArgParser: overload as ParseCommandArg(), pass referencesMax Kellermann2-14/+14
2015-08-11protocol/ArgParser: add struct RangeArgMax Kellermann2-9/+16
2015-01-01Copyright year 2015Max Kellermann6-6/+6
2014-09-04protocol/ArgParser: fix integer overflow in parse_range()Max Kellermann1-2/+2
Casting std::numeric_limits<unsigned>::max() to "long" leads to an overflow if sizeof(unsigned)==sizeof(long), and the result will be -1. This happens on some 32 bit architectures, for example ARM and WIN32. Workaround: use std::numeric_limits<int>::max(), which is the largest signed integer. Since sizeof(long)>=sizeof(int), this will never overflow. Fixes Mantis ticket 0004080.
2014-08-29ArgParser: allow fractional seconds in ParseCommandArg(SongTime)Max Kellermann1-4/+4
2014-08-28Playlist: use std::chrono::duration for Seek*()Max Kellermann2-0/+31
2014-01-24Client*: move to client/Max Kellermann1-1/+1
2014-01-13copyright year 2014Max Kellermann6-6/+6
2013-10-30*: update copyright year to 2013Max Kellermann2-2/+2
2013-10-28*: use nullptr instead of NULLMax Kellermann1-2/+2
2013-10-19*: use references instead of pointersMax Kellermann4-19/+18
2013-10-17*: use std::numeric_limitsMax Kellermann1-13/+10
2013-10-15gcc.h: rename to Compiler.hMax Kellermann1-1/+1
2013-10-15gcc.h: major updateMax Kellermann1-1/+1
Copy the according file from another project (i.e. XCSoar). This will allow copying more code more easily.
2013-09-04util/Error: new error passing libraryMax Kellermann3-12/+28
Replaces GLib's GError.
2013-08-10ack.h: move to protocol/Max Kellermann2-1/+54
2013-07-30include cleanupMax Kellermann1-1/+0
2013-02-19command: allow to omit END in ranges (START:END)Jörg Thalheim1-1/+1
If END is omitted, mpd should use the highest possible value instead of raising an error. This partially reverts 52e9cab1c1743f64a7
2013-01-03Client: rename the struct client to class ClientMax Kellermann4-20/+20
2013-01-03client: convert to C++Max Kellermann4-12/+12
2012-08-02gcc.h: re-add gcc_const and gcc_pureMax Kellermann1-3/+2
Remove GLib dependency from some headers.
2012-02-14command: move code to protocol/argparser.cMax Kellermann2-0/+240
2012-02-14command: move functions to protocol/result.cMax Kellermann2-0/+101