From 8880e0701d28ff647d4d9bca3a1aaebe0930a8d3 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 3 Dec 2024 08:09:36 -0500 Subject: 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. --- src/sp/transport/inproc/inproc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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. +// Copyright 2024 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // Copyright 2018 Devolutions // @@ -114,6 +114,12 @@ inproc_pipe_init(void *arg, nni_pipe *p) return (0); } +static void +inproc_pipe_stop(void *arg) +{ + NNI_ARG_UNUSED(arg); +} + static void inproc_pipe_fini(void *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, }; -- cgit v1.2.3-70-g09d2