MINOR: sample: Code factorization "ungrpc" converter.
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 4 Mar 2019 06:33:41 +0000 (07:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Mar 2019 10:03:53 +0000 (11:03 +0100)
commit7c93e88d0c99baf32a5f1c80d911ead9ecc36649
tree5452a50acfd59f742de937a5ca905db14460dcbc
parent9255e7e9713a03486f8fc4ac8deba47a9e621dfe
MINOR: sample: Code factorization "ungrpc" converter.

Parsing protocol buffer fields always consists in skip the field
if the field is not found or store the field value if found.
So, with this patch we factorize a little bit the code for "ungrpc" converter.
include/proto/protocol_buffers.h
include/types/protocol_buffers.h
src/sample.c