Add a generic interface for parsing the text protocol.
authorSebastian Harl <sh@tokkee.org>
Sun, 5 Jun 2016 11:59:49 +0000 (13:59 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 25 Sep 2016 10:42:39 +0000 (12:42 +0200)
commit3090a8852788aaca0d8063fdf9ac4ba66f048cd8
tree7b3b5b6ed95b08613d2d71f20ca7ed8100f2aea5
parentad6a1d50e9206fd270a1873759af18a58006e178
Add a generic interface for parsing the text protocol.

Implement it for PUTVAL for now.

The text protocol is used in multiple places and the parser will avoid code
duplication in client programs which can, instead, use it to generate the
respective requests.

Use the 'cmd_' prefix for public functions related to command handling.
src/Makefile.am
src/amqp.c
src/exec.c
src/unixsock.c
src/utils_cmd_putval.c
src/utils_cmd_putval.h
src/utils_cmds.c [new file with mode: 0644]
src/utils_cmds.h [new file with mode: 0644]
src/write_kafka.c