/* -*-c-*-
*
- * $Id: sel.h,v 1.8 2001/06/22 19:35:58 mdw Exp $
+ * $Id: sel.h,v 1.9 2003/05/17 10:34:04 mdw Exp $
*
* I/O multiplexing support
*
/*----- Revision history --------------------------------------------------*
*
* $Log: sel.h,v $
+ * Revision 1.9 2003/05/17 10:34:04 mdw
+ * Tidying and bugfixing.
+ *
* Revision 1.8 2001/06/22 19:35:58 mdw
* Fix a large number of bugs.
*
typedef struct sel_file {
struct sel_file *next; /* Next file in the list */
- struct sel_file *prev; /* Previous file in the list */
+ struct sel_file **prev; /* Previous file in the list */
struct sel_state *s; /* Pointer to select multiplexor */
int fd; /* File descriptor */
unsigned mode; /* Interesting event for file */
typedef struct sel_timer {
struct sel_timer *next; /* Next timer in the list */
- struct sel_timer *prev; /* Previous timer in the list */
+ struct sel_timer **prev; /* Previous timer in the list */
struct timeval tv; /* Real time when timer should go */
void (*func)(struct timeval */*tv*/, void */*p*/); /* Handler function */
void *p; /* Argument for the handler */
typedef struct sel_hook {
struct sel_hook *next; /* Next hook in the list */
- struct sel_hook *prev; /* Previous hook in the list */
+ struct sel_hook **prev; /* Previous hook in the list */
sel_hookfn before, after; /* Hook functions */
void *p; /* Argument for the hook functions */
} sel_hook;