MEDIUM: actions: pass a new "flags" argument to custom actions

Since commit bc4c1ac ("MEDIUM: http/tcp: permit to resume http and tcp
custom actions"), some actions may yield and be called back when new
information are available. Unfortunately some of them may continue to
yield because they simply don't know that it's the last call from the
rule set. For this reason we'll need to pass a flag to the custom
action to pass such information and possibly other at the same time.
diff --git a/include/types/action.h b/include/types/action.h
index b7e1063..5a581c7 100644
--- a/include/types/action.h
+++ b/include/types/action.h
@@ -46,6 +46,11 @@
 	ACT_RET_PRS_ERR,   /* abort processing. */
 };
 
+/* flags passed to custom actions */
+enum act_flag {
+	ACT_FLAG_NONE  = 0x00000000,  /* no flag */
+};
+
 enum act_name {
 	ACT_CUSTOM = 0,
 
@@ -91,8 +96,8 @@
 	enum act_name action;                  /* ACT_ACTION_* */
 	enum act_from from;                    /* ACT_F_* */
 	short deny_status;                     /* HTTP status to return to user when denying */
-	enum act_return (*action_ptr)(struct act_rule *rule, struct proxy *px,
-	                              struct session *sess, struct stream *s); /* ptr to custom action */
+	enum act_return (*action_ptr)(struct act_rule *rule, struct proxy *px,  /* ptr to custom action */
+	                              struct session *sess, struct stream *s, int flags);
 	struct action_kw *kw;
 	union {
 		struct {