From 6091cf7e1c030417e1fd29c66160e71bcbe4f984 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 19 Mar 2017 22:08:17 -0700 Subject: More interface hiding. (pipe tran data setting). --- src/core/pipe.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/pipe.h') 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 *); -- cgit v1.2.3-70-g09d2