]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: stream-int: consistently call the si/stream_int functions
authorWilly Tarreau <w@1wt.eu>
Wed, 19 Dec 2018 14:19:27 +0000 (15:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Dec 2018 14:25:43 +0000 (15:25 +0100)
commit14bfe9af12cfe38ae20dfb17ecb923cf6e6112bd
tree893ca96aa0dfbc6f7cf690fb7a79547500fd628d
parent94031d30d71eea0fcb4e7a29388e62ee151a7ddf
CLEANUP: stream-int: consistently call the si/stream_int functions

As long-time changes have accumulated over time, the exported functions
of the stream-interface were almost all prefixed "si_<something>" while
most private ones (mostly callbacks) were called "stream_int_<something>".
There were still a few confusing exceptions, which were addressed to
follow this shcme :
  - stream_sock_read0(), only used internally, was renamed stream_int_read0()
    and made static
  - stream_int_notify() is only private and was made static
  - stream_int_{check_timeouts,report_error,retnclose,register_handler,update}
    were renamed si_<something>.

Now it is clearer when checking one of these if it risks to be used outside
or not.
include/proto/stream_interface.h
include/types/stream_interface.h
src/cache.c
src/cli.c
src/hlua.c
src/proto_http.c
src/proto_htx.c
src/stream.c
src/stream_interface.c