diff options
Diffstat (limited to 'dispatch.h')
-rw-r--r-- | dispatch.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/dispatch.h b/dispatch.h index cd51dbc0b..17a6f3db6 100644 --- a/dispatch.h +++ b/dispatch.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dispatch.h,v 1.12 2015/01/19 20:07:45 markus Exp $ */ | 1 | /* $OpenBSD: dispatch.h,v 1.14 2017/05/31 07:00:13 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -36,15 +36,15 @@ enum { | |||
36 | 36 | ||
37 | struct ssh; | 37 | struct ssh; |
38 | 38 | ||
39 | typedef int dispatch_fn(int, u_int32_t, void *); | 39 | typedef int dispatch_fn(int, u_int32_t, struct ssh *); |
40 | 40 | ||
41 | int dispatch_protocol_error(int, u_int32_t, void *); | 41 | int dispatch_protocol_error(int, u_int32_t, struct ssh *); |
42 | int dispatch_protocol_ignore(int, u_int32_t, void *); | 42 | int dispatch_protocol_ignore(int, u_int32_t, struct ssh *); |
43 | void ssh_dispatch_init(struct ssh *, dispatch_fn *); | 43 | void ssh_dispatch_init(struct ssh *, dispatch_fn *); |
44 | void ssh_dispatch_set(struct ssh *, int, dispatch_fn *); | 44 | void ssh_dispatch_set(struct ssh *, int, dispatch_fn *); |
45 | void ssh_dispatch_range(struct ssh *, u_int, u_int, dispatch_fn *); | 45 | void ssh_dispatch_range(struct ssh *, u_int, u_int, dispatch_fn *); |
46 | int ssh_dispatch_run(struct ssh *, int, volatile sig_atomic_t *, void *); | 46 | int ssh_dispatch_run(struct ssh *, int, volatile sig_atomic_t *); |
47 | void ssh_dispatch_run_fatal(struct ssh *, int, volatile sig_atomic_t *, void *); | 47 | void ssh_dispatch_run_fatal(struct ssh *, int, volatile sig_atomic_t *); |
48 | 48 | ||
49 | #define dispatch_init(dflt) \ | 49 | #define dispatch_init(dflt) \ |
50 | ssh_dispatch_init(active_state, (dflt)) | 50 | ssh_dispatch_init(active_state, (dflt)) |
@@ -52,7 +52,5 @@ void ssh_dispatch_run_fatal(struct ssh *, int, volatile sig_atomic_t *, void *); | |||
52 | ssh_dispatch_range(active_state, (from), (to), (fn)) | 52 | ssh_dispatch_range(active_state, (from), (to), (fn)) |
53 | #define dispatch_set(type, fn) \ | 53 | #define dispatch_set(type, fn) \ |
54 | ssh_dispatch_set(active_state, (type), (fn)) | 54 | ssh_dispatch_set(active_state, (type), (fn)) |
55 | #define dispatch_run(mode, done, ctxt) \ | ||
56 | ssh_dispatch_run_fatal(active_state, (mode), (done), (ctxt)) | ||
57 | 55 | ||
58 | #endif | 56 | #endif |