MINOR: global: add version comparison functions
authorWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 05:43:35 +0000 (07:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 15:02:36 +0000 (17:02 +0200)
commita43dfda4e12c6cbc4dc5b396d19e02d26d8c2a93
tree8a340c49674b153bf4aa43b98b905c118369d066
parentf0d3b732fb9641e4d47530381408354129462766
MINOR: global: add version comparison functions

The new function split_version() converts a parsable haproxy version to
an array of integers. The function compare_current_version() compares an
arbitrary version to the current one. These two functions were written
by Thierry Fournier in 2013, and are still usable as-is. They will be
used to write config language predicates.
include/haproxy/global.h
src/haproxy.c