diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-03 08:09:36 -0500 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-07 12:50:15 -0800 |
| commit | 8880e0701d28ff647d4d9bca3a1aaebe0930a8d3 (patch) | |
| tree | 8d736bd7893f4e2febc860b2d001f10ba6c0cc08 /src/sp/transport/inproc | |
| parent | f1e078bd840ffbe45cb827513ca452157e4b7b24 (diff) | |
| download | nng-8880e0701d28ff647d4d9bca3a1aaebe0930a8d3.tar.gz nng-8880e0701d28ff647d4d9bca3a1aaebe0930a8d3.tar.bz2 nng-8880e0701d28ff647d4d9bca3a1aaebe0930a8d3.zip | |
inproc: add pipe stop.
This is not needed for this, but it is the only transport that does
not have it, and adding it simplifies logic in the common code.
Diffstat (limited to 'src/sp/transport/inproc')
| -rw-r--r-- | src/sp/transport/inproc/inproc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sp/transport/inproc/inproc.c b/src/sp/transport/inproc/inproc.c index 6a3e3ee3..f8cdd2e6 100644 --- a/src/sp/transport/inproc/inproc.c +++ b/src/sp/transport/inproc/inproc.c @@ -1,5 +1,5 @@ // -// Copyright 2023 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // Copyright 2018 Devolutions <info@devolutions.net> // @@ -115,6 +115,12 @@ inproc_pipe_init(void *arg, nni_pipe *p) } static void +inproc_pipe_stop(void *arg) +{ + NNI_ARG_UNUSED(arg); +} + +static void inproc_pipe_fini(void *arg) { inproc_pipe *pipe = arg; @@ -620,6 +626,7 @@ static nni_sp_pipe_ops inproc_pipe_ops = { .p_send = inproc_pipe_send, .p_recv = inproc_pipe_recv, .p_close = inproc_pipe_close, + .p_stop = inproc_pipe_stop, .p_peer = inproc_pipe_peer, .p_getopt = inproc_pipe_getopt, }; |
