Skip to content

Commit

Permalink
Improved 64bit support
Browse files Browse the repository at this point in the history
  • Loading branch information
hfedcba committed Aug 8, 2016
1 parent f182317 commit 8a59e75
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/KodiInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ KodiInterface::KodiInterface()
signal(SIGPIPE, SIG_IGN);
_socket = std::unique_ptr<BaseLib::TcpSocket>(new BaseLib::TcpSocket(GD::bl));

_jsonEncoder.reset(new BaseLib::RPC::JsonEncoder(GD::bl));
_jsonDecoder.reset(new BaseLib::RPC::JsonDecoder(GD::bl));
_jsonEncoder.reset(new BaseLib::Rpc::JsonEncoder(GD::bl));
_jsonDecoder.reset(new BaseLib::Rpc::JsonDecoder(GD::bl));
}

KodiInterface::~KodiInterface()
Expand Down Expand Up @@ -373,7 +373,7 @@ void KodiInterface::listen()
}
}
}
catch(BaseLib::RPC::JsonDecoderException& ex)
catch(BaseLib::Rpc::JsonDecoderException& ex)
{
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions src/KodiInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class KodiInterface
std::unique_ptr<BaseLib::TcpSocket> _socket;
std::string _hostname;
int32_t _port = 9090;
std::unique_ptr<BaseLib::RPC::JsonEncoder> _jsonEncoder;
std::unique_ptr<BaseLib::RPC::JsonDecoder> _jsonDecoder;
std::unique_ptr<BaseLib::Rpc::JsonEncoder> _jsonEncoder;
std::unique_ptr<BaseLib::Rpc::JsonDecoder> _jsonDecoder;
std::function<void(bool connected)> _connectedCallback;
std::function<void(std::shared_ptr<MyPacket> packet)> _packetReceivedCallback;

Expand Down
4 changes: 2 additions & 2 deletions src/MyPeer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ void MyPeer::init()
{
try
{
_binaryEncoder.reset(new BaseLib::RPC::RPCEncoder(GD::bl));
_binaryDecoder.reset(new BaseLib::RPC::RPCDecoder(GD::bl));
_binaryEncoder.reset(new BaseLib::Rpc::RpcEncoder(GD::bl));
_binaryDecoder.reset(new BaseLib::Rpc::RpcDecoder(GD::bl));
_interface.setPacketReceivedCallback(std::bind(&MyPeer::packetReceived, this, std::placeholders::_1));
_interface.setConnectedCallback(std::bind(&MyPeer::connected, this, std::placeholders::_1));
}
Expand Down
4 changes: 2 additions & 2 deletions src/MyPeer.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ class MyPeer : public BaseLib::Systems::Peer, public BaseLib::Rpc::IWebserverEve
virtual PVariable setValue(BaseLib::PRpcClientInfo clientInfo, uint32_t channel, std::string valueKey, PVariable value, bool wait);
//End RPC methods
protected:
std::shared_ptr<BaseLib::RPC::RPCEncoder> _binaryEncoder;
std::shared_ptr<BaseLib::RPC::RPCDecoder> _binaryDecoder;
std::shared_ptr<BaseLib::Rpc::RpcEncoder> _binaryEncoder;
std::shared_ptr<BaseLib::Rpc::RpcDecoder> _binaryDecoder;

bool _shuttingDown = false;
KodiInterface _interface;
Expand Down

0 comments on commit 8a59e75

Please sign in to comment.