MINOR: lua: add bindings for tcp and http actions
This patch adds the runtime environment for http and tcp actions.
It provides also the function for action registering.
diff --git a/include/types/hlua.h b/include/types/hlua.h
index a4d1444..20ee080 100644
--- a/include/types/hlua.h
+++ b/include/types/hlua.h
@@ -61,6 +61,17 @@
int function_ref;
};
+/* This struct is used with the structs:
+ * - http_req_rule
+ * - http_res_rule
+ * - tcp_rule
+ * It contains the lua execution configuration.
+ */
+struct hlua_rule {
+ struct hlua_function fcn;
+ char **args;
+};
+
/* This struct contains the pointer provided on the most
* of internal HAProxy calls during the processing of
* rules, converters and sample-fetches. This struct is