add CTY-3304
[spider.git] / src / sel.h
index 664a55a8d49b6a01bd6b234f5983f93ac934a2b5..5fb1d3c68b89bd208283c84a06f83029723a2327 100755 (executable)
--- a/src/sel.h
+++ b/src/sel.h
@@ -8,26 +8,22 @@
  * $Header$
  * 
  * $Log$
- * Revision 1.1  2000-03-26 00:03:30  djk
- * first cut of client
- *
- * Revision 1.3  1998/01/02 19:39:57  djk
- * made various changes to cope with glibc
- * fixed problem with extended status in etsi_router
+ * Revision 1.5  2002-01-27 15:39:59  minima
+ * get rid of warning
  *
- * Revision 1.2  1997/06/18 18:44:31  djk
- * A working hayes implementation!
+ * Revision 1.4  2002/01/27 15:35:33  minima
+ * try to fix EOF on standard input problems
  *
- * Revision 1.1  1997/01/28 16:14:23  djk
- * moved these into lib as general routines to use with sel
+ * Revision 1.3  2000/07/20 14:16:00  minima
+ * can use Sourceforge now!
+ * added user->qra cleaning
+ * added 4 digit qra to user broadcast dxspots if available
  *
- * Revision 1.3  1997/01/20 22:30:31  djk
- * Added modem connection for incoming SMS messages
- * Added stats message
- * Added multipack
+ * Revision 1.2  2000/03/26 14:22:59  djk
+ * removed some irrelevant log info
  *
- * Revision 1.2  1997/01/13 23:34:56  djk
- * The first working test version of smsd
+ * Revision 1.1  2000/03/26 00:03:30  djk
+ * first cut of client
  *
  * Revision 1.1  1997/01/03 23:44:31  djk
  * initial workings
@@ -51,6 +47,7 @@ typedef struct {
        void *fcb;                                                 /* any fcb associated with this thing */
        reft *msgbase;                                     /* any messages for this port */
        int (*handler)();                                  /* the handler for this thingy */
+       void (*closehandler)();         /* special close handler */
 } sel_t;
 
 extern sel_t *sel;
@@ -65,18 +62,11 @@ extern struct timeval sel_tv;
 #define SEL_ERROR 4
 #define SEL_IOALL 7
 
-#define SEL_ETSI 1
-#define SEL_RMIP 2
-#define SEL_SVLP 3
-#define SEL_TCP 4
-#define SEL_X28 5
-#define SEL_STDIO 6
-#define SEL_DIALDLE 7
-#define SEL_NOKIA 8
-
 void sel_init(int, long, long);                                           /* initialise the select thing */
 void sel_run();                                                   /* run the select multiplexor */
 sel_t *sel_open(int, void *, char *, int (*)(), int, int);/*  initialise a slot */
+void sel_closehandler(sel_t *, void (*)());    /* post a closehandler for this cnum */
+
 void sel_close(sel_t *);
 int sel_error(sel_t *, int);              /* set/clear error flag */