| Revision: | 1.3 |
| Committed: | Tue Aug 28 17:08:06 2007 UTC (19 years, 1 month ago) by pippijn |
| Content type: | text/plain |
| Branch: | MAIN |
| Changes since 1.2: | +7 -7 lines |
| Log Message: | - changed name - updated the example config to the new system - added more documentation - enhanced documentation generators - added a link to the pdf to the website - added an RSS feed generator - transitioned hooks to c++ callbacks - did various merges with upstream along the way - added const where appropriate - removed the old block allocator - fixed most memory leaks - transitioned some dictionaries to std::map - transitioned some lists to std::vector - made some free functions members where appropriate - renamed string to dynstr and added a static string ststr - use NOW instead of time (NULL) if possible - completely reworked database backends, crypto handlers and protocol handlers to use an object factory - removed the old module system. ermyth does not do any dynamic loading anymore - fixed most of the build system - reworked how protocol commands work |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | pippijn | 1.1 | /* |
| 2 | pippijn | 1.3 | * Copyright © 2005 atheme.org. |
| 3 | pippijn | 1.2 | * Rights to this code are as documented in doc/pod/license.pod. |
| 4 | pippijn | 1.1 | * |
| 5 | * Event stuff. | ||
| 6 | * | ||
| 7 | pippijn | 1.3 | * $Id: event.h,v 1.2 2007-07-21 01:29:07 pippijn Exp $ |
| 8 | pippijn | 1.1 | */ |
| 9 | |||
| 10 | #ifndef EVENT_H | ||
| 11 | #define EVENT_H | ||
| 12 | |||
| 13 | typedef void EVH (void *); | ||
| 14 | |||
| 15 | /* event list struct */ | ||
| 16 | pippijn | 1.3 | struct ev_entry : zero_initialised |
| 17 | pippijn | 1.1 | { |
| 18 | EVH *func; | ||
| 19 | void *arg; | ||
| 20 | pippijn | 1.3 | char const *name; |
| 21 | pippijn | 1.1 | time_t frequency; |
| 22 | time_t when; | ||
| 23 | bool active; | ||
| 24 | }; | ||
| 25 | |||
| 26 | E struct ev_entry event_table[MAX_EVENTS]; | ||
| 27 | pippijn | 1.3 | E char const *last_event_ran; |
| 28 | pippijn | 1.1 | |
| 29 | pippijn | 1.3 | E unsigned int event_add (char const * const name, EVH * func, void *arg, time_t when); |
| 30 | E unsigned int event_add_once (char const * const name, EVH * func, void *arg, time_t when); | ||
| 31 | pippijn | 1.1 | E void event_run (void); |
| 32 | E time_t event_next_time (void); | ||
| 33 | E void event_delete (EVH * func, void *arg); | ||
| 34 | E unsigned int event_find (EVH * func, void *arg); | ||
| 35 | |||
| 36 | #endif |