1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-12 07:50:52 +00:00
opentracker/ot_accesslist.h
2007-11-12 04:39:53 +00:00

23 lines
664 B
C

/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
It is considered beerware. Prost. Skol. Cheers or whatever. */
#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
#if defined ( WANT_BLACKLISTING ) || defined (WANT_CLOSED_TRACKER )
#define WANT_ACCESS_CONTROL
void accesslist_init( char *accesslist_filename );
int accesslist_hashisvalid( ot_hash *hash );
#else
#define accesslist_init( accesslist_filename )
#define accesslist_hashisvalid( hash ) 1
#endif
#endif