Use "tvb_format_stringzpad()" rather than "tvb_format_text()", as per
[obnox/wireshark/wip.git] / file.h
diff --git a/file.h b/file.h
index ac60b0d6648c94c29bc91752ce13c5d343eaaac1..b72c9d09ba2e0673a8262d16108d678cdcd87237 100644 (file)
--- a/file.h
+++ b/file.h
@@ -1,7 +1,7 @@
 /* file.h
  * Definitions for file structures and routines
  *
- * $Id: file.h,v 1.108 2003/09/24 00:47:36 guy Exp $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -25,6 +25,7 @@
 #ifndef __FILE_H__
 #define __FILE_H__
 
+#include "packet-range.h"
 #include "wiretap/wtap.h"
 #include <epan/dfilter/dfilter.h>
 #include "print.h"
@@ -43,19 +44,29 @@ typedef enum {
 
 int  cf_open(char *, gboolean, capture_file *);
 void cf_close(capture_file *);
-read_status_t cf_read(capture_file *, int *);
+void cf_reload(void);
+read_status_t cf_read(capture_file *);
 int  cf_start_tail(char *, gboolean, capture_file *);
 read_status_t cf_continue_tail(capture_file *, int, int *);
 read_status_t cf_finish_tail(capture_file *, int *);
 /* size_t read_frame_header(capture_file *); */
-gboolean cf_save(char *, capture_file *, gboolean, gboolean, guint);
+gboolean cf_save(char *fname, capture_file * cf, packet_range_t *range, guint save_format);
 gchar *cf_get_display_name(capture_file *);
 
-int filter_packets(capture_file *cf, gchar *dfilter);
+gboolean filter_packets(capture_file *cf, gchar *dfilter, gboolean force);
 void reftime_packets(capture_file *);
 void colorize_packets(capture_file *);
 void redissect_packets(capture_file *cf);
-int print_packets(capture_file *cf, print_args_t *print_args);
+int retap_packets(capture_file *cf);
+typedef enum {
+       PP_OK,
+       PP_OPEN_ERROR,
+       PP_WRITE_ERROR
+} pp_return_t;
+pp_return_t print_packets(capture_file *cf, print_args_t *print_args);
+pp_return_t write_pdml_packets(capture_file *cf, print_args_t *print_args);
+pp_return_t write_psml_packets(capture_file *cf, print_args_t *print_args);
+
 void change_time_formats(capture_file *);
 
 gboolean find_packet_protocol_tree(capture_file *cf, const char *string);
@@ -68,6 +79,10 @@ guint8 get_int_value(char char_val);
 gboolean find_ascii(capture_file *cf, char *ascii_text, gboolean ascii_search, char *ftype, gboolean case_type);
 gboolean find_in_gtk_data(capture_file *cf, gpointer *data, char *ascii_text, gboolean case_type, gboolean search_type);
 gboolean goto_frame(capture_file *cf, guint fnumber);
+gboolean goto_bottom_frame(capture_file *cf);
+gboolean goto_top_frame(capture_file *cf);
+void goto_framenum(capture_file *cf);
+
 
 void select_packet(capture_file *, int);
 void unselect_packet(capture_file *);
@@ -90,8 +105,6 @@ int file_mv(char *from, char *to);
 /* Copies a file. Returns 0 on failure, 1 on success */
 int file_cp(char *from, char *to);
 
-char *file_open_error_message(int, gboolean, int);
-char *file_read_error_message(int);
-char *file_write_error_message(int);
+char *cf_read_error_message(int, gchar *);
 
 #endif /* file.h */