diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-01-24 10:53:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-01-24 10:53:25 +0000 |
commit | 65f18bb833c0259fa3705b6f3147f95354d4a101 (patch) | |
tree | 4f33de0c36a5dc83443857df1e1cd4ff680fbe32 /print.h | |
parent | 7180513677713540595701ba3dc91c62a895fe89 (diff) |
As with "file_write_error_message()", so with
"file_close_error_message()" - but just use "file_write_error_message()"
for UNIX-style errors, under the assumption that a close will only fail
because a buffer-flushing write fails or because "close()" itself fails
when, for example, pushing unsynced NFS client-side writes out over the
wire.
Make several routines in "print.c" return success/failure indications.
Check for write errors when printing "Follow TCP Stream" stuff or saving
it to a file.
svn path=/trunk/; revision=9825
Diffstat (limited to 'print.h')
-rw-r--r-- | print.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,7 @@ /* print.h * Definitions for printing packet analysis trees. * - * $Id: print.h,v 1.34 2004/01/09 18:10:40 ulfl Exp $ + * $Id: print.h,v 1.35 2004/01/24 10:53:24 guy Exp $ * * Gilbert Ramirez <gram@alumni.rice.edu> * @@ -65,9 +65,9 @@ typedef struct { /* Functions in print.h */ FILE *open_print_dest(int to_file, const char *dest); -void close_print_dest(int to_file, FILE *fh); -void print_preamble(FILE *fh, gint format); -void print_finale(FILE *fh, gint format); +gboolean close_print_dest(int to_file, FILE *fh); +gboolean print_preamble(FILE *fh, gint format); +gboolean print_finale(FILE *fh, gint format); void proto_tree_print(print_args_t *print_args, epan_dissect_t *edt, FILE *fh); void print_hex_data(FILE *fh, gint format, epan_dissect_t *edt); |