/[svn]/hopm/trunk/src/scan.h
ViewVC logotype

Contents of /hopm/trunk/src/scan.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5351 - (show annotations)
Sun Jan 11 13:24:19 2015 UTC (7 years, 10 months ago) by michael
File MIME type: text/x-csrc
File size: 1777 byte(s)
- Update license headers

1 /*
2 * Copyright (c) 2002 Erik Fears
3 * Copyright (c) 2014-2015 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 struct ChannelConf *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 struct kline_format_assoc
56 {
57 char key;
58 const void *data;
59 };
60
61 extern void scan_init(void);
62 extern const char *scan_gettype(int);
63 extern void scan_cycle(void);
64 extern void scan_connect(const char *[], const char *);
65 extern void scan_checkfinished(struct scan_struct *);
66 extern void scan_manual(char *, const struct ChannelConf *);
67 extern int scan_checkexempt(const char *, const char *);
68 extern void scan_timer(void);
69 extern void scan_positive(struct scan_struct *, const char *, const char *);
70 #endif /* SCAN_H */

Properties

Name Value
svn:eol-style native
svn:keywords Id

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28