diff options
Diffstat (limited to 'ot_accesslist.h')
-rw-r--r-- | ot_accesslist.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ot_accesslist.h b/ot_accesslist.h new file mode 100644 index 0000000..d24463d --- /dev/null +++ b/ot_accesslist.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | ||
2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ | ||
3 | |||
4 | #ifndef __OT_ACCESSLIST_H__ | ||
5 | #define __OT_ACCESSLIST_H__ | ||
6 | |||
7 | #include "trackerlogic.h" | ||
8 | |||
9 | #if defined ( WANT_BLACKLISTING ) && defined (WANT_CLOSED_TRACKER ) | ||
10 | #error WANT_BLACKLISTING and WANT_CLOSED_TRACKER are exclusive. | ||
11 | #endif | ||
12 | |||
13 | #if defined ( WANT_BLACKLISTING ) || defined (WANT_CLOSED_TRACKER ) | ||
14 | #define WANT_ACCESS_CONTROL | ||
15 | void accesslist_init( char *accesslist_filename ); | ||
16 | int accesslist_hashisvalid( ot_hash *hash ); | ||
17 | #else | ||
18 | #define accesslist_init( accesslist_filename ) | ||
19 | #define accesslist_hashisvalid( hash ) 1 | ||
20 | #endif | ||
21 | |||
22 | #endif | ||