summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-09-01 18:54:51 -0400
committerAdam <Adam@anope.org>2012-09-01 18:54:51 -0400
commite3d5140dcc936ff411c438b7e3997104cb5f085a (patch)
tree49d7ee0b3e531a1c81e35fb10f25e6340fa781ba /include
parentf81d0113a21187d68c5fa0f1262e5514465b1953 (diff)
Added a web panel module + a default template
Diffstat (limited to 'include')
-rw-r--r--include/access.h5
-rw-r--r--include/anope.h2
-rw-r--r--include/logger.h1
-rw-r--r--include/services.h2
-rw-r--r--include/sockets.h9
5 files changed, 17 insertions, 2 deletions
diff --git a/include/access.h b/include/access.h
index 18499b602..b29572dfc 100644
--- a/include/access.h
+++ b/include/access.h
@@ -53,6 +53,11 @@ class CoreExport AccessProvider : public Service
AccessProvider(Module *o, const Anope::string &n);
virtual ~AccessProvider();
virtual ChanAccess *Create() = 0;
+
+ private:
+ static std::list<AccessProvider *> providers;
+ public:
+ static const std::list<AccessProvider *>& GetProviders();
};
class CoreExport ChanAccess : public Serializable
diff --git a/include/anope.h b/include/anope.h
index 2a51514e0..2ec6602ea 100644
--- a/include/anope.h
+++ b/include/anope.h
@@ -342,7 +342,7 @@ namespace Anope
* @param dest The destination string
*/
extern CoreExport void Unhex(const string &src, string &dest);
- extern CoreExport void Unhex(const string &src, char *dest);
+ extern CoreExport void Unhex(const string &src, char *dest, size_t sz);
/** Base 64 encode a string
* @param src The string to encode
diff --git a/include/logger.h b/include/logger.h
index 9364cfb7c..eea86f890 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -49,6 +49,7 @@ class CoreExport Log
{
public:
const BotInfo *bi;
+ Anope::string nick;
const User *u;
const NickCore *nc;
Command *c;
diff --git a/include/services.h b/include/services.h
index c03991a13..31ab1cf37 100644
--- a/include/services.h
+++ b/include/services.h
@@ -55,8 +55,10 @@
#ifdef __GXX_EXPERIMENTAL_CXX0X__
# define anope_override override
+# define anope_final final
#else
# define anope_override
+# define anope_final
#endif
/**
diff --git a/include/sockets.h b/include/sockets.h
index 16cd10a1a..8f863b59c 100644
--- a/include/sockets.h
+++ b/include/sockets.h
@@ -288,6 +288,9 @@ class CoreExport BufferedSocket : public virtual Socket
/** Write to the socket
* @param message The message
*/
+ protected:
+ virtual void Write(const char *buffer, size_t l);
+ public:
void Write(const char *message, ...);
void Write(const Anope::string &message);
@@ -304,8 +307,10 @@ class CoreExport BufferedSocket : public virtual Socket
class CoreExport BinarySocket : public virtual Socket
{
+ protected:
struct DataBlock
{
+ char *orig;
char *buf;
size_t len;
@@ -338,7 +343,9 @@ class CoreExport BinarySocket : public virtual Socket
* @param buffer The data to write
* @param l The length of the data
*/
- void Write(const char *buffer, size_t l);
+ virtual void Write(const char *buffer, size_t l);
+ void Write(const char *message, ...);
+ void Write(const Anope::string &message);
/** Called with data from the socket
* @param buffer The data