aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-02-05 13:44:27 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-02-05 13:44:27 +0000
commit9d18adec33a4aa888aae7d47664a583d4b7f99a3 (patch)
treef6e0b07dffe90c48885b49930ce35873ff6c7d31 /file.h
parentfa3e5609abf9c87862207239177e62f491476027 (diff)
minor enhancements to Guy's last update
svn path=/trunk/; revision=13304
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);