mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
Move util.c exports to util.h
This commit is contained in:
parent
5b702bc0da
commit
62a1403b3b
7
miner.h
7
miner.h
@ -570,13 +570,6 @@ struct thr_info {
|
|||||||
bool work_restart;
|
bool work_restart;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int thr_info_create(struct thr_info *thr, pthread_attr_t *attr, void *(*start) (void *), void *arg);
|
|
||||||
extern void thr_info_cancel(struct thr_info *thr);
|
|
||||||
extern void thr_info_freeze(struct thr_info *thr);
|
|
||||||
extern void nmsleep(unsigned int msecs);
|
|
||||||
extern double us_tdiff(struct timeval *end, struct timeval *start);
|
|
||||||
extern double tdiff(struct timeval *end, struct timeval *start);
|
|
||||||
|
|
||||||
struct string_elist {
|
struct string_elist {
|
||||||
char *string;
|
char *string;
|
||||||
bool free_me;
|
bool free_me;
|
||||||
|
7
util.h
7
util.h
@ -42,10 +42,17 @@
|
|||||||
#define JSON_LOADS(str, err_ptr) json_loads((str), (err_ptr))
|
#define JSON_LOADS(str, err_ptr) json_loads((str), (err_ptr))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
struct thr_info;
|
||||||
struct pool;
|
struct pool;
|
||||||
enum dev_reason;
|
enum dev_reason;
|
||||||
struct cgpu_info;
|
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);
|
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 stratum_send(struct pool *pool, char *s, ssize_t len);
|
||||||
bool sock_full(struct pool *pool);
|
bool sock_full(struct pool *pool);
|
||||||
char *recv_line(struct pool *pool);
|
char *recv_line(struct pool *pool);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user