1 |
/* |
2 |
* Copyright (c) 2002 Erik Fears |
3 |
* Copyright (c) 2014-2021 ircd-hybrid development team |
4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
7 |
* the Free Software Foundation; either version 2 of the License, or |
8 |
* (at your option) any later version. |
9 |
* |
10 |
* This program is distributed in the hope that it will be useful, |
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
* GNU General Public License for more details. |
14 |
* |
15 |
* You should have received a copy of the GNU General Public License |
16 |
* along with this program; if not, write to the Free Software |
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 |
18 |
* USA |
19 |
*/ |
20 |
|
21 |
#ifndef SCAN_H |
22 |
#define SCAN_H |
23 |
|
24 |
#include "libopm/src/opm.h" |
25 |
|
26 |
struct scan_struct |
27 |
{ |
28 |
char *irc_nick; |
29 |
char *irc_username; |
30 |
char *irc_hostname; |
31 |
|
32 |
char *ip; |
33 |
char *proof; |
34 |
OPM_REMOTE_T *remote; |
35 |
|
36 |
unsigned int scans; |
37 |
unsigned int positive; |
38 |
|
39 |
const char *manual_target; |
40 |
}; |
41 |
|
42 |
struct scanner_struct |
43 |
{ |
44 |
char *name; |
45 |
OPM_T *scanner; |
46 |
list_t masks; |
47 |
}; |
48 |
|
49 |
struct protocol_assoc |
50 |
{ |
51 |
int type; |
52 |
const char *name; |
53 |
}; |
54 |
|
55 |
extern void scan_init(void); |
56 |
extern const char *scan_gettype(int); |
57 |
extern void scan_cycle(void); |
58 |
extern void scan_connect(const char *[], const char *); |
59 |
extern void scan_checkfinished(struct scan_struct *); |
60 |
extern void scan_manual(char *, const char *); |
61 |
extern void scan_timer(void); |
62 |
extern void scan_positive(struct scan_struct *, const char *, const char *); |
63 |
#endif /* SCAN_H */ |