aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/osmux.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@soleta.eu>2014-08-26 13:31:53 +0200
committerPablo Neira Ayuso <pablo@soleta.eu>2014-08-27 14:37:57 +0200
commit63650bbc5d45339198bea9e1c04007ff10140f33 (patch)
tree1394fb690185a781cd73af2ca188877d84e754d3 /openbsc/src/libmgcp/osmux.c
parenta4faeb1a79eac3c8d333ded27600228cc5e3a71b (diff)
osmux: encapsulate for osmux state information in struct mgcp_endpoint
Just a cleanup, wrap around the osmux state information in a struct.
Diffstat (limited to 'openbsc/src/libmgcp/osmux.c')
-rw-r--r--openbsc/src/libmgcp/osmux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/libmgcp/osmux.c b/openbsc/src/libmgcp/osmux.c
index 2f135e747..456892ea3 100644
--- a/openbsc/src/libmgcp/osmux.c
+++ b/openbsc/src/libmgcp/osmux.c
@@ -272,7 +272,7 @@ int osmux_read_from_bsc_nat_cb(struct osmo_fd *ofd, unsigned int what)
"sending extracted RTP from OSMUX to BSC via endpoint=%u "
"(allocated=%d)\n", ENDPOINT_NUMBER(endp), endp->allocated);
- osmux_xfrm_output(osmuxh, &endp->osmux_out, &list);
+ osmux_xfrm_output(osmuxh, &endp->osmux.out, &list);
osmux_tx_sched(&list, scheduled_tx_bts_cb, endp);
}
out:
@@ -360,7 +360,7 @@ int osmux_read_from_bsc_cb(struct osmo_fd *ofd, unsigned int what)
"sending extracted RTP from OSMUX to MSC via endpoint=%u "
"(allocated=%d)\n", ENDPOINT_NUMBER(endp), endp->allocated);
- osmux_xfrm_output(osmuxh, &endp->osmux_out, &list);
+ osmux_xfrm_output(osmuxh, &endp->osmux.out, &list);
osmux_tx_sched(&list, scheduled_tx_net_cb, endp);
}
out:
@@ -423,7 +423,7 @@ int osmux_enable_endpoint(struct mgcp_endpoint *endp, int role)
LOGP(DMGCP, LOGL_NOTICE, "OSMUX requested, ENABLING.\n");
}
- osmux_xfrm_output_init(&endp->osmux_out,
+ osmux_xfrm_output_init(&endp->osmux.out,
(endp->ci * rtp_ssrc_winlen) +
(random() % rtp_ssrc_winlen));
@@ -435,7 +435,7 @@ int osmux_enable_endpoint(struct mgcp_endpoint *endp, int role)
endp->type = MGCP_OSMUX_BSC;
break;
}
- endp->osmux = 1;
+ endp->osmux.enable = 1;
return 0;
}