X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/9df1e2106928f0ff775e52b213c5a7783cb6e176..4790f418abab615bcada28984b794fdd73ef3f72:/sel.h?ds=sidebyside diff --git a/sel.h b/sel.h index 338ea20..bd767d6 100644 --- a/sel.h +++ b/sel.h @@ -1,6 +1,6 @@ /* -*-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 * @@ -30,6 +30,9 @@ /*----- 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. * @@ -134,7 +137,7 @@ typedef struct sel_state { 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 */ @@ -147,7 +150,7 @@ typedef struct sel_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 */ @@ -174,7 +177,7 @@ typedef void (*sel_hookfn)(sel_state */*s*/, 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;