aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-14 11:38:04 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-14 11:38:04 -0800
commitff791199733ee69ca41fd0e1e567cc07e4b2f07f (patch)
treef5f2690665e0a986561252af1e9cd16a5473f938 /src/core/pipe.c
parent26d934f3aaedb81e2b2343d235b41b046084ee8a (diff)
downloadnng-ff791199733ee69ca41fd0e1e567cc07e4b2f07f.tar.gz
nng-ff791199733ee69ca41fd0e1e567cc07e4b2f07f.tar.bz2
nng-ff791199733ee69ca41fd0e1e567cc07e4b2f07f.zip
Oops... Pipe list initialization was not complete.
Diffstat (limited to 'src/core/pipe.c')
-rw-r--r--src/core/pipe.c13
1 files changed, 13 insertions, 0 deletions
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