Make const args

master
Ismael Gomez 4 years ago committed by Xavier Arteaga
parent e2154d2213
commit c9daf1f61a

@ -234,9 +234,11 @@ SRSLTE_API char* srslte_dci_format_string(srslte_dci_format_t format);
SRSLTE_API char* srslte_dci_format_string_short(srslte_dci_format_t format); SRSLTE_API char* srslte_dci_format_string_short(srslte_dci_format_t format);
SRSLTE_API bool srslte_location_find(srslte_dci_location_t* locations, uint32_t nof_locations, srslte_dci_location_t x); SRSLTE_API bool
srslte_location_find(const srslte_dci_location_t* locations, uint32_t nof_locations, srslte_dci_location_t x);
SRSLTE_API bool srslte_location_find_ncce(srslte_dci_location_t* locations, uint32_t nof_locations, uint32_t ncce); SRSLTE_API bool
srslte_location_find_ncce(const srslte_dci_location_t* locations, uint32_t nof_locations, uint32_t ncce);
SRSLTE_API int srslte_dci_location_set(srslte_dci_location_t* c, uint32_t L, uint32_t nCCE); SRSLTE_API int srslte_dci_location_set(srslte_dci_location_t* c, uint32_t L, uint32_t nCCE);

@ -1385,7 +1385,7 @@ int srslte_dci_msg_unpack_pusch(srslte_cell_t* cell,
return dci_format0_unpack(cell, sf, cfg, msg, dci); return dci_format0_unpack(cell, sf, cfg, msg, dci);
} }
bool srslte_location_find(srslte_dci_location_t* locations, uint32_t nof_locations, srslte_dci_location_t x) bool srslte_location_find(const srslte_dci_location_t* locations, uint32_t nof_locations, srslte_dci_location_t x)
{ {
for (uint32_t i = 0; i < nof_locations; i++) { for (uint32_t i = 0; i < nof_locations; i++) {
if (locations[i].L == x.L && locations[i].ncce == x.ncce) { if (locations[i].L == x.L && locations[i].ncce == x.ncce) {
@ -1395,7 +1395,7 @@ bool srslte_location_find(srslte_dci_location_t* locations, uint32_t nof_locatio
return false; return false;
} }
bool srslte_location_find_ncce(srslte_dci_location_t* locations, uint32_t nof_locations, uint32_t ncce) bool srslte_location_find_ncce(const srslte_dci_location_t* locations, uint32_t nof_locations, uint32_t ncce)
{ {
for (uint32_t i = 0; i < nof_locations; i++) { for (uint32_t i = 0; i < nof_locations; i++) {
if (locations[i].ncce == ncce) { if (locations[i].ncce == ncce) {

Loading…
Cancel
Save