Please wait until the page is fully downloaded and then press the "Expand" button or the blue line numbers.
0029001 /*
0029002 inet/generic/event.h
0029003
0029004 Created: April 1995 by Philip Homburg <philip@cs.vu.nl>
0029005
0029006 Header file for an event mechanism.
0029007
0029008 Copyright 1995 Philip Homburg
0029009 */
0029010
0029011 #ifndef INET__GENERIC__EVENT_H
0029012 #define INET__GENERIC__EVENT_H
0029013
0029014 struct event;
0029015
0029016 typedef union ev_arg
0029017 {
0029018 int ev_int;
0029019 void *ev_ptr;
0029020 } ev_arg_t;
0029021
0029022 typedef void (*ev_func_t) ARGS(( struct event *ev, union ev_arg eva ));
0029023
0029024 typedef struct event
0029025 {
0029026 ev_func_t ev_func;
0029027 ev_arg_t ev_arg;
0029028 struct event *ev_next;
0029029 } event_t;
0029030
0029031 extern event_t *ev_head;
0029032
0029033 void ev_init ARGS(( event_t *ev ));
0029034 void ev_enqueue ARGS(( event_t *ev, ev_func_t func, ev_arg_t ev_arg ));
0029035 void ev_process ARGS(( void ));
0029036 int ev_in_queue ARGS(( event_t *ev ));
0029037
0029038 #endif /* INET__GENERIC__EVENT_H */
0029039
0029040 /*
0029041 * $PchId: event.h,v 1.4 1995/11/21 06:45:27 philip Exp $
0029042 */