]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn.h
Fix redundant redeclaration of Conn_Count*() functions
[ngircd-alex.git] / src / ngircd / conn.h
index 983c88448d9a9cb004c8b38dcd233c1a4696d923..96d1f33b144cc7151e7892ed12f13fefe33a82fc 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2009 by Alexander Barton (alex@barton.de)
+ * Copyright (c)2001-2010 Alexander Barton <alex@barton.de>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -88,7 +88,7 @@ typedef struct _Connection
        ZIPDATA zip;                    /* Compression information */
 #endif  /* ZLIB */
 #ifdef SSL_SUPPORT
-       struct ConnSSL_State    ssl_state;      /* SSL/GNUTLS state information */
+       struct ConnSSL_State ssl_state; /* SSL/GNUTLS state information */
 #endif
 } CONNECTION;
 
@@ -107,7 +107,7 @@ GLOBAL void Conn_ExitListeners PARAMS(( void ));
 
 GLOBAL void Conn_Handler PARAMS(( void ));
 
-GLOBAL bool Conn_WriteStr PARAMS(( CONN_ID Idx, char *Format, ... ));
+GLOBAL bool Conn_WriteStr PARAMS(( CONN_ID Idx, const char *Format, ... ));
 
 GLOBAL void Conn_Close PARAMS(( CONN_ID Idx, const char *LogMsg, const char *FwdMsg, bool InformClient ));
 
@@ -120,6 +120,11 @@ GLOBAL bool Conn_UsesSSL PARAMS((CONN_ID Idx));
 #else
 static inline bool Conn_UsesSSL(UNUSED CONN_ID Idx) { return false; }
 #endif
+
+GLOBAL long Conn_Count PARAMS((void));
+GLOBAL long Conn_CountMax PARAMS((void));
+GLOBAL long Conn_CountAccepted PARAMS((void));
+
 #endif