diff options
Diffstat (limited to 'ot_accesslist.h')
| -rw-r--r-- | ot_accesslist.h | 11 |
1 files changed, 9 insertions, 2 deletions
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 @@ | |||
| 4 | #ifndef __OT_ACCESSLIST_H__ | 4 | #ifndef __OT_ACCESSLIST_H__ |
| 5 | #define __OT_ACCESSLIST_H__ | 5 | #define __OT_ACCESSLIST_H__ |
| 6 | 6 | ||
| 7 | #include "trackerlogic.h" | ||
| 8 | |||
| 9 | #if defined ( WANT_BLACKLISTING ) && defined (WANT_CLOSED_TRACKER ) | 7 | #if defined ( WANT_BLACKLISTING ) && defined (WANT_CLOSED_TRACKER ) |
| 10 | #error WANT_BLACKLISTING and WANT_CLOSED_TRACKER are exclusive. | 8 | #error WANT_BLACKLISTING and WANT_CLOSED_TRACKER are exclusive. |
| 11 | #endif | 9 | #endif |
| @@ -19,4 +17,13 @@ int accesslist_hashisvalid( ot_hash *hash ); | |||
| 19 | #define accesslist_hashisvalid( hash ) 1 | 17 | #define accesslist_hashisvalid( hash ) 1 |
| 20 | #endif | 18 | #endif |
| 21 | 19 | ||
| 20 | typedef enum { | ||
| 21 | OT_PERMISSION_MAY_FULLSCRAPE, | ||
| 22 | OT_PERMISSION_MAY_SYNC, | ||
| 23 | OT_PERMISSION_MAY_STAT | ||
| 24 | } ot_permissions; | ||
| 25 | |||
| 26 | int accesslist_blessip( char * ip, ot_permissions permissions ); | ||
| 27 | int accesslist_isblessed( char * ip, ot_permissions permissions ); | ||
| 28 | |||
| 22 | #endif | 29 | #endif |
