diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2007-03-26 20:17:05 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2007-03-26 20:17:05 +0000 |
commit | 509883e3e938f86578cb58781aa3f320347259ed (patch) | |
tree | b55bf221b230f2815e74de52a50a75c4826def87 /print.h | |
parent | d5d5159b6d622cfc12bc8abb269be24529a5795f (diff) | |
download | wireshark-509883e3e938f86578cb58781aa3f320347259ed.tar.gz wireshark-509883e3e938f86578cb58781aa3f320347259ed.tar.bz2 wireshark-509883e3e938f86578cb58781aa3f320347259ed.zip |
From Doug Pratley:
The purpose of the patch is to provide a new output format (so it is
independent of -V): single line record per-packet with the fields chosen by the
user, with configuration options to control separator, quoting and whether a
header line is printed. It also extends some existing options behaviour (-c and
-a:filesize) so that they affect reading a file as well as writing one, so that
only the first <n> packets or bytes are read).
svn path=/trunk/; revision=21211
Diffstat (limited to 'print.h')
-rw-r--r-- | print.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -106,6 +106,18 @@ typedef struct { } print_args_t; /* + * Print user selected list of fields + */ +struct _output_fields; +typedef struct _output_fields output_fields_t; + +extern output_fields_t* output_fields_new(); +extern void output_fields_free(output_fields_t* info); +extern void output_fields_add(output_fields_t* info, const gchar* field); +extern gsize output_fields_num_fields(output_fields_t* info); +extern gboolean output_fields_set_option(output_fields_t* info, gchar* option); +extern void output_fields_list_options(FILE *fh); +/* * Higher-level packet-printing code. */ @@ -125,4 +137,8 @@ extern void write_csv_preamble(FILE *fh); extern void proto_tree_write_csv(epan_dissect_t *edt, FILE *fh); extern void write_csv_finale(FILE *fh); +extern void write_fields_preamble(output_fields_t* fields, FILE *fh); +extern void proto_tree_write_fields(output_fields_t* fields, epan_dissect_t *edt, FILE *fh); +extern void write_fields_finale(output_fields_t* fields, FILE *fh); + #endif /* print.h */ |