]>
Commit | Line | Data |
---|---|---|
db137867 AC |
1 | /* |
2 | * ircd-ratbox: A slightly useful ircd. | |
3 | * event.h: The ircd event header. | |
4 | * | |
5 | * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center | |
6 | * Copyright (C) 1996-2002 Hybrid Development Team | |
7 | * Copyright (C) 2002-2005 ircd-ratbox development team | |
8 | * | |
9 | * This program is free software; you can redistribute it and/or modify | |
10 | * it under the terms of the GNU General Public License as published by | |
11 | * the Free Software Foundation; either version 2 of the License, or | |
12 | * (at your option) any later version. | |
13 | * | |
14 | * This program is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * You should have received a copy of the GNU General Public License | |
20 | * along with this program; if not, write to the Free Software | |
21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 | |
22 | * USA | |
23 | * | |
db137867 AC |
24 | */ |
25 | ||
26 | #ifndef RB_LIB_H | |
3202e249 | 27 | # error "Do not use event.h directly" |
db137867 AC |
28 | #endif |
29 | ||
30 | #ifndef INCLUDED_event_h | |
31 | #define INCLUDED_event_h | |
32 | ||
33 | struct ev_entry; | |
34 | typedef void EVH(void *); | |
35 | ||
36 | struct ev_entry *rb_event_add(const char *name, EVH * func, void *arg, time_t when); | |
37 | struct ev_entry *rb_event_addonce(const char *name, EVH * func, void *arg, time_t when); | |
38 | struct ev_entry *rb_event_addish(const char *name, EVH * func, void *arg, time_t delta_ish); | |
39 | void rb_event_run(void); | |
40 | void rb_event_init(void); | |
41 | void rb_event_delete(struct ev_entry *); | |
42 | void rb_event_find_delete(EVH * func, void *); | |
43 | void rb_event_update(struct ev_entry *, time_t freq); | |
44 | void rb_set_back_events(time_t); | |
3202e249 | 45 | void rb_dump_events(void (*func) (char *, void *), void *ptr); |
db137867 AC |
46 | void rb_run_event(struct ev_entry *); |
47 | time_t rb_event_next(void); | |
48 | ||
49 | #endif /* INCLUDED_event_h */ |