mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 16:34:42 +00:00
CLEANUP: stream-int: remove stream_int_unregister_handler() and si_detach()
The former was not used anymore and the latter was only used by the former. They were only aliases to other existing functions anyway.
This commit is contained in:
parent
a9ff5e64c1
commit
7a08d3b2d7
@ -46,7 +46,6 @@ extern struct data_cb si_conn_cb;
|
||||
extern struct data_cb si_idle_conn_cb;
|
||||
|
||||
struct appctx *stream_int_register_handler(struct stream_interface *si, struct applet *app);
|
||||
void stream_int_unregister_handler(struct stream_interface *si);
|
||||
void si_applet_done(struct stream_interface *si);
|
||||
|
||||
/* returns the channel which receives data from this stream interface (input channel) */
|
||||
@ -154,11 +153,6 @@ static inline void si_release_endpoint(struct stream_interface *si)
|
||||
si->ops = &si_embedded_ops;
|
||||
}
|
||||
|
||||
static inline void si_detach(struct stream_interface *si)
|
||||
{
|
||||
si_release_endpoint(si);
|
||||
}
|
||||
|
||||
/* Turn a possibly existing connection endpoint of stream interface <si> to
|
||||
* idle mode, which means that the connection will be polled for incoming events
|
||||
* and might be killed by the underlying I/O handler.
|
||||
|
@ -396,14 +396,6 @@ struct appctx *stream_int_register_handler(struct stream_interface *si, struct a
|
||||
return si_appctx(si);
|
||||
}
|
||||
|
||||
/* Unregister a stream interface handler. This must be called by the handler task
|
||||
* itself when it detects that it is in the SI_ST_DIS state.
|
||||
*/
|
||||
void stream_int_unregister_handler(struct stream_interface *si)
|
||||
{
|
||||
si_detach(si);
|
||||
}
|
||||
|
||||
/* This callback is used to send a valid PROXY protocol line to a socket being
|
||||
* established. It returns 0 if it fails in a fatal way or needs to poll to go
|
||||
* further, otherwise it returns non-zero and removes itself from the connection's
|
||||
|
Loading…
Reference in New Issue
Block a user