3 #ifndef _EVENTS_H_INCLUDED_
4 #define _EVENTS_H_INCLUDED_
12 /* #include <events.h>
24 typedef void (*EVENT_NOTIFY_RDWR
) (int, char *);
25 typedef void (*EVENT_NOTIFY_TIME
) (int, char *);
27 extern time_t event_time(void);
28 extern void event_enable_read(int, EVENT_NOTIFY_RDWR
, char *);
29 extern void event_enable_write(int, EVENT_NOTIFY_RDWR
, char *);
30 extern void event_disable_readwrite(int);
31 extern time_t event_request_timer(EVENT_NOTIFY_TIME
, char *, int);
32 extern int event_cancel_timer(EVENT_NOTIFY_TIME
, char *);
33 extern void event_loop(int);
34 extern void event_drain(int);
39 #define EVENT_READ (1<<0) /* read event */
40 #define EVENT_WRITE (1<<1) /* write event */
41 #define EVENT_XCPT (1<<2) /* exception */
42 #define EVENT_TIME (1<<3) /* timer event */
44 #define EVENT_ERROR EVENT_XCPT
49 #define EVENT_NULL_TYPE 0
50 #define EVENT_NULL_CONTEXT ((char *) 0)
55 /* The Secure Mailer license must be distributed with this software.
58 /* IBM T.J. Watson Research
60 /* Yorktown Heights, NY 10598, USA
62 /* Wed Jan 29 17:00:03 EST 1997