From 5d18bf211caab11f3b8ac3f921a8e338e2a9724b Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 3 Dec 2007 00:48:48 +0000 Subject: Move blessed IP handling code to accesslist objects --- ot_accesslist.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'ot_accesslist.h') diff --git a/ot_accesslist.h b/ot_accesslist.h index d24463d..d0d674a 100644 --- a/ot_accesslist.h +++ b/ot_accesslist.h @@ -4,8 +4,6 @@ #ifndef __OT_ACCESSLIST_H__ #define __OT_ACCESSLIST_H__ -#include "trackerlogic.h" - #if defined ( WANT_BLACKLISTING ) && defined (WANT_CLOSED_TRACKER ) #error WANT_BLACKLISTING and WANT_CLOSED_TRACKER are exclusive. #endif @@ -19,4 +17,13 @@ int accesslist_hashisvalid( ot_hash *hash ); #define accesslist_hashisvalid( hash ) 1 #endif +typedef enum { + OT_PERMISSION_MAY_FULLSCRAPE, + OT_PERMISSION_MAY_SYNC, + OT_PERMISSION_MAY_STAT +} ot_permissions; + +int accesslist_blessip( char * ip, ot_permissions permissions ); +int accesslist_isblessed( char * ip, ot_permissions permissions ); + #endif -- cgit v1.2.3