Include VS solution

And refactor code: tab, code style. and end of lines. Update the libcpuid lib.
This commit is contained in:
enWILLYado 2018-02-07 22:14:06 +01:00
parent 98c151b190
commit 86f0d9d944
106 changed files with 12665 additions and 6894 deletions

View file

@ -26,6 +26,7 @@
#include <uv.h>
#include <string>
class ApiState;
@ -36,16 +37,16 @@ class NetworkState;
class Api
{
public:
static bool start();
static void release();
static bool start();
static void release();
static char *get(const char *url, int *status);
static void tick(const Hashrate *hashrate);
static void tick(const NetworkState &results);
static std::string get(const std::string & url, int* status);
static void tick(const Hashrate* hashrate);
static void tick(const NetworkState & results);
private:
static ApiState *m_state;
static uv_mutex_t m_mutex;
static ApiState* m_state;
static uv_mutex_t m_mutex;
};
#endif /* __API_H__ */