summaryrefslogtreecommitdiff
path: root/dispatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'dispatch.h')
-rw-r--r--dispatch.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/dispatch.h b/dispatch.h
new file mode 100644
index 000000000..12084aafe
--- /dev/null
+++ b/dispatch.h
@@ -0,0 +1,11 @@
1enum {
2 DISPATCH_BLOCK,
3 DISPATCH_NONBLOCK
4};
5
6typedef void dispatch_fn(int type, int plen);
7
8void dispatch_init(dispatch_fn *dflt);
9void dispatch_set(int type, dispatch_fn *fn);
10void dispatch_run(int mode, int *done);
11void dispatch_protocol_error(int type, int plen);