]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: applet: Update st0/st1 comment in appctx structure
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Apr 2025 14:30:50 +0000 (16:30 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Apr 2025 13:09:37 +0000 (15:09 +0200)
Today, these states are used by almost all applets. So update the comments
of these fields.

include/haproxy/applet-t.h

index cbd89c476551042d67c4289fb76c5d9149371a13..f28dee4ecca53969d620067db5d0f10e9b24368b 100644 (file)
@@ -101,8 +101,8 @@ struct applet {
 struct appctx {
        enum obj_type obj_type;    /* OBJ_TYPE_APPCTX */
        /* 3 unused bytes here */
-       unsigned int st0;          /* CLI state for stats, session state for peers */
-       unsigned int st1;          /* prompt/payload (bitwise OR of APPCTX_CLI_ST1_*) for stats, session error for peers */
+       unsigned int st0;          /* Main applet state. May be used by any applet */
+       unsigned int st1;          /* Applet substate. Mau be used by any applet */
 
        unsigned int flags;        /* APPCTX_FL_* */
        struct buffer inbuf;