From a9772cde21407c89abd161d51aff45267f87b1fb Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 14 Feb 2012 15:13:27 -0500 Subject: Clean up and reorganize our header files --- src/socketengines/pipeengine_eventfd.cpp | 13 +++++++++++++ src/socketengines/pipeengine_pipe.cpp | 16 ++++++++++++++++ src/socketengines/socketengine_epoll.cpp | 19 ++++++++++++++++++- src/socketengines/socketengine_kqueue.cpp | 19 ++++++++++++++++++- src/socketengines/socketengine_poll.cpp | 20 +++++++++++++++++++- src/socketengines/socketengine_select.cpp | 18 +++++++++++++++++- 6 files changed, 101 insertions(+), 4 deletions(-) (limited to 'src/socketengines') diff --git a/src/socketengines/pipeengine_eventfd.cpp b/src/socketengines/pipeengine_eventfd.cpp index 06102ff20..d1051cc28 100644 --- a/src/socketengines/pipeengine_eventfd.cpp +++ b/src/socketengines/pipeengine_eventfd.cpp @@ -1,4 +1,17 @@ +/* + * + * (C) 2003-2012 Anope Team + * Contact us at team@anope.org + * + * Please read COPYING and README for further details. + * + * Based on the original code of Epona by Lara. + * Based on the original code of Services by Andy Church. + */ + #include "services.h" +#include "sockets.h" + #include Pipe::Pipe() : Socket(eventfd(0, EFD_NONBLOCK)) diff --git a/src/socketengines/pipeengine_pipe.cpp b/src/socketengines/pipeengine_pipe.cpp index 7901931c8..dc7d6918a 100644 --- a/src/socketengines/pipeengine_pipe.cpp +++ b/src/socketengines/pipeengine_pipe.cpp @@ -1,4 +1,20 @@ +/* + * + * (C) 2003-2012 Anope Team + * Contact us at team@anope.org + * + * Please read COPYING and README for further details. + * + * Based on the original code of Epona by Lara. + * Based on the original code of Services by Andy Church. + */ + #include "services.h" +#include "sockets.h" +#include "socketengine.h" + +#include +#include Pipe::Pipe() : Socket(-1), WritePipe(-1) { diff --git a/src/socketengines/socketengine_epoll.cpp b/src/socketengines/socketengine_epoll.cpp index 927d84100..b6dbdc23f 100644 --- a/src/socketengines/socketengine_epoll.cpp +++ b/src/socketengines/socketengine_epoll.cpp @@ -1,6 +1,23 @@ -#include "module.h" +/* + * + * (C) 2003-2012 Anope Team + * Contact us at team@anope.org + * + * Please read COPYING and README for further details. + * + * Based on the original code of Epona by Lara. + * Based on the original code of Services by Andy Church. + */ + +#include "services.h" +#include "anope.h" +#include "sockets.h" +#include "socketengine.h" +#include "config.h" + #include #include +#include static long max; static int EngineHandle; diff --git a/src/socketengines/socketengine_kqueue.cpp b/src/socketengines/socketengine_kqueue.cpp index 1c9fe1c2f..7af78bad6 100644 --- a/src/socketengines/socketengine_kqueue.cpp +++ b/src/socketengines/socketengine_kqueue.cpp @@ -1,4 +1,21 @@ -#include "module.h" +/* + * + * (C) 2003-2012 Anope Team + * Contact us at team@anope.org + * + * Please read COPYING and README for further details. + * + * Based on the original code of Epona by Lara. + * Based on the original code of Services by Andy Church. + */ + +#include "services.h" +#include "anope.h" +#include "socketengine.h" +#include "sockets.h" +#include "logger.h" +#include "config.h" + #include #include #include diff --git a/src/socketengines/socketengine_poll.cpp b/src/socketengines/socketengine_poll.cpp index a174bf828..8fa666cf3 100644 --- a/src/socketengines/socketengine_poll.cpp +++ b/src/socketengines/socketengine_poll.cpp @@ -1,4 +1,22 @@ -#include "module.h" +/* + * + * (C) 2003-2012 Anope Team + * Contact us at team@anope.org + * + * Please read COPYING and README for further details. + * + * Based on the original code of Epona by Lara. + * Based on the original code of Services by Andy Church. + */ + +#include "services.h" +#include "anope.h" +#include "socketengine.h" +#include "sockets.h" +#include "config.h" +#include "logger.h" + +#include #ifndef _WIN32 # include diff --git a/src/socketengines/socketengine_select.cpp b/src/socketengines/socketengine_select.cpp index 89a5c47c3..e3393fdea 100644 --- a/src/socketengines/socketengine_select.cpp +++ b/src/socketengines/socketengine_select.cpp @@ -1,4 +1,20 @@ -#include "module.h" +/* + * + * (C) 2003-2012 Anope Team + * Contact us at team@anope.org + * + * Please read COPYING and README for further details. + * + * Based on the original code of Epona by Lara. + * Based on the original code of Services by Andy Church. + */ + +#include "services.h" +#include "anope.h" +#include "socketengine.h" +#include "sockets.h" +#include "logger.h" +#include "config.h" #ifdef _AIX # undef FD_ZERO -- cgit