aboutsummaryrefslogtreecommitdiff
path: root/src/core/endpt.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-06-06 08:15:08 -0700
committerGarrett D'Amore <garrett@damore.org>2017-06-06 08:15:08 -0700
commit46a559cbdff02d8f9ca48bd918c17c33336de3a1 (patch)
tree7c3d6ec8fb757e2856cfeeb827f78eb4c80fefb2 /src/core/endpt.h
parent90c0aad40e9dbcfc1734f3174d6ce20625004a33 (diff)
downloadnng-46a559cbdff02d8f9ca48bd918c17c33336de3a1.tar.gz
nng-46a559cbdff02d8f9ca48bd918c17c33336de3a1.tar.bz2
nng-46a559cbdff02d8f9ca48bd918c17c33336de3a1.zip
Start of using objhash for endpoints.
Diffstat (limited to 'src/core/endpt.h')
-rw-r--r--src/core/endpt.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/endpt.h b/src/core/endpt.h
index dbd9ec42..0dc0433d 100644
--- a/src/core/endpt.h
+++ b/src/core/endpt.h
@@ -31,8 +31,6 @@ struct nni_ep {
int ep_close; // full shutdown
int ep_bound; // true if we bound locally
nni_cv ep_cv;
- int ep_holds; // user references (by id)
- nni_cv ep_holdcv;
nni_pipe * ep_pipe; // Connected pipe (dialers only)
};
@@ -40,8 +38,9 @@ struct nni_ep {
#define NNI_EP_MODE_DIAL 1
#define NNI_EP_MODE_LISTEN 2
+extern int nni_ep_sys_init(void);
+extern void nni_ep_sys_fini(void);
extern int nni_ep_hold(nni_ep **, uint32_t);
-extern int nni_ep_hold_close(nni_ep **, uint32_t);
extern void nni_ep_rele(nni_ep *);
extern uint32_t nni_ep_id(nni_ep *);
extern int nni_ep_create(nni_ep **, nni_sock *, const char *);