aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-07 07:32:51 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-07 07:32:51 +0100
commita1da251c10940291581f016e89e18d91803b9b95 (patch)
treec09f998a0651631ba03b69520ce04b5de8622c68 /src/tbf.h
parent096f6f9f39a078ee45bc9dcba6fb7cc2a10936cb (diff)
tbf: Move the tbf_handle and tbf_append_data into the class
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/tbf.h b/src/tbf.h
index b6d5d30..dcaa650 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -131,6 +131,12 @@ struct gprs_rlcmac_tbf {
/* blocks were acked */
int rcv_data_block_acknowledged(const uint8_t *data, size_t len, int8_t rssi);
+ /* dispatch Unitdata.DL messages */
+ static int handle(struct gprs_rlcmac_bts *bts,
+ const uint32_t tlli, const char *imsi, const uint8_t ms_class,
+ const uint16_t delay_csec, const uint8_t *data, const uint16_t len);
+
+
int rlcmac_diag();
int update();
@@ -257,14 +263,12 @@ struct gprs_rlcmac_tbf {
protected:
gprs_rlcmac_bts *bts_data() const;
+ int append_data(const uint8_t ms_class,
+ const uint16_t pdu_delay_csec,
+ const uint8_t *data, const uint16_t len);
};
-/* dispatch Unitdata.DL messages */
-int tbf_handle(struct gprs_rlcmac_bts *bts,
- const uint32_t tlli, const char *imsi, const uint8_t ms_class,
- const uint16_t delay_csec, const uint8_t *data, const uint16_t len);
-
struct gprs_rlcmac_tbf *tbf_alloc_ul(struct gprs_rlcmac_bts *bts,
int8_t use_trx, uint8_t ms_class,
uint32_t tlli, uint8_t ta, struct gprs_rlcmac_tbf *dl_tbf);