From cff5dd2669031498fec9e3757c986d2fc99228e2 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 6 Jun 2017 22:30:57 -0700 Subject: More endpoint plumbing before pipes move to objhash. --- src/core/endpt.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/endpt.h') diff --git a/src/core/endpt.h b/src/core/endpt.h index a9029cc9..7991a916 100644 --- a/src/core/endpt.h +++ b/src/core/endpt.h @@ -33,6 +33,7 @@ struct nni_ep { nni_mtx ep_mtx; nni_cv ep_cv; nni_pipe * ep_pipe; // Connected pipe (dialers only) + nni_list ep_pipes; }; #define NNI_EP_MODE_IDLE 0 @@ -50,5 +51,7 @@ extern void nni_ep_close(nni_ep *); extern int nni_ep_dial(nni_ep *, int); extern int nni_ep_listen(nni_ep *, int); extern void nni_ep_list_init(nni_list *); +extern int nni_ep_add_pipe(nni_ep *, nni_pipe *); +extern void nni_ep_rem_pipe(nni_ep *, nni_pipe *); #endif // CORE_ENDPT_H -- cgit v1.2.3-70-g09d2