diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-02-15 21:47:57 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-02-15 21:47:57 +0000 |
commit | ace4af44fc2aecc93c7663f6f27b8deaae5c2a72 (patch) | |
tree | ab9611fe056fd19c3674191f606c15790b40380c /epan/epan.h | |
parent | 8f2e6281c19dbda07c8ee2d7a7f4c3954480f632 (diff) |
Add a routine to report write errors to the list of failure-reporting
routines handled by epan/report_err.c.
Move copy_binary_file() in file.c to epan/filesystem.c, and rename it to
copy_file_binary_mode() (to clarify that it *can* copy text files;
arguably, *all* files are "binary" unless you're on, say, an IBM 1401
:-)). Have it use the report_err.c routines, so it works in
console-mode programs.
Clean up some comments while we're at it.
svn path=/trunk/; revision=27456
Diffstat (limited to 'epan/epan.h')
-rw-r--r-- | epan/epan.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/epan.h b/epan/epan.h index c8b72d080b..01a8a84957 100644 --- a/epan/epan.h +++ b/epan/epan.h @@ -40,11 +40,15 @@ void epan_init(void (*register_all_protocols_func)(register_cb cb, gpointer clie void *client_data, void (*report_failure)(const char *, va_list), void (*report_open_failure)(const char *, int, gboolean), - void (*report_read_failure)(const char *, int)); + void (*report_read_failure)(const char *, int), + void (*report_write_failure)(const char *, int)); + /* cleanup the whole epan module, this is used to be called only once in a program */ void epan_cleanup(void); + /* Initialize the table of conversations. */ void epan_conversation_init(void); + /* Initialize the table of circuits. */ /* XXX - what is a circuit and should this better be combined with epan_conversation_init? */ void epan_circuit_init(void); |