From ff791199733ee69ca41fd0e1e567cc07e4b2f07f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 14 Dec 2016 11:38:04 -0800 Subject: Oops... Pipe list initialization was not complete. --- src/core/pipe.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/core/pipe.c') diff --git a/src/core/pipe.c b/src/core/pipe.c index 40a810c8..5e867406 100644 --- a/src/core/pipe.c +++ b/src/core/pipe.c @@ -72,4 +72,17 @@ uint16_t nni_pipe_peer(nng_pipe_t p) { return (p->p_ops.p_peer(p->p_tran)); +} + +void +nni_pipe_destroy(nng_pipe_t p) +{ + p->p_ops.p_destroy(p->p_tran); + nni_free(p, sizeof (*p)); +} + +void +nni_pipe_list_init(nni_list_t *list) +{ + NNI_LIST_INIT(list, struct nng_pipe, p_node); } \ No newline at end of file -- cgit v1.2.3-70-g09d2