#include "print.h"
#include "file.h"
#include "fileset.h"
-#include "util.h"
+#include "tempfile.h"
#include "merge.h"
#include "alert_box.h"
#include "simple_dialog.h"
/* XXX - use a macro instead? */
int
-cf_packet_count(capture_file *cf)
+cf_get_packet_count(capture_file *cf)
{
return cf->count;
}
+/* XXX - use a macro instead? */
+void
+cf_set_packet_count(capture_file *cf, int packet_count)
+{
+ cf->count = packet_count;
+}
+
/* XXX - use a macro instead? */
gboolean
cf_is_tempfile(capture_file *cf)
fdata->flags.visited = 0;
fdata->flags.marked = 0;
fdata->flags.ref_time = 0;
+ fdata->color_filter = NULL;
fdata->abs_ts = *((nstime_t *) &phdr->ts);
gchar status_str[100];
int progbar_nextstep;
int progbar_quantum;
+ char *title;
start_fd = cf->current_frame;
if (start_fd != NULL) {
g_get_current_time(&start_time);
fdata = start_fd;
+ title = cf->sfilter?cf->sfilter:"";
for (;;) {
/* Create the progress bar if necessary.
We check on every iteration of the loop, so that it takes no
large file, we might take considerably longer than that standard
time in order to get to the next progress bar step). */
if (progbar == NULL)
- progbar = delayed_create_progress_dlg("Searching", cf->sfilter,
+ progbar = delayed_create_progress_dlg("Searching", title,
FALSE, &stop_flag, &start_time, progbar_val);
/* Update the progress bar, but do it only N_PROGBAR_UPDATES times;