]> git.kaiwu.me - haproxy.git/commit
CLEANUP: tools/cbor: rename cbor_encode_ctx struct members
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 29 Apr 2024 07:20:46 +0000 (09:20 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 29 Apr 2024 12:47:37 +0000 (14:47 +0200)
commit0e2aea8224e42f8730a7786be7ce851abb54ab75
tree0e49f258b42ef13a3765491acc74fa0ac5e33f2a
parent20bc42e69722bb129c62fc2450a4a6757250ee0a
CLEANUP: tools/cbor: rename cbor_encode_ctx struct members

Rename e_byte_fct to e_fct_byte and e_fct_byte_ctx to e_fct_ctx, and
adjust some comments to make it clear that e_fct_ctx is here to provide
additional user-ctx to the custom cbor encode function pointers.

For now, only e_fct_byte function may be provided, but we could imagine
having e_fct_int{16,32,64}() one day to speed up the encoding when we
know we can encode multiple bytes at a time, but for now it's not worth
the hassle.
include/haproxy/tools-t.h
src/log.c
src/tools.c