Export the flush_queue function for use by drivers.
diff --git a/cgminer.c b/cgminer.c
index b66322e..7781b0c 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3907,8 +3907,6 @@ int restart_wait(struct thr_info *thr, unsigned int mstime)
return rc;
}
-
-static void flush_queue(struct cgpu_info *cgpu);
static void *restart_thread(void __maybe_unused *arg)
{
@@ -6506,7 +6504,7 @@ struct work *take_queued_work_bymidstate(struct cgpu_info *cgpu, char *midstate,
return work;
}
-static void flush_queue(struct cgpu_info *cgpu)
+void flush_queue(struct cgpu_info *cgpu)
{
struct work *work = NULL;
diff --git a/miner.h b/miner.h
index bbb5c31..9618018 100644
--- a/miner.h
+++ b/miner.h
@@ -1364,6 +1364,7 @@ extern void __work_completed(struct cgpu_info *cgpu, struct work *work);
extern int age_queued_work(struct cgpu_info *cgpu, double secs);
extern void work_completed(struct cgpu_info *cgpu, struct work *work);
extern struct work *take_queued_work_bymidstate(struct cgpu_info *cgpu, char *midstate, size_t midstatelen, char *data, int offset, size_t datalen);
+extern void flush_queue(struct cgpu_info *cgpu);
extern void hash_driver_work(struct thr_info *mythr);
extern void hash_queued_work(struct thr_info *mythr);
extern void _wlog(const char *str);