X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=actions.c;h=7fbcd3a30d3e84f998ba58a264c02b10f7e481a3;hp=7905231f3ee4c5e3925ed8e5ca861034d35957d1;hb=f0dfc47636316ae1c4ec49e74df8148b8d08aacd;hpb=23009db46e81e5918bda788b31ab5e263d901182 diff --git a/actions.c b/actions.c index 7905231f..7fbcd3a3 100644 --- a/actions.c +++ b/actions.c @@ -1111,12 +1111,18 @@ static const char *filter_type_to_string(enum filter_type filter_type) return "client-header tagger"; case FT_SERVER_HEADER_TAGGER: return "server-header tagger"; + case FT_SUPPRESS_TAG: + return "suppress tag filter"; + case FT_CLIENT_BODY_FILTER: + return "client body filter"; + case FT_CLIENT_BODY_TAGGER: + return "client body tagger"; + case FT_ADD_HEADER: + return "add-header action"; #ifdef FEATURE_EXTERNAL_FILTERS case FT_EXTERNAL_CONTENT_FILTER: return "external content filter"; #endif - case FT_SUPPRESS_TAG: - return "suppress tag filter"; case FT_INVALID_FILTER: return "invalid filter type"; } @@ -1187,7 +1193,8 @@ static int action_spec_is_valid(struct client_state *csp, const struct action_sp {ACTION_MULTI_CLIENT_HEADER_FILTER, FT_CLIENT_HEADER_FILTER}, {ACTION_MULTI_SERVER_HEADER_FILTER, FT_SERVER_HEADER_FILTER}, {ACTION_MULTI_CLIENT_HEADER_TAGGER, FT_CLIENT_HEADER_TAGGER}, - {ACTION_MULTI_SERVER_HEADER_TAGGER, FT_SERVER_HEADER_TAGGER} + {ACTION_MULTI_SERVER_HEADER_TAGGER, FT_SERVER_HEADER_TAGGER}, + {ACTION_MULTI_CLIENT_BODY_FILTER, FT_CLIENT_BODY_FILTER} }; int errors = 0; int i; @@ -1207,7 +1214,7 @@ static int action_spec_is_valid(struct client_state *csp, const struct action_sp * * Function : load_one_actions_file * - * Description : Read and parse a action file and add to files + * Description : Read and parse an action file and add to files * list. * * Parameters : @@ -1641,7 +1648,7 @@ int load_one_actions_file(struct client_state *csp, int fileid) * * Function : actions_to_text * - * Description : Converts a actionsfile entry from the internal + * Description : Converts an actionsfile entry from the internal * structure into a text line. The output is split * into one line for each action with line continuation. * @@ -1727,7 +1734,7 @@ char * actions_to_text(const struct action_spec *action) * * Function : actions_to_html * - * Description : Converts a actionsfile entry from numeric form + * Description : Converts an actionsfile entry from numeric form * ("mask" and "add") to a
-separated HTML string * in which each action is linked to its chapter in * the user manual. @@ -1930,7 +1937,7 @@ char *current_action_to_html(const struct client_state *csp, * * Function : action_to_line_of_text * - * Description : Converts a action spec to a single text line + * Description : Converts an action spec to a single text line * listing the enabled actions. * * Parameters :