mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-23 21:14:42 +00:00
ea32a5a117
- new rpc commands getdefaultuser/setdefaultuser (why is it not setting default on creation?) - putdht now receives a generic json value parameter
23 lines
500 B
C++
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
|