Last change
on this file since 8449 was 7556, checked in by gf, 11 years ago |
Move all anticasc funcs in module-anticasc.c
|
File size:
879 bytes
|
Line | |
---|
1 | #ifndef MODULE_ANTICASC_H_
|
---|
2 | #define MODULE_ANTICASC_H_
|
---|
3 |
|
---|
4 | #ifdef CS_ANTICASC
|
---|
5 | extern void ac_init(void);
|
---|
6 | extern void ac_init_stat(void);
|
---|
7 | extern void ac_do_stat(void);
|
---|
8 | extern void ac_clear(void);
|
---|
9 | extern void ac_copy_vars(struct s_auth *src, struct s_auth *dst);
|
---|
10 | extern void ac_init_client(struct s_client *cl, struct s_auth *account);
|
---|
11 | extern void ac_chk(struct s_client *cl, ECM_REQUEST *er, int32_t level);
|
---|
12 | #else
|
---|
13 | static inline void ac_init(void) { }
|
---|
14 | static inline void ac_init_stat(void) { }
|
---|
15 | static inline void ac_do_stat(void) { }
|
---|
16 | static inline void ac_clear(void) { }
|
---|
17 | static inline void ac_copy_vars(struct s_auth *UNUSED(src), struct s_auth *UNUSED(dst)) { }
|
---|
18 | static inline void ac_init_client(struct s_client *UNUSED(cl), struct s_auth *UNUSED(account)) { }
|
---|
19 | static inline void ac_chk(struct s_client *UNUSED(cl), ECM_REQUEST *UNUSED(er), int32_t UNUSED(level)) { }
|
---|
20 | #endif
|
---|
21 |
|
---|
22 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.