Attention is currently required from: dexter.
pespin has posted comments on this change. (
https://gerrit.osmocom.org/c/osmo-mgw/+/34351?usp=email )
Change subject: mgcp_client_fsm: fix inconsistent API (param_present, param).
......................................................................
Patch Set 2:
(3 comments)
File include/osmocom/mgcp_client/mgcp_client.h:
https://gerrit.osmocom.org/c/osmo-mgw/+/34351/comment/79964b57_02605264
PS2, Line 121: struct mgcp_msg {
If this struct is being allocated outside of the library, now it's for sure the moment
to add an alloc function! :)
File include/osmocom/mgcp_client/mgcp_client_fsm.h:
https://gerrit.osmocom.org/c/osmo-mgw/+/34351/comment/09ee5baf_57243b68
PS2, Line 70: struct mgcp_codec_param2 codecs_param[MGCP_MAX_CODECS];
as soon as you add a field to "struct mgcp_codec_param2", the size of the struct
will and change any program using the old size will really be fucked up doing weird stuff
on this array.
This should be given a second thought in order to improve the API so that we don't go
breaking stuff every time we want to support something new.
We should start by having an API to allocate this struct from within the library...
File src/libosmo-mgcp-client/mgcp_client.c:
https://gerrit.osmocom.org/c/osmo-mgw/+/34351/comment/e000e601_6828c6b9
PS2, Line 1376: LOGPMGW(mgcp, LOGL_DEBUG, "using depreacted struct member
mgcp_msg->param, please use mgcp_msg->codecs_param!\n");
only debug?
--
To view, visit
https://gerrit.osmocom.org/c/osmo-mgw/+/34351?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I50d737f3f3d45e4004c64101700a471fe75b3436
Gerrit-Change-Number: 34351
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 08 Sep 2023 16:52:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment