]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: protocols: register the ->add function and stop calling them directly
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 05:55:51 +0000 (07:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Sep 2017 09:49:52 +0000 (11:49 +0200)
commit9d5be5c82378ba3b02b2ff94178e5c8aa835f5c6
tree2e714e469745099b925d88627b1d1f6429009a7c
parent3228238c73e944d7e1efef5093d8bdb0de706dd0
MINOR: protocols: register the ->add function and stop calling them directly

cfgparse has no business directly calling each individual protocol's 'add'
function to create a listener. Now that they're all registered, better
perform a protocol lookup on the family and have a standard ->add method
for all of them.
include/proto/proto_tcp.h
include/proto/proto_uxst.h
include/types/protocol.h
src/cfgparse.c
src/proto_tcp.c
src/proto_uxst.c