aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/mgcp_internal.h
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/include/openbsc/mgcp_internal.h
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/include/openbsc/mgcp_internal.h')
-rw-r--r--openbsc/include/openbsc/mgcp_internal.h9
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)