diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-12-25 00:19:45 +0100 |
---|---|---|
committer | fixeria <vyanitskiy@sysmocom.de> | 2021-01-03 22:23:11 +0000 |
commit | 8f5844ed01f0bc85c595d853921c41924d60a65d (patch) | |
tree | c30f17279d371fb403cbaf938e10679751a9729b /include/osmocom | |
parent | 886e742935ad574d4643e5bcae4ce5dc96e47471 (diff) |
gsm_08_58: add flexible array member to 'struct ipac_preproc_ave_cfg'
Some averaging methods may have additional parameters, so let's
make it easier to access them for the API user.
Change-Id: I2f4ed56837dd479dbbd10c0a7df0ed7565d3946a
Related: SYS#4918
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/gsm/protocol/gsm_08_58.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_08_58.h b/include/osmocom/gsm/protocol/gsm_08_58.h index 046d3585..e9c14e6c 100644 --- a/include/osmocom/gsm/protocol/gsm_08_58.h +++ b/include/osmocom/gsm/protocol/gsm_08_58.h @@ -775,10 +775,12 @@ struct ipac_preproc_ave_cfg { reserved:1; uint8_t h_reqt:5, ave_method:3; + uint8_t params[0]; #elif OSMO_IS_BIG_ENDIAN /* auto-generated from the little endian part above (libosmocore/contrib/struct_endianess.py) */ uint8_t reserved:1, param_id:2, h_reqave:5; uint8_t ave_method:3, h_reqt:5; + uint8_t params[0]; #endif }__attribute__ ((packed)); |