diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-22 01:57:10 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-22 01:57:10 -0800 |
| commit | 101c1b6a946d9f2f48c6dd89940ae669141e0511 (patch) | |
| tree | 4da688859d87526d03d724ab1a729c6846650eae /src/core/pipe.h | |
| parent | b92672e20420683e73bfc017956ac6ef2b6b793b (diff) | |
| download | nng-101c1b6a946d9f2f48c6dd89940ae669141e0511.tar.gz nng-101c1b6a946d9f2f48c6dd89940ae669141e0511.tar.bz2 nng-101c1b6a946d9f2f48c6dd89940ae669141e0511.zip | |
Use C99 structure initializers FTW. Various other changes.
Diffstat (limited to 'src/core/pipe.h')
| -rw-r--r-- | src/core/pipe.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/core/pipe.h b/src/core/pipe.h index 0708fdcc..a4a03a93 100644 --- a/src/core/pipe.h +++ b/src/core/pipe.h @@ -23,26 +23,22 @@ struct nng_pipe { struct nni_pipe_ops p_ops; void * p_tran; nni_list_node_t p_sock_node; - nni_socket_t p_sock; + nni_socket * p_sock; nni_list_node_t p_ep_node; - nni_endpt_t p_ep; + nni_endpt * p_ep; }; -/* - * Pipe operations that protocols use. - */ -extern int nni_pipe_recv(nni_pipe_t, nng_msg_t *); -extern int nni_pipe_send(nni_pipe_t, nng_msg_t); -extern uint32_t nni_pipe_id(nni_pipe_t); -extern void nni_pipe_close(nni_pipe_t); + // Pipe operations that protocols use. +extern int nni_pipe_recv(nni_pipe *, nng_msg_t *); +extern int nni_pipe_send(nni_pipe *, nng_msg_t); +extern uint32_t nni_pipe_id(nni_pipe *); +extern void nni_pipe_close(nni_pipe *); -/* - * Used only by the socket core - as we don't wish to expose the details - * of the pipe structure outside of pipe.c. - */ -extern int nni_pipe_create(nni_pipe_t *, struct nni_transport *); +// Used only by the socket core - as we don't wish to expose the details +// of the pipe structure outside of pipe.c. +extern int nni_pipe_create(nni_pipe **, struct nni_transport *); -extern void nni_pipe_destroy(nni_pipe_t); +extern void nni_pipe_destroy(nni_pipe *); #endif /* CORE_PIPE_H */ |
