osmux: encapsulate for osmux state information in struct mgcp_endpoint
Just a cleanup, wrap around the osmux state information in a struct.
diff --git a/openbsc/src/libmgcp/osmux.c b/openbsc/src/libmgcp/osmux.c
index 2f135e7..456892e 100644
--- a/openbsc/src/libmgcp/osmux.c
+++ b/openbsc/src/libmgcp/osmux.c
@@ -272,7 +272,7 @@
"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 @@
"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 @@
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 @@
endp->type = MGCP_OSMUX_BSC;
break;
}
- endp->osmux = 1;
+ endp->osmux.enable = 1;
return 0;
}