From e534db03c6877f8ac0559f63840e9a00e9bd43bf Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 4 Oct 2008 05:40:51 +0000 Subject: added live sync code added a config file parser added tracker id changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE added an option to switch off fullscrapes cleaned up many internal hardcoded values, like PROTO_FLAG, --- ot_accesslist.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'ot_accesslist.h') diff --git a/ot_accesslist.h b/ot_accesslist.h index 6adefd9..2783b3c 100644 --- a/ot_accesslist.h +++ b/ot_accesslist.h @@ -6,14 +6,17 @@ #ifndef __OT_ACCESSLIST_H__ #define __OT_ACCESSLIST_H__ -#if defined ( WANT_BLACKLISTING ) && defined (WANT_CLOSED_TRACKER ) - #error WANT_BLACKLISTING and WANT_CLOSED_TRACKER are exclusive. +#if defined ( WANT_ACCESSLIST_BLACK ) && defined (WANT_ACCESSLIST_WHITE ) + #error WANT_ACCESSLIST_BLACK and WANT_ACCESSLIST_WHITE are exclusive. #endif -#if defined ( WANT_BLACKLISTING ) || defined (WANT_CLOSED_TRACKER ) -#define WANT_ACCESS_CONTROL -void accesslist_init( char *accesslist_filename ); +#if defined ( WANT_ACCESSLIST_BLACK ) || defined (WANT_ACCESSLIST_WHITE ) +#define WANT_ACCESSLIST +void accesslist_init( ); int accesslist_hashisvalid( ot_hash *hash ); + +extern char *g_accesslist_filename; + #else #define accesslist_init( accesslist_filename ) #define accesslist_hashisvalid( hash ) 1 @@ -22,7 +25,8 @@ int accesslist_hashisvalid( ot_hash *hash ); typedef enum { OT_PERMISSION_MAY_FULLSCRAPE, OT_PERMISSION_MAY_SYNC, - OT_PERMISSION_MAY_STAT + OT_PERMISSION_MAY_STAT, + OT_PERMISSION_MAY_LIVESYNC } ot_permissions; int accesslist_blessip( char * ip, ot_permissions permissions ); -- cgit v1.2.3