summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-10-11 17:20:50 +0000
committerGerald Combs <gerald@wireshark.org>2013-10-11 17:20:50 +0000
commit259768dc1ae8894c1ae758c762389e3926be4bfb (patch)
tree302f8e99883053a6fad30cd5fb114ffc191517c8 /ui
parentee5397d832bc1b19791ffe1280621a6b327cae23 (diff)
downloadwireshark-259768dc1ae8894c1ae758c762389e3926be4bfb.tar.gz
Remove GTK+ and global cfile dependencies from file_dlg_win32.c.
Move the declaration of set_last_open_dir() to ui/util.h. It still has separate GTK+ and Qt implemenations. We might want to move it to ui/util.c at some point. Remove a lot of unnecessary GTK+ includes. Remove most of the references to the global cfile while we're at it. svn path=/trunk/; revision=52542
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/capture_file_dlg.c4
-rw-r--r--ui/gtk/file_dlg.h7
-rw-r--r--ui/gtk/packet_panes.c2
-rw-r--r--ui/qt/capture_file_dialog.cpp2
-rw-r--r--ui/qt/main_window.cpp3
-rw-r--r--ui/qt/qt_ui_utils.h2
-rw-r--r--ui/qt/wireshark_application.cpp1
-rw-r--r--ui/util.h6
-rw-r--r--ui/win32/file_dlg_win32.c89
-rw-r--r--ui/win32/file_dlg_win32.h8
10 files changed, 68 insertions, 56 deletions
diff --git a/ui/gtk/capture_file_dlg.c b/ui/gtk/capture_file_dlg.c
index 67cab383d7..72e7e79194 100644
--- a/ui/gtk/capture_file_dlg.c
+++ b/ui/gtk/capture_file_dlg.c
@@ -2032,7 +2032,7 @@ file_export_specified_packets_cmd_cb(GtkWidget *w _U_, gpointer data _U_) {
for (;;) {
#ifdef USE_WIN32_FILE_DIALOGS
if (win32_export_specified_packets_file(GDK_WINDOW_HWND(gtk_widget_get_window(top_level)),
- file_name, &file_type, &compressed, &range)) {
+ &cfile, file_name, &file_type, &compressed, &range)) {
#else /* USE_WIN32_FILE_DIALOGS */
if (gtk_export_specified_packets_file(w, file_name, &file_type, &compressed, &range)) {
#endif /* USE_WIN32_FILE_DIALOGS */
@@ -2312,7 +2312,7 @@ void
file_color_export_cmd_cb(GtkWidget *w _U_, gpointer filter_list)
{
#ifdef USE_WIN32_FILE_DIALOGS
- win32_export_color_file(GDK_WINDOW_HWND(gtk_widget_get_window(top_level)), filter_list);
+ win32_export_color_file(GDK_WINDOW_HWND(gtk_widget_get_window(top_level)), &cfile, filter_list);
#else /* USE_WIN32_FILE_DIALOGS */
GtkWidget *file_color_export_w;
GtkWidget *main_vb, *cfglobal_but;
diff --git a/ui/gtk/file_dlg.h b/ui/gtk/file_dlg.h
index d2659d04b8..f0c0106dbf 100644
--- a/ui/gtk/file_dlg.h
+++ b/ui/gtk/file_dlg.h
@@ -132,11 +132,4 @@ extern gboolean file_target_unwritable_ui(GtkWidget *chooser_w, char *cf_name);
extern void
file_selection_browse(GtkWidget *file_bt, GtkWidget *file_te, const char *title, file_selection_action_t action);
-/** Set the latest opened directory.
- * Will already be done when using file_selection_new().
- *
- * @param dirname the dirname
- */
-extern void set_last_open_dir(const char *dirname);
-
#endif
diff --git a/ui/gtk/packet_panes.c b/ui/gtk/packet_panes.c
index 9ae9888abe..cf749ea425 100644
--- a/ui/gtk/packet_panes.c
+++ b/ui/gtk/packet_panes.c
@@ -758,7 +758,7 @@ savehex_save_clicked_cb(gchar *file, int start, int end, const guint8 *data_p)
void
savehex_cb(GtkWidget * w _U_, gpointer data _U_)
{
- win32_export_raw_file(GDK_WINDOW_HWND(gtk_widget_get_window(top_level)));
+ win32_export_raw_file(GDK_WINDOW_HWND(gtk_widget_get_window(top_level)), &cfile);
return;
}
#else
diff --git a/ui/qt/capture_file_dialog.cpp b/ui/qt/capture_file_dialog.cpp
index 2e22e6de17..450b471106 100644
--- a/ui/qt/capture_file_dialog.cpp
+++ b/ui/qt/capture_file_dialog.cpp
@@ -267,7 +267,7 @@ check_savability_t CaptureFileDialog::exportSelectedPackets(QString &file_name,
GString *fname = g_string_new(file_name.toUtf8().constData());
gboolean wespf_status;
- wespf_status = win32_export_specified_packets_file((HWND)parentWidget()->effectiveWinId(), fname, &file_type_, &compressed_, range);
+ wespf_status = win32_export_specified_packets_file((HWND)parentWidget()->effectiveWinId(), cap_file_, fname, &file_type_, &compressed_, range);
file_name = fname->str;
g_string_free(fname, TRUE);
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp
index d60d06f08c..2d7d01b96b 100644
--- a/ui/qt/main_window.cpp
+++ b/ui/qt/main_window.cpp
@@ -41,8 +41,9 @@
#endif
#include "ui/alert_box.h"
-#include "ui/main_statusbar.h"
#include "ui/capture_globals.h"
+#include "ui/main_statusbar.h"
+#include "ui/util.h"
#include "wireshark_application.h"
#include "proto_tree.h"
diff --git a/ui/qt/qt_ui_utils.h b/ui/qt/qt_ui_utils.h
index af3409393a..09f5007209 100644
--- a/ui/qt/qt_ui_utils.h
+++ b/ui/qt/qt_ui_utils.h
@@ -67,8 +67,6 @@ struct remote_host_t {
gboolean nocap_local;
};
-// Referenced from ui/win32/file_dlg_win32.c and implemented in wireshark_application.cpp
-extern void set_last_open_dir(const char *dirname);
extern gboolean main_do_quit(void);
#ifdef __cplusplus
diff --git a/ui/qt/wireshark_application.cpp b/ui/qt/wireshark_application.cpp
index 66a8b762d1..a5b899deb8 100644
--- a/ui/qt/wireshark_application.cpp
+++ b/ui/qt/wireshark_application.cpp
@@ -29,6 +29,7 @@
#include "ui/recent.h"
#include "ui/simple_dialog.h"
+#include "ui/util.h"
#include "qt_ui_utils.h"
diff --git a/ui/util.h b/ui/util.h
index 214443292f..7fb5e17df1 100644
--- a/ui/util.h
+++ b/ui/util.h
@@ -52,6 +52,12 @@ void compute_timestamp_diff(gint *diffsec, gint *diffusec,
*/
const char *get_conn_cfilter(void);
+/** Set the latest opened directory.
+ * Will already be done when using file_selection_new().
+ *
+ * @param dirname the dirname
+ */
+extern void set_last_open_dir(const char *dirname);
#ifdef __cplusplus
}
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c
index ec85cc41c1..c31193f809 100644
--- a/ui/win32/file_dlg_win32.c
+++ b/ui/win32/file_dlg_win32.c
@@ -38,7 +38,7 @@
#include <richedit.h>
#include <strsafe.h>
-#include <gtk/gtk.h>
+#include "file.h"
#include "wsutil/file_util.h"
#include "wsutil/unicode-utils.h"
@@ -61,14 +61,7 @@
#include "ui/ssl_key_export.h"
#include "ui/util.h"
-#include "ui/gtk/main.h"
-#include "ui/gtk/file_dlg.h"
-#include "ui/gtk/capture_file_dlg.h"
-#include "ui/gtk/menus.h"
-#include "ui/gtk/drag_and_drop.h"
-#include "ui/gtk/capture_dlg.h"
#include "file_dlg_win32.h"
-#include "ui/gtk/export_sslkeys.h"
#define FILE_OPEN_DEFAULT 1 /* All Files */
@@ -117,6 +110,7 @@ static TCHAR *build_file_save_type_list(GArray *savable_file_types);
static int g_filetype;
static gboolean g_compressed;
static packet_range_t *g_range;
+static capture_file *g_cf;
static merge_action_e g_merge_action;
static print_args_t print_args;
/* XXX - The reason g_sf_hwnd exists is so that we can call
@@ -393,6 +387,7 @@ win32_save_as_file(HWND h_wnd, capture_file *cf, GString *file_name, int *file_t
OFN_NOCHANGEDIR | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY |
OFN_PATHMUSTEXIST | OFN_ENABLEHOOK | OFN_SHOWHELP;
ofn->lpstrDefExt = NULL;
+ ofn->lCustData = (LPARAM) cf;
ofn->lpfnHook = save_as_file_hook_proc;
ofn->lpTemplateName = _T("WIRESHARK_SAVEASFILENAME_TEMPLATE");
@@ -423,7 +418,8 @@ win32_save_as_file(HWND h_wnd, capture_file *cf, GString *file_name, int *file_t
}
gboolean
-win32_export_specified_packets_file(HWND h_wnd, GString *file_name,
+win32_export_specified_packets_file(HWND h_wnd, capture_file *cf,
+ GString *file_name,
int *file_type,
gboolean *compressed,
packet_range_t *range) {
@@ -443,12 +439,13 @@ win32_export_specified_packets_file(HWND h_wnd, GString *file_name,
StringCchCopy(file_name16, MAX_PATH, utf_8to16(file_name->str));
}
- savable_file_types = wtap_get_savable_file_types(cfile.cd_t,
- cfile.linktypes, 0);
+ savable_file_types = wtap_get_savable_file_types(cf->cd_t,
+ cf->linktypes, 0);
if (savable_file_types == NULL)
return FALSE; /* shouldn't happen - the "Save As..." item should be disabled if we can't save the file */
g_range = range;
+ g_cf = cf;
g_compressed = FALSE;
/* see OPENFILENAME comment in win32_open_file */
@@ -507,6 +504,7 @@ win32_export_specified_packets_file(HWND h_wnd, GString *file_name,
g_sf_hwnd = NULL;
g_range = NULL;
+ g_cf = NULL;
g_array_free(savable_file_types, TRUE);
g_free( (void *) ofn->lpstrFilter);
g_free( (void *) ofn);
@@ -648,6 +646,7 @@ win32_export_file(HWND h_wnd, capture_file *cf, export_type_e export_type) {
OFN_NOCHANGEDIR | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY |
OFN_PATHMUSTEXIST | OFN_ENABLEHOOK | OFN_SHOWHELP;
ofn->lpstrDefExt = NULL;
+ ofn->lCustData = (LPARAM) cf;
ofn->lpfnHook = export_file_hook_proc;
ofn->lpTemplateName = _T("WIRESHARK_EXPORTFILENAME_TEMPLATE");
@@ -719,7 +718,7 @@ win32_export_file(HWND h_wnd, capture_file *cf, export_type_e export_type) {
}
void
-win32_export_raw_file(HWND h_wnd) {
+win32_export_raw_file(HWND h_wnd, capture_file *cf) {
OPENFILENAME *ofn;
TCHAR file_name[MAX_PATH] = _T("");
char *dirname;
@@ -731,7 +730,7 @@ win32_export_raw_file(HWND h_wnd) {
OSVERSIONINFO osvi;
#endif
- if (!cfile.finfo_selected) {
+ if (!cf->finfo_selected) {
/* This shouldn't happen */
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "No bytes were selected.");
return;
@@ -769,26 +768,26 @@ win32_export_raw_file(HWND h_wnd) {
OFN_NOCHANGEDIR | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY |
OFN_PATHMUSTEXIST | OFN_ENABLEHOOK | OFN_SHOWHELP;
ofn->lpstrDefExt = NULL;
- ofn->lCustData = cfile.finfo_selected->length;
+ ofn->lCustData = cf->finfo_selected->length;
ofn->lpfnHook = export_raw_file_hook_proc;
ofn->lpTemplateName = _T("WIRESHARK_EXPORTRAWFILENAME_TEMPLATE");
/*
* XXX - The GTK+ code uses get_byte_view_data_and_length(). We just
- * grab the info from cfile.finfo_selected. Which is more "correct"?
+ * grab the info from cf->finfo_selected. Which is more "correct"?
*/
if (GetSaveFileName(ofn)) {
g_free( (void *) ofn);
file_name8 = utf_16to8(file_name);
- data_p = tvb_get_ptr(cfile.finfo_selected->ds_tvb, 0, -1) +
- cfile.finfo_selected->start;
+ data_p = tvb_get_ptr(cf->finfo_selected->ds_tvb, 0, -1) +
+ cf->finfo_selected->start;
fd = ws_open(file_name8, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0666);
if (fd == -1) {
open_failure_alert_box(file_name8, errno, TRUE);
return;
}
- if (write(fd, data_p, cfile.finfo_selected->length) < 0) {
+ if (write(fd, data_p, cf->finfo_selected->length) < 0) {
write_failure_alert_box(file_name8, errno);
close(fd);
return;
@@ -899,7 +898,7 @@ win32_export_sslkeys_file(HWND h_wnd) {
}
void
-win32_export_color_file(HWND h_wnd, gpointer filter_list) {
+win32_export_color_file(HWND h_wnd, capture_file *cf, gpointer filter_list) {
OPENFILENAME *ofn;
TCHAR file_name[MAX_PATH] = _T("");
gchar *dirname;
@@ -943,7 +942,7 @@ win32_export_color_file(HWND h_wnd, gpointer filter_list) {
ofn->lpfnHook = NULL;
ofn->lpTemplateName = NULL;
- g_filetype = cfile.cd_t;
+ g_filetype = cf->cd_t;
/* XXX - Support marked filters */
if (GetSaveFileName(ofn)) {
@@ -1660,11 +1659,13 @@ save_as_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) {
/*int new_filetype, index;*/
switch(msg) {
- case WM_INITDIALOG:
+ case WM_INITDIALOG: {
+ OPENFILENAME *ofnp = (OPENFILENAME *) l_param;
+ capture_file *cf = (capture_file *) ofnp->lCustData;
g_sf_hwnd = sf_hwnd;
/* Default to saving in the file's current format. */
- g_filetype = cfile.cd_t;
+ g_filetype = cf->cd_t;
/* Fill in the file format list */
/*build_file_format_list(sf_hwnd);*/
@@ -1673,6 +1674,7 @@ save_as_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) {
SendMessage(cur_ctrl, BM_SETCHECK, g_compressed, 0);
break;
+ }
case WM_COMMAND:
cur_ctrl = (HWND) l_param;
@@ -1723,6 +1725,8 @@ save_as_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) {
case CDN_FILEOK: {
HWND parent;
char *file_name8;
+ OPENFILENAME *ofnp = (OPENFILENAME *) notify->lpOFN;
+ capture_file *cf = (capture_file *) ofnp->lCustData;
/* Fetch our compression value */
cur_ctrl = GetDlgItem(sf_hwnd, EWFD_GZIP_CB);
@@ -1734,7 +1738,7 @@ save_as_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) {
/* Check if we're trying to overwrite the currently open file */
parent = GetParent(sf_hwnd);
file_name8 = utf_16to8(notify->lpOFN->lpstrFile);
- if (files_identical(cfile.filename, file_name8)) {
+ if (files_identical(cf->filename, file_name8)) {
/* XXX: Is MessageBox the best way to pop up an error ? How to make text bold ? */
gchar *str = g_strdup_printf(
"Capture File \"%s\" identical to loaded file.\n\n"
@@ -1765,11 +1769,11 @@ export_specified_packets_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param,
/*int new_filetype, index;*/
switch(msg) {
- case WM_INITDIALOG:
+ case WM_INITDIALOG: {
g_sf_hwnd = sf_hwnd;
/* Default to saving all packets, in the file's current format. */
- g_filetype = cfile.cd_t;
+ g_filetype = g_cf->cd_t;
/* Fill in the file format list */
/*build_file_format_list(sf_hwnd);*/
@@ -1781,6 +1785,7 @@ export_specified_packets_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param,
SendMessage(cur_ctrl, BM_SETCHECK, g_compressed, 0);
break;
+ }
case WM_COMMAND:
cur_ctrl = (HWND) l_param;
@@ -1823,6 +1828,8 @@ export_specified_packets_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param,
case CDN_FILEOK: {
HWND parent;
char *file_name8;
+ OPENFILENAME *ofnp = (OPENFILENAME *) notify->lpOFN;
+ capture_file *cf = (capture_file *) ofnp->lCustData;
/* Fetch our compression value */
cur_ctrl = GetDlgItem(sf_hwnd, EWFD_GZIP_CB);
@@ -1834,7 +1841,7 @@ export_specified_packets_file_hook_proc(HWND sf_hwnd, UINT msg, WPARAM w_param,
/* Check if we're trying to overwrite the currently open file */
parent = GetParent(sf_hwnd);
file_name8 = utf_16to8(notify->lpOFN->lpstrFile);
- if (files_identical(cfile.filename, file_name8)) {
+ if (files_identical(cf->filename, file_name8)) {
/* XXX: Is MessageBox the best way to pop up an error ? How to make text bold ? */
gchar *str = g_strdup_printf(
"Capture File \"%s\" identical to loaded file.\n\n"
@@ -1878,9 +1885,9 @@ range_update_dynamics(HWND dlg_hwnd, packet_range_t *range) {
cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_ALL_PKTS_CAP);
EnableWindow(cur_ctrl, !filtered_active);
if (range->remove_ignored) {
- StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("%u"), cfile.count - range->ignored_cnt);
+ StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("%u"), g_cf->count - range->ignored_cnt);
} else {
- StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("%u"), cfile.count);
+ StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("%u"), g_cf->count);
}
SetWindowText(cur_ctrl, static_val);
@@ -1898,10 +1905,10 @@ range_update_dynamics(HWND dlg_hwnd, packet_range_t *range) {
SetWindowText(cur_ctrl, static_val);
/* RANGE_SELECT_CURR */
- selected_num = (cfile.current_frame) ? cfile.current_frame->num : 0;
+ selected_num = (g_cf->current_frame) ? g_cf->current_frame->num : 0;
cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_SEL_PKT_CAP);
EnableWindow(cur_ctrl, selected_num && !filtered_active);
- if (range->remove_ignored && cfile.current_frame && cfile.current_frame->flags.ignored) {
+ if (range->remove_ignored && g_cf->current_frame && g_cf->current_frame->flags.ignored) {
StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("0"));
} else {
StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("%u"), selected_num ? 1 : 0);
@@ -1910,7 +1917,7 @@ range_update_dynamics(HWND dlg_hwnd, packet_range_t *range) {
cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_SEL_PKT_DISP);
EnableWindow(cur_ctrl, selected_num && filtered_active);
- if (range->remove_ignored && cfile.current_frame && cfile.current_frame->flags.ignored) {
+ if (range->remove_ignored && g_cf->current_frame && g_cf->current_frame->flags.ignored) {
StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("0"));
} else {
StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("%u"), selected_num ? 1 : 0);
@@ -1919,19 +1926,19 @@ range_update_dynamics(HWND dlg_hwnd, packet_range_t *range) {
/* RANGE_SELECT_MARKED */
cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_MARKED_BTN);
- EnableWindow(cur_ctrl, cfile.marked_count);
+ EnableWindow(cur_ctrl, g_cf->marked_count);
cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_MARKED_CAP);
- EnableWindow(cur_ctrl, cfile.marked_count && !filtered_active);
+ EnableWindow(cur_ctrl, g_cf->marked_count && !filtered_active);
if (range->remove_ignored) {
- StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("%u"), cfile.marked_count - range->ignored_marked_cnt);
+ StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("%u"), g_cf->marked_count - range->ignored_marked_cnt);
} else {
- StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("%u"), cfile.marked_count);
+ StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("%u"), g_cf->marked_count);
}
SetWindowText(cur_ctrl, static_val);
cur_ctrl = GetDlgItem(dlg_hwnd, EWFD_MARKED_DISP);
- EnableWindow(cur_ctrl, cfile.marked_count && filtered_active);
+ EnableWindow(cur_ctrl, g_cf->marked_count && filtered_active);
if (range->remove_ignored) {
StringCchPrintf(static_val, STATIC_LABEL_CHARS, _T("%u"), range->displayed_marked_cnt - range->displayed_ignored_marked_cnt);
} else {
@@ -2015,7 +2022,7 @@ range_update_dynamics(HWND dlg_hwnd, packet_range_t *range) {
displayed_ignored_cnt = range->displayed_ignored_cnt;
break;
case(range_process_selected):
- ignored_cnt = (cfile.current_frame && cfile.current_frame->flags.ignored) ? 1 : 0;
+ ignored_cnt = (g_cf->current_frame && g_cf->current_frame->flags.ignored) ? 1 : 0;
displayed_ignored_cnt = ignored_cnt;
break;
case(range_process_marked):
@@ -2243,15 +2250,19 @@ export_file_hook_proc(HWND ef_hwnd, UINT msg, WPARAM w_param, LPARAM l_param) {
int i, index;
switch(msg) {
- case WM_INITDIALOG:
+ case WM_INITDIALOG: {
+ OPENFILENAME *ofnp = (OPENFILENAME *) l_param;
+ capture_file *cf = (capture_file *) ofnp->lCustData;
+
/* init the printing range */
- packet_range_init(&print_args.range, &cfile);
+ packet_range_init(&print_args.range, cf);
/* default to displayed packets */
print_args.range.process_filtered = TRUE;
range_handle_wm_initdialog(ef_hwnd, &print_args.range);
format_handle_wm_initdialog(ef_hwnd, &print_args);
break;
+ }
case WM_COMMAND:
cur_ctrl = (HWND) l_param;
switch (w_param) {
diff --git a/ui/win32/file_dlg_win32.h b/ui/win32/file_dlg_win32.h
index 3c3b07508f..a317f49d9e 100644
--- a/ui/win32/file_dlg_win32.h
+++ b/ui/win32/file_dlg_win32.h
@@ -75,7 +75,9 @@ gboolean win32_save_as_file(HWND h_wnd, capture_file *cf,
*
* @return TRUE if packets were discarded when saving, FALSE otherwise
*/
-gboolean win32_export_specified_packets_file(HWND h_wnd, GString *file_name,
+gboolean win32_export_specified_packets_file(HWND h_wnd,
+ capture_file *cf,
+ GString *file_name,
int *file_type,
gboolean *compressed,
packet_range_t *range);
@@ -98,7 +100,7 @@ void win32_export_file (HWND h_wnd, capture_file *cf, export_type_e export_type)
*
* @param h_wnd HWND of the parent window.
*/
-void win32_export_raw_file (HWND h_wnd);
+void win32_export_raw_file (HWND h_wnd, capture_file *cf);
/** Open the "Export SSL Session Keys" dialog box.
*
@@ -111,7 +113,7 @@ void win32_export_sslkeys_file (HWND h_wnd);
* @param h_wnd HWND of the parent window
* @param filter_list the list to export
*/
-void win32_export_color_file(HWND h_wnd, gpointer filter_list);
+void win32_export_color_file(HWND h_wnd, capture_file *cf, gpointer filter_list);
/** Open the "Import Color Filters" dialog box
*