From 63650bbc5d45339198bea9e1c04007ff10140f33 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 26 Aug 2014 13:31:53 +0200 Subject: osmux: encapsulate for osmux state information in struct mgcp_endpoint Just a cleanup, wrap around the osmux state information in a struct. --- openbsc/include/openbsc/mgcp_internal.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'openbsc/include/openbsc') diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h index 2b44e40be..2236b2a9b 100644 --- a/openbsc/include/openbsc/mgcp_internal.h +++ b/openbsc/include/openbsc/mgcp_internal.h @@ -173,10 +173,11 @@ struct mgcp_endpoint { /* tap for the endpoint */ struct mgcp_rtp_tap taps[MGCP_TAP_COUNT]; - /* osmux is enabled/disabled */ - int osmux; - /* osmux internal to unbatch messages for this endpoint */ - struct osmux_out_handle osmux_out; + struct { + int enable; + /* handle to unbatch messages */ + struct osmux_out_handle out; + } osmux; }; #define ENDPOINT_NUMBER(endp) abs(endp - endp->tcfg->endpoints) -- cgit v1.2.3