1 /*
2  * Copyright (c) 2012 Tim Ruehsen
3  * Copyright (c) 2015-2021 Free Software Foundation, Inc.
4  *
5  * This file is part of Wget.
6  *
7  * Wget is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * Wget is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with Wget.  If not, see <https://www.gnu.org/licenses/>.
19  *
20  *
21  * Header file for IRI blacklist routines
22  *
23  * Changelog
24  * 08.11.2012  Tim Ruehsen  created
25  *
26  */
27 
28 #ifndef SRC_WGET_BLACKLIST_H
29 #define SRC_WGET_BLACKLIST_H
30 
31 #include <wget.h>
32 
33 typedef struct {
34 	const wget_iri
35 		*iri;
36 	char *
37 		local_filename;
38 } blacklist_entry;
39 
40 void blacklist_init(void);
41 void blacklist_exit(void);
42 int blacklist_size(void) WGET_GCC_PURE;
43 blacklist_entry *blacklist_add(const wget_iri *iri);
44 blacklist_entry *blacklist_get(const wget_iri *iri);
45 void blacklist_print(void);
46 void blacklist_free(void);
47 void blacklist_set_filename(blacklist_entry *blacklistp, const char *fname);
48 
49 #endif /* SRC_WGET_BLACKLIST_H */
50