summaryrefslogtreecommitdiff
path: root/print.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-01-25 00:58:13 +0000
committerGuy Harris <guy@alum.mit.edu>2004-01-25 00:58:13 +0000
commit7502ac216ad7dcef048f1418eb8e34edb953ddac (patch)
tree6285e0506f94a9c4dfbf986131dd1b0f316d19bd /print.h
parent064d5e5e07127d79d1bb02b3c11ff4a5e2ef7939 (diff)
downloadwireshark-7502ac216ad7dcef048f1418eb8e34edb953ddac.tar.gz
There's no need to keep a "FILE *" for the file being printed to in a
"capture_file" structure. Keep it locally, instead. Check for errors when printing packets. Report failure to open a print destination and failure to write to a print destination differently. Don't have the "print preamble" and "print final" routines return success/failure indications - revert to the old scheme where they didn't, and have the callers use "ferror()" to check for errors. Report write errors when printing dissections in Tethereal. Report print errors as errors, not warnings. svn path=/trunk/; revision=9828
Diffstat (limited to 'print.h')
-rw-r--r--print.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/print.h b/print.h
index 0771ba4335..a6bc44d353 100644
--- a/print.h
+++ b/print.h
@@ -1,7 +1,7 @@
/* print.h
* Definitions for printing packet analysis trees.
*
- * $Id: print.h,v 1.35 2004/01/24 10:53:24 guy Exp $
+ * $Id: print.h,v 1.36 2004/01/25 00:58:12 guy Exp $
*
* Gilbert Ramirez <gram@alumni.rice.edu>
*
@@ -66,8 +66,8 @@ typedef struct {
FILE *open_print_dest(int to_file, const char *dest);
gboolean close_print_dest(int to_file, FILE *fh);
-gboolean print_preamble(FILE *fh, gint format);
-gboolean print_finale(FILE *fh, gint format);
+void print_preamble(FILE *fh, gint format);
+void 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);