diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-11-27 22:33:19 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-11-27 22:33:19 +0000 |
commit | 827572f362c68b0029826de85fa100c59023d874 (patch) | |
tree | 57409bb99d238e96cd49cd0c0a610e5378daa316 /plugins/ping/pinglist.h | |
parent | dc213051ce22e542a73bba252a6657865c1b8ea8 (diff) |
Adopted Ping Plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@2531 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ping/pinglist.h')
-rw-r--r-- | plugins/ping/pinglist.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/ping/pinglist.h b/plugins/ping/pinglist.h new file mode 100644 index 0000000000..ed2a94810f --- /dev/null +++ b/plugins/ping/pinglist.h @@ -0,0 +1,26 @@ +#ifndef _PINGLIST_H
+#define _PINGLIST_H
+
+typedef BinaryTree<PINGADDRESS> PINGLIST;
+
+#include <algorithm> // for sort
+
+extern PINGLIST list_items;
+extern HANDLE reload_event_handle;
+extern CRITICAL_SECTION list_cs;
+
+INT_PTR LoadPingList(WPARAM wParam, LPARAM lParam);
+INT_PTR GetPingList(WPARAM wParam,LPARAM lParam);
+INT_PTR SavePingList(WPARAM wParam, LPARAM lParam);
+INT_PTR SetPingList(WPARAM wParam, LPARAM lParam); // use when you modified db yourself
+INT_PTR SetAndSavePingList(WPARAM wParam, LPARAM lParam);
+INT_PTR ClearPingList(WPARAM wParam, LPARAM lParam);
+INT_PTR GetListSize(WPARAM wParam, LPARAM lParam);
+
+// only call with list_cs locked!
+void write_ping_addresses();
+
+
+BOOL changing_clist_handle();
+void set_changing_clist_handle(BOOL flag);
+#endif
|