diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-01 14:44:34 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-01 14:44:34 +0000 |
commit | 49b4d6dd9d4d35adc9f02df4010a1a6b33faba63 (patch) | |
tree | 403d0508eed3d1e1c9b336251eff931f3f2511b1 /ping_protocol/pinglist.h | |
parent | b61df7acc1235b3b2a66217d0d7358199c5d37f9 (diff) |
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@12 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'ping_protocol/pinglist.h')
-rw-r--r-- | ping_protocol/pinglist.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ping_protocol/pinglist.h b/ping_protocol/pinglist.h new file mode 100644 index 0000000..fd5bd8a --- /dev/null +++ b/ping_protocol/pinglist.h @@ -0,0 +1,39 @@ +#ifndef _PINGLIST_H
+#define _PINGLIST_H
+
+#include "common.h"
+
+#include <vector>
+typedef std::vector<PINGADDRESS> PINGLIST;
+
+#include <algorithm> // for sort
+
+extern PINGLIST list_items;
+extern HANDLE reload_event_handle;
+extern CRITICAL_SECTION list_cs;
+
+int LoadPingList(WPARAM wParam, LPARAM lParam);
+int GetPingList(WPARAM wParam,LPARAM lParam);
+int SavePingList(WPARAM wParam, LPARAM lParam);
+int SetPingList(WPARAM wParam, LPARAM lParam); // use when you modified db yourself
+int SetAndSavePingList(WPARAM wParam, LPARAM lParam);
+int ClearPingList(WPARAM wParam, LPARAM lParam);
+
+struct SAscendingSort
+{
+ bool operator()(const PINGADDRESS &rpStart, const PINGADDRESS &rpEnd)
+ {
+ return rpStart.index < rpEnd.index;
+ }
+};
+
+// only call with list_cs locked!
+void write_ping_addresses();
+
+
+BOOL changing_clist_handle();
+void set_changing_clist_handle(BOOL flag);
+
+void reset_myhandle();
+
+#endif
|