The functions are already exported, also export the declarations
since they are useful and easier to use than f.i. using libevent
directly.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Make sure dect_timer_running() returns the proper result for timers that
have already expired by adding a new function to invoke the timer callback
that resets the state to DECT_TIMER_STOPPED before invoking the callback.
Additionally unexport the timer structure and add an accessor function
for the private storage area to make sure all timer invocations happen
through the new function.
Signed-off-by: Patrick McHardy <kaber@trash.net>