mirror of
https://github.com/transmission/transmission
synced 2025-02-22 06:00:41 +00:00
(trunk) #3697 "https://trac.transmissionbt.com/ticket/3697" -- make "blocklist.bin" visible in transmission.h
This commit is contained in:
parent
c6b0ee7c5c
commit
b1a7b981a2
2 changed files with 5 additions and 3 deletions
|
@ -2140,13 +2140,12 @@ tr_blocklistExists( const tr_session * session )
|
|||
}
|
||||
|
||||
int
|
||||
tr_blocklistSetContent( tr_session * session,
|
||||
const char * contentFilename )
|
||||
tr_blocklistSetContent( tr_session * session, const char * contentFilename )
|
||||
{
|
||||
tr_list * l;
|
||||
int ruleCount;
|
||||
tr_blocklist * b;
|
||||
const char * defaultName = "blocklist.bin";
|
||||
const char * defaultName = DEFAULT_BLOCKLIST_FILENAME;
|
||||
tr_sessionLock( session );
|
||||
|
||||
for( b = NULL, l = session->blocklists; !b && l; l = l->next )
|
||||
|
|
|
@ -810,6 +810,9 @@ void tr_blocklistSetURL ( tr_session *, const char * url );
|
|||
|
||||
const char * tr_blocklistGetURL ( const tr_session * );
|
||||
|
||||
/** @brief the file in the $config/blocklists/ directory that's
|
||||
used by tr_blocklistSetContent() and "blocklist-update" */
|
||||
#define DEFAULT_BLOCKLIST_FILENAME "blocklist.bin"
|
||||
|
||||
/** @} */
|
||||
|
||||
|
|
Loading…
Reference in a new issue