<p style="white-space: pre-wrap; word-wrap: break-word;">Rationale:</p><p style="white-space: pre-wrap; word-wrap: break-word;">gsm_04_08_utils.c and bsc_api.c contain functions that rx/tx messages over Abis RSL. Some small programs/tests that pull in gsm_04_08_utils.c then pull in the entire Abis dependencies.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Looking at it again, the functions of 04_08_utils.c used elsewhere than abis_rsl.c are:</p><p style="white-space: pre-wrap; word-wrap: break-word;">gsm_net_update_ctype() in bsc_vty.c, bsc_init.c</p><p style="white-space: pre-wrap; word-wrap: break-word;">gsm48_create_loc_upd_rej() in osmo_bsc_api.c</p><p style="white-space: pre-wrap; word-wrap: break-word;">gsm48_multirate_config() in osmo_bsc_api.c</p><p style="white-space: pre-wrap; word-wrap: break-word;">gsm48_extract_mi() in bsc_msg_filter.c</p><p style="white-space: pre-wrap; word-wrap: break-word;">gsm48_paging_extract_mi() in osmo_bsc_api.c and bsc_msg_filter.c</p><p style="white-space: pre-wrap; word-wrap: break-word;">str_to_imsi() in pcu_sock.c, paging.c, bsc_vty.c</p><p style="white-space: pre-wrap; word-wrap: break-word;">(weird dependency example: msg_filter test needing Abis RSL, ...)</p><p style="white-space: pre-wrap; word-wrap: break-word;">Maybe it makes more sense to move some of those out. I think "_utils" still is a misnomer for the central Abis RR implementation, could become abis_rr.c, but we don't really need to rename the file.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Then there is bsc_api.c, that appears to have been a kitchen sink for everything and anything. We removed struct bsc_api already. Do we agree on moving bsc_api.c's RR functions? If gsm_04_08_utils.c is the main "RR" file, then maybe handle_rr_ho_*() and gsm_04_08_rcvmsg should move from bsc_api.c to gsm_04_08_utils.c instead of abis_rsl.c?</p><p style="white-space: pre-wrap; word-wrap: break-word;">(The only functions left in bsc_api.c are gsm0808_page() and gsm0808_cipher_mode(), maybe they can move to the callers, paging.c and osmo_bsc_bssap.c, to completely drop bsc_api.c)</p><p><a href="https://gerrit.osmocom.org/9669">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/9669">change 9669</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/9669"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ie8ee334145bf7bc3a601d395ea7ab9b2009b61c7 </div>
<div style="display:none"> Gerrit-Change-Number: 9669 </div>
<div style="display:none"> Gerrit-PatchSet: 12 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 23 Jul 2018 01:40:25 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>