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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5351 - (hide 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 michael 5351 /*
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 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 5338 const struct ChannelConf *manual_target;
40 michael 5052 };
41    
42     struct scanner_struct
43     {
44 michael 5120 char *name;
45     OPM_T *scanner;
46     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 michael 5322 struct kline_format_assoc
56     {
57     char key;
58     const void *data;
59     };
60    
61 michael 5052 extern void scan_init(void);
62 michael 5072 extern const char *scan_gettype(int);
63 michael 5052 extern void scan_cycle(void);
64 michael 5338 extern void scan_connect(const char *[], const char *);
65 michael 5052 extern void scan_checkfinished(struct scan_struct *);
66 michael 5338 extern void scan_manual(char *, const struct ChannelConf *);
67 michael 5279 extern int scan_checkexempt(const char *, const char *);
68 michael 5052 extern void scan_timer(void);
69 michael 5072 extern void scan_positive(struct scan_struct *, const char *, const char *);
70 michael 5052 #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