diff options
author | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-26 13:31:53 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-27 14:37:57 +0200 |
commit | 63650bbc5d45339198bea9e1c04007ff10140f33 (patch) | |
tree | 1394fb690185a781cd73af2ca188877d84e754d3 /openbsc/include/openbsc/mgcp_internal.h | |
parent | a4faeb1a79eac3c8d333ded27600228cc5e3a71b (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/include/openbsc/mgcp_internal.h')
-rw-r--r-- | openbsc/include/openbsc/mgcp_internal.h | 9 |
1 files changed, 5 insertions, 4 deletions
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) |