/******************************************************************************* * shroudBNC - an object-oriented framework for IRC * * Copyright (C) 2005-2011 Gunnar Beutner * * * * 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 the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * *******************************************************************************/ #if !defined(_WIN32) || defined(__MINGW32__) # include "../config.h" #endif /* !_WIN32 || __MINGW32__ */ #include "../sbnc_version.h" #ifdef _MSC_VER #pragma warning ( disable : 4996 ) #pragma warning ( disable : 4251 ) #define _CRT_SECURE_NO_DEPRECATE #undef _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1 #endif /* _CRT_SECURE_NO_DEPRECATE */ #undef SFD_SETSIZE #define SFD_SETSIZE 16384 #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef _WIN32 # include # include #endif #ifdef __cplusplus # include # define min(x, y) ((x) < (y) ? (x) : (y)) # define max(x, y) ((x) < (y) ? (y) : (x)) #endif /* __cplusplus */ #ifdef _WIN32 # include "win32.h" #else /* _WIN32 */ # include "unix.h" #endif /* _WIN32 */ #ifndef _MSC_VER # ifdef DLL_EXPORT # undef DLL_EXPORT # define WAS_DLL_EXPORT # endif /* DLL_EXPORT */ # include "ltdl.h" # ifdef WAS_DLL_EXPORT # define DLL_EXPORT # endif /* WAS_DLL_EXPORT */ #endif /* _MSC_VER */ #ifndef _WIN32 typedef lt_dlhandle HMODULE; #endif /* _WIN32 */ #ifdef HAVE_LIBSSL # include # include # include # include #else /* HAVE_LIBSSL */ typedef void SSL; typedef void BIO; typedef void SSL_CTX; typedef void X509; typedef void X509_STORE_CTX; #endif /* HAVE_LIBSSL */ #ifndef HAVE_ASPRINTF # include #endif #ifndef SWIG # ifdef _WIN32 # define CARES_STATICLIB # endif # include #endif /* SWIG */ #include #ifdef __cplusplus # include "sbnc.h" # include "Result.h" # include "Object.h" # include "Vector.h" # include "List.h" # include "Hashtable.h" # include "utility.h" # include "SocketEvents.h" # include "DnsSocket.h" # include "DnsEvents.h" # include "Timer.h" # include "FIFOBuffer.h" # include "Queue.h" # include "Connection.h" # include "Config.h" # include "Cache.h" # include "Core.h" # include "ClientConnection.h" # include "ClientConnectionMultiplexer.h" # include "IRCConnection.h" # include "User.h" # include "Log.h" # include "ModuleFar.h" # include "Module.h" # include "Banlist.h" # include "Channel.h" # include "Nick.h" # include "Keyring.h" # include "IdentSupport.h" # include "TrafficStats.h" # include "FloodControl.h" # include "Listener.h" #endif /* __cplusplus */