/* * Copyright (c) 2012 Tim Ruehsen * Copyright (c) 2015-2021 Free Software Foundation, Inc. * * This file is part of Wget. * * Wget is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Wget is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Wget. If not, see . * * * Header file for IRI blacklist routines * * Changelog * 08.11.2012 Tim Ruehsen created * */ #ifndef SRC_WGET_BLACKLIST_H #define SRC_WGET_BLACKLIST_H #include typedef struct { const wget_iri *iri; char * local_filename; } blacklist_entry; void blacklist_init(void); void blacklist_exit(void); int blacklist_size(void) WGET_GCC_PURE; blacklist_entry *blacklist_add(const wget_iri *iri); blacklist_entry *blacklist_get(const wget_iri *iri); void blacklist_print(void); void blacklist_free(void); void blacklist_set_filename(blacklist_entry *blacklistp, const char *fname); #endif /* SRC_WGET_BLACKLIST_H */