From: <ps...@us...> - 2008-12-18 16:22:35
|
Revision: 1293 http://znc.svn.sourceforge.net/znc/?rev=1293&view=rev Author: psychon Date: 2008-12-18 16:22:31 +0000 (Thu, 18 Dec 2008) Log Message: ----------- Add some API to CModule This let's module have access to all their active timers/sockets. Modified Paths: -------------- trunk/Modules.h Modified: trunk/Modules.h =================================================================== --- trunk/Modules.h 2008-12-17 15:36:47 UTC (rev 1292) +++ trunk/Modules.h 2008-12-18 16:22:31 UTC (rev 1293) @@ -303,6 +303,8 @@ 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 @@ 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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |