MEDIUM: actions: Merge (http|tcp)-(request|reponse) keywords structs
This patch merges the conguration keyword struct. Each declared configuration
keyword struct are similar with the others. This patch simplify the code.
diff --git a/include/types/action.h b/include/types/action.h
index 713631e..9fb0878 100644
--- a/include/types/action.h
+++ b/include/types/action.h
@@ -132,4 +132,16 @@
} arg; /* arguments used by some actions */
};
+struct action_kw {
+ const char *kw;
+ int (*parse)(const char **args, int *cur_arg, struct proxy *px,
+ struct act_rule *rule, char **err);
+ int match_pfx;
+};
+
+struct action_kw_list {
+ struct list list;
+ struct action_kw kw[VAR_ARRAY];
+};
+
#endif /* _TYPES_ACTION_H */