X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fconn-func.h;h=9a1859d38ce7a15684526016133b72bda43cbb0c;hb=627b0b713c52406e50c84bb9459e7794262920a2;hp=9da3dfb80418591d247c39b3adff6d031177d0ae;hpb=dd3a3bc6039bc1fd1a89ffb834f08665c8035b6a;p=ngircd.git diff --git a/src/ngircd/conn-func.h b/src/ngircd/conn-func.h index 9da3dfb8..9a1859d3 100644 --- a/src/ngircd/conn-func.h +++ b/src/ngircd/conn-func.h @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de) + * Copyright (c)2001-2008 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 @@ -8,8 +8,6 @@ * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. * - * $Id: conn-func.h,v 1.5 2006/05/10 21:24:01 alex Exp $ - * * Connection management: Global functions (header) */ @@ -22,11 +20,16 @@ * containing connection handling functions. So other modules must only * include this conn-func.h header. */ #ifndef CONN_MODULE -# include "conn.h" +#include "conn.h" +#else +#define Conn_OPTION_ADD( x, opt ) ( (x)->options |= (opt) ) +#define Conn_OPTION_DEL( x, opt ) ( (x)->options &= ~(opt) ) +#define Conn_OPTION_ISSET( x, opt ) ( ((x)->options & (opt)) != 0) #endif GLOBAL void Conn_UpdateIdle PARAMS(( CONN_ID Idx )); +GLOBAL time_t Conn_GetSignon PARAMS((CONN_ID Idx)); GLOBAL time_t Conn_GetIdle PARAMS(( CONN_ID Idx )); GLOBAL time_t Conn_LastPing PARAMS(( CONN_ID Idx )); GLOBAL time_t Conn_StartTime PARAMS(( CONN_ID Idx )); @@ -48,14 +51,11 @@ GLOBAL CONN_ID Conn_First PARAMS(( void )); GLOBAL CONN_ID Conn_Next PARAMS(( CONN_ID Idx )); GLOBAL UINT16 Conn_Options PARAMS(( CONN_ID Idx )); +GLOBAL void Conn_SetOption PARAMS(( CONN_ID Idx, int Option )); GLOBAL void Conn_ResetWCounter PARAMS(( void )); GLOBAL long Conn_WCounter PARAMS(( void )); -#define Conn_OPTION_ADD( x, opt ) ( (x)->options |= opt ) -#define Conn_OPTION_DEL( x, opt ) ( (x)->options &= ~opt ) -#define Conn_OPTION_ISSET( x, opt ) ( (x)->options & opt ) - #endif