aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra/m_mysql.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-10-06 14:37:51 +0000
committerGravatar brain2006-10-06 14:37:51 +0000
commit855f0d98e90a077f46b456e98ebb8a9b290488f6 (patch)
treea6e72a210b8dfdaa99312cd63ea8da976e21f561 /src/modules/extra/m_mysql.cpp
parentDocument a ton of classes (e.g. give them a short description for http://svn.... (diff)
downloadinspircd++-855f0d98e90a077f46b456e98ebb8a9b290488f6.tar.gz
inspircd++-855f0d98e90a077f46b456e98ebb8a9b290488f6.tar.bz2
inspircd++-855f0d98e90a077f46b456e98ebb8a9b290488f6.zip
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/m_mysql.cpp')
-rw-r--r--src/modules/extra/m_mysql.cpp11
1 files changed, 10 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: