blob: fd5bd8a447e04c5eb04c82a7abd65af38cb2d563 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
|