summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_mysql.cpp11
-rw-r--r--src/modules/extra/m_pgsql.cpp2
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: