]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: connection: Add a SUB_CALL_UNSUBSCRIBE event.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 18 Oct 2018 14:26:57 +0000 (16:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 21 Oct 2018 04:00:04 +0000 (06:00 +0200)
Add a SUB_CALL_UNSUBSCRIBE event, to let the caller know that the
unsubscribe method should be called before destroyin the object.

include/types/connection.h

index da530598a3d8c398b0732a775d9b7ccd02d7caa5..827df36f094bf1763e5f9c255efa8538541810e4 100644 (file)
@@ -48,6 +48,7 @@ struct pipe;
 enum sub_event_type {
        SUB_CAN_SEND        = 0x00000001,  /* Schedule the tasklet when we can send more */
        SUB_CAN_RECV        = 0x00000002,  /* Schedule the tasklet when we can recv more */
+       SUB_CALL_UNSUBSCRIBE = 0x00000004, /* The mux wants its unsubscribe() method to be called before destruction of the underlying object */
 };
 
 struct wait_event {