aboutsummaryrefslogtreecommitdiff
path: root/src/core/socket.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-06-05 17:48:50 -0700
committerGarrett D'Amore <garrett@damore.org>2017-06-05 17:48:50 -0700
commit4c3e4af7f989eae6688a7710f21241b72a3ad0b0 (patch)
treeeb9a8586d6499b4edcf73887c3715433d8336bba /src/core/socket.h
parentaacc1d4ac70769d7db12f979fdefd28c8c5cdb24 (diff)
downloadnng-4c3e4af7f989eae6688a7710f21241b72a3ad0b0.tar.gz
nng-4c3e4af7f989eae6688a7710f21241b72a3ad0b0.tar.bz2
nng-4c3e4af7f989eae6688a7710f21241b72a3ad0b0.zip
New object hash implementation, used by socket (to start).
Diffstat (limited to 'src/core/socket.h')
-rw-r--r--src/core/socket.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/socket.h b/src/core/socket.h
index dc6f5530..5fc3d593 100644
--- a/src/core/socket.h
+++ b/src/core/socket.h
@@ -19,8 +19,6 @@ struct nni_socket {
nni_cv s_cv;
uint32_t s_id;
- uint32_t s_refcnt;
- nni_cv s_refcv;
nni_msgq * s_uwq; // Upper write queue
nni_msgq * s_urq; // Upper read queue
@@ -63,8 +61,10 @@ struct nni_socket {
uint32_t s_nextid; // Next Pipe ID.
};
+extern int nni_sock_sys_init(void);
+extern void nni_sock_sys_fini(void);
+
extern int nni_sock_hold(nni_sock **, uint32_t);
-extern int nni_sock_hold_close(nni_sock **, uint32_t);
extern void nni_sock_rele(nni_sock *);
extern int nni_sock_open(nni_sock **, uint16_t);
extern void nni_sock_close(nni_sock *);