#include <glib.h>
Go to the source code of this file.
Enumerations | |
enum | ignore_val { IGNORE_FALSE = 0, IGNORE_SHA1 = 1, IGNORE_NAMESIZE = 2, IGNORE_LIBRARY = 3, IGNORE_HOSTILE = 4, IGNORE_OURSELVES = 5 } |
Functions | |
void | ignore_init (void) |
Initialize the ignore tables. | |
void | ignore_close (void) |
Called during servent shutdown to free up resources. | |
void | ignore_timer (time_t now) |
Called periodically to check the file timestamps. | |
enum ignore_val | ignore_is_requested (const gchar *file, filesize_t size, gchar *sha1) |
Is ignoring requested for `file' of size `size' and SHA1 `sha1'? Priority is given to the SHA1, if supplied. | |
void | ignore_add_filesize (const gchar *file, filesize_t size) |
Add `file', `size' to the set of ignored entries. | |
void | ignore_add_sha1 (const gchar *file, const gchar *sha1) |
Add `sha1' to the set of ignored entries. | |
gchar * | ignore_sha1_filename (const gchar *sha1) |
|
|
|
Add `file', `size' to the set of ignored entries.
|
|
Add `sha1' to the set of ignored entries.
|
|
Called during servent shutdown to free up resources.
|
|
Initialize the ignore tables.
|
|
Is ignoring requested for `file' of size `size' and SHA1 `sha1'? Priority is given to the SHA1, if supplied.
|
|
|
|
Called periodically to check the file timestamps. If files are newer, they are reloaded, but the previously recorded ignores are NOT forgotten. Therefore, we can ONLY append new ignores. |