]> arthur.barton.de Git - ngircd-alex.git/commitdiff
- Semantik der Conn_xxxFlag()-Funktionen geaendert.
authorAlexander Barton <alex@barton.de>
Mon, 4 Nov 2002 12:31:27 +0000 (12:31 +0000)
committerAlexander Barton <alex@barton.de>
Mon, 4 Nov 2002 12:31:27 +0000 (12:31 +0000)
src/ngircd/conn.c
src/ngircd/conn.h

index 85a90095a57bf7d4be7ad70b89a2d6ecf39506d9..fd388b7e8f4866f5409375416e1e681036ecc491 100644 (file)
@@ -9,7 +9,7 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: conn.c,v 1.86 2002/11/02 23:00:45 alex Exp $
+ * $Id: conn.c,v 1.87 2002/11/04 12:31:27 alex Exp $
  *
  * connect.h: Verwaltung aller Netz-Verbindungen ("connections")
  */
@@ -76,7 +76,7 @@ typedef struct _Connection
        time_t lastprivmsg;             /* Letzte PRIVMSG */
        time_t delaytime;               /* Nicht beachten bis ("penalty") */
        LONG bytes_in, bytes_out;       /* Counter fuer Statistik */
-       BOOLEAN flagged;                /* Channel ist "markiert" (vgl. "irc-write"-Modul) */
+       INT flag;                       /* Channel-Flag (vgl. "irc-write"-Modul) */
 } CONNECTION;
 
 
@@ -601,27 +601,27 @@ Conn_ClearFlags( VOID )
 
        LONG i;
 
-       for( i = 0; i < Pool_Size; i++ ) My_Connections[i].flagged = FALSE;
+       for( i = 0; i < Pool_Size; i++ ) My_Connections[i].flag = 0;
 } /* Conn_ClearFlags */
 
 
-GLOBAL BOOLEAN
+GLOBAL INT
 Conn_Flag( CONN_ID Idx )
 {
        /* Ist eine Connection markiert (TRUE) oder nicht? */
 
        assert( Idx >= NONE );
-       return My_Connections[Idx].flagged;
+       return My_Connections[Idx].flag;
 } /* Conn_Flag */
 
 
 GLOBAL VOID
-Conn_SetFlag( CONN_ID Idx )
+Conn_SetFlag( CONN_ID Idx, INT Flag )
 {
        /* Connection markieren */
 
        assert( Idx >= NONE );
-       My_Connections[Idx].flagged = TRUE;
+       My_Connections[Idx].flag = Flag;
 } /* Conn_SetFlag */
 
 
@@ -1274,7 +1274,7 @@ Init_Conn_Struct( LONG Idx )
        My_Connections[Idx].delaytime = 0;
        My_Connections[Idx].bytes_in = 0;
        My_Connections[Idx].bytes_out = 0;
-       My_Connections[Idx].flagged = FALSE;
+       My_Connections[Idx].flag = 0;
 } /* Init_Conn_Struct */
 
 
index 5a8d3e10cedd5fa830f635e16f743980c3ce0a40..737933003c545a13a180bc2216e88fe3a5b5267f 100644 (file)
@@ -9,7 +9,7 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: conn.h,v 1.19 2002/11/02 22:58:19 alex Exp $
+ * $Id: conn.h,v 1.20 2002/11/04 12:31:27 alex Exp $
  *
  * conn.h: Verwaltung aller Netz-Verbindungen ("connections") (Header)
  */
@@ -45,8 +45,8 @@ GLOBAL VOID Conn_SetPenalty PARAMS(( CONN_ID Idx, time_t Seconds ));
 GLOBAL VOID Conn_ResetPenalty PARAMS(( CONN_ID Idx ));
 
 GLOBAL VOID Conn_ClearFlags PARAMS(( VOID ));
-GLOBAL BOOLEAN Conn_Flag PARAMS(( CONN_ID Idx ));
-GLOBAL VOID Conn_SetFlag PARAMS(( CONN_ID Idx ));
+GLOBAL INT Conn_Flag PARAMS(( CONN_ID Idx ));
+GLOBAL VOID Conn_SetFlag PARAMS(( CONN_ID Idx, INT Flag ));
 
 GLOBAL CONN_ID Conn_First PARAMS(( VOID ));
 GLOBAL CONN_ID Conn_Next PARAMS(( CONN_ID Idx ));