driver-proxy.h 386 B

12345678910111213141516171819202122
  1. #ifndef BFG_DRIVER_PROXY_H
  2. #define BFG_DRIVER_PROXY_H
  3. #include <uthash.h>
  4. #include "miner.h"
  5. extern struct device_drv proxy_drv;
  6. struct proxy_client {
  7. char *username;
  8. struct cgpu_info *cgpu;
  9. struct work *work;
  10. struct timeval tv_hashes_done;
  11. float desired_share_pdiff;
  12. UT_hash_handle hh;
  13. };
  14. extern struct proxy_client *proxy_find_or_create_client(const char *user);
  15. #endif