[][src]Function transmission_sys::tr_blocklistSetContent

pub unsafe extern "C" fn tr_blocklistSetContent(
    session: *mut tr_session,
    filename: *const c_char
) -> c_int

Specify a range of IPs for Transmission to block.

Filename must be an uncompressed ascii file.

libtransmission does not keep a handle to filename' after this call returns, so the caller is free to keep or deletefilename' as it wishes. libtransmission makes its own copy of the file massaged into a binary format easier to search.

The caller only needs to invoke this when the blocklist has changed.

Passing NULL for a filename will clear the blocklist.