aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-26 18:01:35 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:11 +0100
commit86300bbeea0601e2a1be34021f438433b5f01a27 (patch)
tree86d5c58c9c36f964b711df21e40206bf88786037 /src/tbf.h
parentaf8094d7995daccd5255b6f7450c3faef6409ef1 (diff)
tbf: Move the timer routine into the class
The timer is used for various timeouts and there is still external client code that is calling it. In a perfect world the client code would indicate that an event has happened and the internal timer will be stopped. The best compromise is the "stop_t3191" method. It allows to add semantic verification that the timer has been running.
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 5742032..3e8346c 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -103,6 +103,8 @@ struct gprs_rlcmac_tbf {
int update();
void handle_timeout();
+ void stop_timer();
+ void stop_t3191();
struct llist_head list;
uint32_t state_flags;
@@ -239,8 +241,6 @@ void tbf_new_state(struct gprs_rlcmac_tbf *tbf,
void tbf_timer_start(struct gprs_rlcmac_tbf *tbf, unsigned int T,
unsigned int seconds, unsigned int microseconds);
-void tbf_timer_stop(struct gprs_rlcmac_tbf *tbf);
-
inline bool gprs_rlcmac_tbf::state_is(enum gprs_rlcmac_tbf_state rhs) const
{
return state == rhs;