|
|
|
@ -42,10 +42,17 @@
@@ -42,10 +42,17 @@
|
|
|
|
|
#define JSON_LOADS(str, err_ptr) json_loads((str), (err_ptr)) |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
struct thr_info; |
|
|
|
|
struct pool; |
|
|
|
|
enum dev_reason; |
|
|
|
|
struct cgpu_info; |
|
|
|
|
int thr_info_create(struct thr_info *thr, pthread_attr_t *attr, void *(*start) (void *), void *arg); |
|
|
|
|
void thr_info_freeze(struct thr_info *thr); |
|
|
|
|
void thr_info_cancel(struct thr_info *thr); |
|
|
|
|
void nmsleep(unsigned int msecs); |
|
|
|
|
void cgtime(struct timeval *tv); |
|
|
|
|
double us_tdiff(struct timeval *end, struct timeval *start); |
|
|
|
|
double tdiff(struct timeval *end, struct timeval *start); |
|
|
|
|
bool stratum_send(struct pool *pool, char *s, ssize_t len); |
|
|
|
|
bool sock_full(struct pool *pool); |
|
|
|
|
char *recv_line(struct pool *pool); |
|
|
|
|