diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-10-28 01:06:11 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-10-28 01:06:11 +0000 |
commit | dc2280bc1e22000691e46cd213e08b1123e516cd (patch) | |
tree | 2603d0b76b1a0e8b1c63b3a829b880d7b2d03ae0 /merge.h | |
parent | d9bdadc4dd3d4dbaf7581b7ffd21773232003936 (diff) | |
download | wireshark-dc2280bc1e22000691e46cd213e08b1123e516cd.tar.gz wireshark-dc2280bc1e22000691e46cd213e08b1123e516cd.tar.bz2 wireshark-dc2280bc1e22000691e46cd213e08b1123e516cd.zip |
Remove all the verbose-mode code from merge.c, and put most of it in
mergecap.c (get rid of the verbose printing of information for each
packet).
Have "merge_append_files()" return FALSE only on a write error, as
"merge_files()" does.
Sort the routines in "merge.c" in the order from "merge.h".
svn path=/trunk/; revision=12422
Diffstat (limited to 'merge.h')
-rw-r--r-- | merge.h | 25 |
1 files changed, 8 insertions, 17 deletions
@@ -50,27 +50,17 @@ typedef struct merge_out_file_s { int count; } merge_out_file_t; -/** Verbosity levels. */ -typedef enum { - VERBOSE_NONE, - VERBOSE_ERRORS, - VERBOSE_ALL -} verbose_e; - -/** Current verbosity level, default is VERBOSE_NONE. */ -extern int merge_verbose; - /** Open a number of input files to merge. * * @param in_file_count number of entries in in_file_names and in_files * @param in_file_names filenames of the input files * @param in_files input file array to be filled (>= sizeof(merge_in_file_t) * in_file_count) - * @param err wiretap error, if failed and VERBOSE_NONE - * @param err_info wiretap error string, if failed and VERBOSE_NONE - * @param err_fileno file on which open failed, if VERBOSE_NONE - * @return number of opened input files + * @param err wiretap error, if failed + * @param err_info wiretap error string, if failed + * @param err_fileno file on which open failed, if failed + * @return TRUE if all files could be opened, FALSE otherwise */ -extern int +extern gboolean merge_open_in_files(int in_file_count, char *const *in_file_names, merge_in_file_t **in_files, int *err, gchar **err_info, int *err_fileno); @@ -91,7 +81,7 @@ merge_close_in_files(int in_file_count, merge_in_file_t in_files[]); * @param frame_type the frame type to write * @param snapshot_len the snapshot length of the output file * @param err wiretap error, if failed - * @return TRUE, if the output file could be opened + * @return TRUE, if the output file could be opened, and FALSE otherwise */ extern gboolean merge_open_outfile(merge_out_file_t *out_file, int fd, int file_type, @@ -144,7 +134,8 @@ merge_files(int in_file_count, merge_in_file_t in_files[], merge_out_file_t *out * @return TRUE on success or read failure, FALSE on write failure */ extern gboolean -merge_append_files(int in_file_count, merge_in_file_t in_files[], merge_out_file_t *out_file, int *err); +merge_append_files(int in_file_count, merge_in_file_t in_files[], + merge_out_file_t *out_file, int *err); #ifdef __cplusplus } |