X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=loaders.h;h=9d544c4bebb003d110c18e998c83948c141fb785;hp=0e796bb79878f4bf732bd5e886d2a7b61e2e4c8b;hb=8a5751cc96dd085fcbcc34bef77499306bddc0c0;hpb=72081f829de368392d04076728f8c991178c0080 diff --git a/loaders.h b/loaders.h index 0e796bb7..9d544c4b 100644 --- a/loaders.h +++ b/loaders.h @@ -1,16 +1,16 @@ #ifndef LOADERS_H_INCLUDED #define LOADERS_H_INCLUDED -#define LOADERS_H_VERSION "$Id: loaders.h,v 1.19 2002/03/26 22:29:55 swa Exp $" +#define LOADERS_H_VERSION "$Id: loaders.h,v 1.23 2008/03/30 14:52:10 fabiankeil Exp $" /********************************************************************* * - * File : $Source: /cvsroot/ijbswa/current/Attic/loaders.h,v $ + * File : $Source: /cvsroot/ijbswa/current/loaders.h,v $ * * Purpose : Functions to load and unload the various * configuration files. Also contains code to manage * the list of active loaders, and to automatically * unload files that are no longer in use. * - * Copyright : Written by and Copyright (C) 2001 the SourceForge + * Copyright : Written by and Copyright (C) 2001-2009 the * Privoxy team. http://www.privoxy.org/ * * Based on the Internet Junkbuster originally written @@ -37,6 +37,17 @@ * * Revisions : * $Log: loaders.h,v $ + * Revision 1.23 2008/03/30 14:52:10 fabiankeil + * Rename load_actions_file() and load_re_filterfile() + * as they load multiple files "now". + * + * Revision 1.22 2007/06/01 14:12:38 fabiankeil + * Add unload_forward_spec() in preparation for forward-override{}. + * + * Revision 1.21 2006/07/18 14:48:46 david__schmidt + * Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch) + * with what was really the latest development (the v_3_0_branch branch) + * * Revision 1.19 2002/03/26 22:29:55 swa * we have a new homepage! * @@ -168,7 +179,7 @@ struct file_list; struct configuration_spec; struct url_spec; -extern void sweep(void); +extern unsigned int sweep(void); extern char *read_config_line(char *buf, size_t buflen, FILE *fp, unsigned long *linenum); extern int check_file_changed(const struct file_list * current, const char * filename, @@ -202,8 +213,8 @@ extern jb_err simple_read_line(FILE *fp, char **dest, int *newline); extern short int MustReload; -extern int load_actions_file(struct client_state *csp); -extern int load_re_filterfile(struct client_state *csp); +extern int load_action_files(struct client_state *csp); +extern int load_re_filterfiles(struct client_state *csp); #ifdef FEATURE_TRUST extern int load_trustfile(struct client_state *csp); @@ -216,6 +227,7 @@ void unload_current_trust_file(void); void unload_current_re_filterfile(void); #endif /* FEATURE_GRACEFUL_TERMINATION */ +void unload_forward_spec(struct forward_spec *fwd); extern void add_loader(int (*loader)(struct client_state *), struct configuration_spec * config);