forked from balabit/libtermcapparser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfake_timing.c
37 lines (31 loc) · 866 Bytes
/
fake_timing.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* timing.c
*
* This module tracks any timers set up by schedule_timer(). It
* keeps all the currently active timers in a list; it informs the
* front end of when the next timer is due to go off if that
* changes; and, very importantly, it tracks the context pointers
* passed to schedule_timer(), so that if a context is freed all
* the timers associated with it can be immediately annulled.
*/
#include <assert.h>
#include <stdio.h>
#include <putty.h>
long schedule_timer(int ticks, timer_fn_t fn, void *ctx)
{
return 0;
}
/*
* Call to run any timers whose time has reached the present.
* Returns the time (in ticks) expected until the next timer after
* that triggers.
*/
int run_timers(long anow, long *next)
{
return 0;
}
/*
* Call to expire all timers associated with a given context.
*/
void expire_timer_context(void *ctx)
{ }