summaryrefslogtreecommitdiff
path: root/src/or/cpuworker.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-06 15:51:52 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-15 11:21:33 -0400
commitb022ea32a685e4163595b5a3ded0bc00bb378896 (patch)
tree8764e6a886f29123b9011bc5248ff2d61e13cfff /src/or/cpuworker.h
parent222122450c1e879989c440088c01eaa95e4d6980 (diff)
downloadtor-b022ea32a685e4163595b5a3ded0bc00bb378896.tar.gz
tor-b022ea32a685e4163595b5a3ded0bc00bb378896.zip
Expand cpuworker API to allow other work types
Diffstat (limited to 'src/or/cpuworker.h')
-rw-r--r--src/or/cpuworker.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/cpuworker.h b/src/or/cpuworker.h
index fd426e21f6..9bc5d962dd 100644
--- a/src/or/cpuworker.h
+++ b/src/or/cpuworker.h
@@ -14,6 +14,12 @@
void cpu_init(void);
void cpuworkers_rotate_keyinfo(void);
+struct workqueue_entry_s;
+enum workqueue_reply_t;
+struct workqueue_entry_s *cpuworker_queue_work(
+ enum workqueue_reply_t (*fn)(void *, void *),
+ void (*reply_fn)(void *),
+ void *arg);
struct create_cell_t;
int assign_onionskin_to_cpuworker(or_circuit_t *circ,