]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: filters: Use the stream filter instance wording in comments
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Oct 2026 07:01:46 +0000 (09:01 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:36 +0000 (16:17 +0200)
Now that a filter configuration is called a filter instance, the per-stream
object created from it and attached to a stream is called a stream filter
instance in the documentation. Use the same wording in the comments
describing the filter instance flags, the attach/detach callbacks, the
'struct filter' and the SPOE stop callback.

The "reprensenting" typo in the 'struct filter' comment is fixed as well.

include/haproxy/filters-t.h
src/flt_spoe.c

index 50ea3c0170d9a3cd94ee4201c9919d73b6fba158..a88626cdc96cb24df471b57923de577e08c75637 100644 (file)
@@ -27,7 +27,7 @@
 /* Flags set on a filter config */
 #define FLT_CFG_FL_HTX    0x00000001  /* The filter can filter HTX streams */
 
-/* Flags set on a filter instance */
+/* Flags set on a stream filter instance */
 #define FLT_FL_IS_BACKEND_FILTER  0x0001 /* The filter is a backend filter */
 #define FLT_FL_IS_REQ_DATA_FILTER 0x0002 /* The filter will parse data on the request channel */
 #define FLT_FL_IS_RSP_DATA_FILTER 0x0004 /* The filter will parse data on the response channel */
@@ -84,7 +84,7 @@ struct flt_kw_list {
  *                          done.
  *
  *
- *  - attach              : Called after a filter instance creation, when it is
+ *  - attach              : Called after a stream filter instance creation, when it is
  *                          attached to a stream. This happens when the stream
  *                          is started for filters defined on the stream's
  *                          frontend and when the backend is set for filters
@@ -105,7 +105,7 @@ struct flt_kw_list {
  *  - stream_stop         : Called when a stream is stopped. This callback will
  *                          only be called for filters defined on the stream's
  *                          frontend.
- *  - detach              : Called when a filter instance is detached from a
+ *  - detach              : Called when a stream filter instance is detached from a
  *                          stream, before its destruction. This happens when
  *                          the stream is stopped for filters defined on the
  *                          stream's frontend and when the analyze ends for
@@ -220,7 +220,7 @@ struct flt_conf {
 };
 
 /*
- * Structure reprensenting a filter instance attached to a stream
+ * Structure representing a stream filter instance attached to a stream
  *
  * 2D-Array fields are used to store info per channel. The first index stands
  * for the request channel, and the second one for the response channel.
index 22b268867df17805ee1c714ba3dfcca234f8550b..0282677657bc070596f31a758867452598a6d937 100644 (file)
@@ -1395,7 +1395,7 @@ static int spoe_start(struct stream *s, struct filter *filter)
        return 1;
 }
 
-/* Called when a filter instance is detached from a stream. It release the
+/* Called when a stream filter instance is detached from a stream. It release the
  * attached SPOE context. */
 static void spoe_stop(struct stream *s, struct filter *filter)
 {