aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.c
diff options
context:
space:
mode:
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