X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=options.h;h=9628dfe28f7148c415a31f1f6238fa1706b51f93;hb=refs%2Fheads%2Fpps-accounting;hp=01232855ba8a2613c8186e290519ecf6b7aa8b0e;hpb=cd1db5a0a5c698b647e554a003c7e48b5db695f5;p=iftop.git diff --git a/options.h b/options.h index 0123285..9628dfe 100644 --- a/options.h +++ b/options.h @@ -34,6 +34,12 @@ typedef enum { OPTION_LINEDISPLAY_ONE_LINE_SENT } option_linedisplay_t; +typedef enum { + OPTION_BW_BITS, + OPTION_BW_BYTES, + OPTION_BW_PKTS, +} option_bw_unit_t; + /* * This structure has to be defined in the same order as the config * directives in cfgfile.c. Clearly this is EBW. @@ -56,7 +62,10 @@ typedef struct { int aggregate_dest; int paused; int showhelp; - int bandwidth_in_bytes; + int timed_output; + int no_curses; + int num_lines; + option_bw_unit_t bandwidth_unit; option_sort_t sort; int bar_interval; @@ -93,5 +102,7 @@ typedef struct { void options_set_defaults(); void options_read(int argc, char **argv); +void options_read_args(int argc, char **argv); +void options_make(); #endif /* __OPTIONS_H_ */