twister-core/src/twister_utils.h
Miguel Freitas ea32a5a117 - begin refactoring twister_utils.h
- new rpc commands getdefaultuser/setdefaultuser (why is it not setting default on creation?)
- putdht now receives a generic json value parameter
2013-09-28 17:17:14 -03:00

23 lines
500 B
C++

#ifndef TWISTER_UTILS_H
#define TWISTER_UTILS_H
#include "json_spirit.h"
#include "libtorrent/entry.hpp"
#include <string>
#include <vector>
class twister_utils
{
public:
twister_utils();
};
int load_file(std::string const& filename, std::vector<char>& v, int limit = 8000000);
int save_file(std::string const& filename, std::vector<char>& v);
json_spirit::Value entryToJson(const libtorrent::entry &e);
libtorrent::entry jsonToEntry(const json_spirit::Value &v);
#endif // TWISTER_UTILS_H