aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-06-22 07:17:38 -0700
committerGarrett D'Amore <garrett@damore.org>2025-06-22 07:17:38 -0700
commit8135cbf74697b1ad9f89b134e3583088e99ecbe4 (patch)
treeb5daada2b7e9ebce20acdc08c2ad20ac65072706 /src/core/pipe.h
parentfb153297c987e47bde25faa113a191c16eab901a (diff)
downloadnng-8135cbf74697b1ad9f89b134e3583088e99ecbe4.tar.gz
nng-8135cbf74697b1ad9f89b134e3583088e99ecbe4.tar.bz2
nng-8135cbf74697b1ad9f89b134e3583088e99ecbe4.zip
Hold the pipe across for the DTLS rx cb.
Diffstat (limited to 'src/core/pipe.h')
-rw-r--r--src/core/pipe.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/pipe.h b/src/core/pipe.h
index aa7a0598..fc7b7a1a 100644
--- a/src/core/pipe.h
+++ b/src/core/pipe.h
@@ -55,6 +55,10 @@ extern uint32_t nni_pipe_dialer_id(nni_pipe *);
// nni_pipe_rele releases the hold on the pipe placed by nni_pipe_find.
extern void nni_pipe_rele(nni_pipe *);
+// nni_pipe_hold adds an additional hold on the pipe. Each hold must be
+// matched by a call to nni_pipe_rele.
+extern void nni_pipe_hold(nni_pipe *);
+
// nni_pipe_add_stat adds a statistic to the pipe
extern void nni_pipe_add_stat(nni_pipe *, nni_stat_item *);