ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/scan.h
Revision: 5120
Committed: Thu Dec 25 16:04:40 2014 UTC (9 years, 3 months ago) by michael
Content type: text/x-chdr
File size: 950 byte(s)
Log Message:
- Style corrections

File Contents

# User Rev Content
1 michael 5052 #ifndef SCAN_H
2     #define SCAN_H
3    
4     #include "libopm/src/opm.h"
5    
6     struct scan_struct
7     {
8 michael 5120 char *irc_nick;
9     char *irc_username;
10     char *irc_hostname;
11 michael 5052
12 michael 5120 char *ip;
13     char *proof;
14     OPM_REMOTE_T *remote;
15 michael 5052
16 michael 5120 unsigned int scans;
17     unsigned int positive;
18 michael 5052
19 michael 5120 struct ChannelConf *manual_target;
20 michael 5052 };
21    
22    
23     struct scanner_struct
24     {
25 michael 5120 char *name;
26     OPM_T *scanner;
27     list_t *masks;
28 michael 5052 };
29    
30     struct protocol_assoc
31     {
32 michael 5120 int type;
33     const char *name;
34 michael 5052 };
35    
36     extern void scan_init(void);
37 michael 5072 extern const char *scan_gettype(int);
38 michael 5052 extern void scan_cycle(void);
39     extern void scan_connect(char **, char *);
40     extern void scan_checkfinished(struct scan_struct *);
41     extern void scan_manual(char *, struct ChannelConf *);
42     extern int scan_checkexempt(char *, char *);
43     extern void scan_timer(void);
44 michael 5072 extern void scan_positive(struct scan_struct *, const char *, const char *);
45 michael 5052
46     struct kline_format_assoc
47     {
48 michael 5120 char key;
49     const void *data;
50     int type;
51 michael 5052 };
52    
53     #define FORMATTYPE_STRING 1
54    
55     #endif /* SCAN_H */