reduce levels in struct mgcp_conn_rtp
See struct mgcp_conn_rtp in mgcp_internal.h. Struct member struct mgcp_rtp_end end could be eliminated by putting all struct members from struct mgcp_rtp_end to struct mgcp_conn_rtp. This would reduce one level when dereferencing the pointers. The code would become more readable.
#3 Updated by dexter over 1 year ago
I had another look into this, but I see a problem. If we merge the structs we would also have to merge a lot more since struct mgcp_conn_rtp acts as an umbrellla for a lot of structs.
For example there is still:
struct mgcp_rtp_state state;
struct mgcp_rtp_tap tap_in;
struct mgcp_rtp_tap tap_out;