Include VS solution
And refactor code: tab, code style. and end of lines. Update the libcpuid lib.
This commit is contained in:
parent
98c151b190
commit
86f0d9d944
106 changed files with 12665 additions and 6894 deletions
|
@ -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__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue