aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-05 13:44:27 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-05 13:44:27 +0000
commit9bd342257ddd6383a94c790cf1fae28e69cd96f7 (patch)
treef6e0b07dffe90c48885b49930ce35873ff6c7d31 /file.h
parent3b752b1b855878882538e1f4824bffcf512ee09a (diff)
minor enhancements to Guy's last update
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13304 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'file.h')
-rw-r--r--file.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/file.h b/file.h
index eb7086e8b4..8e92d4f7a3 100644
--- a/file.h
+++ b/file.h
@@ -34,12 +34,14 @@
#include "cfile.h"
-/** Return values from functions that read capture files. */
+
+/** Return values from functions that only can succeed or fail. */
typedef enum {
- CF_OK, /**< operation succeeded */
+ CF_OK, /**< operation succeeded */
CF_ERROR /**< operation got an error (function may provide err with details) */
} cf_status_t;
+/** Return values from functions that read capture files. */
typedef enum {
CF_READ_OK, /**< operation succeeded */
CF_READ_ERROR, /**< operation got an error (function may provide err with details) */
@@ -48,7 +50,7 @@ typedef enum {
/** Return values from functions that print sets of packets. */
typedef enum {
- CF_PRINT_OK, /**< operation succeeded */
+ CF_PRINT_OK, /**< print operation succeeded */
CF_PRINT_OPEN_ERROR, /**< print operation failed while opening printer */
CF_PRINT_WRITE_ERROR /**< print operation failed while writing to the printer */
} cf_print_status_t;
@@ -399,7 +401,7 @@ char *cf_read_error_message(int err, const gchar *err_info);
* @param do_append FALSE to merge chronologically, TRUE simply append
* @return TRUE if merging suceeded, FALSE otherwise
*/
-gboolean
+cf_status_t
cf_merge_files(const char *out_filename, int out_fd, int in_file_count,
char *const *in_filenames, int file_type, gboolean do_append);