mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-17 19:06:43 +02:00
MINOR: protocol: add a flags field to store info about protocols
We'll use these flags to know if some protocols are supported, and if so, with what options/extensions. Reuseport will move there for example. Two functions were added to globally set/clear a flag.
This commit is contained in:
@@ -38,6 +38,12 @@ void protocol_register(struct protocol *proto);
|
||||
*/
|
||||
void protocol_unregister(struct protocol *proto);
|
||||
|
||||
/* clears flag <flag> on all protocols. */
|
||||
void protocol_clrf_all(uint flag);
|
||||
|
||||
/* sets flag <flag> on all protocols. */
|
||||
void protocol_setf_all(uint flag);
|
||||
|
||||
/* binds all listeners of all registered protocols. Returns a composition
|
||||
* of ERR_NONE, ERR_RETRYABLE, ERR_FATAL, ERR_ABORT.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user