File: timer.h

package info (click to toggle)
teknap 1.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,428 kB
  • ctags: 6,297
  • sloc: ansic: 55,591; makefile: 545; sh: 112
file content (27 lines) | stat: -rw-r--r-- 721 bytes parent folder | download
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
 /* $Id: timer.h,v 1.1.1.1 2000/06/22 09:35:07 edwards Exp $ */
 
/*
 * timer.h: header for timer.c 
 * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT 
 */

#ifndef _TIMER_H_
#define _TIMER_H_

/* functions that may be called by others */
BUILT_IN_COMMAND(timercmd);
extern	void	ExecuteTimers (void);
extern	char	*add_timer (int, char *, double, long, int (*) (void *, char *), char *, char *, int, char *);
extern	int	delete_timer (char *);
extern	int	get_delete_timer(char *);
extern	int	kill_timer(char *);
extern	void	delete_all_timers (void);
extern	int	timer_exists (char *ref);


extern	time_t	TimerTimeout (void);
int		timer_callback_exists(void *);

#define MAGIC_TIMEOUT 100000000

#endif /* _TIMER_H_ */