BUILD: http_rules: do not declare http_*_keywords_registre() inline
The 3 functions http_{req,res,after_res}_keywords_register() are
referenced in initcalls by their pointer, it makes no sense to declare
them inline. At best it causes function duplication, at worst it doesn't
build on older compilers.
diff --git a/src/http_rules.c b/src/http_rules.c
index 0d6e165..2ed9dfc 100644
--- a/src/http_rules.c
+++ b/src/http_rules.c
@@ -50,6 +50,21 @@
.list = LIST_HEAD_INIT(http_after_res_keywords.list)
};
+void http_req_keywords_register(struct action_kw_list *kw_list)
+{
+ LIST_APPEND(&http_req_keywords.list, &kw_list->list);
+}
+
+void http_res_keywords_register(struct action_kw_list *kw_list)
+{
+ LIST_APPEND(&http_res_keywords.list, &kw_list->list);
+}
+
+void http_after_res_keywords_register(struct action_kw_list *kw_list)
+{
+ LIST_APPEND(&http_after_res_keywords.list, &kw_list->list);
+}
+
/*
* Return the struct http_req_action_kw associated to a keyword.
*/