#ifndef COINAPI_H #define COINAPI_H struct CHAIN_INFO{ bool enabled=false; double temp=0; double temp2=0; double temp3=0; double freq=0; double rateideal=0; double rate=0; unsigned acn=0; std::string acs; std::string tunerstatus; }; struct POOL_INFO{ bool alive=false; bool active=false; std::string url; }; struct MINER_INFO{ std::map chains; std::string user; std::string since; double avgth=0; std::vector pools; }; void miner_getinfo (PARAM_STRING miner, const char *port, MINER_INFO &info); struct MINERMAXTEMP{ std::string miner; double maxtemp; MINERMAXTEMP(PARAM_STRING _miner) : miner(_miner.ptr){ maxtemp = 0; } }; void miner_getmaxtemp (PARAM_STRING minersfile, PARAM_STRING offlinefile, std::vector &maxtemps, unsigned &mineur_actifs, unsigned &mineurs_running); #endif