From c0031c07dd111b71f2c0b4e3e2e8c73929c9a23a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 12 Dec 2016 14:11:20 -0800 Subject: Minor tweak to transport API, new declarations for protocols. --- src/core/transport.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/transport.c') 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) { -- cgit v1.2.3-70-g09d2