]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: stconn: Remove .wake() callback function from app_ops
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 16:41:31 +0000 (17:41 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 10 Mar 2026 14:10:34 +0000 (15:10 +0100)
.wake() callback function is no longer used by endpoints. So it can be
removed from the app_ops structure.

include/haproxy/stconn-t.h
src/stconn.c

index 08cbf1b382ce70b035fee7d296c53315b86b478e..a9fbac270c0fd2e4e887702590297ebecbf7bdfb 100644 (file)
@@ -358,7 +358,6 @@ struct sc_app_ops {
        void (*chk_snd)(struct stconn *);    /* chk_snd function, may not be null */
        void (*abort)(struct stconn *);      /* abort function, may not be null */
        void (*shutdown)(struct stconn *);   /* shutdown function, may not be null */
-       int  (*wake)(struct stconn *);       /* data-layer callback to report activity */
        char name[8];                        /* data layer name, zero-terminated */
 };
 
index 0a92b569dd89a3f33d38cb8deedd26f1c54e8fcd..d2330f1abbc63f29554c47de0cc314c96a35bea8 100644 (file)
@@ -56,7 +56,6 @@ struct sc_app_ops sc_app_conn_ops = {
        .chk_snd = sc_app_chk_snd_conn,
        .abort   = sc_app_abort_conn,
        .shutdown= sc_app_shut_conn,
-       .wake    = sc_conn_process,
        .name    = "STRM",
 };
 
@@ -66,7 +65,6 @@ struct sc_app_ops sc_app_embedded_ops = {
        .chk_snd = sc_app_chk_snd,
        .abort   = sc_app_abort,
        .shutdown= sc_app_shut,
-       .wake    = NULL,   /* may never be used */
        .name    = "NONE", /* may never be used */
 };
 
@@ -76,7 +74,6 @@ struct sc_app_ops sc_app_applet_ops = {
        .chk_snd = sc_app_chk_snd_applet,
        .abort   = sc_app_abort_applet,
        .shutdown= sc_app_shut_applet,
-       .wake    = sc_applet_process,
        .name    = "STRM",
 };
 
@@ -86,7 +83,6 @@ struct sc_app_ops sc_app_check_ops = {
        .chk_snd = NULL,
        .abort   = NULL,
        .shutdown= NULL,
-       .wake    = wake_srv_chk,
        .name    = "CHCK",
 };
 
@@ -95,7 +91,6 @@ struct sc_app_ops sc_app_hstream_ops = {
        .chk_snd = NULL,
        .abort   = NULL,
        .shutdown= NULL,
-       .wake    = hstream_wake,
        .name    = "HTERM",
 };