diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-31 11:35:20 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-31 11:35:20 +0200 |
commit | 135d99b36ef2faecbe005a5a682162017d04b20b (patch) | |
tree | 3fcd0abb9b160cca670361b5a4d42b9c7e011332 /openbsc/include | |
parent | 5aaf7c164ccbbd224c2335773e3e0490a6088461 (diff) |
[mgcp] Regroup struct mgcp_cfg members and provide some hints
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/mgcp.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/openbsc/include/openbsc/mgcp.h b/openbsc/include/openbsc/mgcp.h index 53a308152..2361a2160 100644 --- a/openbsc/include/openbsc/mgcp.h +++ b/openbsc/include/openbsc/mgcp.h @@ -79,12 +79,13 @@ typedef int (*mgcp_policy)(struct mgcp_config *cfg, int endpoint, int state, con typedef int (*mgcp_reset)(struct mgcp_config *cfg); struct mgcp_config { + /* common configuration */ int source_port; char *local_ip; char *source_addr; - unsigned int number_endpoints; char *bts_ip; + /* default endpoint data */ struct in_addr bts_in; char *audio_name; int audio_payload; @@ -92,16 +93,21 @@ struct mgcp_config { int early_bind; int rtp_base_port; + /* only used in forward mode */ char *forward_ip; int forward_port; + unsigned int last_call_id; + + /* endpoint configuration */ + unsigned int number_endpoints; + struct mgcp_endpoint *endpoints; + + /* callback functionality */ mgcp_change change_cb; mgcp_policy policy_cb; mgcp_reset reset_cb; void *data; - - struct mgcp_endpoint *endpoints; - unsigned int last_call_id; }; /* config management */ |