Commit 948562e3 authored by Geoff Simmons's avatar Geoff Simmons

change the formatter interface to pass in a pointer to an arg_t

parent ca8d0107
This diff is collapsed.
......@@ -34,8 +34,13 @@
/* XXX: should be static, init as fixed size with length max_reclen + 1 */
struct vsb *payload;
typedef void formatter_f(const tx_t *tx, char *name, enum VSL_tag_e tag,
char **s, size_t *len);
typedef struct arg_t {
char *name;
enum VSL_tag_e tag;
} arg_t;
typedef void formatter_f(const tx_t *tx, const arg_t *args, char **s,
size_t *len);
char *get_payload(const logline_t *rec);
logline_t *get_tag(const tx_t *tx, enum VSL_tag_e tag);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment