diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-13 20:05:00 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-13 20:05:00 +0100 |
commit | 796270bf83d593e23e92d0ca50bfd29692e43b2e (patch) | |
tree | 7af1d0acab80344699a323abd46620d268010aa7 /src/tbf.h | |
parent | 9241fd0957d44d2b60b74afd9022b01a1ea110ba (diff) |
rlc: Put a block and the length into a separate object
This will ease passing things around.
Diffstat (limited to 'src/tbf.h')
-rw-r--r-- | src/tbf.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -85,13 +85,19 @@ enum gprs_rlcmac_tbf_direction { #define GPRS_RLCMAC_FLAG_TO_DL_ASS 7 #define GPRS_RLCMAC_FLAG_TO_MASK 0xf0 /* timeout bits */ +struct gprs_rlc_data { + /* block history */ + uint8_t block[RLC_MAX_LEN]; + /* block len of history */ + uint8_t len; +}; + /* * I hold the currently transferred blocks and will provide * the routines to manipulate these arrays. */ struct gprs_rlc { - uint8_t block[RLC_MAX_SNS/2][RLC_MAX_LEN]; /* block history */ - uint8_t block_len[RLC_MAX_SNS/2]; /* block len of history */ + gprs_rlc_data blocks[RLC_MAX_SNS/2]; }; struct gprs_rlcmac_tbf { |