aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-20 08:44:02 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:10 +0100
commit1702f102afd042b0e91a0d3f23edc83632cec94f (patch)
treef4118b8a04ba800b7597784818936fdd637aa5eb /src/tbf.h
parent7ce21eb042124b05faba929712de61de415973d0 (diff)
tbf: First round of removing llc handling from the rlcmac_data
The code in gprs_rlcmac_data should ask the TBF for help in packing the frames but it really shouldn't poke in the internals of the tbf structure. This is very bad capsuling and has plenty of copy and paste. At the same thime this will be the most dangerous refactoring of the code base.
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tbf.h b/src/tbf.h
index addf651a..0441096f 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -22,6 +22,8 @@
#include <stdint.h>
+struct bssgp_bvc_ctx;
+
/*
* TBF instance
*/
@@ -90,6 +92,10 @@ struct gprs_rlcmac_tbf {
bool state_is_not(enum gprs_rlcmac_tbf_state rhs) const;
void set_state(enum gprs_rlcmac_tbf_state new_state);
+ /* TODO: add the gettimeofday as parameter */
+ struct msgb *llc_dequeue(bssgp_bvc_ctx *bctx);
+ void update_llc_frame(struct msgb *msg);
+
int rlcmac_diag();
struct llist_head list;