aboutsummaryrefslogtreecommitdiff
path: root/src/core/transport.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-12 14:11:20 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-12 14:11:20 -0800
commitc0031c07dd111b71f2c0b4e3e2e8c73929c9a23a (patch)
treeac32708b31ede13ce731e882615d0aa3f490bdca /src/core/transport.c
parent0991802d1c91c790c60828145ddecbfe1583f6db (diff)
downloadnng-c0031c07dd111b71f2c0b4e3e2e8c73929c9a23a.tar.gz
nng-c0031c07dd111b71f2c0b4e3e2e8c73929c9a23a.tar.bz2
nng-c0031c07dd111b71f2c0b4e3e2e8c73929c9a23a.zip
Minor tweak to transport API, new declarations for protocols.
Diffstat (limited to 'src/core/transport.c')
-rw-r--r--src/core/transport.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/transport.c b/src/core/transport.c
index 67f2ca2f..1053cf16 100644
--- a/src/core/transport.c
+++ b/src/core/transport.c
@@ -26,10 +26,10 @@
* For now the list of transports is hard-wired. Adding new transports
* to the system dynamically is something that might be considered later.
*/
-extern struct nni_transport_ops nni_inproc_tran_ops;
+extern struct nni_transport nni_inproc_transport;
-static struct nni_transport_ops *transports[] = {
- &nni_inproc_tran_ops,
+static struct nni_transport *transports[] = {
+ &nni_inproc_transport,
NULL
};
@@ -41,7 +41,7 @@ void
nni_transport_init(void)
{
int i;
- struct nni_transport_ops *ops;
+ struct nni_transport *ops;
for (i = 0; (ops = transports[i]) != NULL; i++) {
ops->tran_init();
@@ -52,7 +52,7 @@ void
nni_transport_fork(int prefork)
{
int i;
- struct nni_transport_ops *ops;
+ struct nni_transport *ops;
for (i = 0; (ops = transports[i]) != NULL; i++) {
if (ops->tran_fork != NULL) {