/usr/include/jsonrpccpp/client/batchcall.h is in libjsonrpccpp-dev 0.7.0-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | /*************************************************************************
* libjson-rpc-cpp
*************************************************************************
* @file batchcall.h
* @date 15.10.2013
* @author Peter Spiess-Knafl <peter.knafl@gmail.com>
* @license See attached LICENSE.txt
************************************************************************/
#ifndef JSONRPC_CPP_BATCHCALL_H
#define JSONRPC_CPP_BATCHCALL_H
#include <jsonrpccpp/common/jsonparser.h>
namespace jsonrpc
{
class BatchCall
{
public:
BatchCall ();
/**
* @brief addCall
* @param methodname
* @param params
* @param isNotification
* @return the id of the geneared request inside the batchcall
*/
int addCall (const std::string &methodname, const Json::Value ¶ms, bool isNotification = false);
std::string toString (bool fast = true) const;
private:
Json::Value result;
int id;
};
}
#endif // JSONRPC_CPP_BATCHCALL_H
|