X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=actions.h;h=618bc255474c4b87df542cad3daa7146f0ed357a;hp=b2ab66ce792f0ff78bf25f76652c335b9f9b04a1;hb=31265b1b2d8f5b81cbde0fcada6271d800430c59;hpb=0428133610c525457cb16f7ac6a54203a2743d6c diff --git a/actions.h b/actions.h index b2ab66ce..618bc255 100644 --- a/actions.h +++ b/actions.h @@ -1,6 +1,5 @@ #ifndef ACTIONS_H_INCLUDED #define ACTIONS_H_INCLUDED -#define ACTIONS_H_VERSION "$Id: actions.h,v 1.19 2009/05/16 13:27:20 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/actions.h,v $ @@ -8,8 +7,8 @@ * Purpose : Declares functions to work with actions files * Functions declared include: FIXME * - * Copyright : Written by and Copyright (C) 2001-2007 the SourceForge - * Privoxy team. http://www.privoxy.org/ + * Copyright : Written by and Copyright (C) 2001-2007 members of the + * Privoxy team. https://www.privoxy.org/ * * Based on the Internet Junkbuster originally written * by and Copyright (C) 1997 Anonymous Coders and @@ -36,11 +35,6 @@ *********************************************************************/ -#ifdef __cplusplus -extern "C" { -#endif - - struct action_spec; struct current_action_spec; struct client_state; @@ -65,10 +59,8 @@ extern void init_action(struct action_spec *dest); extern void free_action(struct action_spec *src); extern jb_err merge_actions (struct action_spec *dest, const struct action_spec *src); -#if 0 -extern int update_action_bits_for_all_tags(struct client_state *csp); -#endif extern int update_action_bits_for_tag(struct client_state *csp, const char *tag); +extern jb_err check_negative_tag_patterns(struct client_state *csp, unsigned int flag); extern jb_err copy_action (struct action_spec *dest, const struct action_spec *src); extern char * actions_to_text (const struct action_spec *action); @@ -80,24 +72,20 @@ extern jb_err merge_current_action (struct current_action_spec *dest, const struct action_spec *src); extern char * current_action_to_html(const struct client_state *csp, const struct current_action_spec *action); +extern char * actions_to_line_of_text(const struct current_action_spec *action); extern jb_err get_action_token(char **line, char **name, char **value); extern void unload_actions_file(void *file_data); extern int load_action_files(struct client_state *csp); +#ifdef FUZZ +extern int load_one_actions_file(struct client_state *csp, int fileid); +#endif #ifdef FEATURE_GRACEFUL_TERMINATION void unload_current_actions_file(void); #endif -/* Revision control strings from this header and associated .c file */ -extern const char actions_rcs[]; -extern const char actions_h_rcs[]; - -#ifdef __cplusplus -} /* extern "C" */ -#endif - #endif /* ndef ACTIONS_H_INCLUDED */ /*