From 0ca767c593bd7befaeef247e544444e4b8230f56 Mon Sep 17 00:00:00 2001 From: Lu Qiuwen Date: Wed, 12 Sep 2018 15:56:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3http=5Fsession=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=87=BD=E6=95=B0=E7=9A=84=E5=AE=9A=E4=B9=89=20*=20?= =?UTF-8?q?=E5=8E=BB=E6=8E=89http=5Fsession=5Fpassthough=E5=87=BD=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E8=AF=A5=E5=87=BD=E6=95=B0=E4=B8=8Edetach=E6=84=8F?= =?UTF-8?q?=E4=B9=89=E9=87=8D=E5=A4=8D=EF=BC=8C=E4=B8=8D=E5=86=8D=E4=BF=9D?= =?UTF-8?q?=E7=95=99=E3=80=82=20*=20detach=E4=B8=8D=E9=9C=80=E8=A6=81sessi?= =?UTF-8?q?on=E7=9A=84=E5=8F=AF=E5=86=99=E6=9D=83=E9=99=90=EF=BC=8C?= =?UTF-8?q?=E6=95=85=E5=8F=82=E6=95=B0=E4=BF=AE=E6=AD=A3=E4=B8=BAconst?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/include/tfe_http.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/common/include/tfe_http.h b/common/include/tfe_http.h index 33503a6..f6846a1 100644 --- a/common/include/tfe_http.h +++ b/common/include/tfe_http.h @@ -150,9 +150,8 @@ struct tfe_http_half_ops struct tfe_http_session_ops { struct tfe_http_session * (* ops_allow_write)(const struct tfe_http_session * session); - void (* ops_detach)(struct tfe_http_session * session); + void (* ops_detach)(const struct tfe_http_session * session); void (* ops_drop)(struct tfe_http_session * session); - void (* ops_passthrough)(struct tfe_http_session * session); void (* ops_request_set)(struct tfe_http_session * session, struct tfe_http_half * req); void (* ops_response_set)(struct tfe_http_session * session, struct tfe_http_half * resp); @@ -277,7 +276,7 @@ static inline struct tfe_http_session * tfe_http_session_allow_write(const struc return session->ops->ops_allow_write(session); } -static inline void tfe_http_session_detach(struct tfe_http_session * session) +static inline void tfe_http_session_detach(const struct tfe_http_session * session) { return session->ops->ops_detach(session); } @@ -287,11 +286,6 @@ static inline void tfe_http_session_drop(struct tfe_http_session * session) return session->ops->ops_drop(session); } -static inline void tfe_http_session_passthrough(struct tfe_http_session * session) -{ - return session->ops->ops_passthrough(session); -} - static inline void tfe_http_session_request_set(struct tfe_http_session * session, struct tfe_http_half * req) { return session->ops->ops_request_set(session, req);