ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/releases/8.2.21/include/event.h
Revision: 3377
Committed: Thu Apr 24 16:15:51 2014 UTC (12 years, 6 months ago) by michael
Content type: text/x-chdr
Original Path: ircd-hybrid/branches/8.2.x/include/event.h
File size: 1672 byte(s)
Log Message:
- Create 8.2.x branch

File Contents

# User Rev Content
1 adx 30 /*
2 michael 2865 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 adx 30 *
4 michael 2865 * Copyright (c) 2000-2014 ircd-hybrid development team
5 adx 30 *
6     * This program is free software; you can redistribute it and/or modify
7     * it under the terms of the GNU General Public License as published by
8     * the Free Software Foundation; either version 2 of the License, or
9     * (at your option) any later version.
10     *
11     * This program is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with this program; if not, write to the Free Software
18     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19     * USA
20     */
21    
22 michael 2865 /*! \file event.h
23     * \brief The ircd event header.
24     * \version $Id$
25     */
26    
27 adx 30 #ifndef INCLUDED_event_h
28     #define INCLUDED_event_h
29 michael 1654 #include "client.h"
30 adx 30
31     /*
32     * How many event entries we need to allocate at a time in the block
33 michael 2865 * allocator.
34 adx 30 */
35 michael 2865 #define MAX_EVENTS 50
36 adx 30
37    
38     typedef void EVH(void *);
39    
40     /* The list of event processes */
41     struct ev_entry
42     {
43     EVH *func;
44     void *arg;
45     const char *name;
46     time_t frequency;
47     time_t when;
48     int active;
49     };
50    
51     extern void eventAdd(const char *, EVH *, void *, time_t);
52     extern void eventAddIsh(const char *, EVH *, void *, time_t);
53     extern void eventRun(void);
54     extern time_t eventNextTime(void);
55     extern void eventInit(void);
56     extern void eventDelete(EVH *, void *);
57     extern void set_back_events(time_t);
58     extern void show_events(struct Client *);
59     #endif /* INCLUDED_event_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision