aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-03-19 22:08:17 -0700
committerGarrett D'Amore <garrett@damore.org>2017-03-19 22:08:17 -0700
commit6091cf7e1c030417e1fd29c66160e71bcbe4f984 (patch)
treec95a46550370a06cb10263e77e7419260c83fba5 /src/core/pipe.h
parent9fe905a8040a7e089233125a003ef8911d98ddbd (diff)
downloadnng-6091cf7e1c030417e1fd29c66160e71bcbe4f984.tar.gz
nng-6091cf7e1c030417e1fd29c66160e71bcbe4f984.tar.bz2
nng-6091cf7e1c030417e1fd29c66160e71bcbe4f984.zip
More interface hiding. (pipe tran data setting).
Diffstat (limited to 'src/core/pipe.h')
-rw-r--r--src/core/pipe.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/pipe.h b/src/core/pipe.h
index 08d7893e..71f3821a 100644
--- a/src/core/pipe.h
+++ b/src/core/pipe.h
@@ -64,6 +64,15 @@ extern void nni_pipe_set_proto_data(nni_pipe *, void *);
// nni_pipe_set_proto_data function. No locking is performed.
extern void *nni_pipe_get_proto_data(nni_pipe *);
+// nni_pipe_set_tran_data sets the transport private data. No locking is
+// performed, and this routine should only be called once per pipe at
+// initialization.
+extern void nni_pipe_set_tran_data(nni_pipe *, void *);
+
+// nni_pipe_get_tran_data gets the transport private data set with the
+// nni_pipe_set_tran_data function. No locking is performed.
+extern void *nni_pipe_get_tran_data(nni_pipe *);
+
// nni_pipe_sock_list_init initializes a list of pipes, to be used by
// a per-socket list.
extern void nni_pipe_sock_list_init(nni_list *);