diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-10-23 21:00:23 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-10-24 22:14:42 +0200 |
commit | b3f239785ccba762d8ebbf704a3da21208bc9dca (patch) | |
tree | 1ac413f8fae5d3bdcdd5254dc47034f74cd662d7 /src/tbf.h | |
parent | 834cbab97d096825d2f46e0cc9841adab3180997 (diff) |
tbf: Make window() available to tbf base class
Return an interface to the window base class so that the tbf base class
can access the common window methods, such as set_ws(). It will be used
in next commit to get rid of duplicated function enable_egprs in both
dl_tbf and ul_tbf subclasses.
The user of the function can then decide to access more specific
functionaltiites of the window class by static casting it to the
specific direction (which is known by the caller since it operates on a
ul_tbf or a dl_tbf).
Change-Id: Ia2e1decf91be1184668e28297c2126affb9c7ae4
Diffstat (limited to 'src/tbf.h')
-rw-r--r-- | src/tbf.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -185,6 +185,8 @@ struct gprs_rlcmac_tbf { static void free_all(struct gprs_rlcmac_trx *trx); static void free_all(struct gprs_rlcmac_pdch *pdch); + virtual gprs_rlc_window *window() = 0; + bool state_is(enum gprs_rlcmac_tbf_state rhs) const; bool state_is_not(enum gprs_rlcmac_tbf_state rhs) const; bool dl_ass_state_is(enum gprs_rlcmac_tbf_dl_ass_state rhs) const; |