mirror of
https://github.com/znc/znc.git
synced 2026-08-08 09:52:55 +02:00
Add some API to CModule
This let's module have access to all their active timers/sockets. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1293 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -303,6 +303,8 @@ public:
|
||||
bool RemTimer(const CString& sLabel);
|
||||
bool UnlinkTimer(CTimer* pTimer);
|
||||
CTimer* FindTimer(const CString& sLabel);
|
||||
vector<CTimer*>::const_iterator BeginTimers() const { return m_vTimers.begin(); }
|
||||
vector<CTimer*>::const_iterator EndTimers() const { return m_vTimers.end(); }
|
||||
virtual void ListTimers();
|
||||
// !Timer stuff
|
||||
|
||||
@@ -312,6 +314,8 @@ public:
|
||||
bool RemSocket(const CString& sSockName);
|
||||
bool UnlinkSocket(CSocket* pSocket);
|
||||
CSocket* FindSocket(const CString& sSockName);
|
||||
vector<CSocket*>::const_iterator BeginSockets() const { return m_vSockets.begin(); }
|
||||
vector<CSocket*>::const_iterator EndSockets() const { return m_vSockets.end(); }
|
||||
virtual void ListSockets();
|
||||
// !Socket stuff
|
||||
|
||||
|
||||
Reference in New Issue
Block a user