summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/dispatch.h
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-03-28 20:40:49 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-03-28 20:40:49 +0000
commit3327bae70b8cc6276a6c63942898b093d1ab4ebc (patch)
treea06bf842c399f5e3ab95f4e286f25638e4fc25ea /usr.bin/ssh/dispatch.h
parentd10a23f88bcf5162facd3f43914da7f72543decd (diff)
function tables for different message types
Diffstat (limited to 'usr.bin/ssh/dispatch.h')
-rw-r--r--usr.bin/ssh/dispatch.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.bin/ssh/dispatch.h b/usr.bin/ssh/dispatch.h
new file mode 100644
index 00000000000..12084aafe07
--- /dev/null
+++ b/usr.bin/ssh/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);