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 00000000..12084aaf
--- /dev/null
+++ b/dispatch.h
@@ -0,0 +1,11 @@
+enum {
+ DISPATCH_BLOCK,
+ DISPATCH_NONBLOCK
+};
+
+typedef void dispatch_fn(int type, int plen);
+
+void dispatch_init(dispatch_fn *dflt);
+void dispatch_set(int type, dispatch_fn *fn);
+void dispatch_run(int mode, int *done);
+void dispatch_protocol_error(int type, int plen);