ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/src/scan.h
Revision: 5280
Committed: Fri Jan 2 20:31:46 2015 UTC (9 years, 3 months ago) by michael
Content type: text/x-chdr
File size: 962 byte(s)
Log Message:
- Use 'const' and 'unsigned' whenever possible
- Removed pointless 0 assignments

File Contents

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

Properties

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