aboutsummaryrefslogtreecommitdiff
path: root/src/core/endpt.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-06-06 22:30:57 -0700
committerGarrett D'Amore <garrett@damore.org>2017-06-06 22:30:57 -0700
commitcff5dd2669031498fec9e3757c986d2fc99228e2 (patch)
tree5b7d6cd16cab5317132fbf6ed2b7120b1b53d5a4 /src/core/endpt.h
parentbf2eb2eed3232cb9f3872d46c5e6bca8855840be (diff)
downloadnng-cff5dd2669031498fec9e3757c986d2fc99228e2.tar.gz
nng-cff5dd2669031498fec9e3757c986d2fc99228e2.tar.bz2
nng-cff5dd2669031498fec9e3757c986d2fc99228e2.zip
More endpoint plumbing before pipes move to objhash.
Diffstat (limited to 'src/core/endpt.h')
-rw-r--r--src/core/endpt.h3
1 files changed, 3 insertions, 0 deletions
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