1 |
michael |
5351 |
/* |
2 |
|
|
* Copyright (c) 2002 Erik Fears |
3 |
michael |
9104 |
* Copyright (c) 2014-2020 ircd-hybrid development team |
4 |
michael |
5351 |
* |
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 |
michael |
5052 |
#ifndef SCAN_H |
22 |
|
|
#define SCAN_H |
23 |
|
|
|
24 |
|
|
#include "libopm/src/opm.h" |
25 |
|
|
|
26 |
|
|
struct scan_struct |
27 |
|
|
{ |
28 |
michael |
5120 |
char *irc_nick; |
29 |
|
|
char *irc_username; |
30 |
|
|
char *irc_hostname; |
31 |
michael |
5052 |
|
32 |
michael |
5120 |
char *ip; |
33 |
|
|
char *proof; |
34 |
|
|
OPM_REMOTE_T *remote; |
35 |
michael |
5052 |
|
36 |
michael |
5120 |
unsigned int scans; |
37 |
|
|
unsigned int positive; |
38 |
michael |
5052 |
|
39 |
michael |
8193 |
const char *manual_target; |
40 |
michael |
5052 |
}; |
41 |
|
|
|
42 |
|
|
struct scanner_struct |
43 |
|
|
{ |
44 |
michael |
5120 |
char *name; |
45 |
|
|
OPM_T *scanner; |
46 |
michael |
8579 |
list_t masks; |
47 |
michael |
5052 |
}; |
48 |
|
|
|
49 |
|
|
struct protocol_assoc |
50 |
|
|
{ |
51 |
michael |
5120 |
int type; |
52 |
|
|
const char *name; |
53 |
michael |
5052 |
}; |
54 |
|
|
|
55 |
|
|
extern void scan_init(void); |
56 |
michael |
5072 |
extern const char *scan_gettype(int); |
57 |
michael |
5052 |
extern void scan_cycle(void); |
58 |
michael |
5338 |
extern void scan_connect(const char *[], const char *); |
59 |
michael |
5052 |
extern void scan_checkfinished(struct scan_struct *); |
60 |
michael |
8193 |
extern void scan_manual(char *, const char *); |
61 |
michael |
5052 |
extern void scan_timer(void); |
62 |
michael |
5072 |
extern void scan_positive(struct scan_struct *, const char *, const char *); |
63 |
michael |
5052 |
#endif /* SCAN_H */ |