diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-06 14:37:51 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-06 14:37:51 +0000 |
commit | 855f0d98e90a077f46b456e98ebb8a9b290488f6 (patch) | |
tree | a6e72a210b8dfdaa99312cd63ea8da976e21f561 /src/modules/extra | |
parent | 364735e18b500f0a071fab4cc5c9e7bace1835fc (diff) |
Document more classes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5435 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_mysql.cpp | 11 | ||||
-rw-r--r-- | src/modules/extra/m_pgsql.cpp | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index a59ad3b6c..c9d926e65 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -23,7 +23,6 @@ using namespace std; #include "users.h" #include "channels.h" #include "modules.h" - #include "inspircd.h" #include "m_sqlv2.h" @@ -85,6 +84,8 @@ int QueueFD = -1; typedef std::deque<SQLresult*> ResultQueue; +/** Represents a mysql query queue + */ class QueryQueue : public classbase { private: @@ -198,6 +199,8 @@ pthread_mutex_t queue_mutex = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t results_mutex = PTHREAD_MUTEX_INITIALIZER; +/** Represents a mysql result set + */ class MySQLresult : public SQLresult { int currentrow; @@ -383,6 +386,8 @@ class SQLConnection; void NotifyMainThread(SQLConnection* connection_with_new_result); +/** Represents a connection to a mysql database + */ class SQLConnection : public classbase { protected: @@ -638,6 +643,8 @@ void NotifyMainThread(SQLConnection* connection_with_new_result) void* DispatcherThread(void* arg); +/** Used by m_mysql to notify one thread when the other has a result + */ class Notifier : public InspSocket { insp_sockaddr sock_us; @@ -711,6 +718,8 @@ class Notifier : public InspSocket } }; +/** MySQL module + */ class ModuleSQL : public Module { public: diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 4e316b9ec..b4cba6a7a 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -87,6 +87,8 @@ class SQLhost } }; +/** Used to resolve sql server hostnames + */ class SQLresolver : public Resolver { private: |