aboutsummaryrefslogtreecommitdiffstats
path: root/ui/file_dialog.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-02-09 11:18:22 -0800
committerGuy Harris <guy@alum.mit.edu>2018-02-09 20:29:08 +0000
commit25d90cb13c6f4296fd0c698ea8b2b67766bfbc88 (patch)
tree18b449c143446b9a70e6b57ffbc3c46780ad8da0 /ui/file_dialog.h
parentbe38102eea170403b66d57d3f8f01ea4d49eaf29 (diff)
downloadwireshark-25d90cb13c6f4296fd0c698ea8b2b67766bfbc88.tar.gz
wireshark-25d90cb13c6f4296fd0c698ea8b2b67766bfbc88.tar.bz2
wireshark-25d90cb13c6f4296fd0c698ea8b2b67766bfbc88.zip
Put the preview-generation loop into a common routine.
Don't have all the file open dialogs have their own copies. Change-Id: Icd6f2fd44b081575e6481a134027c90046938c64 Reviewed-on: https://code.wireshark.org/review/25717 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/file_dialog.h')
-rw-r--r--ui/file_dialog.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/file_dialog.h b/ui/file_dialog.h
index f931fa8f9e..f2aab493b4 100644
--- a/ui/file_dialog.h
+++ b/ui/file_dialog.h
@@ -37,6 +37,22 @@ typedef enum {
export_type_json
} export_type_e;
+typedef struct {
+ double start_time; /* seconds, with nsec resolution */
+ double stop_time; /* seconds, with nsec resolution */
+} ws_file_preview_times;
+
+typedef enum {
+ PREVIEW_HAVE_TIMES,
+ PREVIEW_HAVE_NO_TIMES,
+ PREVIEW_TIMED_OUT,
+ PREVIEW_READ_ERROR
+} ws_file_preview_times_status;
+
+extern ws_file_preview_times_status
+get_times_for_preview(wtap *wth, ws_file_preview_times *times,
+ guint32 *num_packets, int *err, gchar **err_info);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */