mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-30 09:26:15 +02:00
update jsonrpc++ to v1.2.1
This commit is contained in:
parent
f992ffabce
commit
6e9071731c
2 changed files with 38 additions and 5 deletions
33
.travis.yml
33
.travis.yml
|
@ -46,6 +46,39 @@ matrix:
|
|||
env:
|
||||
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
||||
|
||||
# works on Trusty
|
||||
- os: linux
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- llvm-toolchain-trusty-3.9
|
||||
packages:
|
||||
- clang-3.9 libasound2-dev libvorbisidec-dev libvorbis-dev libflac-dev alsa-utils libavahi-client-dev avahi-daemon
|
||||
env:
|
||||
- MATRIX_EVAL="CC=clang-3.9 && CXX=clang++-3.9"
|
||||
|
||||
# works on Trusty
|
||||
- os: linux
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- llvm-toolchain-trusty-4.0
|
||||
packages:
|
||||
- clang-4.0 libasound2-dev libvorbisidec-dev libvorbis-dev libflac-dev alsa-utils libavahi-client-dev avahi-daemon
|
||||
env:
|
||||
- MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"
|
||||
|
||||
# works on Trusty
|
||||
- os: linux
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- llvm-toolchain-trusty-5.0
|
||||
packages:
|
||||
- clang-5.0 libasound2-dev libvorbisidec-dev libvorbis-dev libflac-dev alsa-utils libavahi-client-dev avahi-daemon
|
||||
env:
|
||||
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
|
||||
|
||||
# build on osx
|
||||
- os: osx
|
||||
osx_image: xcode9.4
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
_( )/ ___) / \ ( ( \( _ \( _ \ / __)( ) ( )
|
||||
/ \) \\___ \( O )/ / ) / ) __/( (__(_ _)(_ _)
|
||||
\____/(____/ \__/ \_)__)(__\_)(__) \___)(_) (_)
|
||||
version 1.2.0
|
||||
version 1.2.1
|
||||
https://github.com/badaix/jsonrpcpp
|
||||
|
||||
This file is part of jsonrpc++
|
||||
Copyright (C) 2017-2018 Johannes Pohl
|
||||
Copyright (C) 2017-2019 Johannes Pohl
|
||||
|
||||
This software may be modified and distributed under the terms
|
||||
of the MIT license. See the LICENSE file for details.
|
||||
|
@ -869,7 +869,7 @@ inline void Error::parse_json(const Json& json)
|
|||
code_ = json["code"];
|
||||
if (json.count("message") == 0)
|
||||
throw RpcException("message is missing");
|
||||
message_ = json["message"];
|
||||
message_ = json["message"].get<std::string>();
|
||||
if (json.count("data") != 0u)
|
||||
data_ = json["data"];
|
||||
else
|
||||
|
@ -942,7 +942,7 @@ inline void Request::parse_json(const Json& json)
|
|||
throw InvalidRequestException("method is missing", id_);
|
||||
if (!json["method"].is_string())
|
||||
throw InvalidRequestException("method must be a string value", id_);
|
||||
method_ = json["method"];
|
||||
method_ = json["method"].get<std::string>();
|
||||
if (method_.empty())
|
||||
throw InvalidRequestException("method must not be empty", id_);
|
||||
|
||||
|
@ -1235,7 +1235,7 @@ inline void Notification::parse_json(const Json& json)
|
|||
throw RpcException("method is missing");
|
||||
if (!json["method"].is_string())
|
||||
throw RpcException("method must be a string value");
|
||||
method_ = json["method"];
|
||||
method_ = json["method"].get<std::string>();
|
||||
if (method_.empty())
|
||||
throw RpcException("method must not be empty");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue