Commit 4eb7a7e2 authored by Geoff Simmons's avatar Geoff Simmons

writer thread does no header lookups -- indices into the header

tables are stored in compiled formats
parent 4eecae11
This diff is collapsed.
...@@ -35,6 +35,7 @@ typedef struct arg_t { ...@@ -35,6 +35,7 @@ typedef struct arg_t {
char *name; char *name;
enum VSL_tag_e tag; enum VSL_tag_e tag;
int fld; int fld;
int hdr_idx;
} arg_t; } arg_t;
typedef void formatter_f(const tx_t *tx, const arg_t *args, char **s, typedef void formatter_f(const tx_t *tx, const arg_t *args, char **s,
...@@ -42,7 +43,7 @@ typedef void formatter_f(const tx_t *tx, const arg_t *args, char **s, ...@@ -42,7 +43,7 @@ typedef void formatter_f(const tx_t *tx, const arg_t *args, char **s,
char *get_payload(const rec_t *rec); char *get_payload(const rec_t *rec);
rec_t *get_tag(const tx_t *tx, enum VSL_tag_e tag); rec_t *get_tag(const tx_t *tx, enum VSL_tag_e tag);
char *get_hdr(const tx_t *tx, enum VSL_tag_e tag, const char *hdr); char *get_hdr(const tx_t *tx, enum VSL_tag_e tag, int hdr_idx);
char *get_fld(char *str, int n, size_t *len); char *get_fld(char *str, int n, size_t *len);
char *get_rec_fld(const rec_t *rec, int n, size_t *len); char *get_rec_fld(const rec_t *rec, int n, size_t *len);
int hdrcmp(const void *s1, const void *s2); int hdrcmp(const void *s1, const void *s2);
......
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