Ignore:
Timestamp:
Jun 11, 2008, 4:15:45 PM (13 years ago)
Author:
charles
Message:

(libT) allow custom blocklists... now all you need to do is place a file in the blocklists/ folder and Transmission will automatically use it the next time it starts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/blocklist.h

    r5959 r6140  
    1818
    1919tr_blocklist* _tr_blocklistNew         ( const char * filename, int isEnabled );
    20 void          _tr_blocklistFree        ( tr_blocklist * b );
    21 int           _tr_blocklistGetRuleCount( tr_blocklist * b );
    22 int           _tr_blocklistIsEnabled   ( tr_blocklist * b );
    23 void          _tr_blocklistSetEnabled  ( tr_blocklist * b, int isEnabled );
    24 int           _tr_blocklistHasAddress  ( tr_blocklist * b, const struct in_addr * addr );
    25 int           _tr_blocklistExists      ( const tr_blocklist * b );
    26 int           _tr_blocklistSetContent  ( tr_blocklist * b, const char * filename );
     20int           _tr_blocklistExists      ( const tr_blocklist * );
     21const char*   _tr_blocklistGetFilename ( const tr_blocklist * );
     22int           _tr_blocklistGetRuleCount( const tr_blocklist * );
     23void          _tr_blocklistFree        ( tr_blocklist * );
     24int           _tr_blocklistIsEnabled   ( tr_blocklist * );
     25void          _tr_blocklistSetEnabled  ( tr_blocklist *, int isEnabled );
     26int           _tr_blocklistHasAddress  ( tr_blocklist *, const struct in_addr * addr );
     27int           _tr_blocklistSetContent  ( tr_blocklist *, const char * filename );
    2728
    2829#endif
Note: See TracChangeset for help on using the changeset viewer.