work2d.h 429 B

12345678910111213141516
  1. #ifndef BFG_WORK2D_H
  2. #define BFG_WORK2D_H
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. extern int work2d_xnonce1sz;
  6. extern int work2d_xnonce2sz;
  7. extern void work2d_init();
  8. extern bool reserve_work2d_(uint32_t *xnonce1_p);
  9. extern void release_work2d_(uint32_t xnonce1);
  10. extern void work2d_gen_dummy_work(struct work *, struct stratum_work *, const struct timeval *tvp_prepared, const char *extranonce2, uint32_t xnonce1);
  11. #endif