diff options
author | erdgeist <> | 2007-11-12 04:39:53 +0000 |
---|---|---|
committer | erdgeist <> | 2007-11-12 04:39:53 +0000 |
commit | 697e239027b1490eaa51e1d2dfc1f93b9941e07b (patch) | |
tree | 3f5bcf8a629a2cc035b307a80fda355bb7481735 /ot_accesslist.h | |
parent | 0547e2ade2cfb974526fdcd8b350db0aead7d802 (diff) |
Moving accesslist stuff to its own object
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 | ||