<p>pespin <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/21748">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Convert GprsMS and helpers classes to C<br><br>As we integrate osmo-pcu more and more with libosmocore features, it<br>becomes really hard to use them since libosmocore relies heavily on C<br>specific compilation features, which are not available in old C++<br>compilers (such as designated initializers for complex types in FSMs).<br><br>GprsMs is right now a quite simple object since initial design of<br>osmo-pcu made it optional and most of the logic was placed and stored<br>duplicated in TBF objects. However, that's changing as we introduce more<br>features, with the GprsMS class getting more weight. Hence, let's move<br>it now to be a C struct in order to be able to easily use libosmocore<br>features there, such as FSMs.<br><br>Some helper classes which GprsMs uses are also mostly move to C since<br>they are mostly structs with methods, so there's no point in having<br>duplicated APIs for C++ and C for such simple cases.<br><br>For some more complex classes, like (ul_,dl_)tbf, C API bindings are<br>added where needed so that GprsMs can use functionalitites from that<br>class. Most of those APIs can be kept afterwards and drop the C++ ones<br>since they provide no benefit in general.<br><br>Change-Id: I0b50e3367aaad9dcada76da97b438e452c8b230c<br>---<br>M src/Makefile.am<br>M src/bts.cpp<br>M src/bts.h<br>M src/encoding.cpp<br>A src/gprs_ms.c<br>D src/gprs_ms.cpp<br>M src/gprs_ms.h<br>M src/gprs_ms_storage.cpp<br>M src/gprs_ms_storage.h<br>M src/gprs_rlcmac_sched.cpp<br>M src/gprs_rlcmac_ts_alloc.cpp<br>M src/llc.cpp<br>M src/llc.h<br>M src/pcu_l1_if.cpp<br>M src/pcu_l1_if.h<br>M src/pcu_utils.h<br>M src/pcu_vty_functions.cpp<br>M src/pdch.cpp<br>M src/tbf.cpp<br>M src/tbf.h<br>M src/tbf_dl.cpp<br>M src/tbf_dl.h<br>M src/tbf_ul.cpp<br>M src/tbf_ul.h<br>M tests/alloc/AllocTest.cpp<br>M tests/app_info/AppInfoTest.cpp<br>M tests/app_info/AppInfoTest.err<br>M tests/edge/EdgeTest.cpp<br>M tests/llc/LlcTest.cpp<br>M tests/ms/MsTest.cpp<br>M tests/tbf/TbfTest.cpp<br>M tests/types/TypesTest.cpp<br>32 files changed, 1,973 insertions(+), 1,920 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/48/21748/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/21748">change 21748</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/c/osmo-pcu/+/21748"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I0b50e3367aaad9dcada76da97b438e452c8b230c </div>
<div style="display:none"> Gerrit-Change-Number: 21748 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>