From 00bdce24d5aabcd5e4cb69c70207278497ad4552 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Wed, 19 Feb 2020 17:18:57 +0100 Subject: [PATCH] MINOR: connections: Add a new mux method, "takeover". Add a new mux method, "takeover", that will attempt to make the current thread responsible for the connection. It should return 0 on success, and non-zero on failure. --- include/types/connection.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/types/connection.h b/include/types/connection.h index 30cb895..0136be9 100644 --- a/include/types/connection.h +++ b/include/types/connection.h @@ -369,6 +369,7 @@ struct mux_ops { void (*reset)(struct connection *conn); /* Reset the mux, because we're re-trying to connect */ const struct cs_info *(*get_cs_info)(struct conn_stream *cs); /* Return info on the specified conn_stream or NULL if not defined */ int (*ctl)(struct connection *conn, enum mux_ctl_type mux_ctl, void *arg); /* Provides informations about the mux */ + int (*takeover)(struct connection *conn); /* Attempts to migrate the connection to the current thread */ unsigned int flags; /* some flags characterizing the mux's capabilities (MX_FL_*) */ char name[8]; /* mux layer name, zero-terminated */ }; -- 1.7.10.4