aboutsummaryrefslogtreecommitdiff
path: root/src/transport/inproc
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/inproc')
-rw-r--r--src/transport/inproc/inproc.c7
-rw-r--r--src/transport/inproc/inproc.h18
2 files changed, 25 insertions, 0 deletions
diff --git a/src/transport/inproc/inproc.c b/src/transport/inproc/inproc.c
index ae0972d5..c747f7dc 100644
--- a/src/transport/inproc/inproc.c
+++ b/src/transport/inproc/inproc.c
@@ -474,3 +474,10 @@ struct nni_tran nni_inproc_tran = {
.tran_init = nni_inproc_init,
.tran_fini = nni_inproc_fini,
};
+
+
+int
+nng_inproc_register(void)
+{
+ return (nni_tran_register(&nni_inproc_tran));
+}
diff --git a/src/transport/inproc/inproc.h b/src/transport/inproc/inproc.h
new file mode 100644
index 00000000..9538b06f
--- /dev/null
+++ b/src/transport/inproc/inproc.h
@@ -0,0 +1,18 @@
+//
+// Copyright 2017 Garrett D'Amore <garrett@damore.org>
+// Copyright 2017 Capitar IT Group BV <info@capitar.com>
+//
+// This software is supplied under the terms of the MIT License, a
+// copy of which should be located in the distribution where this
+// file was obtained (LICENSE.txt). A copy of the license may also be
+// found online at https://opensource.org/licenses/MIT.
+//
+
+#ifndef NNG_TRANSPORT_INPROC_INPROC_H
+#define NNG_TRANSPORT_INPROC_INPROC_H
+
+// inproc transport. This is used for intra-process communication.
+
+extern int nng_inproc_register(void);
+
+#endif // NNG_TRANSPORT_INPROC_INPROC_H