]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: add type_to_smp() helper function
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 10 Jan 2024 13:00:15 +0000 (14:00 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 20 Feb 2024 14:18:39 +0000 (15:18 +0100)
commit0cfcc64b79a8a2497f49e2fc22c65387963db088
treeba89ef13a1620148d78cb36c8ba13cc46c1d2d32
parent2ed6068f2a9c8731560f60e906d1ecb2a0439deb
MINOR: sample: add type_to_smp() helper function

type_to_smp(type) does the reverse operation of smp_to_type[smp]: it takes
a type name as input string and tries to return the corresponding SMP_T_*
smp type or SMP_TYPES if not found.
include/haproxy/sample.h
src/sample.c