diff options
Diffstat (limited to 'ot_accesslist.h')
-rw-r--r-- | ot_accesslist.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ot_accesslist.h b/ot_accesslist.h index b38b91a..281f61b 100644 --- a/ot_accesslist.h +++ b/ot_accesslist.h | |||
@@ -6,19 +6,28 @@ | |||
6 | #ifndef OT_ACCESSLIST_H__ | 6 | #ifndef OT_ACCESSLIST_H__ |
7 | #define OT_ACCESSLIST_H__ | 7 | #define OT_ACCESSLIST_H__ |
8 | 8 | ||
9 | #if defined ( WANT_ACCESSLIST_BLACK ) && defined (WANT_ACCESSLIST_WHITE ) | 9 | #if defined ( WANT_ACCESSLIST_BLACK ) && defined ( WANT_ACCESSLIST_WHITE ) |
10 | # error WANT_ACCESSLIST_BLACK and WANT_ACCESSLIST_WHITE are exclusive. | 10 | # error WANT_ACCESSLIST_BLACK and WANT_ACCESSLIST_WHITE are exclusive. |
11 | #endif | 11 | #endif |
12 | 12 | ||
13 | #if defined ( WANT_ACCESSLIST_BLACK ) || defined (WANT_ACCESSLIST_WHITE ) | 13 | #if defined ( WANT_ACCESSLIST_BLACK ) || defined (WANT_ACCESSLIST_WHITE ) |
14 | #define WANT_ACCESSLIST | 14 | #define WANT_ACCESSLIST |
15 | void accesslist_init( ); | 15 | void accesslist_init( void ); |
16 | void accesslist_deinit( ); | 16 | void accesslist_deinit( void ); |
17 | int accesslist_hashisvalid( ot_hash hash ); | 17 | int accesslist_hashisvalid( ot_hash hash ); |
18 | void accesslist_cleanup( void ); | ||
18 | 19 | ||
19 | extern char *g_accesslist_filename; | 20 | extern char *g_accesslist_filename; |
21 | #ifdef WANT_DYNAMIC_ACCESSLIST | ||
22 | extern char *g_accesslist_pipe_add; | ||
23 | extern char *g_accesslist_pipe_delete; | ||
24 | #endif | ||
20 | 25 | ||
21 | #else | 26 | #else |
27 | #ifdef WANT_DYNAMIC_ACCESSLIST | ||
28 | # error WANT_DYNAMIC_ACCESSLIST needs either WANT_ACCESSLIST_BLACK or WANT_ACCESSLIST_WHITE | ||
29 | #endif | ||
30 | |||
22 | #define accesslist_init( accesslist_filename ) | 31 | #define accesslist_init( accesslist_filename ) |
23 | #define accesslist_deinit( ) | 32 | #define accesslist_deinit( ) |
24 | #define accesslist_hashisvalid( hash ) 1 | 33 | #define accesslist_hashisvalid( hash ) 1 |