Skip to content
Success

Changes

Summary

  1. mgw: Rename and move code freeing endp connection (details)
Commit 546983cdbc07821926a081f615b32d5a7f9c2d77 by Pau Espin Pedrol
mgw: Rename and move code freeing endp connection

All the code to free conns in an endpoint is really entanged, which also
makes it inefficient in several places because the list of conns is
iterated twice, or even ~N*2.

* Move code freeing the conn object to its own mgcp_conn_free()
  function.
* Rename functions acting on endp to be mgcp_endp_* prefix, and move
  them to mgcp_endp.{c,h}.
* Remove old mgcp_conn_free(endp, id) since it's not really needed
  anymore.

Change-Id: I9a87a07699dd8aa7856d5036e9b95a4ddf699a15
The file was modifiedinclude/osmocom/mgcp/mgcp_conn.h
The file was modifiedtests/mgcp/mgcp_test.c
The file was modifiedsrc/libosmo-mgcp/mgcp_endp.c
The file was modifiedinclude/osmocom/mgcp/mgcp_endp.h
The file was modifiedsrc/libosmo-mgcp/mgcp_protocol.c
The file was modifiedsrc/libosmo-mgcp/mgcp_conn.c